Exemplo n.º 1
0
class Migration(migrations.Migration):

    dependencies = [
        ('App', '0014_auto_20200305_2306'),
    ]

    operations = [
        migrations.CreateModel(
            name='Order',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('o_paymoney', models.FloatField(default=0)),
                ('o_create', models.DateTimeField(auto_now=True)),
                ('o_status', models.IntegerField(default=1)),
                ('o_user',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='App.MZUser')),
            ],
            options={
                'db_table': 'mz_order',
            },
        ),
        migrations.CreateModel(
            name='OrderGoods',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('o_goods', models.FloatField(verbose_name=App.models.Goods)),
                ('o_goods_num', models.IntegerField(default=1)),
                ('o_platformordernumber', models.CharField(max_length=255)),
                ('o_extdata', models.CharField(max_length=128)),
                ('o_realmoney', models.FloatField(default=0)),
                ('o_order',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='App.Order')),
            ],
            options={
                'db_table': 'mz_ordergoods',
            },
        ),
    ]
Exemplo n.º 2
0
class Migration(migrations.Migration):

    dependencies = [
        ('App', '0003_showgoods'),
    ]

    operations = [
        migrations.CreateModel(
            name='Cart',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('user', models.FloatField(verbose_name=App.models.User)),
                ('number', models.IntegerField()),
                ('isselect', models.BooleanField(default=True)),
                ('showgoods',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='App.Showgoods')),
            ],
            options={
                'db_table': 'app_cart',
            },
        ),
    ]
Exemplo n.º 3
0
class Migration(migrations.Migration):

    dependencies = [
        ('App', '0011_cart'),
    ]

    operations = [
        migrations.CreateModel(
            name='Order',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('o_price', models.FloatField(default=0)),
                ('o_time', models.DateTimeField(auto_now=True)),
                ('o_status', models.IntegerField(default=1)),
                ('o_user',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='App.AXFUser')),
            ],
            options={
                'db_table': 'axf_order',
            },
        ),
        migrations.CreateModel(
            name='OrderGoods',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('o_goods', models.FloatField(verbose_name=App.models.Goods)),
                ('o_goods_num', models.IntegerField(default=1)),
                ('o_order',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='App.Order')),
            ],
            options={
                'db_table': 'axf_ordergoods',
            },
        ),
    ]
Exemplo n.º 4
0
class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='Image',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('image', models.ImageField(null=True, upload_to=App.models.fileupload)),
            ],
        ),
    ]
Exemplo n.º 5
0
class Migration(migrations.Migration):

    initial = True

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

    operations = [
        migrations.CreateModel(
            name='Entry',
            fields=[
                ('_id',
                 djongo.models.fields.ObjectIdField(auto_created=True,
                                                    primary_key=True,
                                                    serialize=False)),
                ('blog',
                 djongo.models.fields.EmbeddedField(
                     model_container=App.models.Blog)),
                ('headline', models.CharField(max_length=255)),
            ],
        ),
        migrations.CreateModel(
            name='UserDetail',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('UserId',
                 models.CharField(blank=True, default='', max_length=50)),
                ('FirstName',
                 models.CharField(blank=True, default='', max_length=50)),
                ('LastName',
                 models.CharField(blank=True, default='', max_length=50)),
                ('Password',
                 models.CharField(blank=True, default='', max_length=100)),
                ('Email', models.EmailField(blank=True, max_length=254)),
                ('SecurityQuestion',
                 models.CharField(blank=True, default='', max_length=150)),
                ('SecurityAnswer',
                 models.CharField(blank=True, default='', max_length=500)),
                ('profilePic',
                 models.ImageField(default='media/user.png',
                                   upload_to='media')),
                ('Gender',
                 models.CharField(choices=[('M', 'Male'), ('F', 'Female'),
                                           ('O', 'Other')],
                                  default='',
                                  max_length=1)),
            ],
        ),
        migrations.CreateModel(
            name='Votes',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('questionId', models.CharField(max_length=100)),
                ('userId', models.CharField(max_length=50)),
                ('voteType', models.IntegerField(blank=True)),
            ],
        ),
        migrations.CreateModel(
            name='Questions',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('userId', models.CharField(max_length=50)),
                ('questionId', models.UUIDField(default=uuid.uuid4,
                                                unique=True)),
                ('question', models.TextField()),
                ('totalVotes', models.IntegerField(blank=True, default=0)),
                ('date', models.DateTimeField(auto_now_add=True)),
                ('User',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   related_name='user',
                                   to='App.UserDetail')),
            ],
        ),
    ]
class Migration(migrations.Migration):

    initial = True

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

    operations = [
        migrations.CreateModel(
            name='AppUser',
            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)),
                ('picture',
                 models.ImageField(blank=True,
                                   null=True,
                                   upload_to=App.models.file_upload)),
                ('company_name',
                 models.CharField(blank=True, max_length=100, null=True)),
                ('birth_date',
                 models.CharField(blank=True, max_length=100, null=True)),
                ('points', models.IntegerField(default=0)),
            ],
            options={
                'verbose_name': 'user',
                'verbose_name_plural': 'users',
                'abstract': False,
            },
            bases=('auth.user', ),
            managers=[
                ('objects', django.contrib.auth.models.UserManager()),
            ],
        ),
        migrations.CreateModel(
            name='Competition',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('title', models.CharField(max_length=250)),
                ('description', models.CharField(max_length=400)),
                ('logo', models.ImageField(upload_to=App.models.file_upload)),
                ('cover', models.ImageField(upload_to=App.models.file_upload)),
                ('max_limit', models.IntegerField(default=0)),
                ('speed_limit', models.IntegerField(default=0)),
                ('road', models.CharField(max_length=300)),
                ('subscribers',
                 models.ManyToManyField(blank=True,
                                        null=True,
                                        related_name='subscribers',
                                        to='App.AppUser')),
            ],
        ),
        migrations.CreateModel(
            name='Trip',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('road', models.TextField(blank=True, null=True)),
                ('direction', models.CharField(max_length=250)),
                ('user',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='App.AppUser')),
            ],
        ),
        migrations.CreateModel(
            name='GpsLog',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('lat', models.CharField(max_length=250)),
                ('lng', models.CharField(max_length=250)),
                ('current_speed', models.IntegerField(default=0)),
                ('accuracy', models.IntegerField(blank=True, null=True)),
                ('direction',
                 models.CharField(blank=True, max_length=250, null=True)),
                ('acceleration',
                 models.CharField(blank=True, max_length=250, null=True)),
                ('competition',
                 models.ForeignKey(
                     on_delete=django.db.models.deletion.DO_NOTHING,
                     to='App.Competition')),
                ('trip',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   related_name='trip',
                                   to='App.Trip')),
                ('user',
                 models.ForeignKey(
                     on_delete=django.db.models.deletion.DO_NOTHING,
                     related_name='user',
                     to='App.AppUser')),
            ],
        ),
    ]
class Migration(migrations.Migration):

    initial = True

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

    operations = [
        migrations.CreateModel(
            name='User',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('password',
                 models.CharField(max_length=128, verbose_name='password')),
                ('last_login',
                 models.DateTimeField(blank=True,
                                      null=True,
                                      verbose_name='last login')),
                ('is_superuser',
                 models.BooleanField(
                     default=False,
                     help_text=
                     'Designates that this user has all permissions without explicitly assigning them.',
                     verbose_name='superuser status')),
                ('email',
                 models.EmailField(max_length=254,
                                   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=30,
                                  verbose_name='last name')),
                ('date_joined',
                 models.DateTimeField(auto_now_add=True,
                                      verbose_name='date joined')),
                ('is_active',
                 models.BooleanField(default=True, verbose_name='active')),
                ('is_staff',
                 models.BooleanField(default=False, verbose_name='staff')),
                ('groups',
                 models.ManyToManyField(
                     blank=True,
                     help_text=
                     'The groups this user belongs to. A user will get all permissions granted to each of their groups.',
                     related_name='user_set',
                     related_query_name='user',
                     to='auth.Group',
                     verbose_name='groups')),
                ('user_permissions',
                 models.ManyToManyField(
                     blank=True,
                     help_text='Specific permissions for this user.',
                     related_name='user_set',
                     related_query_name='user',
                     to='auth.Permission',
                     verbose_name='user permissions')),
            ],
            options={
                'verbose_name': 'user',
                'verbose_name_plural': 'users',
            },
            managers=[
                ('objects', App.models.UserManager()),
            ],
        ),
    ]
Exemplo n.º 8
0
class Migration(migrations.Migration):

    initial = True

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

    operations = [
        migrations.CreateModel(
            name='Application',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
            ],
        ),
        migrations.CreateModel(
            name='Internship',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('name', models.CharField(max_length=100)),
                ('location', models.CharField(max_length=50)),
                ('description', models.TextField()),
                ('stipend', models.IntegerField()),
                ('number_of_internships', models.IntegerField()),
                ('start_date', models.DateField()),
                ('duration', models.IntegerField()),
                ('posted_on', models.DateField()),
                ('apply_by', models.DateField()),
                ('incentives', models.TextField()),
            ],
        ),
        migrations.CreateModel(
            name='Internship_sq',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('question', models.CharField(max_length=100)),
                ('answer', models.TextField()),
                ('internship',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   related_name='internship_sq',
                                   to='App.Internship')),
            ],
        ),
        migrations.CreateModel(
            name='Professor',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('name', models.CharField(max_length=50)),
                ('bio', models.TextField()),
            ],
        ),
        migrations.CreateModel(
            name='Profile',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('interned', models.BooleanField(default=False)),
                ('mobile',
                 models.CharField(
                     blank=True,
                     max_length=17,
                     validators=[
                         django.core.validators.RegexValidator(
                             message=
                             "Phone number must be entered in the format: '+999999999'. Up to 15 digits allowed.",
                             regex='^\\+?1?\\d{9,15}$')
                     ])),
                ('resume', models.FileField(null=True, upload_to='')),
                ('cover_letter', models.FileField(null=True, upload_to='')),
                ('lor', models.FileField(null=True, upload_to='')),
                ('user',
                 models.OneToOneField(
                     on_delete=django.db.models.deletion.CASCADE,
                     related_name='base_profile',
                     to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.CreateModel(
            name='Profile_add_details',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('add_details', models.TextField()),
                ('user',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   related_name='profile_add_details',
                                   to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.CreateModel(
            name='Profile_education',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('graduation_status',
                 models.CharField(choices=[('P', 'Pursuing'),
                                           ('C', 'Completed')],
                                  max_length=1)),
                ('college', models.CharField(max_length=200)),
                ('start_year',
                 models.IntegerField(validators=[
                     django.core.validators.MinValueValidator(1984),
                     App.models.max_value_current_year
                 ])),
                ('end_year',
                 models.IntegerField(validators=[
                     django.core.validators.MinValueValidator(1984),
                     App.models.max_value_current_year
                 ])),
                ('degree', models.CharField(max_length=100)),
                ('stream', models.CharField(max_length=50)),
                ('cgpa',
                 models.FloatField(
                     validators=[django.core.validators.MaxValueValidator(10)])
                 ),
                ('user',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   related_name='profile_education',
                                   to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.CreateModel(
            name='Profile_internships',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('profile', models.CharField(max_length=50)),
                ('organization', models.CharField(max_length=50)),
                ('location', models.CharField(max_length=50)),
                ('start_date', models.DateField()),
                ('end_date', models.DateField()),
                ('description', models.TextField()),
                ('user',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   related_name='profile_internships',
                                   to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.CreateModel(
            name='Profile_POR',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('description', models.TextField()),
                ('user',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   related_name='profile_por',
                                   to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.CreateModel(
            name='Profile_projects',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('title', models.CharField(max_length=50)),
                ('start_month', models.DateField()),
                ('end_month', models.DateField()),
                ('description', models.TextField()),
                ('project_link', models.URLField()),
                ('user',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   related_name='profile_projects',
                                   to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.CreateModel(
            name='Profile_skills',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('name', models.CharField(max_length=50)),
                ('level',
                 models.CharField(choices=[('B', 'Beginner'),
                                           ('I', 'Intermediate'),
                                           ('A', 'Advanced')],
                                  max_length=1)),
                ('user',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   related_name='profile_skills',
                                   to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.CreateModel(
            name='Profile_work_samples',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('blog_link', models.URLField()),
                ('github_profile', models.URLField()),
                ('other_portfolio_link', models.URLField()),
                ('user',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   related_name='profile_work_samples',
                                   to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.AddField(
            model_name='internship',
            name='professor',
            field=models.ForeignKey(
                on_delete=django.db.models.deletion.CASCADE,
                related_name='interships',
                to='App.Professor'),
        ),
        migrations.AddField(
            model_name='application',
            name='internship',
            field=models.ForeignKey(
                on_delete=django.db.models.deletion.CASCADE,
                related_name='application',
                to='App.Internship'),
        ),
        migrations.AddField(
            model_name='application',
            name='user',
            field=models.ManyToManyField(related_name='applications',
                                         to=settings.AUTH_USER_MODEL),
        ),
    ]
class Migration(migrations.Migration):

    dependencies = [
        ('App', '0015_auto_20200927_2212'),
    ]

    operations = [
        migrations.CreateModel(
            name='Product',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('name', models.CharField(max_length=63)),
                ('price',
                 models.DecimalField(decimal_places=2,
                                     default=0,
                                     max_digits=12)),
                ('quantity_measure',
                 models.CharField(choices=[('litre', 'Litre'),
                                           ('piece', 'Piece'),
                                           ('metre', 'Metre'),
                                           ('kilogram', 'Kilogram')],
                                  max_length=31)),
                ('created', models.DateTimeField(auto_now_add=True)),
            ],
        ),
        migrations.CreateModel(
            name='ProductCategory',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('name', models.CharField(max_length=63)),
            ],
        ),
        migrations.CreateModel(
            name='ProductTrade',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('tradePrice',
                 models.DecimalField(decimal_places=2,
                                     default=0,
                                     max_digits=12)),
                ('sold_product_quantity',
                 models.DecimalField(decimal_places=2,
                                     default=0,
                                     max_digits=12)),
                ('dateTime', models.DateTimeField()),
                ('created_by',
                 models.ForeignKey(default=App.models.get_super_user,
                                   on_delete=models.SET(
                                       App.models.get_super_user),
                                   related_name='created_product_trades',
                                   to='App.member')),
                ('product',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   related_name='trades',
                                   to='App.product')),
            ],
        ),
        migrations.CreateModel(
            name='ProductCheckIn',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('checkin_product_quantity',
                 models.DecimalField(decimal_places=2,
                                     default=0,
                                     max_digits=12)),
                ('date', models.DateField()),
                ('created_by',
                 models.ForeignKey(default=App.models.get_super_user,
                                   on_delete=models.SET(
                                       App.models.get_super_user),
                                   related_name='created_product_checkins',
                                   to='App.member')),
                ('product',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   related_name='checkins',
                                   to='App.product')),
            ],
        ),
        migrations.AddField(
            model_name='product',
            name='category',
            field=models.ForeignKey(
                on_delete=django.db.models.deletion.CASCADE,
                related_name='products',
                to='App.productcategory'),
        ),
        migrations.AddField(
            model_name='product',
            name='created_by',
            field=models.ForeignKey(default=App.models.get_super_user,
                                    on_delete=models.SET(
                                        App.models.get_super_user),
                                    related_name='created_products',
                                    to='App.member'),
        ),
    ]
Exemplo n.º 10
0
class Migration(migrations.Migration):

    initial = True

    dependencies = []

    operations = [
        migrations.CreateModel(
            name='Address',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('street_number',
                 models.IntegerField(verbose_name='Street Number')),
                ('street_name',
                 models.CharField(max_length=100, verbose_name='Street Name')),
                ('city', models.CharField(max_length=100,
                                          verbose_name='City')),
                ('state', models.CharField(max_length=50,
                                           verbose_name='State')),
                ('zip_code', models.IntegerField(verbose_name='Zip Code')),
            ],
        ),
        migrations.CreateModel(
            name='Class_Type',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('title', models.CharField(max_length=200,
                                           verbose_name='Title')),
            ],
        ),
        migrations.CreateModel(
            name='Collaborator',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('name', models.CharField(max_length=200,
                                          verbose_name='Name')),
            ],
        ),
        migrations.CreateModel(
            name='Collection',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('title', models.CharField(max_length=200,
                                           verbose_name='Title')),
                ('month', models.CharField(max_length=200,
                                           verbose_name='Month')),
                ('code', models.CharField(max_length=200,
                                          verbose_name='Code')),
                ('collaborator',
                 models.ManyToManyField(to='App.Collaborator')),
            ],
        ),
        migrations.CreateModel(
            name='Customer',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('phone_number',
                 models.CharField(max_length=15, verbose_name='Phone Number')),
                ('email', models.CharField(max_length=50,
                                           verbose_name='Email')),
                ('name', models.CharField(max_length=100,
                                          verbose_name='Name')),
                ('address_id',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='App.Address')),
            ],
        ),
        migrations.CreateModel(
            name='Fabric',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('title', models.CharField(max_length=200,
                                           verbose_name='Title')),
                ('code', models.CharField(max_length=200,
                                          verbose_name='Code')),
                ('content',
                 models.CharField(max_length=200, verbose_name='Content')),
                ('description',
                 models.CharField(max_length=200, verbose_name='Description')),
                ('quantity', models.FloatField(verbose_name='Quantity')),
                ('last_updated',
                 models.DateTimeField(blank=True,
                                      default=datetime.datetime.now,
                                      verbose_name='Last Updated')),
            ],
        ),
        migrations.CreateModel(
            name='LabelTag',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('title', models.CharField(max_length=200,
                                           verbose_name='Title')),
                ('description',
                 models.CharField(max_length=500, verbose_name='Description')),
                ('quantity', models.IntegerField(verbose_name='Quantity')),
                ('last_updated',
                 models.DateTimeField(blank=True,
                                      default=datetime.datetime.now,
                                      verbose_name='Last Updated')),
            ],
        ),
        migrations.CreateModel(
            name='Log_Entry',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('entry_date',
                 models.DateTimeField(blank=True,
                                      default=datetime.datetime.now,
                                      verbose_name='Entry Date')),
                ('event', models.CharField(max_length=200,
                                           verbose_name='Event')),
            ],
        ),
        migrations.CreateModel(
            name='Notion',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('title', models.CharField(max_length=100,
                                           verbose_name='Title')),
                ('description',
                 models.CharField(max_length=500, verbose_name='Description')),
                ('quantity', models.IntegerField(verbose_name='Quantity')),
                ('last_updated',
                 models.DateTimeField(blank=True,
                                      default=datetime.datetime.now,
                                      verbose_name='Last Update')),
            ],
        ),
        migrations.CreateModel(
            name='Order',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('order_date',
                 models.DateTimeField(blank=True,
                                      default=datetime.datetime.now,
                                      verbose_name='Order Date')),
                ('order_number',
                 models.IntegerField(verbose_name='Order Number')),
                ('originated_From',
                 models.CharField(max_length=200,
                                  verbose_name='Originated From')),
                ('order_status',
                 models.CharField(choices=[('completed', 'Completed'),
                                           ('pending', 'Pending')],
                                  default='pending',
                                  max_length=20,
                                  verbose_name='Order Status')),
                ('customer_id',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='App.Customer')),
            ],
        ),
        migrations.CreateModel(
            name='Pattern_Piece',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('title', models.CharField(max_length=100,
                                           verbose_name='Title')),
            ],
        ),
        migrations.CreateModel(
            name='Product',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('sku', models.CharField(max_length=200, verbose_name='SKU')),
                ('title', models.CharField(max_length=200,
                                           verbose_name='Title')),
                ('description',
                 models.CharField(max_length=500, verbose_name='Description')),
                ('image_path',
                 models.FileField(upload_to=App.models.get_upload_file_name)),
                ('tech_pack_path',
                 models.FileField(upload_to=App.models.get_upload_file_name)),
                ('quantity', models.FloatField(verbose_name='Quantity')),
                ('collection_id',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='App.Collection')),
            ],
        ),
        migrations.CreateModel(
            name='Product_Fabric_Quantity',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('quantity', models.IntegerField(verbose_name='Quantity')),
                ('fabric',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='App.Fabric')),
            ],
        ),
        migrations.CreateModel(
            name='Product_Notion_Quantity',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('quantity', models.IntegerField(verbose_name='Quantity')),
                ('notion',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='App.Notion')),
            ],
        ),
        migrations.CreateModel(
            name='Product_Quantity',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('quantity', models.IntegerField(verbose_name='Quantity')),
                ('class_type',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='App.Class_Type')),
                ('product_type',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='App.Product')),
            ],
        ),
        migrations.CreateModel(
            name='Season',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('title', models.CharField(max_length=200,
                                           verbose_name='Title')),
            ],
        ),
        migrations.CreateModel(
            name='Size',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('size', models.CharField(max_length=200,
                                          verbose_name='Size')),
                ('code', models.CharField(max_length=200,
                                          verbose_name='Code')),
            ],
        ),
        migrations.CreateModel(
            name='Style',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('title', models.CharField(max_length=100,
                                           verbose_name='Title')),
                ('code', models.CharField(max_length=200,
                                          verbose_name='Code')),
                ('pattern_pieces',
                 models.ManyToManyField(to='App.Pattern_Piece')),
            ],
        ),
        migrations.CreateModel(
            name='Variation',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('title', models.CharField(max_length=100,
                                           verbose_name='Title')),
                ('code', models.CharField(max_length=200,
                                          verbose_name='Code')),
                ('pattern_pieces',
                 models.ManyToManyField(to='App.Pattern_Piece')),
            ],
        ),
        migrations.AddField(
            model_name='product',
            name='fabrics',
            field=models.ManyToManyField(to='App.Product_Fabric_Quantity'),
        ),
        migrations.AddField(
            model_name='product',
            name='label_tag',
            field=models.ManyToManyField(to='App.LabelTag'),
        ),
        migrations.AddField(
            model_name='product',
            name='notions',
            field=models.ManyToManyField(to='App.Product_Notion_Quantity'),
        ),
        migrations.AddField(
            model_name='product',
            name='style_id',
            field=models.ForeignKey(
                on_delete=django.db.models.deletion.CASCADE, to='App.Style'),
        ),
        migrations.AddField(
            model_name='product',
            name='variation_id',
            field=models.ForeignKey(
                on_delete=django.db.models.deletion.CASCADE,
                to='App.Variation'),
        ),
        migrations.AddField(
            model_name='order',
            name='product',
            field=models.ManyToManyField(to='App.Product_Quantity'),
        ),
        migrations.AddField(
            model_name='collection',
            name='season_id',
            field=models.ForeignKey(
                on_delete=django.db.models.deletion.CASCADE, to='App.Season'),
        ),
    ]