class Migration(migrations.Migration): dependencies = [ ('authentication', '0001_initial'), ] operations = [ migrations.AlterModelManagers( name='usermodel', managers=[], ), migrations.AddField( model_name='usermodel', name='dogumtarihi', field=models.DateField(blank=True, null=True, verbose_name='Doğum Tarihi '), ), migrations.AddField( model_name='usermodel', name='profil', field=models.ImageField( default='profil', upload_to=authentication.models.file_profil_save, verbose_name='Kullanıcı Fotoğrafı'), ), migrations.AlterField( model_name='usermodel', name='is_superuser', field=models.BooleanField(default=True, verbose_name='Super User'), ), ]
class Migration(migrations.Migration): dependencies = [ ('authentication', '0001_initial'), ] operations = [ migrations.AddField( model_name='account', name='avatar', field=models.ImageField( null=True, upload_to=authentication.models.generate_avatar_upload_path), ), migrations.AddField( model_name='account', name='birth_day', field=models.DateField(null=True), ), migrations.AddField( model_name='account', name='gender', field=models.IntegerField(choices=[(0, b'Male'), (1, b'Female')], default=0), ), migrations.AddField( model_name='account', name='phone_number', field=models.CharField(max_length=15, null=True), ), ]
class Migration(migrations.Migration): dependencies = [ ('authentication', '0002_auto_20170514_1724'), ] operations = [ migrations.AddField( model_name='account', name='address1', field=models.CharField(blank=True, max_length=100), ), migrations.AddField( model_name='account', name='address2', field=models.CharField(blank=True, max_length=100), ), migrations.AddField( model_name='account', name='address3', field=models.CharField(blank=True, max_length=100), ), migrations.AddField( model_name='account', name='dob', field=models.DateField(blank=True, null=True), ), migrations.AddField( model_name='account', name='gender', field=enumfields.fields.EnumField( enum=authentication.models.GenderType, max_length=10, null=True), ), migrations.AddField( model_name='account', name='phone_number1', field=models.CharField(blank=True, max_length=40), ), migrations.AddField( model_name='account', name='phone_number2', field=models.CharField(blank=True, max_length=40), ), ]
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')), ('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 = [] operations = [ migrations.CreateModel( name='AuthUser', 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=50, unique=True)), ('email', models.EmailField(max_length=255, unique=True, verbose_name='email address')), ('name', models.CharField(max_length=255)), ('date_of_birth', models.DateField()), ('contact_number', models.CharField(max_length=15)), ('bmdc_reg_number', models.CharField(max_length=15)), ('image', models.ImageField(blank=True, max_length=500, null=True, upload_to='profileImages/')), ('about', models.TextField(blank=True, default='', null=True)), ('is_active', models.BooleanField(default=True)), ('is_admin', models.BooleanField(default=False)), ], options={ 'verbose_name': 'Dentist', 'verbose_name_plural': 'Dentists', }, managers=[ ('objects', authentication.models.AuthUserManager()), ], ), migrations.CreateModel( name='Schedule', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('start', models.TimeField()), ('end', models.TimeField()), ('branch_name', models.CharField(choices=[('gazipur', 'GAZIPUR'), ('uttara', 'UTTARA')], default='uttara', max_length=15)), ('weekday', models.CharField(choices=[('All', 'ALL'), ('Sunday', 'SUNDAY'), ('Monday', 'MONDAY'), ('Tuesday', 'TUESDAY'), ('Wednesday', 'WEDNESDAY'), ('Thursday', 'THURSDAY'), ('Friday', 'FRIDAY'), ('Saturday', 'SATURDAY')], default='Sunday', max_length=10)), ('max_patient', models.PositiveIntegerField(default=15)), ('dentist', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='schedule', to=settings.AUTH_USER_MODEL)), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0011_update_proxy_permissions'), ] operations = [ CITextExtension(), 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')), ('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')), ('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')), ('deleted_at', models.DateField(blank=True, db_index=True, null=True)), ('created_at', models.DateTimeField(auto_now_add=True)), ('updated_at', models.DateField(auto_now=True)), ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)), ('email', django.contrib.postgres.fields.citext.CIEmailField( max_length=254, unique=True)), ('first_name', models.CharField(max_length=50)), ('last_name', models.CharField(max_length=50)), ('verified_email', 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.CustomUserManager()), ], ), ]
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')), ('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')), ('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=255, unique=True, verbose_name='email address')), ('date_of_birth', models.DateField(default='2012-09-04')), ('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.CustomUserManger()), ], ), ]
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', '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 = [ ('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', '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', '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', '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', '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', }, ), ]