]>
iEval git - gruntmaster-data.git/blob - db.sql
d06521796abc8adeb0df656d78490520dc21e9f7
3 passphrase
TEXT, -- NOT NULL,
4 admin BOOLEAN NOT NULL DEFAULT FALSE,
5 name TEXT, -- NOT NULL,
6 email
TEXT, -- NOT NULL,
7 phone
TEXT, -- NOT NULL,
8 town
TEXT, -- NOT NULL,
9 university
TEXT, -- NOT NULL,
10 level TEXT, -- NOT NULL,
14 CREATE TABLE contests (
19 owner TEXT NOT NULL REFERENCES users
ON DELETE CASCADE,
20 CONSTRAINT positive_duration
CHECK (stop
> start)
23 CREATE TABLE problems (
27 generator
TEXT NOT NULL,
32 owner TEXT NOT NULL REFERENCES users
ON DELETE CASCADE,
33 private
BOOLEAN NOT NULL DEFAULT FALSE,
35 statement TEXT NOT NULL,
38 timeout
REAL NOT NULL,
46 CREATE TABLE contest_problems (
47 contest
TEXT REFERENCES contests
ON DELETE CASCADE,
48 problem
TEXT NOT NULL REFERENCES problems
ON DELETE CASCADE,
49 PRIMARY KEY (contest
, problem
)
53 id SERIAL
PRIMARY KEY,
54 contest
TEXT REFERENCES contests
ON DELETE CASCADE,
58 extension
TEXT NOT NULL,
60 private
BOOLEAN NOT NULL DEFAULT FALSE,
61 problem
TEXT NOT NULL REFERENCES problems
ON DELETE CASCADE,
66 owner TEXT NOT NULL REFERENCES users
ON DELETE CASCADE
70 contest
TEXT NOT NULL REFERENCES contests
ON DELETE CASCADE,
71 problem
TEXT NOT NULL REFERENCES problems
ON DELETE CASCADE,
72 owner TEXT NOT NULL REFERENCES users
ON DELETE CASCADE,
74 PRIMARY KEY (contest
, problem
, owner)
This page took 0.049907 seconds and 3 git commands to generate.