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', }, ), ]
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', }, ), ]
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', }, ), ]
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): 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'), ), ]