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')), ('password', models.CharField(max_length=128, verbose_name='password')), ('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')), ('username', models.TextField(unique=True)), ('email', models.TextField(null=True)), ('create_time', models.DateTimeField(auto_now_add=True, null=True)), ('admin_type', models.TextField(default='Regular User')), ('problem_permission', models.TextField(default='None')), ('reset_password_token', models.TextField(null=True)), ('reset_password_token_expire_time', models.DateTimeField(null=True)), ('auth_token', models.TextField(null=True)), ('two_factor_auth', models.BooleanField(default=False)), ('tfa_token', models.TextField(null=True)), ('session_keys', django.contrib.postgres.fields.jsonb.JSONField(default=list)), ('open_api', models.BooleanField(default=False)), ('open_api_appkey', models.TextField(null=True)), ('is_disabled', models.BooleanField(default=False)), ], options={ 'db_table': 'user', }, managers=[ ('objects', account.models.UserManager()), ], ), migrations.CreateModel( name='UserProfile', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('acm_problems_status', django.contrib.postgres.fields.jsonb.JSONField(default=dict)), ('oi_problems_status', django.contrib.postgres.fields.jsonb.JSONField(default=dict)), ('real_name', models.TextField(null=True)), ('avatar', models.TextField(default='/public/avatar/default.png')), ('blog', models.URLField(null=True)), ('mood', models.TextField(null=True)), ('github', models.TextField(null=True)), ('school', models.TextField(null=True)), ('major', models.TextField(null=True)), ('language', models.TextField(null=True)), ('accepted_number', models.IntegerField(default=0)), ('total_score', models.BigIntegerField(default=0)), ('submission_number', models.IntegerField(default=0)), ('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], options={ 'db_table': 'user_profile', }, ), ]
class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='Plan', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=128, verbose_name='title')), ('description', models.TextField(blank=True, verbose_name='description')), ('total_bandwidth', models.BigIntegerField(default=0, verbose_name='total_bandwidth')), ], ), migrations.CreateModel( name='Profile', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('amount_consumed_down', models.BigIntegerField(default=0, verbose_name='amount_consumed_down')), ('amount_consumed_up', models.BigIntegerField(default=0, verbose_name='amount_consumed_up')), ('active_plan', models.ForeignKey(default=account.models.get_sentinel_plan, on_delete=models.SET(account.models.get_sentinel_plan), to='account.Plan')), ('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ 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')), ('intro', models.CharField(max_length=3000)), ('portrait', models.ImageField(upload_to=account.models.Profile.portrait_path)), ('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, related_name='profile', to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='ThemeStyle', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('backgroundImage', models.ImageField(default=None, upload_to=account.models.ThemeStyle.bgImage_path)), ('typography_style', models.CharField(choices=[('Dark', 'dark'), ('Light', 'light')], default='dark', max_length=20)), ('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, related_name='setting', to=settings.AUTH_USER_MODEL)), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0012_alter_user_first_name_max_length'), ] operations = [ migrations.CreateModel( name='MyUser', 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=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')), ('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', django.contrib.auth.models.UserManager()), ], ), migrations.CreateModel( name='Rol', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('is_regular', models.BooleanField(default=True)), ('is_agent', models.BooleanField(default=False)), ('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Account', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('image', models.ImageField(blank=True, default=account.models.default_image_url, upload_to=account.models.account_image_url)), ('description', models.CharField(blank=True, default='Este es mi primer empleo en una compañía tan genial como Helpdesk.', max_length=90)), ('facebook', models.URLField(blank=True)), ('instagram', models.URLField(blank=True)), ('twitter', models.URLField(blank=True)), ('owner', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, verbose_name='account')), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0009_alter_user_last_name_max_length'), ] operations = [ migrations.CreateModel( name='LightSaltUser', 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')), ('create_time', models.DateTimeField(auto_now_add=True)), ('modifiy_time', models.DateTimeField(auto_now=True)), ('member_id', models.CharField(help_text='Required. 30 characters or fewer. Letters, digits and @/./+/-/_ only.', max_length=30, unique=True)), ('name', models.CharField(error_messages={'unique': 'A user with that username already exists.'}, help_text='Required. 30 characters or fewer. Letters, digits and @/./+/-/_ only.', max_length=30, unique=True)), ('email', models.EmailField(max_length=255, unique=True)), ('member_type_code', models.CharField(max_length=2)), ('is_active', models.BooleanField(default=True)), ('is_admin', 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={ 'db_table': 'LSMB001M', }, ), migrations.CreateModel( name='LightSaltPastor', fields=[ ('create_time', models.DateTimeField(auto_now_add=True)), ('modifiy_time', models.DateTimeField(auto_now=True)), ('church_no', models.AutoField(primary_key=True, serialize=False)), ('pastor_id', models.CharField(help_text='Required. 30 characters or fewer. Letters, digits and @/./+/-/_ only.', max_length=30, unique=True)), ('church_name', models.CharField(max_length=100)), ('graduation_proof', models.ImageField(null=True, upload_to='')), ('church_satification', models.ImageField(null=True, upload_to='')), ('church_type_code', models.CharField(max_length=10)), ('church_post', models.CharField(max_length=10)), ('church_address', models.CharField(max_length=300)), ('authentication_yn', models.BooleanField(default=False)), ], options={ 'db_table': 'LSMB002M', }, managers=[ ('objects', account.models.LightSaltPastorManager()), ], ), ]
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')), ('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(max_length=64, unique=True, verbose_name='\u8d26\u6237')), ('nickname', models.CharField(blank=True, max_length=64, null=True, verbose_name='\u6635\u79f0')), ('name', models.CharField(blank=True, max_length=64, null=True, verbose_name='\u59d3\u540d')), ('gender', models.CharField(choices=[(b'1', '\u7537'), (b'2', '\u5973')], default=b'0', max_length=1, verbose_name='\u6027\u522b')), ('birth', models.DateField(blank=True, null=True, verbose_name='\u751f\u65e5')), ('avatar', models.ImageField(blank=True, null=True, upload_to=account.models.scramble_avatar_filename, verbose_name='\u5934\u50cf')), ('brief', models.CharField(blank=True, max_length=256, null=True, verbose_name='\u7b80\u4ecb')), ('email', models.EmailField(blank=True, max_length=254)), ('type', models.CharField(choices=[(b'1', '\u5b66\u751f'), (b'2', '\u8001\u5e08')], default=b'0', max_length=1, verbose_name='\u7528\u6237\u7c7b\u578b')), ('create_time', models.DateTimeField(auto_now_add=True, verbose_name='\u521b\u5efa\u65f6\u95f4')), ('update_time', models.DateTimeField(auto_now=True, verbose_name='\u4fee\u6539\u65f6\u95f4')), ('del_flag', models.IntegerField(choices=[(1, '\u662f'), (0, '\u5426')], default=0, verbose_name='\u662f\u5426\u5220\u9664')), ('is_staff', models.BooleanField(default=True, verbose_name='\u662f\u5426\u662f\u5458\u5de5')), ('is_active', models.BooleanField(default=True, verbose_name='\u662f\u5426\u6fc0\u6d3b')), ('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={ 'db_table': 'auth_user', 'verbose_name': '\u7528\u6237\u8868', 'verbose_name_plural': '\u7528\u6237\u8868', }, ), migrations.CreateModel( name='EmailVerifyRecord', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('code', models.CharField(max_length=20, verbose_name='\u9a8c\u8bc1\u7801')), ('email', models.EmailField(max_length=254, verbose_name='\u90ae\u7bb1')), ('type', models.CharField(choices=[(1, '\u6ce8\u518c'), (2, '\u627e\u56de\u5bc6\u7801')], max_length=1, verbose_name='\u9a8c\u8bc1\u7801\u7c7b\u578b')), ('send_time', models.DateTimeField(auto_now=True, verbose_name='\u53d1\u9001\u65f6\u95f4')), ], options={ 'db_table': 't_email_verify', 'verbose_name': '\u90ae\u7bb1\u9a8c\u8bc1\u7801', 'verbose_name_plural': '\u90ae\u7bb1\u9a8c\u8bc1\u7801', }, ), ]
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')), ('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')), ('mobile', models.CharField(error_messages={'unique': 'A user with that mobile no already exists.'}, help_text="Required. mobile number must be entered in the format: '+999999999'.", max_length=16, unique=True, validators=[account.utils.validators.MobileValidator()], verbose_name='mobile')), ('email', models.EmailField(error_messages={'unique': 'A user with that email already exists.'}, help_text="Required. email number must be entered in the format: '*****@*****.**'.", max_length=100, unique=True, validators=[django.core.validators.EmailValidator()], verbose_name='Email Address')), ('password', models.CharField(help_text='Required. enter password.', max_length=128, verbose_name='Password')), ('first_name', models.CharField(help_text='Required. Please enter name ', 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=False, 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={ 'verbose_name': 'user', 'verbose_name_plural': 'users', }, managers=[ ('objects', account.auth.manager.UserManager()), ], ), migrations.CreateModel( name='Verification', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('unverified_mobile', models.CharField(error_messages={'unique': 'A user with that mobile no already exists.'}, help_text="Required. mobile number must be entered in the format: '+999999999'.", max_length=16, unique=True, validators=[account.utils.validators.MobileValidator()], verbose_name='mobile')), ('unverified_email', models.EmailField(error_messages={'unique': 'A user with that email already exists.'}, help_text="Required. email number must be entered in the format: '*****@*****.**'.", max_length=100, unique=True, validators=[django.core.validators.EmailValidator()], verbose_name='Email Address')), ('secret_key', models.CharField(default=account.models.default_key, help_text='Hex-encoded secret key to generate totp tokens.', max_length=40, unique=True, validators=[account.utils.validators.hex_validator])), ('last_reset_verified_counter', models.BigIntegerField(default=-1, help_text='The counter value of the latest verified reset token.The next token must be at a higher counter value.It makes sure a token is used only once.')), ('last_email_verified_counter', models.BigIntegerField(default=-1, help_text='The counter value of the latest verified email token.The next token must be at a higher counter value.It makes sure a token is used only once.')), ('last_mobile_verified_counter', models.BigIntegerField(default=-1, help_text='The counter value of the latest verified mobile token.The next token must be at a higher counter value.It makes sure a token is used only once.')), ('mobile_verified', models.BooleanField(default=False)), ('email_verified', models.BooleanField(default=False)), ('is_reset', models.BooleanField(default=False)), ('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], options={ 'verbose_name': 'Verification', }, ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0011_update_proxy_permissions'), ] operations = [ migrations.CreateModel( name='BaseAccount', 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')), ('email', models.EmailField(max_length=254, unique=True)), ('check_staff', models.BooleanField(default=False)), ('staff_id', models.CharField(blank=True, max_length=15, null=True, unique=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', django.contrib.auth.models.UserManager()), ], ), migrations.CreateModel( name='UserProfile', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('dp', models.ImageField(blank=True, null=True, upload_to=account.models.get_uplaod_file_name, verbose_name='Display picture')), ('first_name', models.CharField(blank=True, max_length=25, null=True)), ('last_name', models.CharField(blank=True, max_length=25, null=True)), ('balance', models.DecimalField(decimal_places=2, default=0.0, max_digits=8)), ('delivery_address', models.CharField(blank=True, max_length=1055, null=True)), ('contact_no', models.CharField(blank=True, max_length=11, null=True)), ('user_created', models.DateTimeField(auto_now_add=True)), ('last_updated', models.DateTimeField(auto_now=True)), ('base', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), ]
class Migration(migrations.Migration): dependencies = [ ('account', '0003_auto_20190328_2144'), ] operations = [ migrations.CreateModel( name='Trophy', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created_at', models.DateTimeField(default=django.utils.timezone.now, verbose_name='作成日')), ('updated_at', models.DateTimeField(auto_now=True, verbose_name='更新日')), ('title', models.CharField(max_length=255, unique=True)), ('description', models.CharField(max_length=255)), ('file', models.FileField(upload_to=account.models.trophy_upload_to)), ], options={ 'abstract': False, }, ), migrations.CreateModel( name='TrophyUserRelation', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created_at', models.DateTimeField(default=django.utils.timezone.now, verbose_name='作成日')), ('updated_at', models.DateTimeField(auto_now=True, verbose_name='更新日')), ('trophy', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='account.Trophy')), ('user', models.ForeignKey(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')), ('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')), ('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', }, ), migrations.CreateModel( name='Profile', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=150, verbose_name='first name')), ('username', models.CharField(blank=True, max_length=30, null=True, unique=True)), ('photo', models.ImageField(blank=True, null=True, upload_to='profile_photo/')), ('gender', models.CharField(blank=True, choices=[('male', 'Male'), ('female', 'Female')], max_length=6, null=True)), ('about', models.TextField(blank=True, null=True)), ('phone_number', models.CharField(blank=True, max_length=11, null=True, unique=True)), ('facebook', models.URLField(blank=True, null=True)), ('twitter', models.URLField(blank=True, null=True)), ('linkedin', models.URLField(blank=True, null=True)), ('instagram', models.URLField(blank=True, null=True)), ('github', models.URLField(blank=True, null=True)), ('youtube', models.URLField(blank=True, null=True)), ('date', models.DateTimeField(auto_now_add=True)), ('user', models.OneToOneField(default=account.models.get_current_user, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [] operations = [ migrations.CreateModel( name='Company', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=120)), ('description', models.CharField(max_length=3100)), ], ), migrations.CreateModel( name='InviteLink', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('link', models.CharField(default=account.models.generate_new_link, max_length=120, unique=True)), ('creation_date', models.DateField(default=django.utils.timezone.now)), ('expire_date', models.DateTimeField( default=account.models.default_expire_date)), ('activation_count', models.PositiveSmallIntegerField(default=3)), ], ), migrations.AddField( model_name='company', name='invite_link', field=models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, to='account.InviteLink'), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0011_update_proxy_permissions'), ] operations = [ migrations.CreateModel( name='SIG', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(choices=[('Crypt', 'CRYPT'), ('Charge', 'CHARGE'), ('Credit', 'CREDIT'), ('Chronicle', 'CHRONICLE'), ('Clutch', 'CLUTCH'), ('Concrete', 'CONCRETE'), ('Create', 'CREATE'), ('Catalyst', 'CATALYST')], max_length=9)), ('description', models.TextField(default='', max_length=10000)), ], ), 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')), ('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')), ('phone_number', models.CharField(blank=True, max_length=17, validators=[django.core.validators.RegexValidator(message="Phone number must be entered in the format: '+999999999'. Up to 15 digits allowed.", regex='^\\+?1?\\d{9,15}$')])), ('avatar', models.ImageField(blank=True, upload_to=account.models.user_avatar_path)), ('batch_of', models.IntegerField(default=2020)), ('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')), ('sigs', models.ManyToManyField(to='account.SIG')), ('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', django.contrib.auth.models.UserManager()), ], ), ]
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')), ('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')), ('phone_number', account.models.PhoneField(max_length=20, unique=True, verbose_name='Phone Number')), ('date_of_birth', models.DateField()), ('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', 'ordering': ('-date_joined',), }, ), ]
class Migration(migrations.Migration): initial = True dependencies = [ 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')), ('resume', models.FileField(upload_to='resumes/', verbose_name='Upload Resumes')), ('image', models.ImageField(blank=True, upload_to=account.models.upload_location, verbose_name='image')), ('phonenumber', models.CharField(blank=True, max_length=50)), ('address', models.CharField(blank=True, max_length=50)), ('author', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='Account', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('saldo', models.DecimalField( decimal_places=2, max_digits=10, validators=[ django.core.validators.MinValueValidator(0.0) ])), ('accountNumber', models.CharField( default=account.models.Account.accountGenerator, max_length=12, unique=True)), ('owner', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('account', '0001_initial'), ('post', '0001_initial'), ] operations = [ migrations.CreateModel( name='Photo', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('id_photo', models.IntegerField(null=True, unique=True)), ('photo', models.ImageField(blank=True, default='defult-photo.png', null=True, upload_to=account.models.user_directory_path)), ('like_put', models.BooleanField(default=False, null=True)), ('account', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='images', to='account.Account')), ('post', models.ManyToManyField(blank=True, related_name='images', to='post.Post')), ], options={ 'ordering': ['-id'], }, ), ]
class Migration(migrations.Migration): initial = True dependencies = [ 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')), ('date_of_birth', models.DateField(blank=True, null=True)), ('photo', models.ImageField(default='160Hf.png', upload_to=account.models.upload_location)), ('user', models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, 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')), ('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', account.models.UserManager()), ], ), ]
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')), ('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=20, unique=True)), ('name', models.CharField(blank=True, max_length=20)), ], options={ 'db_table': 'user', }, managers=[ ('objects', account.models.UserManager()), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ 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')), ('profile_picture', models.ImageField(height_field=300, upload_to=account.models.get_profile_pic_path, verbose_name='Profile Picture', width_field=300)), ('education_background', models.CharField(choices=[('PostGraduate', 'PostGraduate'), ('UnderGraduate', 'UnderGraduate'), ('HighSchool', 'HighSchool')], max_length=30, verbose_name='Educational Background')), ('phone_number_1', models.CharField(max_length=13, verbose_name='First Phone Number')), ('phone_number_2', models.CharField(blank=True, max_length=13, null=True, verbose_name='Second Phone Number')), ('github_url', models.URLField(blank=True, max_length=150, null=True, verbose_name='Github homepage URL.')), ('personal_url', models.URLField(blank=True, max_length=150, null=True, verbose_name='Personal website URL.')), ('facebook_account', models.URLField(blank=True, max_length=255, null=True, verbose_name='Facebook profile page.')), ('twitter_account', models.URLField(blank=True, max_length=255, null=True, verbose_name='Twitter profile page.')), ('linkedin_account', models.URLField(blank=True, max_length=255, null=True, verbose_name='LinkedIn profile page.')), ('short_bio', models.CharField(blank=True, max_length=60, null=True, verbose_name='Describe yourself')), ('bio', models.CharField(blank=True, max_length=400, null=True, verbose_name='Short bio')), ('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, verbose_name='related_user')), ], managers=[ ('highschool', django.db.models.manager.Manager()), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='Account', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('avatar', models.FileField( null=True, upload_to=account.models.user_directory_path)), ('date_of_create', models.DateTimeField(auto_now_add=True)), ('user', models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ 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')), ('img', account.fields.AvatarImageField( default='defaultprofile.png', upload_to=account.models.manage_upload)), ('description', models.TextField(max_length=200)), ('actual_job', models.CharField(max_length=200)), ('phone_number', models.CharField(max_length=100)), ('user', models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], options={ 'permissions': (('can_change_profile', 'Can edit the profile'), ), }, ), ]
class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='UserProfile', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('phone_num', models.CharField(blank=True, max_length=11, null=True)), ('sex', models.CharField(choices=[(1, '男'), (2, '女')], default=1, max_length=2)), ('picture', models.FileField(blank=True, null=True, upload_to=account.models.upload_to)), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), ]
class Migration(migrations.Migration): dependencies = [ ('account', '0014_auto_20220208_1728'), ] operations = [ migrations.CreateModel( name='Background', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('image', models.ImageField( upload_to=account.models.background_directory_path, verbose_name='background')), ], ), migrations.AddField( model_name='user', name='background', field=models.ImageField( blank=True, default='', null=True, upload_to=account.models.background_directory_path, verbose_name='background'), ), ]
class Migration(migrations.Migration): dependencies = [ ('account', '0022_auto_20200223_1506'), ] operations = [ migrations.CreateModel( name='UpcomingTest', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=30)), ('date', models.DateField()), ('description', models.TextField(blank=True, max_length=250, null=True)), ('topics', models.FileField( blank=True, null=True, upload_to=account.models.Event.test_pdf_upload_path)), ('sub_class', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='account.SubClass')), ], ), ]
class Migration(migrations.Migration): dependencies = [ ('account', '0007_auto_20180812_2113'), ] operations = [ migrations.CreateModel( name='Social', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('twitter', models.CharField(blank=True, max_length=70, null=True, verbose_name='Twitter Profile')), ('facebook', models.CharField(blank=True, max_length=70, null=True, verbose_name='Facebook Profile')), ('instagram', models.CharField(blank=True, max_length=70, null=True, verbose_name='Instagram Profile')), ('google', models.CharField(blank=True, max_length=70, null=True, verbose_name='Google Plus Profile')), ], options={ 'verbose_name': 'Social', 'verbose_name_plural': 'Social Media Links', }, ), migrations.AlterField( model_name='profile', name='avatar', field=models.ImageField(blank=True, null=True, storage=account.models.OverwriteStorage(), upload_to=account.models.user_directory_path, verbose_name='Profile Picture'), ), migrations.AddField( model_name='social', name='profile', field=models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to='account.Profile', verbose_name='Person'), ), ]
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=account.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', '0011_update_proxy_permissions'), ] 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')), ('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)), ('name', models.CharField(max_length=150)), ('phone', models.CharField(max_length=50)), ('date_of_birth', models.DateField(blank=True, null=True)), ('picture', models.ImageField(blank=True, null=True, upload_to='')), ('is_staff', models.BooleanField(default=False)), ('is_active', models.BooleanField(default=True)), ('date_joined', models.DateTimeField(default=django.utils.timezone.now)), ('last_login', models.DateTimeField(null=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', account.models.AccountManager()), ], ), ]
class Migration(migrations.Migration): dependencies = [ ('account', '0002_token'), ] operations = [ migrations.AlterField( model_name='token', name='expired', field=models.DateTimeField(default=account.models._default_expire_time, verbose_name='token expire time'), ), migrations.CreateModel( name='Role', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=255, verbose_name='name')), ('description', models.CharField(blank=True, max_length=255, null=True, verbose_name='description')), ('users', models.ManyToManyField(related_name='user_roles', to='account.User', verbose_name='users')), ], options={ 'verbose_name_plural': 'Roles', 'verbose_name': 'Role', }, ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ] 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')), ('email', models.EmailField(max_length=60, unique=True, verbose_name='email')), ('username', models.CharField(max_length=30, unique=True)), ('date_joined', models.DateTimeField(auto_now_add=True, verbose_name='date joined')), ('last_login', models.DateTimeField(auto_now=True, verbose_name='last login')), ('is_staff', models.BooleanField(default=False)), ('is_superuser', models.BooleanField(default=False)), ('is_active', models.BooleanField(default=True)), ('hide_email', models.BooleanField(default=True)), ('profile_image', models.ImageField(blank=True, default=account.models.get_default_profile_image, max_length=255, null=True, upload_to=account.models.get_profile_image_filepath)), ], options={ 'abstract': False, }, ), ]