1
0
mirror of https://github.com/matt-fidd/stratos.git synced 2026-01-01 23:19:29 +00:00

Added testResultId field to schema

This commit is contained in:
2022-04-12 00:13:10 +00:00
parent ad1a50d4f2
commit 3079de4692

View File

@@ -111,11 +111,12 @@ tableCreate.set('test', `
tableCreate.set('testResult', ` tableCreate.set('testResult', `
CREATE TABLE IF NOT EXISTS testResult ( CREATE TABLE IF NOT EXISTS testResult (
testResultId varchar(36) NOT NULL PRIMARY KEY,
studentId varchar(36) NOT NULL , studentId varchar(36) NOT NULL ,
testId varchar(36) NOT NULL , testId varchar(36) NOT NULL ,
accountId varchar(36) NOT NULL , accountId varchar(36) NOT NULL ,
mark int NOT NULL , mark int NOT NULL ,
CONSTRAINT primarykey PRIMARY KEY ( studentId, testId ) CONSTRAINT Unq_testResult UNIQUE ( studentId, testId )
); );
`); `);