1
- # Generated by Django 5.2b1 on 2025-02-28 17:01
1
+ # Generated by Django 5.2 on 2025-05-01 19:23
2
2
3
+ import uuid
3
4
from django .db import migrations , models
4
5
5
6
@@ -8,70 +9,66 @@ class Migration(migrations.Migration):
8
9
initial = True
9
10
10
11
dependencies = [
11
- (' auth' , ' 0012_alter_user_first_name_max_length' ),
12
+ (" auth" , " 0012_alter_user_first_name_max_length" ),
12
13
]
13
14
14
15
operations = [
15
16
migrations .CreateModel (
16
- name = ' User' ,
17
+ name = " User" ,
17
18
fields = [
19
+ ("password" , models .CharField (max_length = 128 , verbose_name = "password" )),
18
20
(
19
- 'id' ,
20
- models .BigAutoField (
21
- auto_created = True ,
22
- primary_key = True ,
23
- serialize = False ,
24
- verbose_name = 'ID' ,
25
- ),
26
- ),
27
- (
28
- 'password' ,
29
- models .CharField (max_length = 128 , verbose_name = 'password' ),
30
- ),
31
- (
32
- 'is_superuser' ,
21
+ "is_superuser" ,
33
22
models .BooleanField (
34
23
default = False ,
35
- help_text = ' Designates that this user has all permissions without explicitly assigning them.' ,
36
- verbose_name = ' superuser status' ,
24
+ help_text = " Designates that this user has all permissions without explicitly assigning them." ,
25
+ verbose_name = " superuser status" ,
37
26
),
38
27
),
39
- ('email' , models .EmailField (max_length = 120 , unique = True )),
40
- ('name' , models .CharField (max_length = 100 )),
41
- ('surname' , models .CharField (max_length = 120 )),
42
28
(
43
- 'avatar_url' ,
44
- models .URLField (blank = True , max_length = 350 , null = True ),
29
+ "id" ,
30
+ models .UUIDField (
31
+ default = uuid .uuid4 ,
32
+ editable = False ,
33
+ primary_key = True ,
34
+ serialize = False ,
35
+ verbose_name = "UUID" ,
36
+ ),
45
37
),
46
- ('other' , models .JSONField (default = dict )),
47
- ('is_active' , models .BooleanField (default = True )),
48
- ('is_staff' , models .BooleanField (default = False )),
49
- ('last_login' , models .DateTimeField (blank = True , null = True )),
38
+ ("email" , models .EmailField (max_length = 120 , unique = True )),
39
+ ("name" , models .CharField (max_length = 100 )),
40
+ ("surname" , models .CharField (max_length = 120 )),
41
+ ("avatar_url" , models .URLField (blank = True , max_length = 350 , null = True )),
42
+ ("other" , models .JSONField (default = dict )),
43
+ ("token_version" , models .IntegerField (default = 0 )),
44
+ ("is_active" , models .BooleanField (default = True )),
45
+ ("is_staff" , models .BooleanField (default = False )),
46
+ ("last_login" , models .DateTimeField (blank = True , null = True )),
50
47
(
51
- ' groups' ,
48
+ " groups" ,
52
49
models .ManyToManyField (
53
50
blank = True ,
54
- help_text = ' The groups this user belongs to. A user will get all permissions granted to each of their groups.' ,
55
- related_name = ' user_set' ,
56
- related_query_name = ' user' ,
57
- to = ' auth.group' ,
58
- verbose_name = ' groups' ,
51
+ help_text = " The groups this user belongs to. A user will get all permissions granted to each of their groups." ,
52
+ related_name = " user_set" ,
53
+ related_query_name = " user" ,
54
+ to = " auth.group" ,
55
+ verbose_name = " groups" ,
59
56
),
60
57
),
61
58
(
62
- ' user_permissions' ,
59
+ " user_permissions" ,
63
60
models .ManyToManyField (
64
61
blank = True ,
65
- help_text = ' Specific permissions for this user.' ,
66
- related_name = ' user_set' ,
67
- related_query_name = ' user' ,
68
- to = ' auth.permission' ,
69
- verbose_name = ' user permissions' ,
62
+ help_text = " Specific permissions for this user." ,
63
+ related_name = " user_set" ,
64
+ related_query_name = " user" ,
65
+ to = " auth.permission" ,
66
+ verbose_name = " user permissions" ,
70
67
),
71
68
),
72
69
],
73
70
options = {
74
- ' abstract' : False ,
71
+ " abstract" : False ,
75
72
},
76
73
),
77
74
]
0 commit comments