1
- # Generated by Django 5.0.3 on 2024-04-29 18:37
1
+ # Generated by Django 5.0.3 on 2024-05-13 16:29
2
2
3
3
import django .db .models .deletion
4
+ import uuid
4
5
from django .db import migrations , models
5
6
6
7
@@ -16,7 +17,7 @@ class Migration(migrations.Migration):
16
17
migrations .CreateModel (
17
18
name = 'Tweet' ,
18
19
fields = [
19
- ('id' , models .BigAutoField ( auto_created = True , primary_key = True , serialize = False , verbose_name = 'ID' )),
20
+ ('id' , models .UUIDField ( default = uuid . uuid4 , editable = False , primary_key = True , serialize = False )),
20
21
('content' , models .TextField (blank = True , default = None , max_length = 250 , null = True )),
21
22
('image' , models .ImageField (blank = True , default = None , null = True , upload_to = '' )),
22
23
('date' , models .DateTimeField (auto_now_add = True )),
@@ -27,7 +28,7 @@ class Migration(migrations.Migration):
27
28
migrations .CreateModel (
28
29
name = 'Comment' ,
29
30
fields = [
30
- ('id' , models .BigAutoField ( auto_created = True , primary_key = True , serialize = False , verbose_name = 'ID' )),
31
+ ('id' , models .UUIDField ( default = uuid . uuid4 , editable = False , primary_key = True , serialize = False )),
31
32
('content' , models .TextField (blank = True , default = None , max_length = 250 , null = True )),
32
33
('date' , models .DateTimeField (auto_now_add = True )),
33
34
('from_user' , models .ForeignKey (blank = True , null = True , on_delete = django .db .models .deletion .CASCADE , to = 'Profile.profile' )),
0 commit comments