mirror of
https://github.com/matt-fidd/stratos.git
synced 2026-01-01 20:39:28 +00:00
Added testResultId field to schema
This commit is contained in:
@@ -111,11 +111,12 @@ tableCreate.set('test', `
|
||||
|
||||
tableCreate.set('testResult', `
|
||||
CREATE TABLE IF NOT EXISTS testResult (
|
||||
testResultId varchar(36) NOT NULL PRIMARY KEY,
|
||||
studentId varchar(36) NOT NULL ,
|
||||
testId varchar(36) NOT NULL ,
|
||||
accountId varchar(36) NOT NULL ,
|
||||
mark int NOT NULL ,
|
||||
CONSTRAINT primarykey PRIMARY KEY ( studentId, testId )
|
||||
CONSTRAINT Unq_testResult UNIQUE ( studentId, testId )
|
||||
);
|
||||
`);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user