@@ -13,16 +13,19 @@ class Migration(migrations.Migration):
1313
1414 operations = [
1515 migrations .CreateModel (
16- name = 'Profiles ' ,
16+ name = 'Profile ' ,
1717 fields = [
1818 ('id' , models .AutoField (verbose_name = 'ID' , serialize = False , auto_created = True , primary_key = True )),
19- ('city' , models .CharField (max_length = 100 )),
20- ('contact_no' , models .CharField (max_length = 10 )),
21- ('created' , models .DateTimeField (auto_now_add = True , verbose_name = b'Created' , null = True )),
22- ('modified' , models .DateTimeField (auto_now = True , verbose_name = b'Last Modified' , null = True )),
19+ ('created_at' , models .DateTimeField (auto_now_add = True , verbose_name = 'Created At' )),
20+ ('modified_at' , models .DateTimeField (auto_now = True , verbose_name = 'Last Modified At' )),
21+ ('city' , models .CharField (max_length = 100 , null = True , blank = True )),
22+ ('contact_no' , models .CharField (max_length = 15 , null = True , blank = True )),
23+ ('created_by' , models .ForeignKey (related_name = 'created_profile_set' , verbose_name = 'Created By' , blank = True , to = settings .AUTH_USER_MODEL , null = True )),
24+ ('modified_by' , models .ForeignKey (related_name = 'updated_profile_set' , verbose_name = 'Modified By' , blank = True , to = settings .AUTH_USER_MODEL , null = True )),
2325 ('user' , models .OneToOneField (to = settings .AUTH_USER_MODEL )),
2426 ],
2527 options = {
28+ 'abstract' : False ,
2629 },
2730 bases = (models .Model ,),
2831 ),
0 commit comments