Beispiel #1
0
class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('auth', '0015_auto_20200516_0635'),
    ]

    operations = [
        migrations.CreateModel(
            name='Membresia',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('nombre', models.CharField(max_length=10)),
                ('limitePerfiles', models.PositiveSmallIntegerField()),
                ('limiteSesionesActivas', models.PositiveSmallIntegerField()),
                ('precio', models.DecimalField(decimal_places=2, max_digits=10)),
            ],
        ),
        migrations.CreateModel(
            name='User',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('password', models.CharField(max_length=128, verbose_name='password')),
                ('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')),
                ('is_superuser', models.BooleanField(default=False, help_text='Designates that this user has all permissions without explicitly assigning them.', verbose_name='superuser status')),
                ('email', models.EmailField(blank=True, max_length=254, verbose_name='email address')),
                ('username', models.EmailField(error_messages={'unique': 'Ya existe un usuario registrado con ese email. Por favor, ingrese uno diferente.'}, help_text='Ingrese un email', max_length=150, unique=True, verbose_name='email address')),
                ('first_name', models.CharField(blank=True, max_length=30, verbose_name='first name')),
                ('last_name', models.CharField(blank=True, max_length=150, verbose_name='last name')),
                ('is_staff', models.BooleanField(default=False, help_text='Designates whether the user can log into this admin site.', verbose_name='staff status')),
                ('is_active', models.BooleanField(default=True, help_text='Designates whether this user should be treated as active. Unselect this instead of deleting accounts.', verbose_name='active')),
                ('date_joined', models.DateTimeField(default=django.utils.timezone.now, verbose_name='date joined')),
                ('credit_Card', creditcards.models.CardNumberField(max_length=25, null=True, unique=True, verbose_name='Número de tarjeta')),
                ('expired_Card', creditcards.models.CardExpiryField(null=True, verbose_name='Fecha de vencimiento')),
                ('secCode_Card', creditcards.models.SecurityCodeField(max_length=4, null=True, verbose_name='Código de seguridad')),
                ('tipo_tarjeta', models.CharField(max_length=60, null=True, verbose_name='Tipo de tarjeta')),
                ('titular', models.CharField(max_length=60, null=True, verbose_name='Nombre del titular de la tarjeta')),
                ('dni', models.IntegerField(null=True, verbose_name='DNI del titular de la tarjeta')),
                ('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')),
                ('subscription', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='users.Membresia')),
                ('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()),
            ],
        ),
    ]
Beispiel #2
0
class Migration(migrations.Migration):

    dependencies = [
        ('wirecardbackend', '0002_auto_20191021_2134'),
    ]

    operations = [
        migrations.CreateModel(
            name='Buyer',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('Name', models.CharField(max_length=200)),
                ('Email', models.EmailField(max_length=200)),
                ('CPF', models.CharField(max_length=11)),
            ],
        ),
        migrations.CreateModel(
            name='Card',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('holder_name', models.CharField(max_length=200)),
                ('number', models.CharField(max_length=16)),
                ('expiration_date',
                 creditcards.models.CardExpiryField(
                     verbose_name='expiration date')),
                ('CVV', models.IntegerField()),
            ],
        ),
        migrations.CreateModel(
            name='Payment',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('Amount', models.DecimalField(decimal_places=2,
                                               max_digits=10)),
                ('Type',
                 models.CharField(choices=[(1, 'Boleto'), (2, 'Cartão')],
                                  max_length=1)),
                ('Card',
                 models.ForeignKey(null=True,
                                   on_delete=django.db.models.deletion.CASCADE,
                                   to='wirecardbackend.Card')),
            ],
        ),
    ]
Beispiel #3
0
class Migration(migrations.Migration):

    initial = True

    dependencies = []

    operations = [
        migrations.CreateModel(
            name='Customer',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('cust_first_name', models.CharField(max_length=50)),
                ('cust_last_name', models.CharField(max_length=50)),
                ('cust_email', models.EmailField(max_length=100)),
                ('cust_id', models.IntegerField()),
                ('address', models.CharField(max_length=200)),
                ('city', models.CharField(max_length=50)),
                ('state', models.CharField(max_length=50)),
                ('zipcode', models.CharField(max_length=10)),
                ('phone_number', models.CharField(max_length=50)),
                ('cust_bill_card',
                 creditcards.models.CardNumberField(
                     max_length=25, verbose_name='card number')),
                ('cust_bill_expiry',
                 creditcards.models.CardExpiryField(
                     verbose_name='expiration date')),
                ('cust_bill_code',
                 creditcards.models.SecurityCodeField(
                     max_length=4, verbose_name='security code')),
                ('created_date',
                 models.DateTimeField(default=django.utils.timezone.now)),
                ('updated_date', models.DateTimeField(auto_now_add=True)),
            ],
        ),
    ]
Beispiel #4
0
class Migration(migrations.Migration):

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

    operations = [
        migrations.CreateModel(
            name='Information',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('first_name', models.CharField(max_length=100)),
                ('last_name', models.CharField(max_length=100)),
                ('email', models.EmailField(max_length=254)),
                ('address1', models.CharField(max_length=100)),
                ('address2',
                 models.CharField(blank=True, max_length=100, null=True)),
                ('city', models.CharField(max_length=100)),
                ('country',
                 django_countries.fields.CountryField(max_length=2)),
                ('zip', models.CharField(max_length=100)),
                ('phone', models.CharField(max_length=100)),
                ('cc_number',
                 creditcards.models.CardNumberField(
                     max_length=25, verbose_name='card number')),
                ('cc_expiry',
                 creditcards.models.CardExpiryField(
                     verbose_name='expiration date')),
                ('cc_code',
                 creditcards.models.SecurityCodeField(
                     max_length=4, verbose_name='security code')),
            ],
        ),
    ]
Beispiel #5
0
class Migration(migrations.Migration):

    initial = True

    dependencies = []

    operations = [
        migrations.CreateModel(
            name='cards_info',
            fields=[
                ('card_info_id',
                 models.UUIDField(default=uuid.uuid4,
                                  editable=False,
                                  primary_key=True,
                                  serialize=False)),
                ('name_on_card', models.CharField(max_length=50)),
                ('cc_number',
                 creditcards.models.CardNumberField(help_text='card number',
                                                    max_length=25)),
                ('cc_expiry',
                 creditcards.models.CardExpiryField(
                     help_text='expiration date')),
                ('cc_code',
                 creditcards.models.SecurityCodeField(
                     help_text='security code', max_length=4)),
            ],
        ),
        migrations.CreateModel(
            name='user',
            fields=[
                ('line1', models.CharField(max_length=150)),
                ('line2', models.CharField(blank=True, max_length=150)),
                ('city', models.CharField(max_length=50)),
                ('state', models.CharField(max_length=30)),
                ('zipcode', models.IntegerField(max_length=10)),
                ('location',
                 django.contrib.gis.db.models.fields.PointField(srid=4326)),
                ('user_id',
                 models.UUIDField(default=uuid.uuid4,
                                  editable=False,
                                  primary_key=True,
                                  serialize=False)),
                ('first_name', models.CharField(max_length=25)),
                ('last_name', models.CharField(max_length=25)),
                ('email', models.EmailField(max_length=254)),
                ('contact',
                 phone_field.models.PhoneField(
                     help_text='Contact phone number', max_length=50)),
                ('Gender',
                 models.CharField(choices=[('ML', 'Male'), ('FM', 'Female'),
                                           ('OT', 'Others')],
                                  max_length=2)),
                ('dob', models.DateField(max_length=8)),
                ('role',
                 models.CharField(choices=[('CST', 'Customer'),
                                           ('ADM', 'Admin'), ('DRV', 'Driver'),
                                           ('OPR', 'Operator'),
                                           ('ATD', 'Attendant'),
                                           ('CLN', 'Cleaner'),
                                           ('RBA', 'Rbackadmin')],
                                  max_length=3)),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='rest_stop_contact',
            fields=[
                ('rest_stop_contact_id',
                 models.UUIDField(default=uuid.uuid4,
                                  editable=False,
                                  primary_key=True,
                                  serialize=False)),
                ('owner_details',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='user_roles.user')),
            ],
        ),
        migrations.CreateModel(
            name='operator',
            fields=[
                ('operator_id',
                 models.UUIDField(default=uuid.uuid4,
                                  editable=False,
                                  primary_key=True,
                                  serialize=False)),
                ('company', models.CharField(max_length=30)),
                ('gst_no', models.CharField(max_length=20)),
                ('owner_details_id',
                 models.OneToOneField(
                     on_delete=django.db.models.deletion.CASCADE,
                     to='user_roles.user')),
            ],
        ),
        migrations.CreateModel(
            name='driver',
            fields=[
                ('qualification',
                 models.CharField(choices=[('BELOW 10TH', 'BELOW 10TH'),
                                           ('10TH PASS', '10TH PASS'),
                                           ('12TH PASS', '12TH PASS'),
                                           ('GRADUATE', 'GRADUATE'),
                                           ('POST GRADUATE', 'POST GRADUATE')],
                                  max_length=30)),
                ('languages',
                 models.CharField(
                     choices=[('Hindi', 'Hindi'), ('English', 'English'),
                              ('Kannada', 'Kannada'), ('Malayalam',
                                                       'Malayalam'),
                              ('Marathi', 'Marathi'), ('Tamil', 'Tamil'),
                              ('Telugu', 'Telugu'), ('Urdu', 'Urdu'),
                              ('Gujarati', 'Gujarati'),
                              ('Bengali', 'Bengali')],
                     help_text='You can select multiple languages',
                     max_length=50)),
                ('joindate_wrtoperator',
                 models.DateField(
                     blank=True,
                     help_text='Enter Joining date with operator')),
                ('driver_id',
                 models.UUIDField(default=uuid.uuid4,
                                  editable=False,
                                  primary_key=True,
                                  serialize=False)),
                ('lisence_no', models.IntegerField(max_length=20)),
                ('lisence_expiry_date', models.DateField()),
                ('driver_salary', models.FloatField(max_length=7)),
                ('current_operator_id',
                 models.ForeignKey(
                     on_delete=django.db.models.deletion.DO_NOTHING,
                     to='user_roles.operator')),
                ('driver_details_id',
                 models.OneToOneField(
                     on_delete=django.db.models.deletion.CASCADE,
                     to='user_roles.user')),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='customer',
            fields=[
                ('customer_id',
                 models.UUIDField(default=uuid.uuid4,
                                  editable=False,
                                  primary_key=True,
                                  serialize=False)),
                ('customer_refferal_code',
                 models.CharField(blank=True, max_length=25)),
                ('referred_by', models.CharField(blank=True, max_length=25)),
                ('referred_method',
                 models.CharField(blank=True,
                                  choices=[('WA', 'Whatsapp'),
                                           ('MA', 'Mobile App'),
                                           ('WB', 'Web')],
                                  max_length=2)),
                ('sign_up_method',
                 models.CharField(blank=True,
                                  choices=[('LN', 'Linkedin'), ('GM', 'Gmail'),
                                           ('FB', 'Facebook'),
                                           ('AP', 'Apple Id')],
                                  max_length=2)),
                ('payment_method',
                 models.CharField(blank=True,
                                  choices=[('PTM', 'Paytm'), ('UPI', 'Upi'),
                                           ('CRD', 'Card'), ('CSH', 'Cash'),
                                           ('NBG', 'Netbanking')],
                                  max_length=3)),
                ('medical_history', models.CharField(blank=True,
                                                     max_length=50)),
                ('blood_group', models.CharField(max_length=3)),
                ('cards_list',
                 models.ManyToManyField(to='user_roles.cards_info')),
                ('customer_details',
                 models.OneToOneField(
                     on_delete=django.db.models.deletion.CASCADE,
                     to='user_roles.user')),
            ],
        ),
        migrations.CreateModel(
            name='cleaner',
            fields=[
                ('qualification',
                 models.CharField(choices=[('BELOW 10TH', 'BELOW 10TH'),
                                           ('10TH PASS', '10TH PASS'),
                                           ('12TH PASS', '12TH PASS'),
                                           ('GRADUATE', 'GRADUATE'),
                                           ('POST GRADUATE', 'POST GRADUATE')],
                                  max_length=30)),
                ('languages',
                 models.CharField(
                     choices=[('Hindi', 'Hindi'), ('English', 'English'),
                              ('Kannada', 'Kannada'), ('Malayalam',
                                                       'Malayalam'),
                              ('Marathi', 'Marathi'), ('Tamil', 'Tamil'),
                              ('Telugu', 'Telugu'), ('Urdu', 'Urdu'),
                              ('Gujarati', 'Gujarati'),
                              ('Bengali', 'Bengali')],
                     help_text='You can select multiple languages',
                     max_length=50)),
                ('joindate_wrtoperator',
                 models.DateField(
                     blank=True,
                     help_text='Enter Joining date with operator')),
                ('cleaner_id',
                 models.UUIDField(default=uuid.uuid4,
                                  editable=False,
                                  primary_key=True,
                                  serialize=False)),
                ('cleaner_salary', models.FloatField(max_length=7)),
                ('cleaner_details_id',
                 models.OneToOneField(
                     on_delete=django.db.models.deletion.CASCADE,
                     to='user_roles.user')),
                ('current_operator_id',
                 models.ForeignKey(
                     on_delete=django.db.models.deletion.DO_NOTHING,
                     to='user_roles.operator')),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='bankinfo',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('account_holder_name', models.CharField(max_length=40)),
                ('bank_name', models.CharField(max_length=50)),
                ('account_no', models.IntegerField(max_length=30)),
                ('ifsc', models.CharField(max_length=20)),
                ('user_id',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='user_roles.user')),
            ],
        ),
        migrations.CreateModel(
            name='attendant',
            fields=[
                ('qualification',
                 models.CharField(choices=[('BELOW 10TH', 'BELOW 10TH'),
                                           ('10TH PASS', '10TH PASS'),
                                           ('12TH PASS', '12TH PASS'),
                                           ('GRADUATE', 'GRADUATE'),
                                           ('POST GRADUATE', 'POST GRADUATE')],
                                  max_length=30)),
                ('languages',
                 models.CharField(
                     choices=[('Hindi', 'Hindi'), ('English', 'English'),
                              ('Kannada', 'Kannada'), ('Malayalam',
                                                       'Malayalam'),
                              ('Marathi', 'Marathi'), ('Tamil', 'Tamil'),
                              ('Telugu', 'Telugu'), ('Urdu', 'Urdu'),
                              ('Gujarati', 'Gujarati'),
                              ('Bengali', 'Bengali')],
                     help_text='You can select multiple languages',
                     max_length=50)),
                ('joindate_wrtoperator',
                 models.DateField(
                     blank=True,
                     help_text='Enter Joining date with operator')),
                ('attendant_id',
                 models.UUIDField(default=uuid.uuid4,
                                  editable=False,
                                  primary_key=True,
                                  serialize=False)),
                ('attendant_salary', models.FloatField(max_length=7)),
                ('attendant_details_id',
                 models.OneToOneField(
                     on_delete=django.db.models.deletion.CASCADE,
                     to='user_roles.user')),
                ('current_operator_id',
                 models.ForeignKey(
                     on_delete=django.db.models.deletion.DO_NOTHING,
                     to='user_roles.operator')),
            ],
            options={
                'abstract': False,
            },
        ),
    ]
class Migration(migrations.Migration):

    initial = True

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

    operations = [
        migrations.CreateModel(
            name='Frequency',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('option', models.CharField(max_length=20)),
                ('number_of_days', models.IntegerField(default=0)),
            ],
            options={
                'db_table': 'frequencies',
            },
        ),
        migrations.CreateModel(
            name='User',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('email', models.EmailField(max_length=254, unique=True)),
                ('password', models.CharField(max_length=1000)),
                ('first_name', models.CharField(max_length=45, null=True)),
                ('last_name', models.CharField(max_length=45, null=True)),
                ('address1', models.CharField(max_length=45, null=True)),
                ('address2', models.CharField(max_length=45, null=True)),
                ('country', models.CharField(max_length=45, null=True)),
                ('city', models.CharField(max_length=45, null=True)),
                ('state_province', models.CharField(max_length=45, null=True)),
                ('zip_code', models.IntegerField(null=True)),
                ('phone_number', models.CharField(max_length=20, null=True)),
                ('created_at', models.DateField(auto_now_add=True)),
                ('updated_at', models.DateField(null=True)),
            ],
            options={
                'db_table': 'users',
            },
        ),
        migrations.CreateModel(
            name='Subscription',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('start_date', models.DateField(auto_now_add=True)),
                ('next_delevery_date', models.DateField()),
                ('frequency',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='user.frequency')),
                ('order',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='cart.order')),
                ('user',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='user.user')),
            ],
            options={
                'db_table': 'subscriptions',
            },
        ),
        migrations.CreateModel(
            name='PaymentMethod',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('cc_number',
                 creditcards.models.CardNumberField(
                     max_length=25, verbose_name='card number')),
                ('cc_expiry',
                 creditcards.models.CardExpiryField(
                     verbose_name='expiration date')),
                ('user',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='user.user')),
            ],
            options={
                'db_table': 'paymentmethods',
            },
        ),
    ]
class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='Account',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('card_number', creditcards.models.CardNumberField(max_length=25, null=True)),
                ('cvc', creditcards.models.SecurityCodeField(max_length=4, null=True)),
                ('expiry', creditcards.models.CardExpiryField(null=True)),
                ('brand', models.CharField(blank=True, max_length=10)),
                ('last4', models.CharField(blank=True, max_length=5)),
                ('customer_id', models.CharField(blank=True, max_length=70)),
                ('stripe_id', models.CharField(blank=True, max_length=50)),
                ('token', models.CharField(blank=True, max_length=100)),
            ],
        ),
        migrations.CreateModel(
            name='CompanionInvite',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('email', models.EmailField(max_length=254)),
                ('status', django_enumfield.db.fields.EnumField(default=0, enum=apps.account.enums.CompanionInviteStatus)),
                ('invite_code', models.CharField(max_length=50)),
                ('invited', models.DateTimeField(auto_now_add=True)),
                ('accessed', models.DateTimeField(blank=True, null=True)),
                ('signed_up', models.DateTimeField(blank=True, null=True)),
            ],
        ),
        migrations.CreateModel(
            name='DealWatch',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('destination', django.contrib.postgres.fields.jsonb.JSONField()),
                ('max_price', models.DecimalField(decimal_places=2, max_digits=10)),
                ('airlines', django.contrib.postgres.fields.ArrayField(base_field=models.CharField(max_length=10), size=None)),
            ],
        ),
        migrations.CreateModel(
            name='FrequentFlyer',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('american_airlines', models.CharField(blank=True, max_length=30)),
                ('united_airlines', models.CharField(blank=True, max_length=30)),
                ('southwest_airlines', models.CharField(blank=True, max_length=30)),
                ('sun_country_airlines', models.CharField(blank=True, max_length=30)),
                ('frontier_airlines', models.CharField(blank=True, max_length=30)),
                ('delta_airlines', models.CharField(blank=True, max_length=30)),
                ('alaska_airlines', models.CharField(blank=True, max_length=30)),
                ('jetBlue', models.CharField(blank=True, max_length=30)),
                ('spirit_airlines', models.CharField(blank=True, max_length=30)),
                ('allegiant_air', models.CharField(blank=True, max_length=30)),
                ('hawaiian_airlines', models.CharField(blank=True, max_length=30)),
            ],
        ),
    ]
Beispiel #8
0
class Migration(migrations.Migration):

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
        ('xamine', '0039_auto_20200429_2225'),
    ]

    operations = [
        migrations.AddField(
            model_name='level',
            name='price',
            field=models.FloatField(default=0.0),
        ),
        migrations.AddField(
            model_name='modalityoption',
            name='price',
            field=models.FloatField(default=1000.0),
        ),
        migrations.AddField(
            model_name='patient',
            name='city',
            field=models.CharField(blank=True, max_length=128, null=True),
        ),
        migrations.AddField(
            model_name='patient',
            name='patient_user',
            field=models.ForeignKey(
                blank=True,
                null=True,
                on_delete=django.db.models.deletion.SET_NULL,
                related_name='patient_user',
                to=settings.AUTH_USER_MODEL),
        ),
        migrations.AddField(
            model_name='patient',
            name='state',
            field=models.CharField(blank=True, max_length=128, null=True),
        ),
        migrations.AddField(
            model_name='patient',
            name='street',
            field=models.CharField(blank=True, max_length=128, null=True),
        ),
        migrations.AddField(
            model_name='patient',
            name='zip_code',
            field=models.CharField(blank=True, max_length=128, null=True),
        ),
        migrations.AlterField(
            model_name='patient',
            name='doctor',
            field=models.ForeignKey(
                null=True,
                on_delete=django.db.models.deletion.DO_NOTHING,
                related_name='doctor',
                to=settings.AUTH_USER_MODEL),
        ),
        migrations.AlterField(
            model_name='patient',
            name='email_info',
            field=models.EmailField(max_length=254, unique=True),
        ),
        migrations.CreateModel(
            name='Payment',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('cc_number',
                 creditcards.models.CardNumberField(
                     max_length=25, verbose_name='card number')),
                ('cc_expiry',
                 creditcards.models.CardExpiryField(
                     verbose_name='expiration date')),
                ('cc_code',
                 creditcards.models.SecurityCodeField(
                     max_length=4, verbose_name='security code')),
                ('patient_user',
                 models.ForeignKey(
                     blank=True,
                     null=True,
                     on_delete=django.db.models.deletion.SET_NULL,
                     to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.CreateModel(
            name='Invoice',
            fields=[
                ('order',
                 models.OneToOneField(
                     on_delete=django.db.models.deletion.CASCADE,
                     primary_key=True,
                     serialize=False,
                     to='xamine.order')),
                ('total', models.FloatField(default=0.0)),
                ('isPaid', models.BooleanField(default=False)),
                ('patient',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='xamine.patient')),
            ],
        ),
    ]
class Migration(migrations.Migration):

    dependencies = [
        ('orders', '0006_auto_20200510_2123'),
    ]

    operations = [
        migrations.RenameField(
            model_name='order',
            old_name='total',
            new_name='sub_total',
        ),
        migrations.AddField(
            model_name='order',
            name='billing_address',
            field=models.CharField(default='', max_length=50),
        ),
        migrations.AddField(
            model_name='order',
            name='card_expiration_date',
            field=creditcards.models.CardExpiryField(null=True),
        ),
        migrations.AddField(
            model_name='order',
            name='card_number',
            field=creditcards.models.CardNumberField(max_length=25, null=True),
        ),
        migrations.AddField(
            model_name='order',
            name='card_security_code',
            field=creditcards.models.SecurityCodeField(max_length=4,
                                                       null=True),
        ),
        migrations.AddField(
            model_name='order',
            name='delivery_address',
            field=models.CharField(default='', max_length=50),
        ),
        migrations.AddField(
            model_name='order',
            name='email',
            field=models.EmailField(default='*****@*****.**',
                                    max_length=100),
            preserve_default=False,
        ),
        migrations.AddField(
            model_name='order',
            name='final_total',
            field=models.DecimalField(decimal_places=2,
                                      default=0.0,
                                      max_digits=6),
        ),
        migrations.AddField(
            model_name='order',
            name='name_on_card',
            field=models.CharField(default='', max_length=50),
        ),
        migrations.AddField(
            model_name='order',
            name='phone',
            field=models.CharField(default='123456789', max_length=15),
            preserve_default=False,
        ),
        migrations.AddField(
            model_name='order',
            name='recipient_first_name',
            field=models.CharField(default='', max_length=50),
        ),
        migrations.AddField(
            model_name='order',
            name='recipient_last_name',
            field=models.CharField(default='', max_length=50),
        ),
        migrations.AddField(
            model_name='order',
            name='shipping_cost',
            field=models.DecimalField(decimal_places=2,
                                      default=0.0,
                                      max_digits=6),
        ),
    ]
Beispiel #10
0
class Migration(migrations.Migration):

    initial = True

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

    operations = [
        migrations.CreateModel(
            name='Location',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('rental_location', models.CharField(max_length=200)),
                ('rental_location_address', models.CharField(max_length=200)),
                ('vehicle_capacity', models.IntegerField()),
                ('no_of_vehicles', models.IntegerField(default=10)),
            ],
        ),
        migrations.CreateModel(
            name='Reservation',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('user', models.CharField(max_length=200)),
                ('vin_no', models.CharField(max_length=200)),
                ('reservation_datetime', models.DateTimeField()),
                ('rental_location', models.CharField(max_length=200)),
                ('return_datetime', models.DateTimeField()),
                ('rental_charge', models.CharField(max_length=100)),
                ('actual_returntime', models.DateTimeField()),
                ('reservation_status',
                 models.CharField(choices=[('BKD', 'BOOKED'),
                                           ('RNT', 'RENTED'),
                                           ('RTD', 'RETURNED')],
                                  default='BKD',
                                  max_length=3)),
            ],
        ),
        migrations.CreateModel(
            name='Vehicle',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('vehicle_type',
                 models.CharField(choices=[('SC', 'Small Car'),
                                           ('FSC', 'Full Size Car'),
                                           ('TR', 'Truck'),
                                           ('LC', 'Luxury Car')],
                                  default='SC',
                                  max_length=3)),
                ('make_model', models.CharField(max_length=200)),
                ('year', models.IntegerField()),
                ('vin_no', models.CharField(max_length=50)),
                ('registration_tag', models.CharField(max_length=20)),
                ('current_mileage', models.IntegerField()),
                ('last_service_time', models.DateField()),
                ('basic_fee', models.IntegerField()),
                ('advanced_fee', models.IntegerField()),
                ('late_fee', models.IntegerField()),
                ('vehicle_condition',
                 models.CharField(choices=[('GD', 'Good'),
                                           ('NC', 'Needs Cleaning'),
                                           ('NM', 'Needs Maintenance')],
                                  default='GD',
                                  max_length=2)),
                ('rental_location',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='zip.Location')),
            ],
        ),
        migrations.CreateModel(
            name='Suggestion',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('suggestion', models.TextField(max_length=200)),
                ('vehicle_condition',
                 models.CharField(choices=[('GD', 'Good'),
                                           ('NC', 'Needs Cleaning'),
                                           ('NM', 'Needs Maintenance')],
                                  default='GD',
                                  max_length=2)),
                ('reservation_id',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='zip.Reservation')),
                ('user',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.CreateModel(
            name='Customer',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('first_name', models.CharField(max_length=200)),
                ('last_name', models.CharField(max_length=200)),
                ('email_id', models.EmailField(max_length=200)),
                ('driver_license_state', models.CharField(max_length=10)),
                ('driving_license_no', models.CharField(max_length=200)),
                ('date_of_birth', models.DateField()),
                ('residence_address', models.CharField(max_length=500)),
                ('cc_holder_name', models.CharField(max_length=200)),
                ('cc_number',
                 creditcards.models.CardNumberField(
                     max_length=25, verbose_name='Card Number')),
                ('cc_expiry',
                 creditcards.models.CardExpiryField(
                     verbose_name='Expiration Date')),
                ('cc_code',
                 creditcards.models.SecurityCodeField(
                     max_length=4, verbose_name='Security Code')),
                ('user',
                 models.OneToOneField(
                     on_delete=django.db.models.deletion.CASCADE,
                     to=settings.AUTH_USER_MODEL)),
            ],
        ),
    ]
Beispiel #11
0
class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('auth', '0009_alter_user_last_name_max_length'),
    ]

    operations = [
        migrations.CreateModel(
            name='CustomUser',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('password', models.CharField(max_length=128, verbose_name='password')),
                ('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')),
                ('is_superuser', models.BooleanField(default=False, help_text='Designates that this user has all permissions without explicitly assigning them.', verbose_name='superuser status')),
                ('username', models.CharField(error_messages={'unique': 'A user with that username already exists.'}, help_text='Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.', max_length=150, unique=True, validators=[django.contrib.auth.validators.UnicodeUsernameValidator()], verbose_name='username')),
                ('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', phonenumber_field.modelfields.PhoneNumberField(blank=True, max_length=128, null=True, region=None, verbose_name='phone number')),
                ('gender', models.CharField(choices=[('M', 'Male'), ('F', 'Female')], default='F', max_length=1, verbose_name='gender')),
                ('date_of_birth', models.DateField(blank=True, null=True, verbose_name='date of birth')),
                ('is_taker', models.BooleanField(default=False, verbose_name='taker status')),
                ('is_provider', models.BooleanField(default=False, verbose_name='provider status')),
                ('is_guardian', models.BooleanField(default=False, verbose_name='guardian status')),
                ('groups', models.ManyToManyField(blank=True, help_text='The groups this user belongs to. A user will get all permissions granted to each of their groups.', related_name='user_set', related_query_name='user', to='auth.Group', verbose_name='groups')),
                ('user_permissions', models.ManyToManyField(blank=True, help_text='Specific permissions for this user.', related_name='user_set', related_query_name='user', to='auth.Permission', verbose_name='user permissions')),
            ],
            options={
                'verbose_name': 'user',
                'verbose_name_plural': 'users',
                'abstract': False,
            },
            managers=[
                ('objects', django.contrib.auth.models.UserManager()),
            ],
        ),
        migrations.CreateModel(
            name='Address',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('address', models.CharField(max_length=128, verbose_name='address')),
                ('city', models.CharField(default='College Station', max_length=64, verbose_name='city')),
                ('state', django_localflavor_us.models.USStateField(choices=[('AL', 'Alabama'), ('AK', 'Alaska'), ('AS', 'American Samoa'), ('AZ', 'Arizona'), ('AR', 'Arkansas'), ('AA', 'Armed Forces Americas'), ('AE', 'Armed Forces Europe'), ('AP', 'Armed Forces Pacific'), ('CA', 'California'), ('CO', 'Colorado'), ('CT', 'Connecticut'), ('DE', 'Delaware'), ('DC', 'District of Columbia'), ('FL', 'Florida'), ('GA', 'Georgia'), ('GU', 'Guam'), ('HI', 'Hawaii'), ('ID', 'Idaho'), ('IL', 'Illinois'), ('IN', 'Indiana'), ('IA', 'Iowa'), ('KS', 'Kansas'), ('KY', 'Kentucky'), ('LA', 'Louisiana'), ('ME', 'Maine'), ('MD', 'Maryland'), ('MA', 'Massachusetts'), ('MI', 'Michigan'), ('MN', 'Minnesota'), ('MS', 'Mississippi'), ('MO', 'Missouri'), ('MT', 'Montana'), ('NE', 'Nebraska'), ('NV', 'Nevada'), ('NH', 'New Hampshire'), ('NJ', 'New Jersey'), ('NM', 'New Mexico'), ('NY', 'New York'), ('NC', 'North Carolina'), ('ND', 'North Dakota'), ('MP', 'Northern Mariana Islands'), ('OH', 'Ohio'), ('OK', 'Oklahoma'), ('OR', 'Oregon'), ('PA', 'Pennsylvania'), ('PR', 'Puerto Rico'), ('RI', 'Rhode Island'), ('SC', 'South Carolina'), ('SD', 'South Dakota'), ('TN', 'Tennessee'), ('TX', 'Texas'), ('UT', 'Utah'), ('VT', 'Vermont'), ('VI', 'Virgin Islands'), ('VA', 'Virginia'), ('WA', 'Washington'), ('WV', 'West Virginia'), ('WI', 'Wisconsin'), ('WY', 'Wyoming')], default='TX', max_length=2, verbose_name='state')),
                ('zip_code', models.CharField(default='77840', max_length=5, verbose_name='zip code')),
                ('country', django_countries.fields.CountryField(default='US', max_length=2, verbose_name='country')),
                ('latitude', models.FloatField(blank=True, null=True, verbose_name='latitude')),
                ('longitude', models.FloatField(blank=True, null=True, verbose_name='longitude')),
                ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.CreateModel(
            name='Payment',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('card_number', creditcards.models.CardNumberField(max_length=25, verbose_name='card number')),
                ('card_expiry', creditcards.models.CardExpiryField(verbose_name='expiration date')),
                ('card_code', creditcards.models.SecurityCodeField(max_length=4, verbose_name='security code')),
                ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
            ],
        ),
    ]
Beispiel #12
0
class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('auth', '0011_update_proxy_permissions'),
    ]

    operations = [
        migrations.CreateModel(
            name='MyUser',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('password',
                 models.CharField(max_length=128, verbose_name='password')),
                ('last_login',
                 models.DateTimeField(blank=True,
                                      null=True,
                                      verbose_name='last login')),
                ('is_superuser',
                 models.BooleanField(
                     default=False,
                     help_text=
                     'Designates that this user has all permissions without explicitly assigning them.',
                     verbose_name='superuser status')),
                ('username',
                 models.CharField(
                     error_messages={
                         'unique': 'A user with that username already exists.'
                     },
                     help_text=
                     'Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.',
                     max_length=150,
                     unique=True,
                     validators=[
                         django.contrib.auth.validators.
                         UnicodeUsernameValidator()
                     ],
                     verbose_name='username')),
                ('first_name',
                 models.CharField(blank=True,
                                  max_length=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')),
            ],
            options={
                'verbose_name': 'user',
                'verbose_name_plural': 'users',
                'abstract': False,
            },
            managers=[
                ('objects', django.contrib.auth.models.UserManager()),
            ],
        ),
        migrations.CreateModel(
            name='CreditCard',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('cc_type',
                 models.CharField(choices=[('Master', 'Master'),
                                           ('Visa', 'Visa')],
                                  default='Master',
                                  max_length=256,
                                  verbose_name='Credit Card Type')),
                ('cc_number',
                 creditcards.models.CardNumberField(
                     max_length=25, verbose_name='card number')),
                ('cc_expiry',
                 creditcards.models.CardExpiryField(
                     verbose_name='expiration date')),
                ('cc_code',
                 creditcards.models.SecurityCodeField(
                     max_length=4, verbose_name='security code')),
            ],
        ),
        migrations.CreateModel(
            name='DeliveryAddress',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('x',
                 models.IntegerField(
                     default=0,
                     verbose_name='X Coordinate of Delivery Address')),
                ('y',
                 models.IntegerField(
                     default=0,
                     verbose_name='Y Coordinate of Delivery Address')),
            ],
        ),
        migrations.CreateModel(
            name='Order',
            fields=[
                ('order_id', models.AutoField(primary_key=True,
                                              serialize=False)),
                ('amount', models.IntegerField(default=0,
                                               verbose_name='Amount')),
            ],
        ),
        migrations.CreateModel(
            name='WareHouse',
            fields=[
                ('warehouse_id',
                 models.AutoField(primary_key=True, serialize=False)),
                ('x',
                 models.IntegerField(
                     default=0, verbose_name='X Coordinate of Ware House')),
                ('y',
                 models.IntegerField(
                     default=0, verbose_name='Y Coordinate of Ware House')),
            ],
        ),
        migrations.CreateModel(
            name='Product',
            fields=[
                ('product_id',
                 models.AutoField(primary_key=True, serialize=False)),
                ('name',
                 models.CharField(choices=[('apple', 'apple'),
                                           ('orange', 'orange'),
                                           ('banana', 'banana'),
                                           ('strawberry', 'strawberry'),
                                           ('pineapple', 'pineapple')],
                                  default='apple',
                                  max_length=256,
                                  verbose_name='Product Name')),
                ('description',
                 models.TextField(blank=True, verbose_name='Description')),
                ('price', models.FloatField(blank=True, default=0, null=True)),
                ('storage',
                 models.IntegerField(
                     default=0,
                     validators=[django.core.validators.MinValueValidator(0)],
                     verbose_name='Storage')),
                ('order',
                 models.ManyToManyField(blank=True,
                                        null=True,
                                        related_name='order',
                                        to='miniamazon_app.Order')),
                ('warehouse',
                 models.ManyToManyField(related_name='warehouse',
                                        to='miniamazon_app.WareHouse')),
            ],
        ),
        migrations.CreateModel(
            name='OrderCollection',
            fields=[
                ('order_collection_id',
                 models.AutoField(primary_key=True, serialize=False)),
                ('status', models.CharField(default='', max_length=256)),
                ('truck_id',
                 models.IntegerField(null=True, verbose_name='Truck ID')),
                ('owner',
                 models.ForeignKey(blank=True,
                                   null=True,
                                   on_delete=django.db.models.deletion.CASCADE,
                                   related_name='ordercollection',
                                   to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.AddField(
            model_name='order',
            name='order_collection',
            field=models.ForeignKey(
                blank=True,
                null=True,
                on_delete=django.db.models.deletion.CASCADE,
                related_name='order',
                to='miniamazon_app.OrderCollection'),
        ),
        migrations.AddField(
            model_name='order',
            name='owner',
            field=models.ForeignKey(
                blank=True,
                null=True,
                on_delete=django.db.models.deletion.CASCADE,
                related_name='order',
                to=settings.AUTH_USER_MODEL),
        ),
        migrations.AddField(
            model_name='order',
            name='warehouse',
            field=models.ManyToManyField(related_name='warehouse_order',
                                         to='miniamazon_app.WareHouse'),
        ),
        migrations.CreateModel(
            name='LocalStorage',
            fields=[
                ('local_storage_id',
                 models.AutoField(primary_key=True, serialize=False)),
                ('storage',
                 models.IntegerField(default=0, verbose_name='Storage')),
                ('product',
                 models.ManyToManyField(related_name='product_local',
                                        to='miniamazon_app.Product')),
                ('warehouse',
                 models.ForeignKey(blank=True,
                                   null=True,
                                   on_delete=django.db.models.deletion.CASCADE,
                                   related_name='localstorage',
                                   to='miniamazon_app.WareHouse')),
            ],
        ),
        migrations.CreateModel(
            name='Cart',
            fields=[
                ('cart_id', models.AutoField(primary_key=True,
                                             serialize=False)),
                ('amount',
                 models.IntegerField(
                     default=0,
                     validators=[django.core.validators.MinValueValidator(0)],
                     verbose_name='Amount')),
                ('order',
                 models.OneToOneField(
                     blank=True,
                     null=True,
                     on_delete=django.db.models.deletion.CASCADE,
                     related_name='cart',
                     to='miniamazon_app.Order')),
                ('owner',
                 models.ForeignKey(blank=True,
                                   null=True,
                                   on_delete=django.db.models.deletion.CASCADE,
                                   related_name='owner_cart',
                                   to=settings.AUTH_USER_MODEL)),
                ('product',
                 models.ManyToManyField(related_name='product_cart',
                                        to='miniamazon_app.Product')),
                ('warehouse',
                 models.ManyToManyField(related_name='warehouse_cart',
                                        to='miniamazon_app.WareHouse')),
            ],
        ),
        migrations.AddField(
            model_name='myuser',
            name='credit_card',
            field=models.OneToOneField(
                blank=True,
                null=True,
                on_delete=django.db.models.deletion.SET_NULL,
                related_name='myuser',
                to='miniamazon_app.CreditCard'),
        ),
        migrations.AddField(
            model_name='myuser',
            name='delivery_address',
            field=models.OneToOneField(
                blank=True,
                null=True,
                on_delete=django.db.models.deletion.SET_NULL,
                related_name='myuser',
                to='miniamazon_app.DeliveryAddress'),
        ),
        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='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'),
        ),
    ]