class Migration(migrations.Migration):

    dependencies = [
        ('accounts', '0001_initial'),
    ]

    operations = [
        migrations.CreateModel(
            name='Project',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=60, unique=True)),
                ('deadline', models.DateField()),
            ],
        ),
        migrations.CreateModel(
            name='Sequence',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=60, unique=True)),
                ('status', models.CharField(max_length=60)),
                ('description', models.CharField(max_length=255)),
                ('project', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='sequences', to='accounts.project')),
            ],
        ),
        migrations.CreateModel(
            name='Shot',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('shotcode', models.CharField(max_length=60, unique=True)),
                ('status', models.CharField(max_length=60)),
                ('cut_in', models.DecimalField(decimal_places=2, max_digits=9)),
                ('cut_out', models.DecimalField(decimal_places=2, max_digits=9)),
                ('cut_duration', models.DecimalField(decimal_places=2, max_digits=9)),
                ('sequence', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='shots', to='accounts.sequence')),
            ],
        ),
        migrations.AlterField(
            model_name='user',
            name='usertype',
            field=models.ForeignKey(default=accounts.models.get_default_artist_usertype, on_delete=django.db.models.deletion.CASCADE, related_name='users', to='accounts.usertype'),
        ),
        migrations.CreateModel(
            name='Task',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('task_name', models.CharField(max_length=60, unique=True)),
                ('pipeline_step', models.CharField(max_length=60)),
                ('status', models.CharField(max_length=60)),
                ('startdate', models.DateField()),
                ('duedate', models.DateField()),
                ('assigned_to', models.ManyToManyField(related_name='assignedtasks', to=settings.AUTH_USER_MODEL)),
                ('link', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='tasks', to='accounts.shot')),
                ('reviewer', models.ManyToManyField(related_name='taskstoreview', to=settings.AUTH_USER_MODEL)),
            ],
        ),
    ]
Esempio n. 2
0
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)),
            ],
        ),
    ]
Esempio n. 3
0
class Migration(migrations.Migration):

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
        ('accounts', '0001_initial'),
    ]

    operations = [
        migrations.CreateModel(
            name='UserProfile',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('photo',
                 models.ImageField(upload_to=accounts.models.upload_user)),
                ('address', models.TextField()),
                ('contact', models.CharField(max_length=250)),
                ('aadhar', models.DecimalField(decimal_places=0,
                                               max_digits=12)),
                ('user',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to=settings.AUTH_USER_MODEL)),
            ],
        ),
    ]
Esempio n. 4
0
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')),
                ('email', models.EmailField(max_length=254, unique=True, verbose_name='email address')),
                ('full_name', models.CharField(blank=True, max_length=30, verbose_name='full name')),
                ('date_joined', models.DateTimeField(auto_now_add=True, verbose_name='date joined')),
                ('is_active', models.BooleanField(default=True, verbose_name='active')),
                ('avatar', models.ImageField(blank=True, null=True, upload_to='avatars/')),
                ('is_staff', models.BooleanField(default=False, verbose_name='is staff')),
                ('is_superuser', models.BooleanField(default=False, verbose_name='is superuser')),
                ('groups', models.ManyToManyField(blank=True, help_text='The groups this user belongs to. A user will get all permissions granted to each of their groups.', related_name='user_set', related_query_name='user', to='auth.Group', verbose_name='groups')),
                ('user_permissions', models.ManyToManyField(blank=True, help_text='Specific permissions for this user.', related_name='user_set', related_query_name='user', to='auth.Permission', verbose_name='user permissions')),
            ],
            options={
                'verbose_name': 'user',
                'verbose_name_plural': 'users',
                'ordering': ['date_joined'],
            },
            managers=[
                ('objects', accounts.models.UserManager()),
            ],
        ),
        migrations.CreateModel(
            name='UserBalance',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('balance', models.DecimalField(decimal_places=2, default=0, max_digits=12)),
                ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='user_balance', 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=128)),
                ('city', models.CharField(max_length=64)),
                ('state', models.CharField(max_length=64)),
                ('country', models.CharField(max_length=64)),
                ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='address', to=settings.AUTH_USER_MODEL)),
            ],
            options={
                'verbose_name': 'user address',
                'verbose_name_plural': 'user addresses',
            },
        ),
    ]
Esempio n. 5
0
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')),
                ('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.IntegerField(blank=True, null=True)),
                ('is_subscribed', models.BooleanField(default=False)),
            ],
            options={
                'verbose_name': 'user',
                'verbose_name_plural': 'users',
                'abstract': False,
            },
            managers=[
                ('objects', accounts.models.AccountUserManager()),
            ],
        ),
        migrations.CreateModel(
            name='Subscription',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=10)),
                ('cost', models.DecimalField(decimal_places=2, max_digits=4)),
            ],
        ),
        migrations.CreateModel(
            name='UserSubscriptions',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('Subscription', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='accounts.Subscription')),
                ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
            ],
        ),
    ]
Esempio n. 6
0
class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('auth', '0008_alter_user_username_max_length'),
    ]

    operations = [
        migrations.CreateModel(
            name='DiagnosisInfo',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('Sore_Throat', models.CharField(blank=True, choices=[('Y', 'Yes'), ('N', 'No')], max_length=128, null=True)),
                ('Diastolic_Blood_Pressure', models.DecimalField(decimal_places=2, default='', max_digits=5, validators=[accounts.models.validate_bp_low])),
                ('Systolic_Blood_Pressure', models.DecimalField(decimal_places=2, default='', max_digits=5, validators=[accounts.models.validate_bp_high])),
                ('Respiratory_rate', models.DecimalField(decimal_places=2, default='', max_digits=5, validators=[accounts.models.validate_rr])),
                ('Pulse_rate', models.DecimalField(decimal_places=2, default='', max_digits=5, validators=[accounts.models.validate_pr])),
                ('Temperature', models.DecimalField(decimal_places=2, default='', max_digits=5, validators=[accounts.models.validate_temp])),
            ],
        ),
        migrations.CreateModel(
            name='User',
            fields=[
                ('user_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to=settings.AUTH_USER_MODEL)),
            ],
            options={
                'verbose_name': 'user',
                'verbose_name_plural': 'users',
                'abstract': False,
            },
            bases=('auth.user', models.Model),
            managers=[
                ('objects', django.contrib.auth.models.UserManager()),
            ],
        ),
    ]
Esempio n. 7
0
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')),
                ('email', models.EmailField(max_length=255, unique=True)),
                ('mobile_no',
                 models.DecimalField(decimal_places=0,
                                     max_digits=20,
                                     null=True)),
                ('full_name', models.CharField(max_length=255, null=True)),
                ('profile_photo',
                 models.ImageField(
                     blank=True,
                     null=True,
                     upload_to=accounts.models.upload_image_path)),
                ('staff', models.BooleanField(default=False)),
                ('active', models.BooleanField(default=True)),
                ('admin', models.BooleanField(default=False)),
                ('timestamp', models.DateTimeField(auto_now_add=True)),
            ],
            options={
                'abstract': False,
            },
        ),
    ]
class Migration(migrations.Migration):

    initial = True

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
    ]

    operations = [
        migrations.CreateModel(
            name='Account',
            fields=[
                ('id', models.IntegerField(default=accounts.models.get_random_id, editable=False, primary_key=True, serialize=False)),
                ('balance', models.DecimalField(decimal_places=2, default=0.0, max_digits=10, verbose_name='Balance')),
                ('currency', models.PositiveIntegerField(choices=[(0, 'EUR'), (1, 'USD'), (2, 'GBP'), (3, 'CHF')], default=0, verbose_name='Currency')),
                ('create_time', models.DateTimeField(default=django.utils.timezone.now, verbose_name='Create time')),
                ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='account_owner', to=settings.AUTH_USER_MODEL, verbose_name='Account Owner')),
            ],
        ),
    ]
Esempio n. 9
0
class Migration(migrations.Migration):

    initial = True

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
    ]

    operations = [
        migrations.CreateModel(
            name='City',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=200)),
                ('country', models.CharField(max_length=200)),
            ],
        ),
        migrations.CreateModel(
            name='Profile',
            fields=[
                ('id', models.AutoField(primary_key=True, serialize=False)),
                ('image', models.ImageField(default='photos/profiles/default.png', max_length=200, upload_to=accounts.models.get_filename_profile)),
                ('str_id', models.CharField(blank=True, default=None, max_length=40, null=True)),
                ('gender', models.CharField(blank=True, choices=[('M', 'Male'), ('F', 'Female')], default=None, max_length=1, null=True)),
                ('birthday', models.DateField(blank=True, null=True)),
                ('description', models.TextField(blank=True, null=True)),
                ('new_email', models.EmailField(blank=True, max_length=254, null=True)),
                ('is_email_verified', models.BooleanField(default=False)),
                ('mobile', models.IntegerField()),
                ('is_mobile_verified', models.NullBooleanField(default=None)),
                ('last_modified', models.DateTimeField(auto_now=True, null=True)),
                ('order', models.SmallIntegerField(default=1, help_text='Set to 1 for this collection to be the first, 2 to be second etc.')),
                ('big_field', models.BigIntegerField()),
                ('price', models.DecimalField(decimal_places=2, max_digits=15)),
                ('weight', models.FloatField(null=True)),
                ('facebook_url', models.URLField(max_length=255)),
                ('city', models.ForeignKey(default=None, on_delete=django.db.models.deletion.DO_NOTHING, to='accounts.City')),
                ('user', models.OneToOneField(on_delete=django.db.models.deletion.DO_NOTHING, to=settings.AUTH_USER_MODEL)),
            ],
        ),
    ]
class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('accounts', '0001_initial'),
    ]

    operations = [
        migrations.CreateModel(
            name='Transaction',
            fields=[
                ('id',
                 models.IntegerField(default=accounts.models.get_random_id,
                                     editable=False,
                                     primary_key=True,
                                     serialize=False)),
                ('amount',
                 models.DecimalField(decimal_places=2,
                                     max_digits=10,
                                     verbose_name='Amount')),
                ('create_time',
                 models.DateTimeField(default=django.utils.timezone.now,
                                      verbose_name='Create time')),
                ('destination_account',
                 models.ForeignKey(blank=True,
                                   null=True,
                                   on_delete=django.db.models.deletion.CASCADE,
                                   related_name='destination_account',
                                   to='accounts.Account',
                                   verbose_name='Destination Account')),
                ('source_account',
                 models.ForeignKey(blank=True,
                                   null=True,
                                   on_delete=django.db.models.deletion.CASCADE,
                                   related_name='source_account',
                                   to='accounts.Account',
                                   verbose_name='Source Account')),
            ],
        ),
    ]
Esempio n. 11
0
class Migration(migrations.Migration):

    dependencies = [
        ('accounts', '0008_auto_20200629_2027'),
    ]

    operations = [
        migrations.CreateModel(
            name='Agent_Details',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('Agent_Company',
                 models.CharField(blank=True, max_length=1000, null=True)),
                ('Agent_Contact',
                 models.CharField(blank=True, max_length=1000, null=True)),
                ('Fees_to_be_incurred_for_STS_Operations',
                 models.DecimalField(blank=True,
                                     decimal_places=2,
                                     max_digits=20,
                                     null=True)),
            ],
        ),
        migrations.RemoveField(
            model_name='entry',
            name='headline',
        ),
        migrations.AddField(
            model_name='entry',
            name='agent_details',
            field=djongo.models.fields.EmbeddedModelField(
                model_container=accounts.models.Agent_Details,
                model_form_class=accounts.models.Agent_DetailsForm,
                null=True),
        ),
    ]
Esempio n. 12
0
class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='Drivers',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('dname', models.CharField(max_length=250)),
                ('dcontact', models.CharField(max_length=250)),
                ('daddress', models.TextField()),
                ('dlicense', models.CharField(max_length=250)),
                ('daadhar', models.DecimalField(decimal_places=0, max_digits=12)),
                ('dphoto', models.ImageField(upload_to=accounts.models.upload_photo)),
                ('dscan', models.FileField(upload_to=accounts.models.upload_file)),
            ],
        ),
    ]
Esempio n. 13
0
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')),
                ('rating',
                 models.DecimalField(decimal_places=0, max_digits=3,
                                     null=True)),
                ('school', models.TextField(blank=True, null=True)),
                ('birthdate', models.DateField(blank=True, null=True)),
                ('image',
                 models.ImageField(blank=True,
                                   height_field='height_field',
                                   null=True,
                                   upload_to=accounts.models.upload_location,
                                   width_field='width_field')),
                ('height_field', models.IntegerField(default=0)),
                ('width_field', models.IntegerField(default=0)),
                ('user',
                 models.OneToOneField(
                     on_delete=django.db.models.deletion.CASCADE,
                     to=settings.AUTH_USER_MODEL)),
            ],
        ),
    ]
Esempio n. 14
0
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')),
                ('last_login',
                 models.DateTimeField(blank=True,
                                      null=True,
                                      verbose_name='last login')),
                ('is_superuser',
                 models.BooleanField(
                     default=False,
                     help_text=
                     'Designates that this user has all permissions without explicitly assigning them.',
                     verbose_name='superuser status')),
                ('is_staff',
                 models.BooleanField(
                     default=False,
                     help_text=
                     'Designates whether the user can log into this admin site.',
                     verbose_name='staff status')),
                ('is_active',
                 models.BooleanField(
                     default=True,
                     help_text=
                     'Designates whether this user should be treated as active. Unselect this instead of deleting accounts.',
                     verbose_name='active')),
                ('date_joined',
                 models.DateTimeField(default=django.utils.timezone.now,
                                      verbose_name='date joined')),
                ('is_taxpayer', models.BooleanField(default=False)),
                ('is_official', models.BooleanField(default=False)),
                ('first_name', models.CharField(max_length=200, unique=True)),
                ('last_name', models.CharField(max_length=200, unique=True)),
                ('email', models.EmailField(max_length=200, unique=True)),
                ('gstin',
                 models.CharField(max_length=200, null=True, unique=True)),
                ('password', models.CharField(max_length=200)),
                ('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='OfficialProfile',
            fields=[
                ('user',
                 models.OneToOneField(
                     on_delete=django.db.models.deletion.CASCADE,
                     primary_key=True,
                     related_name='official_profile',
                     serialize=False,
                     to=settings.AUTH_USER_MODEL)),
                ('aadhar',
                 models.DecimalField(decimal_places=0,
                                     max_digits=12,
                                     null=True,
                                     unique=True)),
                ('uid', models.CharField(max_length=200)),
            ],
        ),
        migrations.CreateModel(
            name='TaxpayerProfile',
            fields=[
                ('user',
                 models.OneToOneField(
                     on_delete=django.db.models.deletion.CASCADE,
                     primary_key=True,
                     related_name='taxpayer_profile',
                     serialize=False,
                     to=settings.AUTH_USER_MODEL)),
                ('aadhar',
                 models.DecimalField(decimal_places=0,
                                     max_digits=12,
                                     null=True,
                                     unique=True)),
            ],
        ),
    ]
Esempio n. 15
0
class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('auth', '0008_alter_user_username_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')),
                ('is_active', models.BooleanField(default=True, verbose_name='active')),
                ('first_name', models.CharField(max_length=50)),
                ('last_name', models.CharField(max_length=50)),
                ('username', models.SlugField(max_length=120, unique=True)),
                ('email', models.EmailField(max_length=120, unique=True)),
                ('profile_pic', models.ImageField(blank=True, null=True, upload_to=accounts.models.get_profile_pic_path, verbose_name='profile picture')),
                ('video', models.CharField(blank=True, help_text='Preferably embed from YouTube', max_length=250, verbose_name='profile video')),
                ('resume', models.FileField(blank=True, null=True, upload_to=accounts.models.get_resume_path, validators=[core.validators.validate_resume_ext])),
                ('gpa', models.DecimalField(blank=True, decimal_places=2, max_digits=3, null=True, verbose_name='GPA')),
                ('gender', models.IntegerField(choices=[(2, 'Male'), (3, 'Female'), (4, 'Prefer not to answer')], default=4)),
                ('account_type', models.IntegerField(blank=True, choices=[(0, 'Student'), (1, 'Employer')], null=True)),
                ('degree_earned', models.IntegerField(blank=True, choices=[(5, 'Associate'), (6, 'Bachelor'), (7, 'Master'), (8, 'Doctorate'), (9, 'Other')], null=True)),
                ('year', models.IntegerField(blank=True, choices=[(10, 'Freshman'), (11, 'Sophomore'), (12, 'Junior'), (13, 'Senior'), (14, 'Other')], null=True)),
                ('opp_sought', models.IntegerField(blank=True, choices=[(15, 'Internship'), (16, 'Full-time'), (17, 'Part-time'), (18, 'Consulting'), (19, 'Other')], null=True)),
                ('date_joined', models.DateTimeField(auto_now_add=True, verbose_name='date joined')),
                ('modified', models.DateTimeField(auto_now=True, verbose_name='last modified')),
                ('is_confirmed', models.BooleanField(default=False, verbose_name='confirmed')),
                ('is_staff', models.BooleanField(default=False, verbose_name='staff')),
            ],
            options={
                'verbose_name': 'user',
                'verbose_name_plural': 'users',
            },
        ),
        migrations.CreateModel(
            name='Company',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('created', models.DateTimeField(auto_now_add=True, verbose_name='created')),
                ('modified', models.DateTimeField(auto_now=True, verbose_name='modified')),
                ('is_active', models.BooleanField(default=True, verbose_name='active')),
                ('name', models.CharField(max_length=120)),
                ('username', models.SlugField(max_length=150, unique=True)),
                ('logo', models.ImageField(blank=True, null=True, upload_to=accounts.models.get_company_logo_path, verbose_name='company logo')),
                ('website', models.URLField(blank=True, max_length=150, null=True)),
                ('bio', models.TextField(blank=True, max_length=500)),
                ('collaborators', models.ManyToManyField(blank=True, related_name='company_collaborators', to=settings.AUTH_USER_MODEL)),
                ('user', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='company_owner', to=settings.AUTH_USER_MODEL)),
            ],
            options={
                'verbose_name': 'company',
                'verbose_name_plural': 'companies',
            },
        ),
        migrations.CreateModel(
            name='Degree',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('is_active', models.BooleanField(default=True, verbose_name='active')),
                ('degree_type', models.IntegerField(blank=True, choices=[(0, 'Associates'), (1, 'Bachelors'), (2, 'Masters'), (3, 'Other')], null=True)),
                ('name', models.CharField(max_length=120)),
            ],
            options={
                'ordering': ['name'],
                'verbose_name': 'degree',
                'verbose_name_plural': 'degrees',
            },
        ),
        migrations.CreateModel(
            name='EmailConfirmation',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('sent_date', models.DateTimeField(auto_now_add=True)),
                ('key', models.CharField(max_length=64, unique=True)),
                ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
            ],
            options={
                'verbose_name': 'email confirmation',
                'verbose_name_plural': 'email confirmations',
            },
        ),
        migrations.CreateModel(
            name='Experience',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('title', models.CharField(max_length=120)),
                ('company', models.CharField(max_length=120)),
                ('description', models.TextField(blank=True, max_length=500)),
                ('date_start', models.DateField(null=True, verbose_name='Start Date')),
                ('date_end', models.DateField(blank=True, null=True, verbose_name='End State')),
                ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
            ],
            options={
                'ordering': ['-date_end'],
                'verbose_name': 'resume experience',
                'verbose_name_plural': 'resume experiences',
            },
        ),
        migrations.CreateModel(
            name='Hobby',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('is_active', models.BooleanField(default=True, verbose_name='active')),
                ('name', models.CharField(max_length=120)),
            ],
            options={
                'ordering': ['name'],
                'verbose_name': 'hobby',
                'verbose_name_plural': 'hobbies',
            },
        ),
        migrations.CreateModel(
            name='School',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('is_active', models.BooleanField(default=True, verbose_name='active')),
                ('name', models.CharField(max_length=120)),
                ('location', models.CharField(blank=True, max_length=120)),
                ('email', models.CharField(max_length=100)),
            ],
            options={
                'ordering': ['name'],
                'verbose_name': 'school',
                'verbose_name_plural': 'schools',
            },
        ),
        migrations.AddField(
            model_name='myuser',
            name='grad_degree',
            field=models.ManyToManyField(blank=True, related_name='grad_degree', to='accounts.Degree'),
        ),
        migrations.AddField(
            model_name='myuser',
            name='grad_uni',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='grad_university', to='accounts.School'),
        ),
        migrations.AddField(
            model_name='myuser',
            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='myuser',
            name='hobbies',
            field=models.ManyToManyField(blank=True, related_name='hobbies', to='accounts.Hobby'),
        ),
        migrations.AddField(
            model_name='myuser',
            name='undergrad_degree',
            field=models.ManyToManyField(blank=True, related_name='undergrad_degree', to='accounts.Degree'),
        ),
        migrations.AddField(
            model_name='myuser',
            name='undergrad_uni',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='undergrad_university', to='accounts.School'),
        ),
        migrations.AddField(
            model_name='myuser',
            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'),
        ),
    ]
Esempio n. 16
0
class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('auth', '0012_alter_user_first_name_max_length'),
    ]

    operations = [
        migrations.CreateModel(
            name='Accounts',
            fields=[
                ('id',
                 models.BigAutoField(auto_created=True,
                                     primary_key=True,
                                     serialize=False,
                                     verbose_name='ID')),
                ('password',
                 models.CharField(max_length=128, verbose_name='password')),
                ('last_login',
                 models.DateTimeField(blank=True,
                                      null=True,
                                      verbose_name='last login')),
                ('is_superuser',
                 models.BooleanField(
                     default=False,
                     help_text=
                     'Designates that this user has all permissions without explicitly assigning them.',
                     verbose_name='superuser status')),
                ('username',
                 models.CharField(
                     error_messages={
                         'unique': 'A user with that username already exists.'
                     },
                     help_text=
                     'Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.',
                     max_length=150,
                     unique=True,
                     validators=[
                         django.contrib.auth.validators.
                         UnicodeUsernameValidator()
                     ],
                     verbose_name='username')),
                ('email',
                 models.EmailField(blank=True,
                                   max_length=254,
                                   verbose_name='email address')),
                ('is_staff',
                 models.BooleanField(
                     default=False,
                     help_text=
                     'Designates whether the user can log into this admin site.',
                     verbose_name='staff status')),
                ('is_active',
                 models.BooleanField(
                     default=True,
                     help_text=
                     'Designates whether this user should be treated as active. Unselect this instead of deleting accounts.',
                     verbose_name='active')),
                ('date_joined',
                 models.DateTimeField(default=django.utils.timezone.now,
                                      verbose_name='date joined')),
                ('is_host', models.BooleanField(default=False)),
                ('account_number', models.CharField(blank=True,
                                                    max_length=20)),
                ('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='Dog',
            fields=[
                ('id',
                 models.BigAutoField(auto_created=True,
                                     primary_key=True,
                                     serialize=False,
                                     verbose_name='ID')),
                ('picture',
                 models.ImageField(
                     blank=True,
                     upload_to=accounts.models.Dog.path_and_rename,
                     verbose_name="Dog's image")),
                ('dog_name', models.CharField(max_length=50)),
                ('gender',
                 models.CharField(choices=[('male', 'Male'),
                                           ('female', 'Female')],
                                  default='Male',
                                  max_length=10)),
                ('dog_bio', models.TextField(blank=True, max_length=100)),
                ('dog_status',
                 models.CharField(choices=[('idle', 'Idle'),
                                           ('hosting', 'Hosting')],
                                  default='idle',
                                  max_length=20)),
                ('dog_create_date', models.DateField(auto_now_add=True)),
                ('dog_dob', models.DateField(default=datetime.date.today)),
                ('dog_breed', models.CharField(max_length=20)),
                ('dog_weight', models.FloatField(default=0.0)),
            ],
        ),
        migrations.CreateModel(
            name='Customer',
            fields=[
                ('account',
                 models.OneToOneField(
                     on_delete=django.db.models.deletion.CASCADE,
                     primary_key=True,
                     related_name='customer_account',
                     serialize=False,
                     to='accounts.accounts')),
                ('picture',
                 models.ImageField(
                     blank=True,
                     upload_to=accounts.models.Customer.path_and_rename,
                     verbose_name="Customer's image")),
                ('first_name', models.CharField(default='', max_length=30)),
                ('last_name', models.CharField(default='', max_length=30)),
                ('gender',
                 models.CharField(choices=[('male', 'Male'),
                                           ('female', 'Female'),
                                           ('none', 'None')],
                                  default='Male',
                                  max_length=10)),
                ('customer_bio', models.TextField(blank=True, max_length=100)),
                ('customer_dog_count', models.IntegerField(default=0)),
                ('customer_hosted_count', models.IntegerField(default=0)),
                ('address', models.CharField(blank=True, max_length=255)),
                ('mobile', models.CharField(blank=True, max_length=10)),
                ('dob', models.DateField(default=datetime.date.today)),
                ('latitude',
                 models.DecimalField(blank=True,
                                     decimal_places=20,
                                     max_digits=32,
                                     null=True)),
                ('longitude',
                 models.DecimalField(blank=True,
                                     decimal_places=20,
                                     max_digits=32,
                                     null=True)),
            ],
        ),
        migrations.CreateModel(
            name='Host',
            fields=[
                ('account',
                 models.OneToOneField(
                     on_delete=django.db.models.deletion.CASCADE,
                     primary_key=True,
                     related_name='host_account',
                     serialize=False,
                     to='accounts.accounts')),
                ('picture',
                 models.ImageField(
                     blank=True,
                     upload_to=accounts.models.Host.path_and_rename,
                     verbose_name="Host's image")),
                ('first_name', models.CharField(default='', max_length=30)),
                ('last_name', models.CharField(default='', max_length=30)),
                ('gender',
                 models.CharField(choices=[('male', 'Male'),
                                           ('female', 'Female'),
                                           ('none', 'None')],
                                  default='Male',
                                  max_length=10)),
                ('host_bio', models.TextField(blank=True, max_length=100)),
                ('host_rating', models.FloatField(default=0.0)),
                ('host_hosted_count', models.IntegerField(default=0)),
                ('host_area', models.FloatField(default=0.0)),
                ('address', models.CharField(blank=True, max_length=255)),
                ('mobile', models.CharField(blank=True, max_length=10)),
                ('dob', models.DateField(default=datetime.date.today)),
                ('latitude',
                 models.DecimalField(blank=True,
                                     decimal_places=20,
                                     max_digits=32,
                                     null=True)),
                ('longitude',
                 models.DecimalField(blank=True,
                                     decimal_places=20,
                                     max_digits=32,
                                     null=True)),
            ],
        ),
        migrations.CreateModel(
            name='DogFeedingTime',
            fields=[
                ('id',
                 models.BigAutoField(auto_created=True,
                                     primary_key=True,
                                     serialize=False,
                                     verbose_name='ID')),
                ('time', models.TimeField()),
                ('dog',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   related_name='dog_feeding_time',
                                   to='accounts.dog')),
            ],
        ),
        migrations.CreateModel(
            name='HouseImages',
            fields=[
                ('id',
                 models.BigAutoField(auto_created=True,
                                     primary_key=True,
                                     serialize=False,
                                     verbose_name='ID')),
                ('picture',
                 models.ImageField(
                     blank=True,
                     upload_to=accounts.models.HouseImages.path_and_rename,
                     verbose_name='House picture')),
                ('host',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   related_name='house_image',
                                   to='accounts.host')),
            ],
        ),
        migrations.CreateModel(
            name='HostAvailableDate',
            fields=[
                ('id',
                 models.BigAutoField(auto_created=True,
                                     primary_key=True,
                                     serialize=False,
                                     verbose_name='ID')),
                ('date', models.DateField()),
                ('host',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   related_name='host_available_date',
                                   to='accounts.host')),
            ],
        ),
        migrations.AddField(
            model_name='dog',
            name='customer',
            field=models.ForeignKey(
                on_delete=django.db.models.deletion.CASCADE,
                related_name='dog_customer',
                to='accounts.customer'),
        ),
    ]
Esempio n. 17
0
class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    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')),
                ('email', models.EmailField(max_length=255, unique=True, verbose_name='email address')),
                ('media', models.ImageField(blank=True, null=True, upload_to=accounts.models.download_profile_location)),
                ('description', models.TextField(blank=True, default='', null=True)),
                ('name', models.CharField(blank=True, default='', max_length=10, null=True)),
                ('phone', models.CharField(blank=True, default='', max_length=13, null=True)),
                ('sex', models.CharField(choices=[('male', '\ub0a8\uc790'), ('female', '\uc5ec\uc790')], max_length=15, null=True)),
                ('address', models.CharField(default='', max_length=15, null=True)),
                ('job', models.CharField(blank=True, default='', max_length=15, null=True)),
                ('birth_year', models.PositiveIntegerField(null=True)),
                ('agree_purchase_info_email', models.BooleanField(default=True)),
                ('agree_purchase_info_SMS', models.BooleanField(default=False)),
                ('agree_selling_info_email', models.BooleanField(default=True)),
                ('agree_selling_info_SMS', models.BooleanField(default=True)),
                ('agree_marketing_info_email', models.BooleanField(default=True)),
                ('agree_marketing_info_SMS', models.BooleanField(default=False)),
                ('is_active', models.BooleanField(default=True)),
                ('is_admin', models.BooleanField(default=False)),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='MyUserThumbnail',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('thumb_type', models.CharField(choices=[('hd', 'HD'), ('sd', 'SD'), ('micro', 'Micro')], default='hd', max_length=20)),
                ('height', models.CharField(blank=True, max_length=20, null=True)),
                ('width', models.CharField(blank=True, max_length=20, null=True)),
                ('media', models.ImageField(blank=True, height_field='height', null=True, upload_to=accounts.models.thumbnail_location, width_field='width')),
                ('myuser', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.CreateModel(
            name='Seller',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('maxWorking', models.PositiveIntegerField(default=0)),
                ('description', models.TextField(blank=True, null=True)),
                ('phone', models.CharField(max_length=12)),
                ('rating', models.DecimalField(decimal_places=2, default=0.0, max_digits=3)),
                ('is_active', models.BooleanField(default=True)),
                ('created', models.DateTimeField(auto_now_add=True)),
                ('total_num_heart', models.PositiveIntegerField(default=0)),
                ('type', models.CharField(choices=[('individual', '\uac1c\uc778'), ('personal_business', '\uac1c\uc778\uc0ac\uc5c5\uc790'), ('corporate_business', '\ubc95\uc778\uc0ac\uc5c5\uc790')], default='individual', max_length=20, null=True)),
                ('company_name', models.CharField(blank=True, default='', max_length=12, null=True)),
                ('representative_name', models.CharField(blank=True, default='', max_length=12, null=True)),
                ('corporate_number', models.CharField(default='', max_length=12, null=True)),
                ('business_field', models.CharField(blank=True, default='', max_length=12, null=True)),
                ('company_type', models.CharField(blank=True, default='', max_length=12, null=True)),
                ('business_license', models.ImageField(blank=True, null=True, upload_to='/Users/jaewon/Project/socialup/socialup/settings/../../media/business_license/')),
                ('account_copy', models.ImageField(blank=True, null=True, upload_to='/Users/jaewon/Project/socialup/socialup/settings/../../media/account_copy/')),
                ('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.CreateModel(
            name='SellerAccount',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('account_number', models.CharField(blank=True, default='', max_length=120, null=True)),
                ('account_name', models.CharField(blank=True, default='', max_length=50, null=True)),
                ('bank', models.CharField(blank=True, choices=[('\uae30\uc5c5\uc740\ud589', '\uae30\uc5c5\uc740\ud589'), ('\uad6d\ubbfc\uc740\ud589', '\uad6d\ubbfc\uc740\ud589'), ('\uc678\ud658\uc740\ud589', '\uc678\ud658\uc740\ud589'), ('\uc218\ud611\uc911\uc559\ud68c', '\uc218\ud611\uc911\uc559\ud68c'), ('\ub18d\ud611\uc911\uc559\ud68c', '\ub18d\ud611\uc911\uc559\ud68c'), ('\uc6b0\ub9ac\uc740\ud589', '\uc6b0\ub9ac\uc740\ud589'), ('SC\uc81c\uc77c\uc740\ud589', 'SC\uc81c\uc77c\uc740\ud589'), ('\ub300\uad6c\uc740\ud589', '\ub300\uad6c\uc740\ud589'), ('\ubd80\uc0b0\uc740\ud589', '\ubd80\uc0b0\uc740\ud589'), ('\uad11\uc8fc\uc740\ud589', '\uad11\uc8fc\uc740\ud589'), ('\uc804\ubd81\uc740\ud589', '\uc804\ubd81\uc740\ud589'), ('\uacbd\ub0a8\uc740\ud589', '\uacbd\ub0a8\uc740\ud589'), ('\ud55c\uad6d\uc528\ud2f0\uc740\ud589', '\ud55c\uad6d\uc528\ud2f0\uc740\ud589'), ('\uc6b0\uccb4\uad6d', '\uc6b0\uccb4\uad6d'), ('\ud558\ub098\uc740\ud589', '\ud558\ub098\uc740\ud589'), ('\ud1b5\ud569\uc2e0\ud55c\uc740\ud589(\uc2e0\ud55c,\uc870\ud765\uc740\ud589)', '\ud1b5\ud569\uc2e0\ud55c\uc740\ud589(\uc2e0\ud55c,\uc870\ud765\uc740\ud589)'), ('\uc720\uc548\ud0c0\uc99d\uad8c(\uad6c \ub3d9\uc591\uc99d\uad8c)', '\uc720\uc548\ud0c0\uc99d\uad8c(\uad6c \ub3d9\uc591\uc99d\uad8c)'), ('\ud604\ub300\uc99d\uad8c', '\ud604\ub300\uc99d\uad8c'), ('\ubbf8\ub798\uc5d0\uc14b\uc99d\uad8c', '\ubbf8\ub798\uc5d0\uc14b\uc99d\uad8c'), ('\ud55c\uad6d\ud22c\uc790\uc99d\uad8c', '\ud55c\uad6d\ud22c\uc790\uc99d\uad8c'), ('\uc6b0\ub9ac\ud22c\uc790\uc99d\uad8c', '\uc6b0\ub9ac\ud22c\uc790\uc99d\uad8c'), ('\ud558\uc774\ud22c\uc790\uc99d\uad8c', '\ud558\uc774\ud22c\uc790\uc99d\uad8c'), ('HMC\ud22c\uc790\uc99d\uad8c', 'HMC\ud22c\uc790\uc99d\uad8c'), ('SK\uc99d\uad8c', 'SK\uc99d\uad8c'), ('\ub300\uc2e0\uc99d\uad8c', '\ub300\uc2e0\uc99d\uad8c'), ('\ud558\ub098\ub300\ud22c\uc99d\uad8c', '\ud558\ub098\ub300\ud22c\uc99d\uad8c'), ('\uad7f\ubaa8\ub2dd\uc2e0\ud55c\uc99d\uad8c', '\uad7f\ubaa8\ub2dd\uc2e0\ud55c\uc99d\uad8c'), ('\ub3d9\ubd80\uc99d\uad8c', '\ub3d9\ubd80\uc99d\uad8c'), ('\uc720\uc9c4\ud22c\uc790\uc99d\uad8c', '\uc720\uc9c4\ud22c\uc790\uc99d\uad8c'), ('\uba54\ub9ac\uce20\uc99d\uad8c', '\uba54\ub9ac\uce20\uc99d\uad8c'), ('\uc2e0\uc601\uc99d\uad8c', '\uc2e0\uc601\uc99d\uad8c'), ('\ud55c\uad6d\uc528\ud2f0\uc740\ud589(\ud55c\ubbf8\uc740\ud589)', '\ud55c\uad6d\uc528\ud2f0\uc740\ud589 (\ud55c\ubbf8\uc740\ud589)')], default='', max_length=120, null=True)),
                ('timestamp', models.DateTimeField(auto_now_add=True)),
                ('seller', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to='accounts.Seller')),
            ],
        ),
        migrations.CreateModel(
            name='Withdrawal',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('money', models.PositiveIntegerField(default=0)),
                ('status', models.CharField(choices=[('request', '\ucd9c\uae08\uc694\uccad'), ('completed', '\ucd9c\uae08\uc644\ub8cc'), ('rejected', '\ucd9c\uae08\uac70\uc808')], max_length=15, null=True)),
                ('reject_reason', models.CharField(blank=True, max_length=255, null=True)),
                ('created', models.DateTimeField(auto_now_add=True)),
                ('timestamp', models.DateTimeField(auto_now=True)),
                ('seller', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='accounts.Seller')),
            ],
        ),
    ]
Esempio n. 18
0
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')),
                ('name', models.CharField(max_length=50)),
                ('email', models.EmailField(max_length=254, unique=True)),
                ('phone_num', models.CharField(max_length=15, unique=True)),
                ('address', models.TextField(blank=True, max_length=500)),
                ('last_known_latitude',
                 models.DecimalField(decimal_places=6,
                                     max_digits=9,
                                     null=True,
                                     verbose_name='latitude')),
                ('last_known_longitude',
                 models.DecimalField(decimal_places=6,
                                     max_digits=9,
                                     null=True,
                                     verbose_name='longitude')),
                ('is_safe', models.NullBooleanField()),
                ('is_superuser', models.BooleanField(default=False)),
            ],
            options={
                'abstract': False,
            },
            managers=[
                ('objects', accounts.models.UserManager()),
            ],
        ),
        migrations.CreateModel(
            name='Watch',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('watchee',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   related_name='watchee',
                                   to=settings.AUTH_USER_MODEL)),
                ('watcher',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   related_name='watcher',
                                   to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.AddField(
            model_name='user',
            name='watching',
            field=models.ManyToManyField(blank=True,
                                         related_name='watchers',
                                         through='accounts.Watch',
                                         to=settings.AUTH_USER_MODEL),
        ),
    ]
Esempio n. 19
0
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')),
                ('username',
                 models.CharField(max_length=255,
                                  null=True,
                                  verbose_name='Nick')),
                ('steamid64',
                 models.CharField(max_length=255,
                                  unique=True,
                                  verbose_name='Steamid 64')),
                ('steamid32',
                 models.CharField(blank=True,
                                  max_length=255,
                                  null=True,
                                  unique=True,
                                  verbose_name='Steamid 32')),
                ('email',
                 models.CharField(blank=True,
                                  max_length=255,
                                  null=True,
                                  unique=True,
                                  verbose_name='E-mail')),
                ('avatar',
                 models.CharField(blank=True,
                                  max_length=255,
                                  null=True,
                                  verbose_name='Avatar')),
                ('avatar_medium',
                 models.CharField(blank=True,
                                  max_length=255,
                                  null=True,
                                  verbose_name='Avatar Medium')),
                ('avatar_full',
                 models.CharField(blank=True,
                                  max_length=255,
                                  null=True,
                                  verbose_name='Avatar Full')),
                ('date_joined',
                 models.DateTimeField(default=django.utils.timezone.now,
                                      verbose_name='Data dołączenia')),
                ('cash',
                 models.DecimalField(decimal_places=2,
                                     default=0,
                                     max_digits=19,
                                     verbose_name='PieniÄ…dze')),
                ('is_active',
                 models.BooleanField(default=True,
                                     verbose_name='Jest aktywny?')),
                ('is_staff',
                 models.BooleanField(default=False,
                                     verbose_name='Jest adminem?')),
                ('is_superuser',
                 models.BooleanField(
                     default=False,
                     help_text=
                     'Designates that this user has all permissions without explicitly assigning them.',
                     verbose_name='superuser status')),
            ],
            options={
                'verbose_name': 'uĹĽytkownik',
                'verbose_name_plural': 'uĹĽytkownicy',
            },
        ),
        migrations.CreateModel(
            name='PaymentHistory',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('change', models.CharField(max_length=50, null=True)),
                ('description', models.CharField(max_length=50, null=True)),
                ('date', models.DateTimeField(auto_now_add=True)),
                ('type',
                 models.CharField(choices=[('USER', 'Przekaz dla uĹĽytkownika'),
                                           ('SHOP', 'Sklep'), ('SMS', 'SMS'),
                                           ('CODE', 'Kod promocyjny'),
                                           ('TRANSFER', 'Przelew')],
                                  default='SHOP',
                                  max_length=50)),
                ('target',
                 models.ForeignKey(blank=True,
                                   null=True,
                                   on_delete=django.db.models.deletion.CASCADE,
                                   related_name='sender',
                                   to=settings.AUTH_USER_MODEL)),
                ('user',
                 models.ForeignKey(null=True,
                                   on_delete=django.db.models.deletion.CASCADE,
                                   related_name='user',
                                   to=settings.AUTH_USER_MODEL)),
            ],
            options={
                'verbose_name': 'PaymentHistory',
                'verbose_name_plural': 'PaymentHistorys',
            },
        ),
        migrations.CreateModel(
            name='MyGroup',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('name',
                 models.CharField(max_length=80,
                                  unique=True,
                                  verbose_name='name')),
                ('login_format',
                 models.CharField(blank=True, max_length=512, null=True)),
                ('permissions',
                 models.ManyToManyField(blank=True,
                                        to='auth.Permission',
                                        verbose_name='permissions')),
            ],
            options={
                'verbose_name': 'grupa',
                'verbose_name_plural': 'grupy',
            },
            managers=[
                ('objects', accounts.models.GroupManager()),
            ],
        ),
        migrations.AddField(
            model_name='user',
            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='accounts.MyGroup',
                verbose_name='groups'),
        ),
        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'),
        ),
    ]
Esempio n. 20
0
class Migration(migrations.Migration):

    initial = True

    dependencies = []

    operations = [
        migrations.CreateModel(
            name='Cayxanh',
            fields=[
                ('objectid',
                 models.IntegerField(db_column='OBJECTID',
                                     primary_key=True,
                                     serialize=False)),
                ('sohieu',
                 models.CharField(blank=True,
                                  db_column='SoHieu',
                                  max_length=50,
                                  null=True)),
                ('matencx', models.CharField(db_column='MaTenCX',
                                             max_length=50)),
                ('kinhdo',
                 models.DecimalField(blank=True,
                                     db_column='KinhDo',
                                     decimal_places=10,
                                     max_digits=31,
                                     null=True)),
                ('vido',
                 models.DecimalField(blank=True,
                                     db_column='ViDo',
                                     decimal_places=10,
                                     max_digits=31,
                                     null=True)),
                ('duongkinh',
                 models.DecimalField(blank=True,
                                     db_column='DuongKinh',
                                     decimal_places=10,
                                     max_digits=31,
                                     null=True)),
                ('chieucao',
                 models.DecimalField(blank=True,
                                     db_column='ChieuCao',
                                     decimal_places=10,
                                     max_digits=31,
                                     null=True)),
                ('dorongtan',
                 models.DecimalField(blank=True,
                                     db_column='DoRongTan',
                                     decimal_places=10,
                                     max_digits=31,
                                     null=True)),
                ('ngaytrong',
                 models.DateTimeField(blank=True,
                                      db_column='NgayTrong',
                                      null=True)),
                ('ngaycapnhat',
                 models.DateTimeField(blank=True,
                                      db_column='NgayCapNhat',
                                      null=True)),
                ('thuoctinh',
                 models.CharField(blank=True,
                                  db_column='ThuocTinh',
                                  max_length=50,
                                  null=True)),
                ('ghichu',
                 models.CharField(blank=True,
                                  db_column='GhiChu',
                                  max_length=50,
                                  null=True)),
                ('matinhtrang',
                 models.IntegerField(blank=True,
                                     db_column='MaTinhTrang',
                                     null=True)),
                ('tuyenduong',
                 models.CharField(blank=True,
                                  db_column='TuyenDuong',
                                  max_length=20,
                                  null=True)),
                ('shape',
                 models.TextField(blank=True, db_column='Shape', null=True)),
                ('nvks_x',
                 models.DecimalField(blank=True,
                                     db_column='NVKS_X',
                                     decimal_places=8,
                                     max_digits=38,
                                     null=True)),
                ('nvks_y',
                 models.DecimalField(blank=True,
                                     db_column='NVKS_Y',
                                     decimal_places=8,
                                     max_digits=38,
                                     null=True)),
                ('nguoicapnhat',
                 models.CharField(blank=True,
                                  db_column='NguoiCapNhat',
                                  max_length=200,
                                  null=True)),
            ],
            options={
                'db_table': 'CAYXANH',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='Hinhanhcayxanh',
            fields=[
                ('maanh', models.AutoField(primary_key=True, serialize=False)),
                ('objectid', models.IntegerField(blank=True, null=True)),
                ('duonngdanhinhanh',
                 models.CharField(blank=True, max_length=100, null=True)),
                ('mota', models.TextField(blank=True, null=True)),
            ],
            options={
                'db_table': 'HINHANHCAYXANH',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='Hinhthucthicong',
            fields=[
                ('maloai',
                 models.CharField(db_column='MaLoai',
                                  max_length=10,
                                  primary_key=True,
                                  serialize=False)),
                ('tenloai',
                 models.CharField(blank=True,
                                  db_column='TenLoai',
                                  max_length=50,
                                  null=True)),
            ],
            options={
                'db_table': 'HinhThucThiCong',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='Phuongxa',
            fields=[
                ('objectid',
                 models.IntegerField(db_column='OBJECTID',
                                     primary_key=True,
                                     serialize=False)),
                ('tenphuongxa',
                 models.CharField(blank=True,
                                  db_column='TenPhuongXa',
                                  max_length=254,
                                  null=True)),
                ('maquanhuyen',
                 models.CharField(blank=True,
                                  db_column='MaQuanHuyen',
                                  max_length=20,
                                  null=True)),
                ('maphuongxa',
                 models.CharField(blank=True,
                                  db_column='MaPhuongXa',
                                  max_length=20,
                                  null=True)),
                ('loai',
                 models.CharField(blank=True,
                                  db_column='Loai',
                                  max_length=20,
                                  null=True)),
                ('tenkhongdau',
                 models.CharField(blank=True,
                                  db_column='TenKhongDau',
                                  max_length=50,
                                  null=True)),
                ('shape',
                 models.TextField(blank=True, db_column='Shape', null=True)),
            ],
            options={
                'db_table': 'PHUONGXA',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='Quanhuyen',
            fields=[
                ('objectid',
                 models.IntegerField(db_column='OBJECTID',
                                     primary_key=True,
                                     serialize=False)),
                ('maquanhuyen',
                 models.CharField(blank=True,
                                  db_column='MaQuanHuyen',
                                  max_length=20,
                                  null=True)),
                ('tenquanhuyen',
                 models.CharField(blank=True,
                                  db_column='TenQuanHuyen',
                                  max_length=20,
                                  null=True)),
                ('matinh',
                 models.CharField(blank=True,
                                  db_column='MaTinh',
                                  max_length=12,
                                  null=True)),
                ('loai',
                 models.CharField(blank=True,
                                  db_column='Loai',
                                  max_length=20,
                                  null=True)),
                ('tenkhongdau',
                 models.CharField(blank=True,
                                  db_column='TenKhongDau',
                                  max_length=20,
                                  null=True)),
                ('shape',
                 models.TextField(blank=True, db_column='Shape', null=True)),
            ],
            options={
                'db_table': 'QUANHUYEN',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='Tencx',
            fields=[
                ('matencx',
                 models.CharField(db_column='MaTenCX',
                                  max_length=10,
                                  primary_key=True,
                                  serialize=False)),
                ('tencx',
                 models.CharField(blank=True,
                                  db_column='TenCX',
                                  max_length=50,
                                  null=True)),
            ],
            options={
                'db_table': 'TenCX',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='Timduong',
            fields=[
                ('objectid',
                 models.IntegerField(db_column='OBJECTID',
                                     primary_key=True,
                                     serialize=False)),
                ('maduong',
                 models.CharField(blank=True,
                                  db_column='MaDuong',
                                  max_length=50,
                                  null=True)),
                ('tenduong',
                 models.CharField(blank=True,
                                  db_column='TenDuong',
                                  max_length=500,
                                  null=True)),
                ('shape',
                 models.TextField(blank=True, db_column='SHAPE', null=True)),
            ],
            options={
                'db_table': 'TIMDUONG',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='Trangthaicx',
            fields=[
                ('matinhtrang',
                 models.IntegerField(db_column='MaTinhTrang',
                                     primary_key=True,
                                     serialize=False)),
                ('tinhtrang',
                 models.CharField(blank=True,
                                  db_column='TinhTrang',
                                  max_length=255,
                                  null=True)),
                ('ghichu',
                 models.TextField(blank=True, db_column='GhiChu', null=True)),
            ],
            options={
                'db_table': 'TrangThaiCX',
                'managed': False,
            },
        ),
        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')),
                ('username',
                 models.CharField(max_length=300,
                                  unique=True,
                                  validators=[
                                      django.core.validators.RegexValidator(
                                          code='invalid_username',
                                          message='Tên biến không hợp lệ',
                                          regex='^[a-zA-Z0-9.+-]*$')
                                  ])),
                ('email',
                 models.EmailField(max_length=255,
                                   unique=True,
                                   verbose_name='email address')),
                ('is_admin', models.BooleanField(default=False)),
                ('is_manager', models.BooleanField(default=False)),
                ('is_employee', models.BooleanField(default=False)),
                ('is_staff', models.BooleanField(default=False)),
                ('is_active', models.BooleanField(default=True)),
                ('gioitinh', models.CharField(max_length=10, null=True)),
                ('ngaysinh', models.DateField(null=True)),
                ('diachi', models.CharField(max_length=300, null=True)),
                ('noti_token', models.CharField(max_length=300, null=True)),
                ('firstname', models.CharField(max_length=255, null=True)),
                ('lastname', models.CharField(max_length=255, null=True)),
                ('middlename', models.CharField(max_length=255, null=True)),
                ('last_login', models.DateTimeField(blank=True, null=True)),
                ('duongdanavatar',
                 models.FileField(blank=True, null=True, upload_to='avatar')),
                ('phone', models.CharField(max_length=10, null=True)),
            ],
            options={
                'abstract': False,
            },
            managers=[
                ('objects', accounts.models.MyUserManager()),
            ],
        ),
        migrations.CreateModel(
            name='ChiTietThiCong',
            fields=[
                ('ngaycapnhat',
                 models.DateField(auto_created=True, default='2019-11-11')),
                ('macttc',
                 models.UUIDField(default=uuid.uuid4,
                                  editable=False,
                                  primary_key=True,
                                  serialize=False)),
                ('mota', models.CharField(blank=True,
                                          max_length=255,
                                          null=True)),
            ],
        ),
        migrations.CreateModel(
            name='LichThiCong',
            fields=[
                ('malichthicong',
                 models.AutoField(primary_key=True, serialize=False)),
                ('tenlichthicong', models.CharField(max_length=100)),
                ('NgayBD', models.DateField()),
                ('NgayHoanThanh', models.DateField()),
                ('ghichu',
                 models.CharField(blank=True, max_length=255, null=True)),
                ('hinhthucthicong',
                 models.ForeignKey(
                     blank=True,
                     null=True,
                     on_delete=django.db.models.deletion.DO_NOTHING,
                     related_name='lichthicong',
                     to='accounts.Hinhthucthicong')),
            ],
        ),
        migrations.CreateModel(
            name='NhomThiCong',
            fields=[
                ('manhomthicong',
                 models.AutoField(primary_key=True, serialize=False)),
                ('tennhomthicong', models.CharField(max_length=100)),
            ],
        ),
        migrations.CreateModel(
            name='Trangthaitc',
            fields=[
                ('matrangthaitc',
                 models.IntegerField(primary_key=True, serialize=False)),
                ('trangthaitc', models.CharField(max_length=100)),
                ('ghichu',
                 models.CharField(blank=True, max_length=255, null=True)),
            ],
        ),
        migrations.AddField(
            model_name='lichthicong',
            name='trangthaitc',
            field=models.ForeignKey(
                blank=True,
                null=True,
                on_delete=django.db.models.deletion.DO_NOTHING,
                related_name='trangthailichthicong',
                to='accounts.Trangthaitc'),
        ),
        migrations.AddField(
            model_name='chitietthicong',
            name='lichthicong',
            field=models.ForeignKey(
                on_delete=django.db.models.deletion.CASCADE,
                related_name='chitietlichthicong',
                to='accounts.LichThiCong'),
        ),
        migrations.AddField(
            model_name='chitietthicong',
            name='nhomthiconglich',
            field=models.ForeignKey(
                blank=True,
                null=True,
                on_delete=django.db.models.deletion.DO_NOTHING,
                related_name='nhomthiconglich',
                to='accounts.NhomThiCong'),
        ),
        migrations.AddField(
            model_name='chitietthicong',
            name='objectidcx',
            field=models.ForeignKey(
                blank=True,
                null=True,
                on_delete=django.db.models.deletion.DO_NOTHING,
                related_name='ob_cayxanh',
                to='accounts.Cayxanh'),
        ),
        migrations.AddField(
            model_name='myuser',
            name='nhomthicong',
            field=models.ForeignKey(
                blank=True,
                null=True,
                on_delete=django.db.models.deletion.DO_NOTHING,
                related_name='thanhviennhomthicong',
                to='accounts.NhomThiCong'),
        ),
    ]
Esempio n. 21
0
class Migration(migrations.Migration):

    dependencies = [
        ('locations', '0002_auto_20190506_1401'),
        ('accounts', '0001_initial'),
    ]

    operations = [
        migrations.AddField(
            model_name='customuser',
            name='is_host',
            field=models.BooleanField(default=False, verbose_name='host'),
        ),
        migrations.AddField(
            model_name='customuser',
            name='is_regional_manager',
            field=models.BooleanField(default=False, verbose_name='RM'),
        ),
        migrations.AddField(
            model_name='customuser',
            name='is_venue_manager',
            field=models.BooleanField(default=False, verbose_name='VM'),
        ),
        migrations.AddField(
            model_name='customuser',
            name='mailing_additional_address',
            field=models.CharField(blank=True, max_length=100),
        ),
        migrations.AddField(
            model_name='customuser',
            name='mailing_address',
            field=models.CharField(blank=True, max_length=200),
        ),
        migrations.AddField(
            model_name='customuser',
            name='mailing_city',
            field=models.ForeignKey(
                blank=True,
                null=True,
                on_delete=django.db.models.deletion.SET_NULL,
                related_name='users',
                to='locations.City'),
        ),
        migrations.AddField(
            model_name='customuser',
            name='mailing_state',
            field=models.ForeignKey(
                blank=True,
                null=True,
                on_delete=django.db.models.deletion.SET_NULL,
                related_name='users',
                to='locations.State'),
        ),
        migrations.AddField(
            model_name='customuser',
            name='mailing_zip',
            field=models.ForeignKey(
                blank=True,
                null=True,
                on_delete=django.db.models.deletion.SET_NULL,
                related_name='users',
                to='locations.Zip'),
        ),
        migrations.AddField(
            model_name='customuser',
            name='mobile_number',
            field=phone_field.models.PhoneField(blank=True, max_length=12),
        ),
        migrations.AddField(
            model_name='customuser',
            name='profile_image',
            field=models.ImageField(blank=True,
                                    storage=accounts.models.OverwriteStorage(),
                                    upload_to='profile_images'),
        ),
        migrations.AddField(
            model_name='customuser',
            name='secondary_email',
            field=models.EmailField(blank=True, max_length=200),
        ),
        migrations.AddField(
            model_name='customuser',
            name='work_number',
            field=phone_field.models.PhoneField(blank=True, max_length=12),
        ),
        migrations.CreateModel(
            name='VenueManagerProfile',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('best_reached_by',
                 models.CharField(blank=True,
                                  choices=[('Cell', 'Cellphone'),
                                           ('Venue', 'Venue phone'),
                                           ('Email', 'Email')],
                                  max_length=5)),
                ('user',
                 models.OneToOneField(
                     blank=True,
                     on_delete=django.db.models.deletion.CASCADE,
                     related_name='venue_manager_profile',
                     to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.CreateModel(
            name='RegionalManagerProfile',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('weekly_pay',
                 models.DecimalField(blank=True,
                                     decimal_places=2,
                                     max_digits=5,
                                     null=True)),
                ('region',
                 models.ForeignKey(
                     blank=True,
                     null=True,
                     on_delete=django.db.models.deletion.SET_NULL,
                     related_name='regional_manage_profiles',
                     to='locations.Region')),
                ('user',
                 models.OneToOneField(
                     blank=True,
                     on_delete=django.db.models.deletion.CASCADE,
                     related_name='regional_manager_profile',
                     to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.CreateModel(
            name='HostProfile',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('bio', models.TextField(blank=True)),
                ('has_event',
                 models.BooleanField(default=True, verbose_name='has event')),
                ('residential_address',
                 models.CharField(blank=True, max_length=100)),
                ('base_rate',
                 models.DecimalField(blank=True,
                                     decimal_places=2,
                                     default=50,
                                     max_digits=5,
                                     null=True)),
                ('base_teams',
                 models.DecimalField(blank=True,
                                     decimal_places=2,
                                     default=5,
                                     max_digits=5,
                                     null=True)),
                ('incremental_rate',
                 models.DecimalField(blank=True,
                                     decimal_places=2,
                                     default=2,
                                     max_digits=5,
                                     null=True)),
                ('incremental_teams',
                 models.DecimalField(blank=True,
                                     decimal_places=2,
                                     default=1,
                                     max_digits=5,
                                     null=True)),
                ('residential_city',
                 models.ForeignKey(
                     blank=True,
                     null=True,
                     on_delete=django.db.models.deletion.SET_NULL,
                     related_name='host_profiles',
                     to='locations.City')),
                ('user',
                 models.OneToOneField(
                     blank=True,
                     on_delete=django.db.models.deletion.CASCADE,
                     related_name='host_profile',
                     to=settings.AUTH_USER_MODEL)),
            ],
        ),
    ]
Esempio n. 22
0
class Migration(migrations.Migration):

    initial = True

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
        ('groceries', '0005_grocery_grocery_wallet'),
        ('merchants', '0003_merchant_merchant_wallet'),
    ]

    operations = [
        migrations.CreateModel(
            name='MerchantTicket',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('ticket_amount', models.DecimalField(decimal_places=2, default=0.0, max_digits=10)),
                ('adult_qty', models.IntegerField()),
                ('child_qty', models.IntegerField()),
                ('date_of_purchase', models.DateTimeField(default=accounts.models.get_default_my_date)),
                ('message', fernet_fields.fields.EncryptedCharField(blank=True, max_length=50, null=True)),
                ('ticket_id', models.CharField(blank=True, max_length=30)),
                ('merchant_purchased', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='merchants.Merchant')),
            ],
        ),
        migrations.CreateModel(
            name='NewsPort',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('news_title_slug', models.SlugField()),
                ('news_editor', fernet_fields.fields.EncryptedCharField(max_length=50)),
                ('news_title', fernet_fields.fields.EncryptedCharField(max_length=60)),
                ('description', fernet_fields.fields.EncryptedCharField(max_length=300)),
                ('newspic', models.ImageField(blank=True, null=True, upload_to='newsimgs/')),
                ('news_source', fernet_fields.fields.EncryptedCharField(max_length=50)),
                ('news_date', models.DateTimeField(default=accounts.models.get_default_my_date)),
                ('news_video_file', models.FileField(null=True, upload_to='videos/')),
            ],
        ),
        migrations.CreateModel(
            name='Positions',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('lattitude', models.CharField(default='1', max_length=20)),
                ('longitude', models.CharField(default='1', max_length=20)),
                ('latt_two', models.CharField(default='1', max_length=20)),
                ('long_two', models.CharField(default='1', max_length=20)),
                ('latt_three', models.CharField(default='1', max_length=20)),
                ('long_three', models.CharField(default='1', max_length=20)),
                ('latt_four', models.CharField(default='1', max_length=20)),
                ('long_four', models.CharField(default='1', max_length=20)),
                ('latt_five', models.CharField(default='1', max_length=20)),
                ('long_five', models.CharField(default='1', max_length=20)),
            ],
            options={
                'verbose_name_plural': 'Positions',
            },
        ),
        migrations.CreateModel(
            name='Profile',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('first_name', fernet_fields.fields.EncryptedCharField(max_length=50)),
                ('last_name', fernet_fields.fields.EncryptedCharField(max_length=50)),
                ('email', fernet_fields.fields.EncryptedEmailField(max_length=254)),
                ('password', fernet_fields.fields.EncryptedCharField(max_length=50)),
                ('mobile_no', models.CharField(max_length=20, unique=True)),
                ('address_line_1', fernet_fields.fields.EncryptedCharField(max_length=50)),
                ('address_line_2', fernet_fields.fields.EncryptedCharField(blank=True, max_length=50)),
                ('postal_code', fernet_fields.fields.EncryptedCharField(max_length=7)),
                ('city', fernet_fields.fields.EncryptedCharField(max_length=20)),
                ('country', fernet_fields.fields.EncryptedCharField(max_length=20)),
                ('image', models.ImageField(blank=True, upload_to='images/')),
                ('referral_contact', models.CharField(blank=True, max_length=15)),
                ('promo_coupon', models.CharField(blank=True, max_length=100)),
                ('ic', fernet_fields.fields.EncryptedCharField(blank=True, max_length=50, null=True)),
                ('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.CreateModel(
            name='PurchasedCommodity',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('commodityitemcode', models.CharField(max_length=50)),
                ('commodityitemname', fernet_fields.fields.EncryptedCharField(max_length=100)),
            ],
            options={
                'verbose_name_plural': 'Purchased Commodities',
            },
        ),
        migrations.CreateModel(
            name='PurchasedContent',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('hundredgramqty', fernet_fields.fields.EncryptedIntegerField(default=0)),
                ('hundredgramtotprice', models.DecimalField(decimal_places=2, default=0.0, max_digits=10)),
                ('twohundredgramqty', fernet_fields.fields.EncryptedIntegerField(default=0)),
                ('twohundredgramtotprice', models.DecimalField(decimal_places=2, default=0.0, max_digits=10)),
                ('fivehundredgramqty', fernet_fields.fields.EncryptedIntegerField(default=0)),
                ('fivehundredgramtotprice', models.DecimalField(decimal_places=2, default=0.0, max_digits=10)),
                ('onekgqty', fernet_fields.fields.EncryptedIntegerField(default=0)),
                ('onekgtotprice', models.DecimalField(decimal_places=2, default=0.0, max_digits=10)),
                ('fivekgqty', fernet_fields.fields.EncryptedIntegerField(default=0)),
                ('fivekgtotprice', models.DecimalField(decimal_places=2, default=0.0, max_digits=10)),
                ('twentyfivekgqty', fernet_fields.fields.EncryptedIntegerField(default=0)),
                ('twentyfivekgtotprice', models.DecimalField(decimal_places=2, default=0.0, max_digits=10)),
                ('fiftykgqty', fernet_fields.fields.EncryptedIntegerField(default=0)),
                ('fiftykgtotprice', models.DecimalField(decimal_places=2, default=0.0, max_digits=10)),
                ('totalcommamt', models.DecimalField(decimal_places=2, default=0.0, max_digits=10)),
                ('total_packets', fernet_fields.fields.EncryptedIntegerField(default=0)),
                ('purchased_item', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='purch_content', to='accounts.PurchasedCommodity')),
            ],
            options={
                'verbose_name_plural': 'Purchased Contents',
            },
        ),
        migrations.CreateModel(
            name='PurchasedGrocery',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('ticket_id', models.CharField(blank=True, max_length=30)),
                ('transaction_id', models.CharField(blank=True, max_length=30)),
                ('date_of_purchase', models.DateTimeField(default=accounts.models.get_default_my_date)),
                ('grocery', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='purchased_groc', to='groceries.Grocery')),
                ('profile', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='purchased_prof', to='accounts.Profile')),
            ],
            options={
                'verbose_name_plural': 'Purchased Groceries',
            },
        ),
        migrations.CreateModel(
            name='PurchasedTicket',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('ticket_amount', models.DecimalField(decimal_places=2, default=0.0, max_digits=10)),
                ('adult_qty', models.IntegerField()),
                ('child_qty', models.IntegerField()),
                ('date_of_purchase', models.DateTimeField(default=accounts.models.get_default_my_date)),
                ('message', fernet_fields.fields.EncryptedCharField(blank=True, max_length=50, null=True)),
                ('ticket_id', models.CharField(blank=True, max_length=30)),
                ('merchant_purchased', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='merchants.Merchant')),
                ('user_profile', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='userprofile', to='accounts.Profile')),
            ],
        ),
        migrations.CreateModel(
            name='Transaction',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('transaction_amount', models.DecimalField(blank=True, decimal_places=2, default=0.0, max_digits=10)),
                ('wallet_balance_sent', models.DecimalField(decimal_places=2, default=0.0, max_digits=10)),
                ('wallet_balance_rec', models.DecimalField(decimal_places=2, default=0.0, max_digits=10)),
                ('date_of_transaction', models.DateTimeField(default=accounts.models.get_default_my_date)),
                ('message', fernet_fields.fields.EncryptedCharField(blank=True, max_length=50, null=True)),
                ('transaction_id', models.CharField(blank=True, max_length=30)),
                ('receiver', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='receiver', to='accounts.Profile')),
                ('sender', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='sender', to='accounts.Profile')),
            ],
        ),
        migrations.CreateModel(
            name='Wallet',
            fields=[
                ('wallet_id', models.AutoField(primary_key=True, serialize=False, unique=True)),
                ('wallet_bal', models.DecimalField(blank=True, decimal_places=2, default=0.0, max_digits=10)),
                ('total_trans_sent', models.DecimalField(blank=True, decimal_places=2, default=0.0, max_digits=10)),
                ('total_trans_rec', models.DecimalField(blank=True, decimal_places=2, default=0.0, max_digits=10)),
                ('cash_balance', models.DecimalField(blank=True, decimal_places=2, default=0.0, max_digits=10)),
                ('savings', models.DecimalField(blank=True, decimal_places=2, default=0.0, max_digits=10)),
                ('loan_amt', models.DecimalField(blank=True, decimal_places=2, default=0.0, max_digits=10)),
                ('recycle_wallet', models.DecimalField(blank=True, decimal_places=2, default=0.0, max_digits=10)),
                ('incentive_wallet', models.DecimalField(blank=True, decimal_places=2, default=0.0, max_digits=10)),
                ('crowd_wallet', models.DecimalField(blank=True, decimal_places=2, default=0.0, max_digits=10)),
                ('wallet_cash_req', models.DecimalField(blank=True, decimal_places=2, default=0.0, max_digits=10)),
                ('wallet_cash_desc', fernet_fields.fields.EncryptedCharField(blank=True, max_length=100)),
                ('wallet_img', models.ImageField(blank=True, null=True, upload_to='receiptcashimgs/')),
                ('wallet_loan_req', models.DecimalField(blank=True, decimal_places=2, default=0.0, max_digits=10)),
                ('wallet_loan_desc', fernet_fields.fields.EncryptedCharField(blank=True, max_length=100)),
                ('loan_img', models.ImageField(blank=True, null=True, upload_to='receiptloanimgs/')),
                ('wallet_savings_req', models.DecimalField(blank=True, decimal_places=2, default=0.0, max_digits=10)),
                ('wallet_savings_desc', fernet_fields.fields.EncryptedCharField(blank=True, max_length=100)),
                ('savings_img', models.ImageField(blank=True, null=True, upload_to='receiptsavingsimgs/')),
                ('wallet_crowd_req', models.DecimalField(blank=True, decimal_places=2, default=0.0, max_digits=10)),
                ('wallet_crowd_desc', fernet_fields.fields.EncryptedCharField(blank=True, max_length=100)),
                ('crowd_img', models.ImageField(blank=True, null=True, upload_to='receiptsavingsimgs/')),
                ('profile', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to='accounts.Profile')),
            ],
            options={
                'ordering': ('wallet_cash_req', 'wallet_loan_req', 'wallet_savings_req', 'wallet_crowd_req'),
            },
        ),
        migrations.AddField(
            model_name='purchasedcommodity',
            name='purchased_groc',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='purch_groc_id', to='accounts.PurchasedGrocery'),
        ),
        migrations.AddField(
            model_name='positions',
            name='profile',
            field=models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to='accounts.Profile'),
        ),
        migrations.AddField(
            model_name='merchantticket',
            name='user_profile',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='merchantuserprofile', to='accounts.Profile'),
        ),
    ]
Esempio n. 23
0
class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('tags', '0001_initial'),
    ]

    operations = [
        migrations.CreateModel(
            name='Account',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('slug', models.SlugField(blank=True, null=True, unique=True)),
                ('usd_price',
                 models.DecimalField(decimal_places=2, max_digits=8)),
                ('device',
                 models.CharField(choices=[('A', 'Android'), ('I', 'iOS'),
                                           ('B', 'Android Or iOS')],
                                  max_length=7)),
                ('sold', models.BooleanField(default=False)),
                ('description', models.CharField(max_length=300)),
                ('img_med',
                 models.ImageField(
                     blank=True,
                     null=True,
                     upload_to=accounts.models.main_image_upload_path)),
                ('img_sml',
                 models.ImageField(
                     blank=True,
                     null=True,
                     upload_to=accounts.models.main_image_upload_path)),
                ('supercell_account_email', models.EmailField(max_length=255)),
                ('supercell_email_password', models.CharField(max_length=255)),
                ('name', models.CharField(max_length=50)),
                ('name_change', models.BooleanField(default=True)),
                ('king_tower', models.SmallIntegerField()),
                ('gold', models.IntegerField()),
                ('gems', models.IntegerField()),
                ('arena',
                 models.CharField(choices=[('GS', 'Goblin Stadium'),
                                           ('BP', 'Bone Pit'),
                                           ('BB', 'Barbarian Bowl'),
                                           ('PP', "P.E.K.K.A's Playhouse"),
                                           ('SV', 'Spell Valley'),
                                           ('BW', "Builder's Workshop"),
                                           ('RA', 'Royal Arena'),
                                           ('FP', 'Frozen Peak'),
                                           ('JA', 'Jungle Arena'),
                                           ('HM', 'Hog Mountain'),
                                           ('EV', 'Electro Valley'),
                                           ('LA', 'Legendary Arena'),
                                           ('C1', 'Challenger 1'),
                                           ('C2', 'Challenger 2'),
                                           ('C3', 'Challenger 3'),
                                           ('M1', 'Master 1'),
                                           ('M2', 'Master 2'),
                                           ('M3', 'Master 3'),
                                           ('C', 'Champion'),
                                           ('GC', 'Grand Champion'),
                                           ('UC', 'Ultimate Champion')],
                                  max_length=2)),
                ('trophies', models.SmallIntegerField()),
                ('wins', models.IntegerField()),
                ('three_crown_wins', models.IntegerField()),
                ('highest_trophies', models.IntegerField()),
                ('cards_found', models.SmallIntegerField()),
                ('total_donations', models.IntegerField()),
                ('tournament_matches_played', models.SmallIntegerField()),
                ('tournament_cards_won', models.IntegerField()),
                ('clan_name', models.CharField(max_length=50)),
                ('clan_member_rank',
                 models.CharField(choices=[('M', 'Member'), ('E', 'Elder'),
                                           ('C', 'Co-Leader'),
                                           ('L', 'Leader')],
                                  max_length=2)),
                ('clan_trophies', models.SmallIntegerField()),
                ('clan_war_day_wins', models.SmallIntegerField()),
                ('clan_war_cards_won', models.IntegerField()),
                ('challenge_max_wins', models.SmallIntegerField()),
                ('challenge_cards_won', models.IntegerField()),
            ],
        ),
        migrations.CreateModel(
            name='AccountImage',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('image',
                 models.ImageField(
                     blank=True,
                     null=True,
                     upload_to=accounts.models.image_upload_path)),
                ('account',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='accounts.Account')),
            ],
        ),
        migrations.CreateModel(
            name='DeckCard',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('name',
                 models.CharField(choices=[
                     ('W', 'Witch'), ('SG', 'Spear Goblins'), ('BO', 'Bomber'),
                     ('M', 'Musketeer'), ('TM', 'Three Musketeers'),
                     ('G', 'Giant'), ('SA', 'Skeleton Army'), ('K', 'Knight'),
                     ('A', 'Archers'), ('G', 'Goblins'), ('V', 'Valkyrie'),
                     ('MP', 'Mini P.E.K.K.A'), ('BD', 'Baby Dragon'),
                     ('P', 'Prince'), ('MI', 'Minions'), ('S', 'Skeletons'),
                     ('B', 'Balloon'), ('GS', 'Giant Skeleton'),
                     ('BA', 'Barbarians'), ('MH', 'Minion Horde'),
                     ('HR', 'Hog Rider'), ('PK', 'P.E.K.K.A'),
                     ('L', 'Lava Hound'), ('F', 'Fire Spirits'),
                     ('WI', 'Wizard'), ('RR', 'Royale Recruits'),
                     ('GO', 'Golem'), ('MK', 'Mega Knight'),
                     ('RG', 'Royale Giant'), ('EB', 'Elite Barbarians'),
                     ('SP', 'Sparky'), ('BW', 'Bowler'), ('EX', 'Executioner'),
                     ('CC', 'Cannon Cart'), ('RH', 'Royal Hogs'),
                     ('DP', 'Dark Prince'), ('H', 'Hunter'),
                     ('LU', 'Lumberjack'), ('RA', 'Rascals'),
                     ('ID', 'Inferno Dragon'), ('EW', 'Electro Wizard'),
                     ('NW', 'Night Witch'), ('BR', 'Battle Ram'),
                     ('FM', 'Flying Machine'), ('Z', 'Zappies'),
                     ('MA', 'Magic Archer'), ('SB', 'Skeleton Barrel'),
                     ('MM', 'Mega Minion'), ('GU', 'Guards'),
                     ('GR', 'Royale Ghost'), ('PR', 'Princess'),
                     ('IW', 'Ice Wizard'), ('BN', 'Bandit'), ('MN', 'Miner'),
                     ('GG', 'Goblin Gang'), ('DG', 'Dart Goblin'),
                     ('IG', 'Ice Golem'), ('B', 'Bats'), ('IS', 'Ice Spirit'),
                     ('BH', 'Barbarian Hut'), ('XB', 'X-Bow'),
                     ('EC', 'Elixir Collector'), ('GH', 'Goblin Hut'),
                     ('IT', 'Inferno Tower'), ('MT', 'Mortar'), ('T', 'Tesla'),
                     ('BT', 'Bomb Tower'), ('FU', 'Furnace'), ('C', 'Cannon'),
                     ('TB', 'Tombstone'), ('RE', 'Rage'), ('ZA', 'Zap'),
                     ('AW', 'Arrows'), ('FI', 'Fireball'), ('LI', 'Lightning'),
                     ('RO', 'Rocket'), ('FR', 'Freeze'), ('PO', 'Poison'),
                     ('GY', 'Graveyard'), ('GB', 'Goblin Barrel'),
                     ('TN', 'Tornado'), ('CL', 'Clone'),
                     ('BB', 'Barbarian Barrel'), ('HE', 'Heal'),
                     ('GN', 'Giant Snowball'), ('TL', 'The Log'),
                     ('MR', 'Mirror')
                 ],
                                  max_length=2)),
                ('level', models.SmallIntegerField()),
            ],
        ),
        migrations.AddField(
            model_name='account',
            name='deck',
            field=models.ManyToManyField(blank=True, to='accounts.DeckCard'),
        ),
        migrations.AddField(
            model_name='account',
            name='tags',
            field=models.ManyToManyField(blank=True, to='tags.Tag'),
        ),
    ]
class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('food', '0001_initial'),
        ('auth', '0011_update_proxy_permissions'),
    ]

    operations = [
        migrations.CreateModel(
            name='FoodDetails',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('food_weight',
                 models.DecimalField(decimal_places=3,
                                     default=100,
                                     max_digits=6)),
                ('food',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='food.Food')),
            ],
        ),
        migrations.CreateModel(
            name='Meal',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('meal_type',
                 enumchoicefield.fields.EnumChoiceField(
                     enum_class=accounts.models.MealType,
                     max_length=2,
                     null=True)),
                ('food',
                 models.ManyToManyField(through='accounts.FoodDetails',
                                        to='food.Food')),
            ],
        ),
        migrations.CreateModel(
            name='MealDate',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('meal_date',
                 models.DateField(default=django.utils.timezone.now,
                                  null=True)),
                ('meal',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='accounts.Meal')),
            ],
        ),
        migrations.CreateModel(
            name='UserBodyParameters',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('user_weight', models.IntegerField(default=180,
                                                    max_length=3)),
                ('user_height', models.IntegerField(default=75, max_length=3)),
            ],
        ),
        migrations.CreateModel(
            name='UserNutritionsTarget',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('target_calories',
                 models.IntegerField(default=2000, max_length=5)),
                ('target_carbohydrates',
                 models.IntegerField(default=100, max_length=4)),
                ('target_proteins',
                 models.IntegerField(default=100, max_length=4)),
                ('target_fats', models.IntegerField(default=100,
                                                    max_length=4)),
            ],
        ),
        migrations.CreateModel(
            name='UserFoodHistory',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('meal',
                 models.ManyToManyField(through='accounts.MealDate',
                                        to='accounts.Meal')),
            ],
        ),
        migrations.AddField(
            model_name='mealdate',
            name='user_food_history',
            field=models.ForeignKey(
                on_delete=django.db.models.deletion.CASCADE,
                to='accounts.UserFoodHistory'),
        ),
        migrations.AddField(
            model_name='fooddetails',
            name='meal',
            field=models.ForeignKey(
                on_delete=django.db.models.deletion.CASCADE,
                to='accounts.Meal'),
        ),
        migrations.CreateModel(
            name='AppUser',
            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')),
                ('body_parameters',
                 models.ForeignKey(null=True,
                                   on_delete=django.db.models.deletion.CASCADE,
                                   to='accounts.UserBodyParameters')),
                ('food_history',
                 models.ForeignKey(null=True,
                                   on_delete=django.db.models.deletion.CASCADE,
                                   to='accounts.UserFoodHistory')),
                ('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')),
                ('nutritions_target',
                 models.ForeignKey(null=True,
                                   on_delete=django.db.models.deletion.CASCADE,
                                   to='accounts.UserNutritionsTarget')),
                ('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()),
            ],
        ),
    ]
Esempio n. 25
0
class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('products', '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')),
                ('email', models.EmailField(max_length=255, unique=True)),
                ('full_name',
                 models.CharField(blank=True, max_length=255, null=True)),
                ('active', models.BooleanField(default=True)),
                ('is_active', models.BooleanField(default=False)),
                ('is_member',
                 models.BooleanField(default=False,
                                     verbose_name='Is Subscriber')),
                ('staff', models.BooleanField(default=False)),
                ('admin', models.BooleanField(default=False)),
                ('timestamp', models.DateTimeField(auto_now_add=True)),
                ('confirmed',
                 models.BooleanField(default=False,
                                     verbose_name='Is Confirmed Lawyer')),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='BoxSelection',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('subtotal',
                 models.DecimalField(decimal_places=2,
                                     default=0.0,
                                     max_digits=100)),
                ('total',
                 models.DecimalField(decimal_places=2,
                                     default=0.0,
                                     max_digits=100)),
                ('timestamp', models.DateTimeField(auto_now_add=True)),
                ('updated', models.DateTimeField(auto_now=True)),
            ],
        ),
        migrations.CreateModel(
            name='DigitalPlan',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('amount', models.PositiveIntegerField(default=19999)),
                ('interval', models.CharField(default='month',
                                              max_length=120)),
                ('interval_count', models.CharField(default='1',
                                                    max_length=120)),
                ('currency', models.CharField(default='usd', max_length=60)),
                ('plan_id',
                 models.CharField(blank=True, max_length=120, null=True)),
                ('stripe_plan', models.TextField(blank=True, null=True)),
                ('active', models.BooleanField(default=True)),
            ],
        ),
        migrations.CreateModel(
            name='GuestEmail',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('email', models.EmailField(max_length=254)),
                ('active', models.BooleanField(default=True)),
                ('update', models.DateTimeField(auto_now=True)),
                ('timestamp', models.DateTimeField(auto_now_add=True)),
            ],
        ),
        migrations.CreateModel(
            name='Subscription',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('title', models.CharField(max_length=120)),
                ('slug', models.SlugField(blank=True, null=True)),
                ('description', models.TextField(blank=True, null=True)),
                ('image',
                 models.ImageField(
                     blank=True,
                     null=True,
                     upload_to=accounts.models.upload_image_path)),
                ('price', models.DecimalField(decimal_places=2,
                                              max_digits=20)),
                ('active', models.BooleanField(default=True)),
                ('products',
                 models.ManyToManyField(blank=True, to='products.Product')),
            ],
        ),
        migrations.AddField(
            model_name='digitalplan',
            name='subscription',
            field=models.ForeignKey(
                on_delete=django.db.models.deletion.CASCADE,
                to='accounts.Subscription'),
        ),
        migrations.AddField(
            model_name='boxselection',
            name='subscription',
            field=models.ForeignKey(
                blank=True,
                null=True,
                on_delete=django.db.models.deletion.SET_NULL,
                to='accounts.Subscription'),
        ),
        migrations.AddField(
            model_name='boxselection',
            name='user',
            field=models.ForeignKey(
                blank=True,
                null=True,
                on_delete=django.db.models.deletion.SET_NULL,
                to=settings.AUTH_USER_MODEL),
        ),
    ]
Esempio n. 26
0
class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('employees', '0001_initial'),
    ]

    operations = [
        migrations.CreateModel(
            name='Bill',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('bill_number',
                 models.CharField(
                     blank=True,
                     default=accounts.models.increment_bill_number,
                     editable=False,
                     max_length=50,
                     null=True,
                     unique=True,
                     verbose_name='Bill#')),
                ('bill_date',
                 models.DateField(blank=True,
                                  default=django.utils.timezone.now,
                                  null=True)),
                ('payment_option',
                 models.CharField(blank=True,
                                  choices=[('cash', 'Cash'),
                                           ('cheque', 'Cheque'),
                                           ('card', 'Card'),
                                           ('online', 'Online')],
                                  max_length=30,
                                  null=True,
                                  verbose_name='Pay Option')),
                ('recieve_amount',
                 models.IntegerField(blank=True,
                                     null=True,
                                     verbose_name='Recieved Amount')),
                ('amount_in_word',
                 models.CharField(blank=True,
                                  max_length=50,
                                  null=True,
                                  verbose_name='Amount in Words')),
                ('credit_card_no',
                 models.CharField(blank=True,
                                  default=None,
                                  max_length=20,
                                  null=True,
                                  verbose_name='Credit/Debit Card No.')),
                ('dd_no',
                 models.CharField(blank=True,
                                  default=None,
                                  max_length=20,
                                  null=True,
                                  verbose_name='DD No.')),
                ('cheque_no',
                 models.CharField(blank=True,
                                  default=None,
                                  max_length=20,
                                  null=True)),
                ('drawn_on',
                 models.DateField(blank=True,
                                  default=django.utils.timezone.now,
                                  null=True,
                                  verbose_name='Drawn on')),
                ('bank_name',
                 models.CharField(blank=True,
                                  max_length=50,
                                  null=True,
                                  verbose_name='Bank name')),
                ('bank_branch',
                 models.CharField(blank=True,
                                  max_length=50,
                                  null=True,
                                  verbose_name='Bank Branch Name')),
                ('cheque_status',
                 models.CharField(blank=True,
                                  choices=[('cleared', 'Cleared'),
                                           ('pending', 'Pending'),
                                           ('failed', 'Failed')],
                                  max_length=10,
                                  null=True,
                                  verbose_name='Cheque Status')),
                ('change',
                 models.IntegerField(blank=True,
                                     null=True,
                                     verbose_name='Change amount')),
                ('tens',
                 models.IntegerField(blank=True,
                                     null=True,
                                     verbose_name='Rs. 10 notes')),
                ('twenties',
                 models.IntegerField(blank=True,
                                     null=True,
                                     verbose_name='Rs. 20 notes')),
                ('fiftys',
                 models.IntegerField(blank=True,
                                     null=True,
                                     verbose_name='Rs. 50 notes')),
                ('hundreds',
                 models.IntegerField(blank=True,
                                     null=True,
                                     verbose_name='Rs. 100 notes')),
                ('two_hundreds',
                 models.IntegerField(blank=True,
                                     null=True,
                                     verbose_name='Rs. 200 notes')),
                ('five_hundreds',
                 models.IntegerField(blank=True,
                                     null=True,
                                     verbose_name='Rs. 500 notes')),
                ('two_thousands',
                 models.IntegerField(blank=True,
                                     null=True,
                                     verbose_name='Rs. 2000 notes')),
            ],
            options={
                'verbose_name': 'Bill',
                'verbose_name_plural': 'Bills',
            },
        ),
        migrations.CreateModel(
            name='ClientBill',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('bill_date',
                 models.DateField(blank=True,
                                  default=django.utils.timezone.now,
                                  null=True)),
                ('payment_option',
                 models.CharField(choices=[('cash', 'Cash'),
                                           ('cheque', 'Cheque'),
                                           ('card', 'Card'),
                                           ('online', 'Online')],
                                  max_length=30,
                                  verbose_name='Pay Option')),
                ('recieve_amount',
                 models.IntegerField(blank=True,
                                     null=True,
                                     verbose_name='Recieved Amount')),
                ('amount_in_word',
                 models.CharField(blank=True,
                                  max_length=50,
                                  null=True,
                                  verbose_name='Amount in Words')),
                ('credit_card_no',
                 models.CharField(blank=True,
                                  default=None,
                                  max_length=20,
                                  null=True,
                                  verbose_name='Credit/Debit Card No.')),
                ('dd_no',
                 models.CharField(blank=True,
                                  default=None,
                                  max_length=20,
                                  null=True,
                                  verbose_name='DD No.')),
                ('cheque_no',
                 models.CharField(blank=True,
                                  default=None,
                                  max_length=20,
                                  null=True)),
                ('drawn_on',
                 models.DateField(blank=True,
                                  default=django.utils.timezone.now,
                                  null=True,
                                  verbose_name='Drawn on')),
                ('bank_name',
                 models.CharField(blank=True,
                                  max_length=50,
                                  null=True,
                                  verbose_name='Bank name')),
                ('bank_branch',
                 models.CharField(blank=True,
                                  max_length=50,
                                  null=True,
                                  verbose_name='Bank Branch Name')),
                ('cheque_status',
                 models.CharField(blank=True,
                                  choices=[('cleared', 'Cleared'),
                                           ('pending', 'Pending'),
                                           ('failed', 'Failed')],
                                  max_length=10,
                                  null=True,
                                  verbose_name='Cheque Status')),
                ('tens',
                 models.IntegerField(blank=True,
                                     null=True,
                                     verbose_name='Rs. 10 notes')),
                ('twenties',
                 models.IntegerField(blank=True,
                                     null=True,
                                     verbose_name='Rs. 20 notes')),
                ('fiftys',
                 models.IntegerField(blank=True,
                                     null=True,
                                     verbose_name='Rs. 50 notes')),
                ('hundreds',
                 models.IntegerField(blank=True,
                                     null=True,
                                     verbose_name='Rs. 100 notes')),
                ('two_hundreds',
                 models.IntegerField(blank=True,
                                     null=True,
                                     verbose_name='Rs. 200 notes')),
                ('five_hundreds',
                 models.IntegerField(blank=True,
                                     null=True,
                                     verbose_name='Rs. 500 notes')),
                ('two_thousands',
                 models.IntegerField(blank=True,
                                     null=True,
                                     verbose_name='Rs. 2000 notes')),
            ],
            options={
                'verbose_name': 'Client Bill',
                'verbose_name_plural': 'Client Bills',
            },
        ),
        migrations.CreateModel(
            name='ClientInstallmentData',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('installment_date',
                 models.DateField(blank=True, null=True, verbose_name='Date')),
                ('installment_amount',
                 models.IntegerField(blank=True,
                                     null=True,
                                     verbose_name='Amount')),
                ('paid',
                 models.BooleanField(blank=True,
                                     choices=[(True, 'Paid'),
                                              (False, 'Unpaid')],
                                     default=False,
                                     null=True,
                                     verbose_name='Payment Status')),
            ],
        ),
        migrations.CreateModel(
            name='ClientInvoice',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('enquired_for',
                 models.CharField(blank=True,
                                  max_length=50,
                                  null=True,
                                  verbose_name='Service Taken')),
                ('batchstartdate',
                 models.DateField(blank=True,
                                  default=None,
                                  null=True,
                                  verbose_name='Batch Start Date')),
                ('add_fee',
                 models.IntegerField(blank=True,
                                     null=True,
                                     verbose_name='Admission Fee')),
                ('course_ware_fee', models.IntegerField(blank=True,
                                                        null=True)),
                ('tution_fee', models.IntegerField(blank=True, null=True)),
                ('project_fee', models.IntegerField(blank=True, null=True)),
                ('late_fee', models.IntegerField(blank=True, null=True)),
                ('exam_fee', models.IntegerField(blank=True, null=True)),
                ('other', models.IntegerField(blank=True, null=True)),
                ('sub_total', models.IntegerField(blank=True, null=True)),
                ('gst', models.CharField(blank=True, max_length=50,
                                         null=True)),
                ('g_total',
                 models.IntegerField(blank=True,
                                     null=True,
                                     verbose_name='Grand Total')),
                ('amount_words',
                 models.CharField(blank=True,
                                  max_length=200,
                                  null=True,
                                  verbose_name='Amount in word')),
            ],
            options={
                'verbose_name': 'ClientInvoice',
                'verbose_name_plural': 'ClientInvoices',
            },
        ),
        migrations.CreateModel(
            name='InstallmentData',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('installment_date',
                 models.DateField(blank=True, null=True, verbose_name='Date')),
                ('installment_amount',
                 models.IntegerField(blank=True,
                                     null=True,
                                     verbose_name='Amount')),
            ],
        ),
        migrations.CreateModel(
            name='Quotation',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('date',
                 models.DateField(default=django.utils.timezone.now,
                                  verbose_name='Dated')),
                ('client_name',
                 models.CharField(max_length=50, verbose_name='Client Name')),
                ('client_address',
                 models.TextField(blank=True, null=True, verbose_name='To')),
                ('subject',
                 models.CharField(blank=True,
                                  max_length=140,
                                  null=True,
                                  verbose_name='Subject')),
                ('reference',
                 models.CharField(blank=True,
                                  max_length=80,
                                  null=True,
                                  verbose_name='Ref')),
                ('total_amount',
                 models.PositiveIntegerField(blank=True,
                                             null=True,
                                             verbose_name='Total Amount')),
                ('amount_in_word',
                 models.CharField(blank=True,
                                  max_length=50,
                                  null=True,
                                  verbose_name='Amount in Words')),
                ('company_terms',
                 models.TextField(blank=True,
                                  null=True,
                                  verbose_name='Company Terms & Conditions')),
                ('client_terms',
                 models.TextField(blank=True,
                                  null=True,
                                  verbose_name="Client's Terms & Conditions")),
                ('signature',
                 models.ImageField(blank=True,
                                   null=True,
                                   upload_to=None,
                                   verbose_name='Upload Authorised Signator')),
            ],
        ),
        migrations.CreateModel(
            name='QuotationRatesAndTerms',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('item_description',
                 models.CharField(blank=True,
                                  max_length=80,
                                  null=True,
                                  verbose_name='Item Description')),
                ('price',
                 models.DecimalField(blank=True,
                                     decimal_places=2,
                                     max_digits=10,
                                     null=True,
                                     verbose_name='Price')),
                ('tax',
                 models.DecimalField(blank=True,
                                     decimal_places=2,
                                     max_digits=10,
                                     null=True,
                                     verbose_name='Tax (18%)')),
                ('total',
                 models.DecimalField(blank=True,
                                     decimal_places=2,
                                     max_digits=10,
                                     null=True,
                                     verbose_name='Total Price')),
                ('quotation',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   related_name='quote_details',
                                   to='accounts.Quotation',
                                   verbose_name='Quotation')),
            ],
            options={
                'verbose_name': 'QuotationRatesAndTerms',
                'verbose_name_plural': 'QuotationRatesAndTermss',
            },
        ),
        migrations.CreateModel(
            name='Invoice',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('enquired_for',
                 models.CharField(blank=True,
                                  max_length=50,
                                  null=True,
                                  verbose_name='Service Taken')),
                ('batchstartdate',
                 models.DateField(blank=True,
                                  default=None,
                                  null=True,
                                  verbose_name='Batch Start Date')),
                ('invoice_number',
                 models.CharField(
                     default=accounts.models.increment_invoice_number,
                     editable=False,
                     max_length=50,
                     unique=True,
                     verbose_name='Invoice#')),
                ('add_fee',
                 models.IntegerField(blank=True,
                                     null=True,
                                     verbose_name='Admission Fee')),
                ('course_ware_fee', models.IntegerField(blank=True,
                                                        null=True)),
                ('tution_fee', models.IntegerField(blank=True, null=True)),
                ('project_fee', models.IntegerField(blank=True, null=True)),
                ('late_fee', models.IntegerField(blank=True, null=True)),
                ('exam_fee', models.IntegerField(blank=True, null=True)),
                ('other', models.IntegerField(blank=True, null=True)),
                ('sub_total', models.IntegerField(blank=True, null=True)),
                ('gst', models.CharField(blank=True, max_length=50,
                                         null=True)),
                ('g_total',
                 models.IntegerField(blank=True,
                                     null=True,
                                     verbose_name='Grand Total')),
                ('amount_words',
                 models.CharField(blank=True,
                                  max_length=200,
                                  null=True,
                                  verbose_name='Amount in word')),
                ('counselor',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='employees.Employee',
                                   verbose_name='Counseled by')),
            ],
        ),
    ]