1- # Generated by Django 4.2.20 on 2025-04-23 12:47
1+ # Generated by Django 4.2.20 on 2025-05-14 09:38
22
33from django .conf import settings
44from django .db import migrations , models
@@ -25,8 +25,32 @@ class Migration(migrations.Migration):
2525 ),
2626 ),
2727 ("invited_user_email" , models .EmailField (max_length = 254 )),
28- ("token" , models .CharField (max_length = 256 , unique = True )),
29- ("is_used" , models .BooleanField (default = False )),
28+ (
29+ "status" ,
30+ models .CharField (
31+ choices = [
32+ ("pending" , "Pending" ),
33+ ("accepted" , "Accepted" ),
34+ ("rejected" , "Rejected" ),
35+ ("expired" , "Expired" ),
36+ ],
37+ default = "pending" ,
38+ max_length = 20 ,
39+ ),
40+ ),
41+ (
42+ "role" ,
43+ models .CharField (
44+ choices = [
45+ ("read_only" , "Read Only" ),
46+ ("comment" , "Comment" ),
47+ ("edit" , "Edit" ),
48+ ],
49+ default = "read_only" ,
50+ ),
51+ ),
52+ ("responded_on" , models .DateTimeField (blank = True , null = True )),
53+ ("invited_at" , models .DateTimeField (blank = True , null = True )),
3054 ("created_at" , models .DateTimeField (auto_now_add = True )),
3155 (
3256 "invited_by" ,
@@ -63,20 +87,18 @@ class Migration(migrations.Migration):
6387 verbose_name = "ID" ,
6488 ),
6589 ),
66- ("role" , models .JSONField (default = list )),
6790 (
68- "status " ,
91+ "role " ,
6992 models .CharField (
7093 choices = [
71- ("accepted " , "Accepted " ),
72- ("rejected " , "Rejected " ),
73- ("expired " , "Expired " ),
94+ ("read_only " , "Read Only " ),
95+ ("comment " , "Comment " ),
96+ ("edit " , "Edit " ),
7497 ],
75- default = "accepted" ,
76- max_length = 20 ,
98+ default = "read_only" ,
7799 ),
78100 ),
79- ("accepted_on " , models .DateTimeField (blank = True , null = True )),
101+ ("created_at " , models .DateTimeField (auto_now_add = True , null = True )),
80102 (
81103 "invite" ,
82104 models .OneToOneField (
0 commit comments