squash! WIP: apply a coeff on given points
This commit is contained in:
parent
da29071ad1
commit
1c879fe50e
5 changed files with 28 additions and 24 deletions
|
@ -66,6 +66,7 @@ CREATE TABLE IF NOT EXISTS exercices(
|
|||
statement TEXT NOT NULL,
|
||||
depend INTEGER,
|
||||
gain INTEGER NOT NULL,
|
||||
coefficient_cur FLOAT NOT NULL DEFAULT 1.0,
|
||||
video_uri VARCHAR(255) NOT NULL,
|
||||
FOREIGN KEY(id_theme) REFERENCES themes(id_theme),
|
||||
FOREIGN KEY(depend) REFERENCES exercices(id_exercice)
|
||||
|
@ -126,7 +127,7 @@ CREATE TABLE IF NOT EXISTS exercice_solved(
|
|||
id_exercice INTEGER NOT NULL,
|
||||
id_team INTEGER NOT NULL,
|
||||
time TIMESTAMP NOT NULL,
|
||||
coefficient FLOAT NOT NULL,
|
||||
coefficient FLOAT NOT NULL DEFAULT 1.0,
|
||||
FOREIGN KEY(id_exercice) REFERENCES exercices(id_exercice),
|
||||
FOREIGN KEY(id_team) REFERENCES teams(id_team)
|
||||
);
|
||||
|
|
Reference in a new issue