feat(tester): add solution endpoints
add CreateSolution&GetSolution&ListSolutions endpoints
This commit is contained in:
parent
af6e0b89f6
commit
ef696d2836
9 changed files with 316 additions and 8 deletions
|
@ -105,9 +105,9 @@ CREATE TABLE IF NOT EXISTS solutions
|
|||
participant_id integer REFERENCES participants (id) ON DELETE SET NULL,
|
||||
solution varchar(1048576) NOT NULL,
|
||||
state integer NOT NULL DEFAULT 1,
|
||||
score integer NOT NULL,
|
||||
score integer NOT NULL DEFAULT 0,
|
||||
penalty integer NOT NULL,
|
||||
total_score integer NOT NULL,
|
||||
total_score integer NOT NULL DEFAULT 0,
|
||||
language integer NOT NULL,
|
||||
updated_at timestamptz NOT NULL DEFAULT now(),
|
||||
created_at timestamptz NOT NULL DEFAULT now(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue