1
- # Generated by Django 5.0.3 on 2024-03-12 22:52
1
+ # Generated by Django 4.2.11 on 2024-04-01 15:13
2
2
3
- import django .db .models .deletion
4
3
from django .db import migrations , models
4
+ import django .db .models .deletion
5
5
6
6
7
7
class Migration (migrations .Migration ):
8
+
8
9
initial = True
9
10
10
11
dependencies = [
@@ -15,29 +16,35 @@ class Migration(migrations.Migration):
15
16
migrations .CreateModel (
16
17
name = 'Project' ,
17
18
fields = [
18
- ('project_id' , models .BigAutoField (primary_key = True , serialize = False )),
19
+ ('project_id' , models .BigAutoField (primary_key = True ,
20
+ serialize = False )),
19
21
('name' , models .CharField (max_length = 256 )),
20
22
('description' , models .TextField ()),
21
- ('deadline' , models .DateTimeField (blank = True , null = True )),
23
+ ('deadline' , models .DateTimeField ()),
22
24
('visible' , models .BooleanField (default = False )),
25
+ ('max_score' , models .IntegerField (default = 10 )),
23
26
('number_of_groups' , models .IntegerField (default = 5 )),
24
27
('group_size' , models .IntegerField (default = 1 )),
25
28
('file_structure' , models .CharField (max_length = 1024 , null = True )),
26
- ('max_score' , models .IntegerField (blank = True , null = True )),
27
- ('course_id' , models .ForeignKey (on_delete = django .db .models .deletion .CASCADE , to = 'courses.course' )),
29
+ ('course_id' , models .ForeignKey (
30
+ on_delete = django .db .models .deletion .CASCADE ,
31
+ to = 'courses.course' )),
28
32
],
29
33
),
30
34
migrations .CreateModel (
31
35
name = 'Test' ,
32
36
fields = [
33
- ('project_id' , models .ForeignKey (on_delete = django .db .models .deletion .CASCADE , primary_key = True ,
34
- serialize = False , to = 'projects.project' )),
37
+ ('project_id' ,
38
+ models .ForeignKey (on_delete = django .db .models .deletion .CASCADE ,
39
+ primary_key = True , serialize = False ,
40
+ to = 'projects.project' )),
35
41
('test_nr' , models .IntegerField ()),
36
- ('test_file_type' , models .FileField (max_length = 255 , null = True , upload_to = 'uploads/projects/<django.db.'
37
- 'models.fields.related.'
38
- 'ForeignKey>/<django.db.'
39
- 'models.fields.'
40
- 'IntegerField>' )),
42
+ ('test_file_type' ,
43
+ models .FileField (max_length = 255 ,
44
+ null = True ,
45
+ upload_to = 'uploads/projects/<django.db.'
46
+ 'models.fields.related.ForeignKey>/'
47
+ '<django.db.models.fields.IntegerField>' )),
41
48
],
42
49
),
43
50
]
0 commit comments