2025-11-23 00:19:26 +00:00
# Generated by Django 5.2.8 on 2025-11-22 22:06
2025-11-12 11:51:27 +00:00
import django . db . models . deletion
from django . conf import settings
from django . db import migrations , models
class Migration ( migrations . Migration ) :
initial = True
dependencies = [
( ' auth ' , ' 0012_alter_user_first_name_max_length ' ) ,
]
operations = [
migrations . CreateModel (
name = ' CustomUser ' ,
fields = [
( ' id ' , models . BigAutoField ( auto_created = True , primary_key = True , serialize = False , verbose_name = ' ID ' ) ) ,
( ' password ' , models . CharField ( max_length = 128 , verbose_name = ' password ' ) ) ,
( ' email ' , models . EmailField ( max_length = 254 , unique = True ) ) ,
2025-11-13 00:52:34 +00:00
( ' first_name ' , models . CharField ( max_length = 50 ) ) ,
( ' last_name ' , models . CharField ( max_length = 50 ) ) ,
( ' is_staff ' , models . BooleanField ( default = False ) ) ,
( ' is_superuser ' , models . BooleanField ( default = False ) ) ,
( ' is_active ' , models . BooleanField ( default = True ) ) ,
2025-11-22 02:19:44 +00:00
( ' isVerified ' , models . BooleanField ( default = False ) ) ,
( ' verify_otp ' , models . CharField ( blank = True , max_length = 6 , null = True ) ) ,
( ' verify_otp_expiry ' , models . DateTimeField ( blank = True , null = True ) ) ,
( ' forgot_password_otp ' , models . CharField ( blank = True , max_length = 6 , null = True ) ) ,
( ' forgot_password_otp_expiry ' , models . DateTimeField ( blank = True , null = True ) ) ,
2025-11-12 11:51:27 +00:00
( ' phone_number ' , models . CharField ( blank = True , max_length = 20 ) ) ,
2025-11-13 00:52:34 +00:00
( ' last_login ' , models . DateTimeField ( auto_now = True ) ) ,
( ' date_joined ' , models . DateTimeField ( auto_now_add = True ) ) ,
2025-11-12 11:51:27 +00:00
( ' groups ' , models . ManyToManyField ( blank = True , help_text = ' The groups this user belongs to. A user will get all permissions granted to each of their groups. ' , related_name = ' user_set ' , related_query_name = ' user ' , to = ' auth.group ' , verbose_name = ' groups ' ) ) ,
( ' user_permissions ' , models . ManyToManyField ( blank = True , help_text = ' Specific permissions for this user. ' , related_name = ' user_set ' , related_query_name = ' user ' , to = ' auth.permission ' , verbose_name = ' user permissions ' ) ) ,
] ,
options = {
' abstract ' : False ,
} ,
) ,
migrations . CreateModel (
name = ' UserProfile ' ,
fields = [
( ' id ' , models . BigAutoField ( auto_created = True , primary_key = True , serialize = False , verbose_name = ' ID ' ) ) ,
( ' bio ' , models . TextField ( blank = True , max_length = 500 ) ) ,
( ' timezone ' , models . CharField ( default = ' UTC ' , max_length = 50 ) ) ,
( ' created_at ' , models . DateTimeField ( auto_now_add = True ) ) ,
( ' updated_at ' , models . DateTimeField ( auto_now = True ) ) ,
( ' user ' , models . OneToOneField ( on_delete = django . db . models . deletion . CASCADE , related_name = ' profile ' , to = settings . AUTH_USER_MODEL ) ) ,
] ,
) ,
]