Skip to content
Snippets Groups Projects

Prázdné protokoly

Merged Martin Mareš requested to merge mj/points into devel
Files
44
+ 3
1
@@ -265,6 +265,7 @@ CREATE TABLE solutions (
points numeric(5,1) DEFAULT NULL,
note text NOT NULL DEFAULT '', -- komentář pro řešitele
org_note text NOT NULL DEFAULT '', -- komentář viditelný jen organizátorům
is_empty bool NOT NULL DEFAULT false, -- prázdný papír (v tomto případě je vždy points=0)
PRIMARY KEY (task_id, user_id)
);
@@ -277,7 +278,8 @@ CREATE TABLE points_history (
participant_id int NOT NULL REFERENCES users(user_id),
points numeric(5,1) DEFAULT NULL,
points_by int NOT NULL REFERENCES users(user_id), -- kdo přidělil body
points_at timestamp with time zone NOT NULL -- a kdy
points_at timestamp with time zone NOT NULL, -- a kdy
is_empty bool NOT NULL DEFAULT false
);
CREATE INDEX points_history_index ON points_history (task_id, participant_id);
Loading