2021-01-17 17:10:04 +01:00
# Generated by Django 3.1.3 on 2021-01-09 19:40
2020-12-07 21:41:55 +01:00
2020-12-27 01:33:07 +01:00
from django . conf import settings
2020-12-07 21:41:55 +01:00
from django . db import migrations , models
2020-12-27 01:33:07 +01:00
import django . db . models . deletion
2020-12-07 21:41:55 +01:00
class Migration ( migrations . Migration ) :
initial = True
dependencies = [
2020-12-27 01:33:07 +01:00
( ' auth ' , ' 0012_alter_user_first_name_max_length ' ) ,
2020-12-07 21:41:55 +01:00
]
operations = [
migrations . CreateModel (
2020-12-27 01:33:07 +01:00
name = ' Base_User ' ,
2020-12-07 21:41:55 +01:00
fields = [
( ' password ' , models . CharField ( max_length = 128 , verbose_name = ' password ' ) ) ,
( ' last_login ' , models . DateTimeField ( blank = True , null = True , verbose_name = ' last login ' ) ) ,
2020-12-27 01:33:07 +01:00
( ' is_superuser ' , models . BooleanField ( default = False , help_text = ' Designates that this user has all permissions without explicitly assigning them. ' , verbose_name = ' superuser status ' ) ) ,
( ' id ' , models . AutoField ( primary_key = True , serialize = False ) ) ,
2020-12-07 21:41:55 +01:00
( ' email ' , models . EmailField ( max_length = 254 , unique = True , verbose_name = ' Email ' ) ) ,
( ' is_staff ' , models . BooleanField ( default = False ) ) ,
2020-12-27 01:33:07 +01:00
( ' is_active ' , models . BooleanField ( default = True ) ) ,
( ' date_joined ' , models . DateTimeField ( auto_now_add = True , verbose_name = ' Date joined ' ) ) ,
2021-01-17 17:10:04 +01:00
( ' status ' , models . CharField ( choices = [ ( ' Company_Account ' , ' Company account ' ) , ( ' Regular_Account ' , ' Regular account ' ) , ( ' Need_verification ' , ' Wait for verification ' ) , ( ' BaseAcc ' , ' Base account ' ) , ( ' Moderaotr ' , ' Moderator ' ) ] , default = ' BaseAcc ' , max_length = 32 ) ) ,
2020-12-27 01:33:07 +01: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 ' ) ) ,
2020-12-07 21:41:55 +01:00
] ,
options = {
2020-12-27 01:33:07 +01:00
' verbose_name ' : ' User ' ,
' verbose_name_plural ' : ' Users ' ,
2020-12-07 21:41:55 +01:00
} ,
) ,
migrations . CreateModel (
2020-12-27 01:33:07 +01:00
name = ' OwnerUser ' ,
2020-12-07 21:41:55 +01:00
fields = [
( ' id ' , models . AutoField ( auto_created = True , primary_key = True , serialize = False , verbose_name = ' ID ' ) ) ,
( ' first_name ' , models . CharField ( max_length = 30 , verbose_name = ' First Name ' ) ) ,
2020-12-27 01:33:07 +01:00
( ' last_name ' , models . CharField ( max_length = 30 , verbose_name = ' Last name ' ) ) ,
( ' company_name ' , models . CharField ( blank = True , max_length = 30 , verbose_name = ' Company name ' ) ) ,
( ' user ' , models . OneToOneField ( null = True , on_delete = django . db . models . deletion . CASCADE , to = settings . AUTH_USER_MODEL ) ) ,
2020-12-07 21:41:55 +01:00
] ,
) ,
migrations . CreateModel (
2020-12-27 01:33:07 +01:00
name = ' NormalUser ' ,
2020-12-07 21:41:55 +01:00
fields = [
( ' id ' , models . AutoField ( auto_created = True , primary_key = True , serialize = False , verbose_name = ' ID ' ) ) ,
( ' first_name ' , models . CharField ( max_length = 30 , verbose_name = ' First Name ' ) ) ,
2020-12-27 01:33:07 +01:00
( ' last_name ' , models . CharField ( max_length = 30 , verbose_name = ' Last name ' ) ) ,
( ' birth_date ' , models . DateField ( blank = True , null = True , verbose_name = ' Birth date ' ) ) ,
( ' user ' , models . OneToOneField ( blank = True , null = True , on_delete = django . db . models . deletion . CASCADE , to = settings . AUTH_USER_MODEL ) ) ,
2020-12-07 21:41:55 +01:00
] ,
) ,
]