Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Odevzdávací Systém MO
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Martin Mareš
Odevzdávací Systém MO
Merge requests
!117
Publikace výsledkovky na web MO
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
Publikace výsledkovky na web MO
jk/vysledkovka
into
devel
Overview
83
Commits
25
Changes
3
Merged
Jiří Kalvoda
requested to merge
jk/vysledkovka
into
devel
3 years ago
Overview
34
Commits
25
Changes
3
0
0
Merge request reports
Viewing commit
e57a97b5
Prev
Next
Show latest version
3 files
+
58
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
e57a97b5
Přidán Round.round_type
· e57a97b5
Jiří Kalvoda
authored
3 years ago
db/db.ddl
+
10
−
0
View file @ e57a97b5
Edit in single-file editor
Open in Web IDE
Show full file
@@ -105,6 +105,15 @@ CREATE TYPE round_state AS ENUM (
'delegate' -- každá soutěž má svůj stav
);
CREATE TYPE round_type AS ENUM (
'domaci',
'skolni',
'okresni',
'krajske',
'ustredni',
'other' -- ad-hoc kola jako výběrko, neumožnuje export na web MO
);
CREATE TYPE score_mode AS ENUM (
'basic', -- základní mód výsledkovky se sdílenými místy
'mo' -- jednoznačné pořadí podle pravidel MO
@@ -126,6 +135,7 @@ CREATE TABLE rounds (
level int NOT NULL, -- úroveň hierarchie míst
code varchar(255) NOT NULL, -- kód kola ("1", "S" apod.)
name varchar(255) NOT NULL, -- zobrazované jméno ("Krajské kolo" apod.)
round_type round_type NOT NULL DEFAULT 'other', -- typ kola ("domácí", "školní" apod.)
state round_state NOT NULL DEFAULT 'preparing', -- stav kola
tasks_file varchar(255) DEFAULT NULL, -- jméno souboru se zadáním úloh
ct_tasks_start timestamp with time zone DEFAULT NULL, -- od kdy účastníci vidí zadání
Loading