-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmodels.txt
88 lines (77 loc) · 1.87 KB
/
models.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
-------- App: Acoounts ----
* User
* Profile
- user (Fk to User)
- profile_picture (ImageField)
- institution (CharField)
- location (CharField)
- rating (IntegerField)
- rank (CharField)
------- App: Blog ----------------
* Blog
- title (CharField)
- content (TextField)
- user (FK to User)
- prference (BooleanField)
- created_at (DateTimeField)
- modified_at (DateTimeFIeld)
----------- App: Problemset --------------
* Language
- name (CharField)
* Problem
- name (CharField)
- statement (TextField)
- input_section (TextField)
- output_section (TextFIeld)
- editorial (TextField)
- solution (FileField)
- solution_language (Fk to Language)
- author (Fk to User)
- is_protected (BooleanField)
* LanguageSpec
- problem (Fk to Problem)
- language (fk to Language) [example: language = models.ForeignKey(to=Language)]
- time_limit (DurationField)
- memory_limit (PositiveIntegerField)
* TestCase
- input (FileField)
- output (FileFIeld)
- label (CharField)
- is_sample (BooleanField)
- problem (Fk to Problem)
- notes (TextField)
* Submission
- contest (Fk to Contest)
- problem (Fk to Problem)
- solution (FileField)
- solution_language (Fk to language)
- status (CharField - choices)
- user (Fk to User)
- created_at (DateTimeField)
----- App: Contest ---------
* Contest
- title (CharField)
- start_time (DateTimeFIeld)
- duration (DurationField)
- openness (BooleanField)
- description (TextField)
- problem_ids (JSONField - list)
- problem_scores (JSONField - list)
- is_rated (BooleanField)
- author (Fk to User)
- created_at
- modified_at
* Announcement
- title (CharFIeld)
- content (TextField)
- contest (Fk to Contest)
- user (Fk to User)
- created_at
- modified_at
* Clarification
- content (TextField)
- problem (Fk to Problem)
- contest (Fk to Contest)
- user (Fk to User)
- created_at
- modified_at