性能
This commit is contained in:
@@ -103,6 +103,8 @@ export const sqliteSchema = `
|
||||
admit_download_start TEXT NOT NULL,
|
||||
admit_download_end TEXT NOT NULL,
|
||||
location TEXT NOT NULL,
|
||||
pass_policy TEXT NOT NULL DEFAULT 'score_ratio' CHECK (pass_policy IN ('fixed_score', 'score_ratio', 'rank_percent', 'subject_scores', 'none')),
|
||||
pass_value REAL NOT NULL DEFAULT 60,
|
||||
status TEXT NOT NULL CHECK (status IN ('draft', 'published', 'closed')),
|
||||
created_at TEXT NOT NULL
|
||||
) STRICT;
|
||||
@@ -115,6 +117,8 @@ export const sqliteSchema = `
|
||||
start_time TEXT NOT NULL,
|
||||
end_time TEXT NOT NULL,
|
||||
fee REAL NOT NULL DEFAULT 0,
|
||||
full_score REAL NOT NULL DEFAULT 150,
|
||||
pass_score REAL NOT NULL DEFAULT 90,
|
||||
position INTEGER NOT NULL,
|
||||
UNIQUE (exam_id, position)
|
||||
) STRICT;
|
||||
@@ -466,6 +470,8 @@ export const mysqlSchema = [
|
||||
admit_download_start VARCHAR(35) NOT NULL,
|
||||
admit_download_end VARCHAR(35) NOT NULL,
|
||||
location VARCHAR(200) NOT NULL,
|
||||
pass_policy ENUM('fixed_score', 'score_ratio', 'rank_percent', 'subject_scores', 'none') NOT NULL DEFAULT 'score_ratio',
|
||||
pass_value DOUBLE NOT NULL DEFAULT 60,
|
||||
status ENUM('draft', 'published', 'closed') NOT NULL,
|
||||
created_at VARCHAR(35) NOT NULL,
|
||||
PRIMARY KEY (id),
|
||||
@@ -480,6 +486,8 @@ export const mysqlSchema = [
|
||||
start_time VARCHAR(20) NOT NULL,
|
||||
end_time VARCHAR(20) NOT NULL,
|
||||
fee DOUBLE NOT NULL DEFAULT 0,
|
||||
full_score DOUBLE NOT NULL DEFAULT 150,
|
||||
pass_score DOUBLE NOT NULL DEFAULT 90,
|
||||
position INT UNSIGNED NOT NULL,
|
||||
PRIMARY KEY (id),
|
||||
UNIQUE KEY uq_subjects_exam_position (exam_id, position),
|
||||
|
||||
Reference in New Issue
Block a user