2025-12-07 15:19:59 +00:00
# Generated by Django 5.2.8 on 2025-12-06 21:33
2025-11-19 12:55:15 +00:00
import uuid
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 = ' User ' ,
fields = [
( ' password ' , models . CharField ( max_length = 128 , verbose_name = ' password ' ) ) ,
( ' last_login ' , models . DateTimeField ( blank = True , null = True , verbose_name = ' last login ' ) ) ,
( ' is_superuser ' , models . BooleanField ( default = False , help_text = ' Designates that this user has all permissions without explicitly assigning them. ' , verbose_name = ' superuser status ' ) ) ,
( ' created_at ' , models . DateTimeField ( auto_now_add = True , verbose_name = ' Created At ' ) ) ,
( ' updated_at ' , models . DateTimeField ( auto_now = True , verbose_name = ' Updated At ' ) ) ,
2025-12-07 15:19:59 +00:00
( ' id ' , models . AutoField ( primary_key = True , serialize = False , verbose_name = ' User ID ' ) ) ,
( ' uuid ' , models . UUIDField ( default = uuid . uuid4 , editable = False , verbose_name = ' User UUID ' ) ) ,
2025-11-19 12:55:15 +00:00
( ' email_address ' , models . EmailField ( max_length = 255 , unique = True , verbose_name = ' Email Address ' ) ) ,
( ' first_name ' , models . CharField ( max_length = 255 , verbose_name = ' First Name ' ) ) ,
( ' last_name ' , models . CharField ( max_length = 255 , verbose_name = ' Last Name ' ) ) ,
( ' date_of_birth ' , models . DateField ( blank = True , null = True , verbose_name = ' Date of Birth ' ) ) ,
2025-12-07 15:19:59 +00:00
( ' bio ' , models . TextField ( blank = True , default = ' ' ) ) ,
( ' timezone ' , models . CharField ( blank = True , default = ' UTC ' , max_length = 16 ) ) ,
( ' avatar_url ' , models . URLField ( blank = True ) ) ,
2025-11-19 12:55:15 +00:00
( ' is_active ' , models . BooleanField ( default = True , verbose_name = ' Account Active ' ) ) ,
( ' is_staff ' , models . BooleanField ( default = False , verbose_name = ' Account Admin ' ) ) ,
2025-12-07 15:19:59 +00:00
( ' role ' , models . CharField ( choices = [ ( ' manager ' , ' Manager ' ) , ( ' employee ' , ' Employee ' ) ] , default = ' employee ' , max_length = 50 , verbose_name = ' Role ' ) ) ,
2025-11-19 12:55:15 +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 = {
' verbose_name ' : ' User ' ,
' verbose_name_plural ' : ' Users ' ,
} ,
) ,
]