class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0011_update_proxy_permissions'), ] operations = [ migrations.CreateModel( name='User', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('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')), ('email', models.EmailField(max_length=254, unique=True, verbose_name='email')), ('full_name', models.CharField(blank=True, max_length=400, null=True, verbose_name='full name')), ('is_staff', models.BooleanField(default=False, verbose_name='staff status')), ('is_active', models.BooleanField(default=True, verbose_name='active')), ('is_verified', models.BooleanField(default=False, verbose_name='verified')), ('verification_uuid', models.UUIDField(default=uuid.uuid4, verbose_name='Unique Verification UUID')), ('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, }, managers=[ ('objects', authentication.models.UserAccountManager()), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0009_alter_user_last_name_max_length'), ] operations = [ migrations.CreateModel( name='Account', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('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')), ('email', models.EmailField(blank=True, max_length=254, unique=True, verbose_name='email address')), ('date_joined', models.DateTimeField(default=django.utils.timezone.now, verbose_name='date joined')), ('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', }, managers=[ ('objects', authentication.models.AccountManager()), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0011_update_proxy_permissions'), ] operations = [ migrations.CreateModel( name='User', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('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')), ('email', models.EmailField(help_text='Required. Inform a valid email address.', max_length=255, unique=True)), ('first_name', models.CharField(blank=True, max_length=30, verbose_name='first name')), ('last_name', models.CharField(blank=True, max_length=150, verbose_name='last name')), ('phone_number', models.CharField(help_text='Required', max_length=10)), ('is_staff', models.BooleanField(default=False, help_text='Designates whether the user can log into this admin site.', verbose_name='staff status')), ('is_active', models.BooleanField(default=True, help_text='Designates whether this user should be treated as active. Unselect this instead of deleting accounts.', verbose_name='active')), ('date_joined', models.DateTimeField(default=django.utils.timezone.now, verbose_name='date joined')), ('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, }, managers=[ ('objects', authentication.models.UserManager()), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0012_alter_user_first_name_max_length'), ] operations = [ migrations.CreateModel( name='User', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('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)), ('updated_at', models.DateTimeField(auto_now=True)), ('username', models.CharField(error_messages={'unique': 'A user with that username already exists.'}, help_text='Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.', max_length=150, unique=True, validators=[django.contrib.auth.validators.UnicodeUsernameValidator()], verbose_name='username')), ('email', models.EmailField(max_length=254, unique=True, verbose_name='email address')), ('is_staff', models.BooleanField(default=False, help_text='Designates whether the user can log into this admin site.', verbose_name='staff status')), ('is_active', models.BooleanField(default=True, help_text='Designates whether this user should be treated as active. Unselect this instead of deleting accounts.', verbose_name='active')), ('date_joined', models.DateTimeField(default=django.utils.timezone.now, verbose_name='date joined')), ('email_verified', models.BooleanField(default=False, help_text='Designates whether this users email is verified. ', verbose_name='email_verified')), ('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, }, managers=[ ('objects', authentication.models.MyUserManager()), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0009_alter_user_last_name_max_length'), ] operations = [ migrations.CreateModel( name='User', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('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)), ('updated_at', models.DateTimeField(auto_now=True)), ('email', models.EmailField(db_index=True, max_length=254, unique=True, validators=[core.validators.CoreEmailValidator()])), ('first_name', models.CharField(blank=True, max_length=100, null=True)), ('last_name', models.CharField(blank=True, max_length=100, null=True)), ('avatar', models.ImageField(blank=True, null=True, upload_to=authentication.models.avatar_path)), ('bio', models.TextField(blank=True)), ('address', models.TextField(blank=True)), ('is_active', models.BooleanField(default=False)), ('is_staff', models.BooleanField(default=False)), ('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, }, ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('post', '0001_initial'), migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='Profile', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('first_name', models.CharField(blank=True, max_length=50, null=True)), ('last_name', models.CharField(blank=True, max_length=50, null=True)), ('location', models.CharField(blank=True, max_length=50, null=True)), ('url', models.CharField(blank=True, max_length=80, null=True)), ('profile_info', models.TextField(blank=True, max_length=150, null=True)), ('created', models.DateField(auto_now_add=True)), ('picture', models.ImageField( blank=True, null=True, upload_to=authentication.models.user_directory_path, verbose_name='Picture')), ('favorites', models.ManyToManyField(to='post.Post')), ('user', models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, related_name='profile', to=settings.AUTH_USER_MODEL)), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0009_alter_user_last_name_max_length'), ] operations = [ migrations.CreateModel( name='User', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('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')), ('username', models.CharField( error_messages={ 'unique': 'A user with that username already exists.' }, help_text= 'Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.', max_length=150, unique=True, validators=[ django.contrib.auth.validators. UnicodeUsernameValidator() ], verbose_name='username')), ('email', models.EmailField(blank=True, max_length=254, verbose_name='email address')), ('is_staff', models.BooleanField( default=False, help_text= 'Designates whether the user can log into this admin site.', verbose_name='staff status')), ('is_active', models.BooleanField( default=True, help_text= 'Designates whether this user should be treated as active. Unselect this instead of deleting accounts.', verbose_name='active')), ('date_joined', models.DateTimeField(default=django.utils.timezone.now, verbose_name='date joined')), ('first_name', models.CharField(max_length=30, verbose_name='نام')), ('last_name', models.CharField(max_length=150, verbose_name='نام خانوادگی')), ('father_name', models.CharField(blank=True, max_length=30, null=True, verbose_name='نام پدر')), ('personnel_code', models.CharField(max_length=8, unique=True, verbose_name='شماره پرسنلی')), ('national_code', models.CharField(max_length=10, unique=True, verbose_name='کد ملی')), ('year_of_birth', models.IntegerField(blank=True, null=True, verbose_name='سال تولد')), ('mobile', models.CharField(max_length=15, null=True, verbose_name='موبایل')), ('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')), ], options={ 'verbose_name': 'user', 'verbose_name_plural': 'users', 'abstract': False, }, managers=[ ('objects', authentication.models.UserManager()), ], ), migrations.CreateModel( name='Job', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ], ), migrations.CreateModel( name='Unit', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=30, verbose_name='نام واحد')), ], ), migrations.CreateModel( name='Admin', fields=[ ('job_ptr', models.OneToOneField( auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='authentication.Job')), ], bases=('authentication.job', ), ), migrations.CreateModel( name='Employee', fields=[ ('job_ptr', models.OneToOneField( auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='authentication.Job')), ('units', models.ManyToManyField(to='authentication.Unit', verbose_name='واحدها')), ], bases=('authentication.job', ), ), migrations.AddField( model_name='user', name='job', field=models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='authentication.Job', verbose_name='نقش'), ), migrations.AddField( model_name='user', name='user_permissions', field=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'), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0009_alter_user_last_name_max_length'), ] operations = [ migrations.CreateModel( name='User', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('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')), ('is_staff', models.BooleanField( default=False, help_text= 'Designates whether the user can log into this admin site.', verbose_name='staff status')), ('is_active', models.BooleanField( default=True, help_text= 'Designates whether this user should be treated as active. Unselect this instead of deleting accounts.', verbose_name='active')), ('date_joined', models.DateTimeField(default=django.utils.timezone.now, verbose_name='date joined')), ('email', models.EmailField( help_text= 'Will be validated. <br> You can validate more emails for Login after Registering', max_length=254, unique=True, validators=[authentication.models.validate_email_new], verbose_name='primary email')), ('first_name', models.CharField(blank=True, max_length=30, verbose_name='first name')), ('last_name', models.CharField(blank=True, max_length=150, verbose_name='last name')), ('username', models.CharField( error_messages={ 'unique': 'A user with that username already exists.' }, help_text= 'Required. <br> 150 characters or fewer. Letters, digits and @/./+/-/_ only.', max_length=150, unique=True, validators=[ django.contrib.auth.validators. UnicodeUsernameValidator() ], verbose_name='username')), ('phone', models.CharField(blank=True, max_length=8, null=True, unique=True)), ('photo', models.ImageField(upload_to='profiles/images/%d')), ('updated_at', models.DateTimeField(auto_now=True)), ('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', 'abstract': False, }, managers=[ ('objects', authentication.models.AccountManager()), ], ), migrations.CreateModel( name='Email', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created_at', models.DateTimeField(auto_now_add=True)), ('updated_at', models.DateTimeField(auto_now=True)), ('email', models.EmailField(max_length=254, unique=True, verbose_name='email address')), ('is_verified', models.BooleanField(default=False, verbose_name='email verified')), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='emails', to=settings.AUTH_USER_MODEL)), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0011_update_proxy_permissions'), ('locations', '0003_city_parent_id'), ] operations = [ migrations.CreateModel( name='User', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('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')), ('username', models.CharField( db_index=True, error_messages={ 'unique': 'A user with that username already exists' }, max_length=50, unique=True, validators=[ authentication.validations.UsernameValidator() ])), ('photo', models.ImageField( blank=True, null=True, upload_to=authentication.models.get_user_photo_path)), ('email', models.EmailField(db_index=True, max_length=254, unique=True)), ('full_name', models.CharField(max_length=255)), ('birthday', models.DateField( validators=[authentication.validations.validate_birthday]) ), ('is_active', models.BooleanField(default=True)), ('is_staff', models.BooleanField(default=False)), ('city', models.ForeignKey( null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='users', to='locations.City')), ('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, }, managers=[ ('objects', authentication.models.UserManager()), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0012_alter_user_first_name_max_length'), ] operations = [ migrations.CreateModel( name='User', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('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')), ('username', models.CharField(db_index=True, default=None, max_length=255, unique=True)), ('email', models.EmailField(db_index=True, max_length=255, unique=True)), ('introcode', models.UUIDField( default=uuid.UUID('c427c10e-c4ec-4a82-a594-185668563936')) ), ('parent_introcode', models.UUIDField(blank=True, default=None, null=True)), ('is_verified', models.BooleanField(default=False)), ('is_active', models.BooleanField(default=False)), ('is_staff', models.BooleanField(default=False)), ('avatar', models.ImageField( null=True, upload_to=authentication.models.user_avatar_path)), ('created_at', models.DateTimeField(auto_now_add=True)), ('updated_at', models.DateTimeField(auto_now=True)), ('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')), ], ), migrations.CreateModel( name='Profile', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('lft', models.PositiveIntegerField(editable=False)), ('rght', models.PositiveIntegerField(editable=False)), ('tree_id', models.PositiveIntegerField(db_index=True, editable=False)), ('level', models.PositiveIntegerField(editable=False)), ('parent', mptt.fields.TreeForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='children', to='authentication.profile')), ('user', models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], options={ 'abstract': False, }, ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0011_update_proxy_permissions'), ] operations = [ migrations.CreateModel( name='User', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('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')), ('username', models.CharField(blank=True, db_index=True, max_length=255, unique=True)), ('email', models.EmailField(db_index=True, max_length=255, unique=True)), ('first_name', models.CharField(blank=True, max_length=100, null=True)), ('last_name', models.CharField(blank=True, max_length=100, null=True)), ('is_verified', models.BooleanField(default=False)), ('is_passenger', models.BooleanField(default=False)), ('is_driver', models.BooleanField(default=False)), ('is_active', models.BooleanField(default=True)), ('mobile_no', models.CharField(blank=True, default='', max_length=20, null=True)), ('created_at', models.DateTimeField(auto_now_add=True)), ('password_string', models.CharField(max_length=500, null=True)), ('updated_at', models.DateTimeField(auto_now=True)), ('image', models.ImageField( default='default.jpg', null=True, upload_to=authentication.models.author_image_upload)), ('about', models.TextField(blank=True, max_length=800, null=True)), ('facebook', models.CharField(blank=True, max_length=100, null=True)), ('twitter', models.CharField(blank=True, max_length=100, null=True)), ('instagram', models.CharField(blank=True, max_length=100, null=True)), ('youtube', models.CharField(blank=True, max_length=100, null=True)), ('thumbnail', models.ImageField( default='default.jpg', null=True, upload_to=authentication.models.author_image_upload)), ('email_token', models.TextField(blank=True, null=True)), ('state', models.CharField(blank=True, max_length=100, null=True)), ('key', models.TextField(blank=True, null=True)), ('auth_provider', models.CharField(default='email', max_length=255)), ('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, }, ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0011_update_proxy_permissions'), ] operations = [ migrations.CreateModel( name='CustomUser', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('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')), ('first_name', models.CharField(blank=True, max_length=30, verbose_name='first name')), ('last_name', models.CharField(blank=True, max_length=150, verbose_name='last name')), ('is_staff', models.BooleanField( default=False, help_text= 'Designates whether the user can log into this admin site.', verbose_name='staff status')), ('is_active', models.BooleanField( default=True, help_text= 'Designates whether this user should be treated as active. Unselect this instead of deleting accounts.', verbose_name='active')), ('date_joined', models.DateTimeField(default=django.utils.timezone.now, verbose_name='date joined')), ('email', models.EmailField(default=None, max_length=200, unique=True)), ('password', models.CharField(default=None, max_length=200)), ('phone_number', models.CharField(default=None, max_length=100, unique=True)), ('gender', models.CharField(choices=[('M', 'Male'), ('F', 'Female'), ('O', 'Other')], default='F', max_length=6)), ('is_verified', models.BooleanField(default=False)), ('is_termsandconditions_accepted', models.BooleanField(default=False)), ('created_date', models.DateTimeField( default=authentication.utils.get_current_time)), ('name', models.CharField(blank=True, default=None, max_length=200, null=True, unique=True)), ('birth_date', models.DateField(blank=True, default=None, null=True)), ('is_company', models.BooleanField(default=False)), ('verification_token', models.UUIDField(default=uuid.uuid4, null=True, unique=True)), ('verification_token_time', models.DateTimeField( default=authentication.utils.get_current_time)), ('email_sent', models.BooleanField(default=False, null=True)), ], options={ 'verbose_name': 'user', 'verbose_name_plural': 'users', 'abstract': False, }, managers=[ ('objects', authentication.models.CustomUserManager()), ], ), migrations.CreateModel( name='Address', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('address1', models.CharField(default=None, max_length=100)), ('address2', models.CharField(default=None, max_length=100)), ('city', models.CharField(default=None, max_length=100)), ('state', models.CharField(default=None, max_length=100)), ('zip_code', models.CharField(max_length=100)), ('hash', models.UUIDField(default=None, unique=True)), ], ), migrations.CreateModel( name='Session', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('token', models.UUIDField(default=uuid.uuid4, unique=True)), ('device_brand', models.CharField(default=None, max_length=200)), ('os_system', models.CharField(default=None, max_length=200)), ('disconnected_date', models.DateTimeField( default=authentication.utils.get_current_time)), ('connected_date', models.DateTimeField( default=authentication.utils.get_current_time)), ('is_expired', models.BooleanField(default=False)), ('user', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='CreditCard', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('card_number', models.CharField(default=None, max_length=100, unique=True)), ('css_ccv', models.CharField(default=None, max_length=100)), ('first_name', models.CharField(default=None, max_length=100)), ('last_name', models.CharField(default=None, max_length=100)), ('card_expiration_date', models.DateField()), ('user', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Category', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(default=None, max_length=100, unique=True)), ('description', models.CharField(max_length=500)), ('user', models.ForeignKey(null=True, on_delete=False, to=settings.AUTH_USER_MODEL)), ], ), migrations.AddField( model_name='customuser', name='address', field=models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='authentication.Address'), ), migrations.AddField( model_name='customuser', name='groups', field=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'), ), migrations.AddField( model_name='customuser', name='user_permissions', field=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'), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0009_alter_user_last_name_max_length'), ] operations = [ migrations.CreateModel( name='User', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('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')), ('first_name', models.CharField(blank=True, max_length=30, verbose_name='first name')), ('last_name', models.CharField(blank=True, max_length=150, verbose_name='last name')), ('is_staff', models.BooleanField( default=False, help_text= 'Designates whether the user can log into this admin site.', verbose_name='staff status')), ('is_active', models.BooleanField( default=True, help_text= 'Designates whether this user should be treated as active. Unselect this instead of deleting accounts.', verbose_name='active')), ('date_joined', models.DateTimeField(default=django.utils.timezone.now, verbose_name='date joined')), ('email', models.EmailField(max_length=254, unique=True, verbose_name='Email Address')), ('dob', models.DateField(blank=True, null=True, verbose_name='Date of Birth')), ('marital_status', models.CharField(blank=True, choices=[('M', 'Married'), ('S', 'Single')], max_length=1, null=True, verbose_name='Marital Status')), ('profile_photo', models.ImageField( blank=True, default= '/home/flash/Documents/Projects/beaprose2/beaprose/media/default/persion.svg', null=True, upload_to=authentication.models.upload_profile_photo, verbose_name='Profile Photo')), ('phoneNumber', models.CharField(blank=True, max_length=20, null=True, verbose_name='Phone Number')), ('phoneNumberVerified', models.BooleanField(default=False, verbose_name='Phone Number Verified')), ('is_expert', models.BooleanField(default=False, verbose_name='Expert Status')), ('is_customer', models.BooleanField(default=False, verbose_name='Customer Status')), ('is_influencer', models.BooleanField(default=False, verbose_name='Influencer Status')), ('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', 'abstract': False, }, managers=[ ('objects', authentication.managers.UserManager()), ], ), migrations.CreateModel( name='BillingCard', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('card_number', models.CharField(max_length=50)), ('card_name', models.CharField(max_length=100)), ('cvc', models.CharField(max_length=10)), ('expiry', models.CharField(max_length=5)), ], ), migrations.CreateModel( name='Customer', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('user', models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Expert', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('hasAcceptedAgreement', models.BooleanField( default=False, verbose_name='Has Accepted User Agreement?')), ('payment_cards', models.ManyToManyField(to='authentication.BillingCard')), ], ), migrations.CreateModel( name='ExpertProfile', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('headline', models.CharField(blank=True, max_length=100, verbose_name='Headline')), ('short_bio', models.TextField(blank=True, verbose_name='Biography')), ('timezone', models.CharField(blank=True, max_length=100, verbose_name='Timezone')), ('country', models.CharField(blank=True, max_length=100, verbose_name='Country')), ('city', models.CharField(blank=True, max_length=100, verbose_name='City')), ('skype_number', models.CharField(blank=True, max_length=100, verbose_name='Skype')), ('rate_per_hour', models.PositiveIntegerField()), ('is_long_term', models.BooleanField(default=False)), ('is_pro_bono', models.BooleanField(default=False)), ], ), migrations.CreateModel( name='Influencer', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('user', models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Keyword', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('keyword', models.CharField(max_length=50)), ], ), migrations.CreateModel( name='Newsletter', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('email', models.EmailField(max_length=254)), ], ), migrations.CreateModel( name='Sector', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('sector', models.CharField(max_length=50)), ], ), migrations.CreateModel( name='Skill', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('skill', models.CharField(max_length=50)), ], ), migrations.CreateModel( name='WorkHistory', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('job_title', models.CharField(max_length=30, verbose_name='Job Title')), ('country_work', models.CharField(max_length=30, verbose_name='Work Country')), ('city_work', models.CharField(max_length=30, verbose_name='Work City')), ('role', models.CharField(max_length=30, verbose_name='Role')), ('start_date', models.DateField(verbose_name='Start Date')), ('end_date', models.DateField(verbose_name='End Date')), ], ), migrations.AddField( model_name='expertprofile', name='keywords', field=models.ManyToManyField(blank=True, related_name='experts', to='authentication.Keyword'), ), migrations.AddField( model_name='expertprofile', name='sectors', field=models.ManyToManyField(blank=True, related_name='experts', to='authentication.Sector'), ), migrations.AddField( model_name='expertprofile', name='skills', field=models.ManyToManyField(blank=True, related_name='experts', to='authentication.Skill'), ), migrations.AddField( model_name='expertprofile', name='work_history', field=models.ManyToManyField(blank=True, related_name='experts', to='authentication.WorkHistory'), ), migrations.AddField( model_name='expert', name='profile', field=models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='authentication.ExpertProfile'), ), migrations.AddField( model_name='expert', name='user', field=models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL), ), ]
class Migration(migrations.Migration): initial = True dependencies = [] operations = [ migrations.CreateModel( name='User', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')), ('name', models.CharField(max_length=30)), ('surname', models.CharField(max_length=30)), ('email', models.EmailField(max_length=256, unique=True)), ('password', models.CharField(max_length=128)), ('is_superuser', models.BooleanField(default=False)), ('is_staff', models.BooleanField(default=False)), ('birthday', models.DateField(blank=True, null=True)), ('location', models.CharField(blank=True, max_length=256)), ('skills', models.CharField(blank=True, max_length=1024)), ('biography', models.TextField(blank=True)), ], options={ 'abstract': False, }, managers=[ ('objects', authentication.models.UserManager()), ], ), migrations.CreateModel( name='Chat', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('users', models.ManyToManyField(related_name='chats', to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Project', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=128)), ('description', models.TextField()), ('tags', models.CharField(blank=True, max_length=1024)), ('required_investments', models.FloatField()), ('creation_date', models.DateTimeField(auto_now_add=True)), ('cofounders', models.ManyToManyField(related_name='cofounded_projects', to=settings.AUTH_USER_MODEL)), ('founder', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='founded_projects', to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Message', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('text', models.TextField()), ('timestamp', models.DateTimeField(auto_now_add=True)), ('chat', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='upstarter.Chat')), ('user', models.ForeignKey( on_delete=django.db.models.deletion.DO_NOTHING, related_name='messages', to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Investment', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('amount', models.FloatField()), ('timestamp', models.DateTimeField(auto_now_add=True)), ('investor', models.ForeignKey( on_delete=django.db.models.deletion.DO_NOTHING, related_name='investments', to=settings.AUTH_USER_MODEL)), ('project', models.ForeignKey( on_delete=django.db.models.deletion.DO_NOTHING, related_name='investments', to='upstarter.Project')), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0008_alter_user_username_max_length'), ] operations = [ migrations.CreateModel( name='User', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('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')), ('username', models.CharField(max_length=200, unique=True, verbose_name='UserName')), ('image', models.ImageField( blank=True, max_length=200, upload_to=authentication.models.get_ProfileImage_path, verbose_name='profile image')), ('first_name', models.CharField(max_length=200, verbose_name='First Name')), ('last_name', models.CharField(blank=True, max_length=200, null=True, verbose_name='Last Name')), ('email', models.EmailField(max_length=200)), ('date_of_birth', models.DateField(blank=True, null=True)), ('address', models.CharField(max_length=1000, verbose_name='First Name')), ('password', models.CharField(max_length=20, verbose_name='password')), ('is_active', models.BooleanField(default=True, verbose_name='active')), ('is_admin', models.BooleanField(default=False, verbose_name='admin status')), ('is_staff', models.BooleanField(default=False, verbose_name='staff status')), ('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_plural': 'Users', }, managers=[ ('object', django.contrib.auth.models.UserManager()), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0012_alter_user_first_name_max_length'), ] operations = [ migrations.CreateModel( name='User', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('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')), ('username', models.CharField(db_index=True, max_length=255, unique=True)), ('email', models.CharField(max_length=255, unique=True)), ('first_name', models.CharField(blank=True, max_length=255)), ('last_name', models.CharField(blank=True, max_length=255)), ('phone_number', models.CharField(blank=True, max_length=15)), ('profession', models.CharField(blank=True, max_length=255)), ('father', models.CharField(blank=True, max_length=255)), ('mother', models.CharField(blank=True, max_length=255)), ('next_of_kin', models.CharField(blank=True, max_length=255)), ('emergency_contact', models.CharField(blank=True, max_length=15)), ('blood_group', models.CharField(blank=True, max_length=3)), ('address', models.TextField(blank=True)), ('is_active', models.BooleanField(default=True)), ('is_staff', models.BooleanField(default=False)), ('created_at', models.DateTimeField(auto_now_add=True)), ('updated_at', models.DateTimeField(auto_now=True)), ('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, }, managers=[ ('objects', authentication.models.UserManager()), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0012_alter_user_first_name_max_length'), ] operations = [ migrations.CreateModel( name='UserModel', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('password', models.CharField(max_length=128, verbose_name='password')), ('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')), ('username', models.CharField( error_messages={ 'unique': 'A user with that username already exists.' }, help_text= 'Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.', max_length=150, unique=True, validators=[ django.contrib.auth.validators. UnicodeUsernameValidator() ], verbose_name='username')), ('first_name', models.CharField(blank=True, max_length=150, verbose_name='first name')), ('last_name', models.CharField(blank=True, max_length=150, verbose_name='last name')), ('email', models.EmailField(blank=True, max_length=254, verbose_name='email address')), ('is_staff', models.BooleanField( default=False, help_text= 'Designates whether the user can log into this admin site.', verbose_name='staff status')), ('is_active', models.BooleanField( default=True, help_text= 'Designates whether this user should be treated as active. Unselect this instead of deleting accounts.', verbose_name='active')), ('date_joined', models.DateTimeField(default=django.utils.timezone.now, verbose_name='date joined')), ('role', models.IntegerField(choices=[(0, 'Satici'), (1, 'Müşteri'), (2, 'Admin')], default=1, verbose_name='Kullanıcı Rolu :')), ('created_at', models.DateTimeField(auto_now_add=True)), ('profil', models.ImageField( default='profil', upload_to=authentication.models.file_profil_save, verbose_name='Kullanıcı Fotoğrafı')), ('dogumtarihi', models.DateField(blank=True, null=True, verbose_name='Doğum Tarihi ')), ('is_superuser', models.BooleanField(default=True, verbose_name='Super User')), ('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': 'Kullanıcı Yönetimi', 'verbose_name_plural': 'Kullanıcılar', 'db_table': 'usertb', }, ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0009_alter_user_last_name_max_length'), ] operations = [ migrations.CreateModel( name='APIManagerUser', 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')), ('first_name', models.CharField(blank=True, max_length=30, verbose_name='first name')), ('last_name', models.CharField(blank=True, max_length=150, verbose_name='last name')), ('email', models.EmailField(blank=True, max_length=254, verbose_name='email address')), ('is_staff', models.BooleanField( default=False, help_text= 'Designates whether the user can log into this admin site.', verbose_name='staff status')), ('is_active', models.BooleanField( default=True, help_text= 'Designates whether this user should be treated as active. Unselect this instead of deleting accounts.', verbose_name='active')), ('date_joined', models.DateTimeField(default=django.utils.timezone.now, verbose_name='date joined')), ('uuid', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)), ('username', models.CharField(max_length=64, unique=True)), ('is_gatekeeper', models.BooleanField(default=False)), ('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', 'abstract': False, }, managers=[ ('objects', authentication.models.UserManager()), ], ), migrations.CreateModel( name='ConfirmationToken', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('token', models.CharField(max_length=64)), ('created', models.DateTimeField(auto_now_add=True)), ], ), migrations.CreateModel( name='EmailAddress', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('address', models.EmailField(max_length=254)), ('confirmed', models.BooleanField(default=False)), ('primary', models.BooleanField(default=False)), ('created', models.DateTimeField(auto_now_add=True)), ('deleted', models.BooleanField(default=False)), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.AddField( model_name='confirmationtoken', name='email', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='authentication.EmailAddress'), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('contenttypes', '0002_remove_content_type_name'), ] operations = [ migrations.CreateModel( name='Campus', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=30)), ('address', models.CharField(max_length=60)), ], options={ 'verbose_name': 'Campus', 'verbose_name_plural': 'Campus', }, ), migrations.CreateModel( name='Cursus', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=30, unique=True)), ], options={ 'verbose_name': 'Cursus', 'verbose_name_plural': 'Cursus', }, ), migrations.CreateModel( name='Faculty', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=30, unique=True)), ('color', models.CharField(max_length=6)), ], options={ 'verbose_name': 'Faculty', 'verbose_name_plural': 'Faculties', }, ), migrations.CreateModel( name='Job', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=30, unique=True)), ], ), 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')), ('registration_number', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)), ('last_name', models.CharField(max_length=30)), ('first_name', models.CharField(max_length=30)), ('birth_date', models.DateField(blank=True, null=True)), ('email', models.EmailField(max_length=255, unique=True, verbose_name='email address')), ('active', models.BooleanField(default=True)), ('staff', models.BooleanField(default=False)), ('admin', models.BooleanField(default=False)), ('home_phone_number', models.CharField(blank=True, max_length=20)), ('mobile_phone_number', models.CharField(blank=True, max_length=30)), ('username', models.CharField(blank=True, max_length=255, null=True, unique=True, verbose_name='username')), ('network', models.ManyToManyField(related_name='_user_network_+', to='authentication.User')), ], options={ 'verbose_name': 'User', 'verbose_name_plural': 'Users', }, ), migrations.CreateModel( name='Enterprise', fields=[ ('user_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='authentication.User')), ('logo', models.ImageField(blank=True, upload_to='enterprise_image/%Y/%m/%d/')), ('office', models.CharField(max_length=30)), ('address', models.TextField()), ('description', models.CharField(blank=True, max_length=300)), ], options={ 'abstract': False, }, bases=('authentication.user',), ), migrations.CreateModel( name='Notification', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('object_id', models.PositiveIntegerField()), ('status', models.CharField(choices=[('annonce', 'an annonce'), ('reply', 'a reply'), ('message', 'a message')], default='message', max_length=20)), ('seen', models.BooleanField(default=False)), ('created', models.DateTimeField(auto_now_add=True)), ('modified', models.DateTimeField(auto_now=True)), ('content_type', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='notifications', to='contenttypes.ContentType')), ('receiver', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='notification_receiver', to='authentication.User')), ], options={ 'verbose_name': 'Notification', 'verbose_name_plural': 'Notifications', 'ordering': ['-created'], }, bases=(models.Model, authentication.models.ContentTypeToGetModel), ), migrations.CreateModel( name='Message', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('topic', models.CharField(choices=[('GE', 'General'), ('GR', 'Greeting'), ('DI', 'Dislike'), ('LI', 'Like')], default='GE', max_length=2)), ('content', models.TextField()), ('publication_date', models.DateField(auto_now_add=True)), ('author', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='authentication.User')), ], options={ 'verbose_name': 'Message', 'verbose_name_plural': 'Messages', }, ), migrations.CreateModel( name='Student', fields=[ ('user_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='authentication.User')), ('year', models.IntegerField()), ('campus', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='authentication.Campus')), ('faculty', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='authentication.Faculty')), ], options={ 'abstract': False, }, bases=('authentication.user',), ), migrations.CreateModel( name='Employee', fields=[ ('user_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='authentication.User')), ('office', models.CharField(max_length=30)), ('campus', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='authentication.Campus')), ('job', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='authentication.Job')), ], options={ 'abstract': False, }, bases=('authentication.user',), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0011_update_proxy_permissions'), ] operations = [ migrations.CreateModel( name='ApplicationClient', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('main_phone_number', models.IntegerField(blank=True, null=True)), ('alt_phone_number', models.IntegerField(blank=True, null=True)), ('age', models.IntegerField(blank=True, null=True)), ('gender', models.CharField(blank=True, max_length=50, null=True)), ], ), migrations.CreateModel( name='Location', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('county', models.CharField(blank=True, max_length=50, null=True)), ('sub_county', models.CharField(blank=True, max_length=50, null=True)), ('village_or_estate', models.CharField(blank=True, max_length=50, null=True)), ], ), migrations.CreateModel( name='ClientEmergencyContact', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('first_name', models.CharField(blank=True, max_length=50, null=True)), ('last_name', models.CharField(blank=True, max_length=50, null=True)), ('relation', models.CharField(blank=True, max_length=50, null=True)), ('email', models.EmailField(blank=True, max_length=254, null=True)), ('main_phone_number', models.IntegerField(blank=True, null=True)), ('alt_phone_number', models.IntegerField(blank=True, null=True)), ('client', models.OneToOneField(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='authentication.ApplicationClient')), ], ), migrations.AddField( model_name='applicationclient', name='location', field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='authentication.Location'), ), migrations.CreateModel( name='User', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('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')), ('first_name', models.CharField(blank=True, max_length=30, verbose_name='first name')), ('last_name', models.CharField(blank=True, max_length=150, verbose_name='last name')), ('is_staff', models.BooleanField(default=False, help_text='Designates whether the user can log into this admin site.', verbose_name='staff status')), ('is_active', models.BooleanField(default=True, help_text='Designates whether this user should be treated as active. Unselect this instead of deleting accounts.', verbose_name='active')), ('date_joined', models.DateTimeField(default=django.utils.timezone.now, verbose_name='date joined')), ('email', models.EmailField(max_length=254, unique=True, verbose_name='email address')), ('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', 'abstract': False, }, managers=[ ('objects', authentication.models.UserManager()), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0008_alter_user_username_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')), ('name', models.CharField(blank=True, max_length=50)), ('phone', models.CharField( max_length=16, primary_key=True, serialize=False, validators=[ django.core.validators.RegexValidator( code='nomatch', message= 'Phone number must be numeric (except an optional `+` at the start) and including between 4 and 15 digits', regex='^\\+?\\d{4,15}$') ])), ('email', models.EmailField(blank=True, max_length=254)), ('is_advertiser', models.BooleanField(default=True)), ('first_name', models.CharField(blank=True, max_length=30, verbose_name='first name')), ('last_name', models.CharField(blank=True, max_length=30, verbose_name='last name')), ('is_staff', models.BooleanField( default=False, help_text= 'Designates whether the user can log into this admin site.', verbose_name='staff status')), ('is_active', models.BooleanField( default=True, help_text= 'Designates whether this user should be treated as active. Unselect this instead of deleting accounts.', verbose_name='active')), ('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, }, managers=[ ('objects', authentication.models.UserManager()), ], ), migrations.CreateModel( name='Subscriber', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('ip', models.GenericIPAddressField(default='0.0.0.0')), ('email', models.EmailField(max_length=254)), ('dateRegistered', django_jalali.db.models.jDateTimeField( blank=True, editable=False, null=True, verbose_name='Date Registered')), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0011_update_proxy_permissions'), ] operations = [ migrations.CreateModel( name='User', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('password', models.CharField(max_length=128, verbose_name='password')), ('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')), ('username', models.CharField(max_length=150, unique=True)), ('email', models.EmailField(max_length=255, unique=True, verbose_name='email address')), ('avatar', models.ImageField(blank=True, max_length=255, null=True, upload_to='avatars')), ('is_staff', models.BooleanField( default=False, help_text= 'Designates whether this user can access this admin site.', verbose_name='is staff')), ('is_superuser', models.BooleanField( default=False, help_text= 'Designates that this user has all permissions without explicitly assigning them.', verbose_name='is superuser')), ('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', 'db_table': 'users', }, managers=[ ('objects', authentication.models.CustomAccountManager()), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0011_update_proxy_permissions'), ('package', '0001_initial'), ] operations = [ migrations.CreateModel( name='User', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('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')), ('username', models.CharField( error_messages={ 'unique': 'A user with that username already exists.' }, help_text= 'Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.', max_length=150, unique=True, validators=[ django.contrib.auth.validators. UnicodeUsernameValidator() ], verbose_name='username')), ('first_name', models.CharField(blank=True, max_length=30, verbose_name='first name')), ('last_name', models.CharField(blank=True, max_length=150, verbose_name='last name')), ('is_staff', models.BooleanField( default=False, help_text= 'Designates whether the user can log into this admin site.', verbose_name='staff status')), ('is_active', models.BooleanField( default=True, help_text= 'Designates whether this user should be treated as active. Unselect this instead of deleting accounts.', verbose_name='active')), ('date_joined', models.DateTimeField(default=django.utils.timezone.now, verbose_name='date joined')), ('created_at', models.DateTimeField(auto_now_add=True)), ('updated_at', models.DateTimeField(auto_now=True)), ('is_deleted', models.BooleanField(default=False)), ('email', authentication.models.EmailField(max_length=254, unique=True)), ('role', models.CharField(choices=[('AD', 'admin'), ('CA', 'client_admin'), ('VI', 'viewer')], default='VI', max_length=20, verbose_name='user role')), ('acct_expiry_date', models.DateField(blank=True, null=True)), ('is_verified', models.BooleanField(default=False)), ('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', 'abstract': False, }, ), migrations.CreateModel( name='BlackList', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created_at', models.DateTimeField(auto_now_add=True)), ('updated_at', models.DateTimeField(auto_now=True)), ('is_deleted', models.BooleanField(default=False)), ('token', models.CharField(max_length=200, unique=True)), ], options={ 'ordering': ['-created_at'], 'abstract': False, }, ), migrations.CreateModel( name='UserProfile', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created_at', models.DateTimeField(auto_now_add=True)), ('updated_at', models.DateTimeField(auto_now=True)), ('is_deleted', models.BooleanField(default=False)), ('phone', models.CharField(max_length=17, null=True)), ('image', models.URLField(blank=True, null=True)), ('parental_lock', models.IntegerField(default=6666)), ('recording_time', models.IntegerField(default=30)), ('security_question', models.CharField(choices=[ ('What is the name of your favorite childhood friend', 'What is the name of your favorite childhood friend'), ('What was your childhood nickname', 'What was your childhood nickname'), ('In what city or town did your mother and father meet', 'In what city or town did your mother and father meet') ], max_length=255, null=True)), ('security_answer', fernet_fields.fields.EncryptedTextField(null=True)), ('package', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='package.Package')), ('user', models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], options={ 'ordering': ['-created_at'], 'abstract': False, }, ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0011_update_proxy_permissions'), ] operations = [ migrations.CreateModel( name='CustomGroup', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=32, unique=True)), ], ), migrations.CreateModel( name='CustomUser', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('password', models.CharField(max_length=128, verbose_name='password')), ('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')), ('first_name', models.CharField(blank=True, max_length=30, verbose_name='first name')), ('last_name', models.CharField(blank=True, max_length=150, verbose_name='last name')), ('is_staff', models.BooleanField( default=False, help_text= 'Designates whether the user can log into this admin site.', verbose_name='staff status')), ('date_joined', models.DateTimeField(default=django.utils.timezone.now, verbose_name='date joined')), ('email', models.CharField(max_length=40, unique=True)), ('certificate', models.CharField(max_length=20, unique=True)), ('username', models.CharField(max_length=20)), ('point', models.IntegerField(default=0)), ('correct_num_ans', models.IntegerField(default=0)), ('num_ans', models.IntegerField(default=0)), ('is_approved', models.BooleanField(default=False)), ('is_active', models.BooleanField(default=True)), ('is_admin', models.BooleanField(default=False)), ('is_superuser', models.BooleanField(default=False)), ('group', models.ForeignKey( null=True, on_delete=django.db.models.deletion.DO_NOTHING, to='authentication.CustomGroup')), ('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', 'abstract': False, }, managers=[ ('objects', authentication.models.CustomUserManager()), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0011_update_proxy_permissions'), ] operations = [ migrations.CreateModel( name='User', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('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')), ('username', models.CharField( error_messages={ 'unique': 'A user with that username already exists.' }, help_text= 'Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.', max_length=150, unique=True, validators=[ django.contrib.auth.validators. UnicodeUsernameValidator() ], verbose_name='username')), ('first_name', models.CharField(blank=True, max_length=30, verbose_name='first name')), ('last_name', models.CharField(blank=True, max_length=150, verbose_name='last name')), ('is_staff', models.BooleanField( default=False, help_text= 'Designates whether the user can log into this admin site.', verbose_name='staff status')), ('is_active', models.BooleanField( default=True, help_text= 'Designates whether this user should be treated as active. Unselect this instead of deleting accounts.', verbose_name='active')), ('date_joined', models.DateTimeField(default=django.utils.timezone.now, verbose_name='date joined')), ('created_at', models.DateTimeField(auto_now_add=True)), ('updated_at', models.DateTimeField(auto_now=True)), ('is_deleted', models.BooleanField(default=False)), ('email', authentication.models.EmailField(max_length=254, unique=True)), ('role', models.CharField(choices=[('AD', 'admin'), ('CA', 'client_admin'), ('VI', 'viewer')], default='VI', max_length=20, verbose_name='user role')), ('is_verified', models.BooleanField(default=False)), ('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', 'abstract': False, }, ), migrations.CreateModel( name='Company', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('company_Name', models.CharField(max_length=150, null=True)), ('company_Address1', models.CharField(max_length=150, null=True)), ('company_Address2', models.CharField(max_length=150, null=True)), ('city', models.CharField(max_length=150, null=True)), ('zip_code', models.CharField(max_length=150, null=True)), ('country', models.CharField(max_length=150, null=True)), ('company_Phone', models.CharField(max_length=150, null=True)), ('company_EmailId', models.CharField(max_length=150, null=True)), ], options={ 'verbose_name_plural': 'company', }, ), migrations.CreateModel( name='Vendor', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('first_name', models.CharField(max_length=150, null=True)), ('last_name', models.CharField(max_length=150, null=True)), ('email_id', models.CharField(max_length=150, null=True)), ('govt_id', models.CharField(choices=[('driving license', 'DRIVING LICENSE'), ('passport', 'PASSPORT'), ('aadhar', 'AADHAR CARD'), ('other', 'OTHER')], max_length=150, null=True)), ('id_no', models.CharField(max_length=150, null=True, unique=True, verbose_name='')), ('p_id1', models.CharField(max_length=150, null=True, verbose_name='PersonalID')), ('p_id_link', models.CharField(max_length=500, null=True, unique=True, verbose_name='')), ('contact', models.CharField(max_length=20, null=True, verbose_name='PhoneNo.')), ('address_1', models.CharField(max_length=150, null=True)), ('address_2', models.CharField(max_length=150, null=True)), ('city', models.CharField(max_length=150, null=True)), ('state', models.CharField(max_length=150, null=True)), ('country', models.CharField(max_length=150, null=True)), ('zip_code', models.CharField(max_length=150, null=True)), ('company_Name', models.CharField(max_length=150, null=True)), ('company_Address1', models.CharField(max_length=150, null=True)), ('company_Address2', models.CharField(max_length=150, null=True)), ('company_Phone', models.CharField(max_length=150, null=True)), ('company_EmailId', models.CharField(max_length=150, null=True)), ], options={ 'verbose_name_plural': 'vendor', }, ), migrations.CreateModel( name='EmployeeProfile', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('first_name', models.CharField(max_length=150, null=True)), ('last_name', models.CharField(max_length=150, null=True)), ('email_id', models.EmailField(max_length=150, null=True)), ('dob', models.DateField()), ('contact', models.CharField(max_length=20, null=True, verbose_name='PhoneNo.')), ('address_1', models.CharField(max_length=150, null=True)), ('address_2', models.CharField(max_length=150, null=True)), ('city', models.CharField(max_length=150, null=True)), ('state', models.CharField(max_length=150, null=True)), ('country', models.CharField(max_length=150, null=True)), ('zip_code', models.CharField(max_length=150, null=True)), ('govt_id', models.CharField(choices=[('driving license', 'DRIVING LICENSE'), ('passport', 'PASSPORT'), ('aadhar', 'AADHAR CARD'), ('other', 'OTHER')], max_length=150, null=True)), ('id_no', models.CharField(max_length=150, null=True, unique=True, verbose_name='')), ('employee_id', models.CharField(blank=True, max_length=50, null=True, unique=True)), ('p_id1', models.CharField(max_length=150, null=True, verbose_name='PersonalID')), ('p_id2', models.CharField(max_length=500, null=True, unique=True, verbose_name='')), ('upload_documents', models.FileField(blank=True, default='', upload_to='')), ('company_code', models.CharField(max_length=150, null=True)), ('position', models.CharField(max_length=150, null=True)), ('staff', models.BooleanField(default=False)), ('admin', models.BooleanField(default=False)), ('hr', models.BooleanField(default=False)), ('manager', models.BooleanField(default=False)), ('active', models.BooleanField(default=False)), ('username', models.ForeignKey(default='', on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], options={ 'verbose_name_plural': 'employee', }, ), migrations.CreateModel( name='Customer', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('first_name', models.CharField(max_length=150, null=True)), ('last_name', models.CharField(max_length=150, null=True)), ('email_id', models.CharField(max_length=150, null=True)), ('govt_id', models.CharField(choices=[('driving license', 'DRIVING LICENSE'), ('passport', 'PASSPORT'), ('aadhar', 'AADHAR CARD'), ('other', 'OTHER')], max_length=150, null=True)), ('id_no', models.CharField(max_length=150, null=True, unique=True, verbose_name='')), ('p_id1', models.CharField(max_length=150, null=True, verbose_name='PersonalID')), ('p_id_link', models.CharField(max_length=500, null=True, unique=True, verbose_name='')), ('contact', models.CharField(max_length=20, null=True, verbose_name='PhoneNo.')), ('address_1', models.CharField(max_length=150, null=True)), ('address_2', models.CharField(max_length=150, null=True)), ('city', models.CharField(max_length=150, null=True)), ('state', models.CharField(max_length=150, null=True)), ('country', models.CharField(max_length=150, null=True)), ('zip_code', models.CharField(max_length=150, null=True)), ('company_code', models.CharField(max_length=150, null=True)), ('customer_id', models.CharField(blank=True, max_length=150, null=True)), ('createdBy', models.ForeignKey(default='', editable=False, null=True, on_delete=django.db.models.deletion.CASCADE, to='authentication.EmployeeProfile')), ], options={ 'verbose_name_plural': 'Customer', }, ), ]