class Migration(migrations.Migration): dependencies = [ ('videos', '0002_auto_20190611_2119'), ] operations = [ migrations.AddField( model_name='video', name='height_field', field=models.IntegerField(blank=True, default=0, null=True), ), migrations.AddField( model_name='video', name='image', field=models.ImageField(blank=True, height_field='height_field', null=True, upload_to=accounts.models.upload_location, width_field='width_field'), ), migrations.AddField( model_name='video', name='order', field=models.PositiveSmallIntegerField(blank=True, null=True), ), migrations.AddField( model_name='video', name='width_field', field=models.IntegerField(blank=True, default=0, null=True), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('lands', '0027_auto_20170604_1317'), ] operations = [ migrations.CreateModel( name='Camera', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('url', models.CharField(max_length=1024, verbose_name='页面地址(URL)信息:')), ('title', models.CharField(blank=True, max_length=64, null=True, verbose_name='标题')), ('definition', models.PositiveSmallIntegerField(blank=True, choices=[(1, '512/768kpbs'), (2, '128/256kpbs')], default=1, null=True, verbose_name='分辨率')), ('abstract', models.TextField(blank=True, max_length=1024, null=True, verbose_name='简介')), ('cover_img', models.ImageField(blank=True, null=True, upload_to=accounts.models.user_directory_path, verbose_name='封面图片')), ('password', models.CharField(blank=True, help_text='纯数字,最长 6 位数', max_length=6, null=True, verbose_name='播放密码')), ('duration', models.IntegerField(default=10, verbose_name='播放时长限制')), ('created_date', models.DateField(auto_now_add=True, verbose_name='创建时间')), ('updated_date', models.DateField(auto_now=True, verbose_name='修改时间')), ('is_active', models.BooleanField(default=True, verbose_name='是否被激活')), ('land', models.ForeignKey(default=1, help_text='摄像头所安置的土地名', on_delete=django.db.models.deletion.CASCADE, to='lands.Land', verbose_name='土地')), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='Product', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('slug', models.SlugField(blank=True, unique=True)), ('title', models.CharField(max_length=150)), ('description', tinymce.models.HTMLField(null=True)), ('price', models.PositiveSmallIntegerField()), ('image', models.URLField(max_length=150)), ('arrival_date', models.DateTimeField(auto_now=True)), ('seller', models.ForeignKey(default=accounts.models.User, 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')), ('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')), ('uuid', models.UUIDField(blank=True, db_index=True, null=True, unique=True)), ('email', models.EmailField(max_length=254, unique=True, verbose_name='email address')), ('cell_phone', models.CharField(blank=True, max_length=31, 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')), ], options={ 'verbose_name': 'User', 'verbose_name_plural': 'Users', 'db_table': 'accounts_user', 'managed': True, }, managers=[ ('objects', accounts.models.UserManager()), ], ), migrations.CreateModel( name='Role', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('role_id', models.PositiveSmallIntegerField(choices=[(1, 'student'), (2, 'teacher'), (3, 'supervisor'), (4, 'admin')])), ], ), migrations.AddField( model_name='user', name='roles', field=models.ManyToManyField(to='accounts.Role'), ), migrations.AddField( model_name='user', name='user_permissions', field=models.ManyToManyField(blank=True, help_text='Specific permissions for this user.', related_name='user_set', related_query_name='user', to='auth.Permission', verbose_name='user permissions'), ), ]
class Migration(migrations.Migration): dependencies = [ ('company', '0017_remitamandatestatusreport'), ('accounts', '0007_thirdpartycreds_remita_dd_api_token'), ] operations = [ migrations.CreateModel( name='BankAccountType', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(blank=True, max_length=128, null=True)), ('maximum_withdrawal_amount', models.DecimalField(blank=True, decimal_places=2, max_digits=12, null=True)), ('annual_interest_rate', models.DecimalField(decimal_places=2, help_text='Interest rate from 0 - 100', max_digits=5, validators=[django.core.validators.MinValueValidator(0), django.core.validators.MaxValueValidator(100)])), ('interest_calculation_per_year', models.PositiveSmallIntegerField(help_text='The number of times interest will be calculated per year', validators=[django.core.validators.MinValueValidator(1), django.core.validators.MaxValueValidator(12)])), ], ), migrations.AlterModelManagers( name='user', managers=[ ('objects', accounts.models.UserManager()), ], ), migrations.CreateModel( name='UserBankAccount', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('account_no', models.PositiveIntegerField(unique=True)), ('gender', models.CharField(choices=[('M', 'Male'), ('F', 'Female')], max_length=1)), ('birth_date', models.DateField(blank=True, null=True)), ('balance', models.DecimalField(decimal_places=2, default=0, max_digits=12)), ('interest_start_date', models.DateField(blank=True, help_text='The month number that interest calculation will start from', null=True)), ('initial_deposit_date', models.DateField(blank=True, null=True)), ('account_type', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='accounts', to='accounts.BankAccountType')), ('company', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='company.Company')), ('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, related_name='account', to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='UserAddress', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('street_address', models.CharField(max_length=512)), ('city', models.CharField(max_length=256)), ('postal_code', models.PositiveIntegerField()), ('country', models.CharField(max_length=256)), ('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, related_name='address', to=settings.AUTH_USER_MODEL)), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0011_update_proxy_permissions'), ] operations = [ migrations.CreateModel( name='User', fields=[ ('password', models.CharField(max_length=128, verbose_name='password')), ('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')), ('is_superuser', models.BooleanField(default=False, help_text='Designates that this user has all permissions without explicitly assigning them.', verbose_name='superuser status')), ('id', models.UUIDField(default=accounts.models.generate_code_user, editable=False, primary_key=True, serialize=False, verbose_name='Código')), ('document', models.CharField(max_length=10, unique=True, validators=[accounts.validators.DNIValidator()], verbose_name='Cédula')), ('first_name', models.CharField(max_length=30, validators=[accounts.validators.NameValidator()], verbose_name='Nombres')), ('last_name', models.CharField(max_length=150, validators=[accounts.validators.NameValidator()], verbose_name='Apellidos')), ('phone_number', models.CharField(max_length=17, validators=[accounts.validators.PhoneValidator()])), ('email', models.EmailField(max_length=254, verbose_name='Correo electronico')), ('address1', models.CharField(max_length=1024, verbose_name='Dirección 1')), ('address2', models.CharField(blank=True, max_length=1024, null=True, verbose_name='Dirección 2')), ('birthdate', models.DateField(verbose_name='Fecha de nacimiento')), ('user_type', models.PositiveSmallIntegerField(choices=[(1, 'empleado'), (2, 'cliente')], verbose_name='Tipo de usuario')), ('can_approve', models.BooleanField(default=False, verbose_name='Puede aprobar')), ('is_staff', models.BooleanField(default=False, verbose_name='staff status')), ('is_active', models.BooleanField(default=True, help_text='Designa si este usuario debe ser tratado como activo.\nSeleccione esto en lugar de eliminar cuentas.', 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': 'usuario', 'verbose_name_plural': 'usuarios', 'swappable': 'AUTH_USER_MODEL', }, managers=[ ('objects', accounts.managers.UserManager()), ], ), migrations.AddConstraint( model_name='user', constraint=models.CheckConstraint(check=models.Q(models.Q(('can_approve', True), ('user_type', 1)), models.Q(('can_approve', False), ('user_type__in', (1, 2))), _connector='OR'), name='can_approve_only_employee'), ), ]
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')), ('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')), ('status', models.PositiveSmallIntegerField(choices=[(1, 'Active'), (2, 'Archive'), (3, 'Draft')], db_index=True, default=6, verbose_name='Status Data')), ('created_at', models.DateTimeField(editable=False, null=True)), ('verified_at', models.DateTimeField(blank=True, editable=False, null=True)), ('rejected_at', models.DateTimeField(blank=True, editable=False, null=True)), ('updated_at', models.DateTimeField(auto_now=True)), ('email', models.EmailField(blank=True, max_length=254, null=True, unique=True)), ('username', models.CharField(db_index=True, max_length=40, unique=True)), ('first_name', models.CharField(db_index=True, max_length=100, verbose_name='Nama Depan')), ('last_name', models.CharField(db_index=True, max_length=100, verbose_name='Nama Belakang')), ('tempat_lahir', models.CharField(blank=True, max_length=30, null=True, verbose_name='Tempat Lahir')), ('tanggal_lahir', models.DateField(blank=True, null=True, verbose_name='Tanggal Lahir')), ('telephone', models.CharField(blank=True, max_length=50, null=True, verbose_name='Telepon')), ('alamat', models.CharField(max_length=255)), ('lt', models.CharField(blank=True, max_length=50, null=True, verbose_name='lt')), ('lg', models.CharField(blank=True, max_length=50, null=True, verbose_name='lg')), ('foto', accounts.models.ImageField(blank=True, max_length=255, null=True, upload_to=accounts.models.PathAndRename('profiles/'))), ('sv', django.contrib.postgres.search.SearchVectorField(blank=True, null=True)), ('is_active', models.BooleanField(default=True)), ('is_admin', models.BooleanField(default=False)), ], options={ 'verbose_name': 'Akun', 'verbose_name_plural': 'Akun', 'ordering': ['id'], }, ), migrations.CreateModel( name='AccountHistoryAction', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('action', models.CharField(max_length=100)), ('keterangan', models.CharField(blank=True, max_length=255, null=True)), ('created_at', models.DateTimeField(editable=False)), ('updated_at', models.DateTimeField(auto_now=True)), ], options={ 'verbose_name': 'Riwayat Aksi Pengguna', 'verbose_name_plural': 'Riwayat Aksi Pengguna', }, ), migrations.CreateModel( name='NomorIdentitasPengguna', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('nomor', models.CharField(db_index=True, max_length=100, unique=True)), ], options={ 'verbose_name': 'Nomor Identitas Pengguna', 'verbose_name_plural': 'Nomor Identitas Pengguna', }, ), ]
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')), ('first_name', models.CharField(max_length=255, null=True)), ('middle_name', models.CharField(max_length=255, null=True)), ('surname', models.CharField(max_length=255, null=True)), ('email', models.EmailField(max_length=255, unique=True, verbose_name='email address')), ('is_active', models.BooleanField(default=True)), ('is_client', models.BooleanField(default=False)), ('is_staff', models.BooleanField(default=False)), ('is_superuser', models.BooleanField(default=False)), ('timestamp', models.DateTimeField(auto_now_add=True)), ], options={ 'abstract': False, }, ), migrations.CreateModel( name='EmailActivation', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('email', models.EmailField(max_length=254)), ('key', models.CharField(blank=True, max_length=120, null=True)), ('activated', models.BooleanField(default=False)), ('forced_expired', models.BooleanField(default=False)), ('expires', models.IntegerField(default=7)), ('timestamp', models.DateTimeField(auto_now_add=True)), ('update', models.DateTimeField(auto_now=True)), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Profile', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('username', models.CharField(blank=True, max_length=255, null=True)), ('passport', models.ImageField(blank=True, null=True, upload_to=accounts.models.upload_image_path)), ('sex', models.CharField(blank=True, choices=[('s', 'SEX'), ('m', 'MALE'), ('f', 'FEMALE')], default='s', max_length=7, null=True)), ('interest', models.CharField(blank=True, choices=[('m', 'MALE'), ('f', 'FEMALE'), ('b', 'MALE & FEMALE')], default='m', max_length=18, null=True)), ('marital', models.CharField(blank=True, choices=[('si', 'SINGLE'), ('ma', 'MARRIED'), ('di', 'DIVORCED'), ('se', 'SEPERATED')], max_length=18, null=True)), ('kids', models.CharField(blank=True, choices=[('no', 'NO'), ('yes', 'YES'), ('maybe', 'MAYBE')], max_length=5, null=True)), ('next_of_kin', models.CharField(blank=True, max_length=255, null=True)), ('height', models.PositiveSmallIntegerField(blank=True, null=True)), ('DOB', models.DateField(blank=True, help_text='year-month-day', max_length=8, null=True)), ('phone', phonenumber_field.modelfields.PhoneNumberField(blank=True, help_text='Contact phone number must start with "+123" or any internationalize country code', max_length=128, null=True)), ('fax', phonenumber_field.modelfields.PhoneNumberField(blank=True, help_text='Contact fax number', max_length=128, null=True)), ('address', models.CharField(blank=True, max_length=300, null=True)), ('city', models.CharField(blank=True, max_length=300, null=True)), ('zip_code', localflavor.us.models.USZipCodeField(blank=True, max_length=10, null=True)), ('state_province', localflavor.us.models.USStateField(blank=True, max_length=2, null=True)), ('SSN', localflavor.us.models.USSocialSecurityNumberField(blank=True, help_text='format: xxx-xx-xxxx (only applies to US Citizens', max_length=11, null=True)), ('country', django_countries.fields.CountryField(blank=True, max_length=2, null=True)), ('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', '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( 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=30, 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')), ('nickname', models.CharField(max_length=300)), ('image', models.ImageField( default='Bunny-avatar.gif', upload_to=accounts.models.user_media_upload_handler)), ('groups', models.ManyToManyField( blank=True, help_text= 'The groups this user belongs to. A user will get all permissions granted to each of their groups.', related_name='user_set', related_query_name='user', to='auth.Group', verbose_name='groups')), ], options={ 'verbose_name': 'user', 'verbose_name_plural': 'users', 'abstract': False, }, managers=[ ('objects', django.contrib.auth.models.UserManager()), ], ), migrations.CreateModel( name='Awardance', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('date', models.DateTimeField(auto_now_add=True)), ], ), migrations.CreateModel( name='Merit', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('image', models.ImageField(upload_to='')), ('stage', models.PositiveSmallIntegerField()), ('title', models.CharField(max_length=256)), ], ), migrations.CreateModel( name='Profile', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('life_clicks', models.PositiveIntegerField(default=1)), ], ), migrations.AddField( model_name='awardance', name='merit', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, related_name='recognitions', to='accounts.Merit'), ), migrations.AddField( model_name='awardance', name='user', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, related_name='awards', to=settings.AUTH_USER_MODEL), ), migrations.AddField( model_name='user', name='merits', field=models.ManyToManyField(blank=True, related_name='users', through='accounts.Awardance', to='accounts.Merit'), ), migrations.AddField( model_name='user', name='profile', field=models.OneToOneField( blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='accounts.Profile'), ), migrations.AddField( model_name='user', name='user_permissions', field=models.ManyToManyField( blank=True, help_text='Specific permissions for this user.', related_name='user_set', related_query_name='user', to='auth.Permission', verbose_name='user permissions'), ), ]
class Migration(migrations.Migration): initial = True dependencies = [] operations = [ migrations.CreateModel( name='Card', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created', django_extensions.db.fields.CreationDateTimeField( auto_now_add=True, verbose_name='created')), ('modified', django_extensions.db.fields.ModificationDateTimeField( auto_now=True, verbose_name='modified')), ('address_city', models.TextField( blank=True, default='', help_text='City/District/Suburb/Town/Village.', max_length=5000)), ('address_country', models.TextField(blank=True, default='', help_text='Billing address country.', max_length=5000)), ('address_line1', models.TextField( blank=True, default='', help_text='Street address/PO Box/Company name.', max_length=5000)), ('address_line2', models.TextField(blank=True, default='', help_text='Apartment/Suite/Unit/Building.', max_length=5000)), ('address_state', models.TextField(blank=True, default='', help_text='State/County/Province/Region.', max_length=5000)), ('address_zip', models.TextField(blank=True, default='', help_text='ZIP or postal code.', max_length=5000)), ('country', models.CharField( blank=True, default='', help_text= 'Two-letter ISO code representing the country of the card.', max_length=2)), ('exp_month', models.PositiveSmallIntegerField( help_text='Card expiration month.', validators=[ django.core.validators.MinValueValidator(1), django.core.validators.MaxValueValidator(12) ])), ('exp_year', models.PositiveSmallIntegerField( help_text='Card expiration year.', validators=[ accounts.models.DynamicMinValueValidator(19), django.core.validators.MaxValueValidator(99) ])), ], options={ 'ordering': ('-modified', '-created'), 'get_latest_by': 'modified', 'abstract': False, }, ), ]
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', accounts.models.UserManager()), ], ), migrations.CreateModel( name='Profile', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('role', models.PositiveSmallIntegerField(blank=True, choices=[(1, 'Member'), (2, 'Genius'), (3, 'SuperVisor')], null=True)), ('phone_number', models.CharField(max_length=11)), ('national_code', models.CharField(max_length=10)), ('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')), ('is_superuser', models.BooleanField( default=False, help_text= 'Designates that this user has all permissions without explicitly assigning them.', verbose_name='superuser status')), ('first_name', models.CharField(blank=True, max_length=30, verbose_name='first name')), ('last_name', models.CharField(blank=True, max_length=150, verbose_name='last name')), ('email', models.EmailField(blank=True, max_length=254, null=True, verbose_name='email address')), ('id_number', models.CharField(max_length=10, unique=True, verbose_name='identity number')), ('country_code', models.CharField(default='233', max_length=4, verbose_name='country code')), ('phone_number', models.CharField(blank=True, max_length=30, verbose_name='phone number')), ('gender', models.CharField(blank=True, max_length=10, verbose_name='gender')), ('date_of_birth', models.DateField(blank=True, null=True, verbose_name='date of birth')), ('user_type', models.CharField(choices=[('M', 'Merchant'), ('E', 'Extension'), ('G', 'Goonacredit')], default='G', max_length=1, verbose_name='user type')), ('is_verified', models.BooleanField(default=False)), ('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')), ('last_login', models.DateTimeField(auto_now=True, verbose_name='last login')), ('date_joined', models.DateTimeField(auto_now_add=True, verbose_name='date joined')), ('verification_pin', models.IntegerField(blank=True, null=True)), ('verification_tries', models.PositiveSmallIntegerField(default=0)), ('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', 'verbose_name': 'user', }, managers=[ ('objects', accounts.models.NewManager()), ], ), migrations.CreateModel( name='ExtensionProfile', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('role', models.CharField(blank=True, max_length=30)), ('role_description', models.TextField(blank=True, help_text='Description of extension role')), ('user', models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Farmer', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('family_name', models.CharField(blank=True, max_length=20, verbose_name='family name')), ('first_name', models.CharField(blank=True, max_length=30, verbose_name='first name')), ('other_name', models.CharField(blank=True, max_length=30, verbose_name='other name')), ('dob', models.DateField(blank=True, null=True, verbose_name='date of birth')), ('address', models.TextField(blank=True, verbose_name='address')), ('phone', models.TextField(blank=True, verbose_name='phone number')), ('family_size', models.SmallIntegerField(blank=True, verbose_name='family size')), ('farm_location', models.TextField(blank=True, verbose_name='farm location description')), ('farm_size', models.IntegerField(default=0, verbose_name='farm size')), ('credit_rating', models.SmallIntegerField(verbose_name='credit rating')), ('photo', models.ImageField(blank=True, null=True, upload_to='farmers/photos', verbose_name='photo')), ('created_at', models.DateTimeField(auto_now_add=True, verbose_name='created at')), ('last_updated', models.DateTimeField(auto_now=True, verbose_name='last updated')), ], ), migrations.CreateModel( name='MerchantProfile', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('product', models.CharField(blank=True, help_text='Product or Service provided', max_length=50)), ('description', models.TextField( blank=True, help_text='Description of product or service')), ('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='Employee', fields=[ ('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')), ('employee_id', models.PositiveIntegerField(primary_key=True, serialize=False, unique=True, verbose_name='社員番号')), ('username', models.CharField(max_length=10, verbose_name='社員名')), ('password', models.CharField(max_length=128, verbose_name='パスワード')), ('borrowed_bicycles', models.PositiveSmallIntegerField( default=0, validators=[django.core.validators.MaxValueValidator(3)], verbose_name='借りている自転車の数')), ('is_staff', models.BooleanField(default=False, verbose_name='管理者サイトへのアクセス権限')), ('is_superuser', models.BooleanField(default=False, verbose_name='管理者サイトでの編集権限')), ('groups', models.ManyToManyField( blank=True, help_text= 'The groups this user belongs to. A user will get all permissions granted to each of their groups.', related_name='user_set', related_query_name='user', to='auth.Group', verbose_name='groups')), ('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', accounts.models.EmployeeManager()), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='UserDates', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('note_text', models.CharField(max_length=1000)), ('note_date', models.DateField()), ], ), migrations.CreateModel( name='UserProfile', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('avatar', models.ImageField( blank=True, upload_to=accounts.models.user_directory_path)), ('user', models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='UserProjects', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('projeto', models.CharField(default='Projeto', max_length=200)), ('data', models.CharField(default='2018', max_length=11)), ('nivel', models.PositiveSmallIntegerField( choices=[(1, 'Iniciação Científica'), ( 2, 'Mestrado'), (3, 'Doutorado'), (4, 'Pós-Doc.')])), ('user', models.OneToOneField( default=1, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='UserUploads', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('projetos', models.CharField(default='Projeto', max_length=200)), ('docname', models.CharField(blank=True, max_length=30, null=True)), ('file', models.FileField( upload_to=accounts.models.user_directory_path)), ('type', models.PositiveSmallIntegerField(choices=[(1, '.docx'), (2, '.xlsx'), (3, '.ppx')], null=True)), ('user', models.ForeignKey(default=None, on_delete=django.db.models.deletion.CASCADE, to='accounts.UserProfile')), ], ), migrations.AddField( model_name='userdates', name='user', field=models.ForeignKey( default=None, on_delete=django.db.models.deletion.CASCADE, to='accounts.UserProfile'), ), ]
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')), ('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')), ('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')), ('first_name', models.CharField(blank=True, max_length=50, null=True, validators=[accounts.models.validate_name])), ('MobileNumber', phonenumber_field.modelfields.PhoneNumberField(blank=True, max_length=128, null=True, region=None)), ('dob', models.DateField(blank=True, max_length=8, 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={ 'verbose_name': 'user', 'verbose_name_plural': 'users', 'abstract': False, }, managers=[ ('objects', django.contrib.auth.models.UserManager()), ], ), migrations.CreateModel( name='Areas', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=100, unique=True)), ('volunteerNumber', models.PositiveSmallIntegerField(default=None)), ('areaLead', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Area_Linker', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('area', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='accounts.Areas')), ('volunteer', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), ]