class Migration(migrations.Migration): initial = True dependencies = [] operations = [ migrations.CreateModel( name='Banner', fields=[ ('is_active', models.BooleanField(default=True)), ('create_date', models.DateTimeField(auto_now_add=True)), ('banner_id', models.AutoField(primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=100, verbose_name='标题')), ('image', models.ImageField(storage=apps.home.models.ImageStorage(), upload_to='banner/%Y%m%d', verbose_name='轮播图')), ('detail_url', models.URLField(verbose_name='访问地址')), ('order', models.IntegerField(default=1, verbose_name='顺序')), ('create_time', models.DateTimeField(auto_now_add=True, verbose_name='添加时间')), ], options={ 'verbose_name': '轮播图', 'verbose_name_plural': '轮播图', 'db_table': 'banner', }, ), migrations.CreateModel( name='Navigation', fields=[ ('is_active', models.BooleanField(default=True)), ('create_date', models.DateTimeField(auto_now_add=True)), ('nav_id', models.AutoField(primary_key=True, serialize=False)), ('nav_name', models.CharField(max_length=64)), ], options={ 'verbose_name': '导航条', 'verbose_name_plural': '导航条', 'db_table': 'navigation', }, ), ]
class Migration(migrations.Migration): dependencies = [ ('home', '0002_images_name'), ] operations = [ migrations.AlterField( model_name='images', name='image', field=models.ImageField( help_text='Upload an image with 1326 x 635 ', upload_to=apps.home.models.get_image_filename, verbose_name='Image'), ), ]
class Migration(migrations.Migration): dependencies = [ ('home', '0004_auto_20190610_1126'), ] operations = [ migrations.AlterField( model_name='images', name='image', field=models.ImageField( help_text= 'Upload an image with 1920 x 920 , size: 58.8 kB (58,821 bytes) ', upload_to=apps.home.models.get_image_filename, verbose_name='Image'), ), ]
class Migration(migrations.Migration): initial = True dependencies = [] operations = [ migrations.CreateModel( name='Images', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('image', models.ImageField( upload_to=apps.home.models.get_image_filename, verbose_name='Image')), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='Banner', fields=[ ('banner_id', models.AutoField(primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=100, verbose_name='标题')), ('image', models.ImageField(storage=apps.home.models.ImageStorage(), upload_to='banner/%Y%m%d', verbose_name='轮播图')), ('detail_url', models.URLField(verbose_name='访问地址')), ('order', models.IntegerField(default=1, verbose_name='顺序')), ('create_time', models.DateTimeField(auto_now_add=True, verbose_name='添加时间')), ], options={ 'verbose_name': '轮播图', 'verbose_name_plural': '轮播图', 'db_table': 'banner', }, ), migrations.CreateModel( name='Category', fields=[ ('cate_id', models.AutoField(primary_key=True, serialize=False, verbose_name='分类ID')), ('name', models.CharField(max_length=255, unique=True, verbose_name='名称')), ], options={ 'verbose_name': '分类菜单', 'verbose_name_plural': '菜单管理', 'db_table': 'category', }, ), migrations.CreateModel( name='Navigation', fields=[ ('nav_id', models.AutoField(primary_key=True, serialize=False)), ('nav_name', models.CharField(max_length=64)), ], options={ 'db_table': 'navigation', }, ), migrations.CreateModel( name='Order', fields=[ ('oid', models.AutoField(primary_key=True, serialize=False, verbose_name='订单ID')), ('order_code', models.CharField(max_length=255, verbose_name='订单号')), ('address', models.CharField(max_length=255, verbose_name='配送地址')), ('post', models.CharField(max_length=255, verbose_name='邮编')), ('receiver', models.CharField(max_length=255, verbose_name='收货人')), ('mobile', models.CharField(max_length=11, verbose_name='手机号')), ('user_message', models.CharField(max_length=255, verbose_name='附加信息')), ('create_date', models.DateTimeField(max_length=0, verbose_name='创建日期')), ('pay_date', models.DateTimeField(blank=True, max_length=0, null=True, verbose_name='支付时间')), ('delivery_date', models.DateTimeField(blank=True, null=True, verbose_name='交易日期')), ('confirm_date', models.DateTimeField(blank=True, null=True, verbose_name='确认日期')), ('status', models.IntegerField(choices=[(1, '正常'), (0, '异常'), (-1, '删除')], default=1, verbose_name='订单状态')), ], options={ 'verbose_name': '订单', 'verbose_name_plural': '订单管理', 'db_table': 'order', }, ), migrations.CreateModel( name='Property', fields=[ ('property_id', models.AutoField(primary_key=True, serialize=False, verbose_name='商品属性')), ('name', models.CharField(max_length=64, verbose_name='属性名称')), ('cate', models.ForeignKey( db_column='cate_id', on_delete=django.db.models.deletion.DO_NOTHING, to='home.Category', verbose_name='父菜单')), ], options={ 'verbose_name': '商品属性', 'verbose_name_plural': '商品属性', 'db_table': 'property', }, ), migrations.CreateModel( name='PropertyValue', fields=[ ('pro_value_id', models.IntegerField(primary_key=True, serialize=False, verbose_name='ID')), ('value', models.CharField(max_length=255, verbose_name='属性值')), ('property', models.ForeignKey(db_column='property_id', on_delete=django.db.models.deletion.CASCADE, to='home.Property', verbose_name='属性ID')), ], options={ 'verbose_name': '商品属性值', 'verbose_name_plural': '商品属性值', 'db_table': 'property_value', }, ), migrations.CreateModel( name='Review', fields=[ ('review_id', models.AutoField(primary_key=True, serialize=False, verbose_name='ID')), ('content', models.CharField(max_length=4000, verbose_name='内容')), ('create_date', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')), ], options={ 'verbose_name': '用户评论', 'verbose_name_plural': '用户评论', 'db_table': 'review', }, ), migrations.CreateModel( name='Shop', fields=[ ('shop_id', models.IntegerField(primary_key=True, serialize=False, verbose_name='商品ID')), ('name', models.CharField(max_length=100, verbose_name='商品名称')), ('sub_title', models.CharField(max_length=255, verbose_name='商品标题')), ('original_price', models.DecimalField(decimal_places=2, max_digits=7, verbose_name='原价')), ('promote_price', models.DecimalField(decimal_places=2, max_digits=7, verbose_name='折扣价')), ('stock', models.IntegerField(verbose_name='库存')), ('create_date', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')), ('cate', models.ForeignKey( db_column='cate_id', on_delete=django.db.models.deletion.DO_NOTHING, to='home.Category', verbose_name='商品分类')), ], options={ 'verbose_name': '商品信息', 'verbose_name_plural': '商品管理', 'db_table': 'shop', }, ), migrations.CreateModel( name='ShopCar', fields=[ ('car_id', models.AutoField(primary_key=True, serialize=False, verbose_name='ID')), ('number', models.IntegerField(default=0, verbose_name='商品数量')), ('status', models.IntegerField(default=1)), ('order', models.ForeignKey( db_column='oid', null=True, on_delete=django.db.models.deletion.SET_NULL, to='home.Order', verbose_name='商品ID')), ('shop', models.ForeignKey( on_delete=django.db.models.deletion.DO_NOTHING, to='home.Shop', verbose_name='商品ID')), ], options={ 'verbose_name': '购物车', 'verbose_name_plural': '购物车', 'db_table': 'shop_car', }, ), migrations.CreateModel( name='ShopImage', fields=[ ('shop_img_id', models.AutoField(primary_key=True, serialize=False)), ('type', models.CharField(blank=True, max_length=32, null=True, verbose_name='图片类型')), ('shop', models.ForeignKey( db_column='shop_id', on_delete=django.db.models.deletion.DO_NOTHING, to='home.Shop', verbose_name='商品ID')), ], options={ 'verbose_name': '商品图片', 'verbose_name_plural': '商品图片管理', 'db_table': 'shop_image', }, ), migrations.CreateModel( name='SubMenu', fields=[ ('sub_menu_id', models.AutoField(primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(blank=True, max_length=255, null=True, verbose_name='名称')), ('cate', models.ForeignKey( db_column='cate_id', on_delete=django.db.models.deletion.DO_NOTHING, to='home.Category', verbose_name='父菜单')), ], options={ 'verbose_name': '一级菜单', 'verbose_name_plural': '一级菜单管理', 'db_table': 'sub_menu', }, ), migrations.CreateModel( name='SubMenu2', fields=[ ('sub_menu2_id', models.AutoField(primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=255, verbose_name='名称')), ('sub_menu', models.ForeignKey( db_column='sub_menu_id', on_delete=django.db.models.deletion.DO_NOTHING, to='home.SubMenu', verbose_name='父菜单')), ], options={ 'verbose_name': '二级菜单', 'verbose_name_plural': '二级菜单管理', 'db_table': 'sub_menu2', }, ), migrations.CreateModel( name='UserProfile', fields=[ ('phone', models.CharField(default='110', max_length=11)), ('desc', models.CharField(max_length=255, null=True)), ('uid', models.AutoField(primary_key=True, serialize=False, verbose_name='用户ID')), ('icon', models.ImageField(default='apps/static/img/default.png', upload_to='upload/img/%Y%m%d', verbose_name='头像')), ('user', models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], options={ 'verbose_name': '用户管理', 'verbose_name_plural': '用户管理', 'db_table': 'user_profile', }, ), migrations.AddField( model_name='shopcar', name='user', field=models.ForeignKey( db_column='uid', on_delete=django.db.models.deletion.DO_NOTHING, to='home.UserProfile', verbose_name='用户ID'), ), migrations.AddField( model_name='review', name='shop', field=models.ForeignKey( db_column='shop_id', on_delete=django.db.models.deletion.DO_NOTHING, to='home.Shop', verbose_name='商品ID'), ), migrations.AddField( model_name='review', name='user', field=models.ForeignKey( db_column='uid', on_delete=django.db.models.deletion.DO_NOTHING, to='home.UserProfile', verbose_name='用户ID'), ), migrations.AddField( model_name='propertyvalue', name='shop', field=models.ForeignKey( db_column='shop_id', on_delete=django.db.models.deletion.CASCADE, to='home.Shop', verbose_name='商品ID'), ), migrations.AddField( model_name='order', name='user', field=models.ForeignKey( db_column='uid', on_delete=django.db.models.deletion.DO_NOTHING, to='home.UserProfile', verbose_name='用户ID'), ), ]
class Migration(migrations.Migration): initial = True dependencies = [] operations = [ migrations.CreateModel( name='Advertisement', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=255, verbose_name='Название')), ('url', models.CharField(max_length=255, verbose_name='Ссылка')), ('image', models.ImageField( blank=True, null=True, upload_to=apps.home.models.upload_advertisements_location, verbose_name='фото')), ('extra', django.contrib.postgres.fields.jsonb.JSONField( blank=True, default=dict, null=True, verbose_name='Дополнительно')), ], options={ 'verbose_name_plural': 'Объявления', 'verbose_name': 'Объявление', }, ), migrations.CreateModel( name='Banner', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=255, verbose_name='Название')), ('url', models.CharField(max_length=255, verbose_name='Ссылка')), ('image', models.ImageField( blank=True, null=True, upload_to=apps.home.models.upload_banner_location, verbose_name='Баннер')), ('extra', django.contrib.postgres.fields.jsonb.JSONField( blank=True, default=dict, null=True, verbose_name='Дополнительно')), ], options={ 'verbose_name_plural': 'Баннеры', 'verbose_name': 'Баннер', }, ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0009_alter_user_last_name_max_length'), ] operations = [ CreateExtension('postgis'), migrations.CreateModel( name='User', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('password', models.CharField(max_length=128, verbose_name='password')), ('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')), ('is_superuser', models.BooleanField( default=False, help_text= 'Designates that this user has all permissions without explicitly assigning them.', verbose_name='superuser status')), ('username', models.CharField( error_messages={ 'unique': 'A user with that username already exists.' }, help_text= 'Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.', max_length=150, unique=True, validators=[ django.contrib.auth.validators. UnicodeUsernameValidator() ], verbose_name='username')), ('first_name', models.CharField(blank=True, max_length=30, verbose_name='first name')), ('last_name', models.CharField(blank=True, max_length=150, verbose_name='last name')), ('email', models.EmailField(blank=True, max_length=254, verbose_name='email address')), ('is_staff', models.BooleanField( default=False, help_text= 'Designates whether the user can log into this admin site.', verbose_name='staff status')), ('is_active', models.BooleanField( default=True, help_text= 'Designates whether this user should be treated as active. Unselect this instead of deleting accounts.', verbose_name='active')), ('date_joined', models.DateTimeField(default=django.utils.timezone.now, verbose_name='date joined')), ('ava_user', models.ImageField(blank=True, default='avatars/default.png', null=True, upload_to='avatars')), ('isPart', models.BooleanField(default=False)), ('isVet', models.BooleanField(default=False)), ], options={ 'verbose_name': 'user', 'verbose_name_plural': 'users', 'abstract': False, }, managers=[ ('objects', apps.home.models.CustomUserManager()), ], ), migrations.CreateModel( name='Partner', fields=[ ('user', models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, primary_key=True, serialize=False, to=settings.AUTH_USER_MODEL)), ('partner_phone', models.CharField(blank=True, max_length=12, null=True)), ('partner_address1', models.CharField(blank=True, max_length=300, null=True)), ('partner_address2', models.CharField(blank=True, max_length=300, null=True)), ('partner_state', models.CharField(blank=True, 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') ], max_length=2, null=True, verbose_name='state')), ('partner_zip', models.CharField(blank=True, max_length=5, null=True)), ('partner_name', models.CharField(blank=True, max_length=300, null=True)), ('partner_mission', models.CharField(blank=True, max_length=300, null=True)), ('partner_logo', models.ImageField(blank=True, default='avatars/default.png', null=True, upload_to='partnerLogos')), ('partner_web_address', models.CharField(blank=True, max_length=255, null=True)), ('partner_isPart', models.FloatField(default=True)), ('partner_Lat', models.FloatField(blank=True, default=0.0, null=True)), ('partner_Lon', models.FloatField(blank=True, default=0.0, null=True)), ('partner_point', django.contrib.gis.db.models.fields.PointField( blank=True, default= '0101000020E6100000EC884336906740407B911A248E495DC0', null=True, srid=4326)), ], options={ 'db_table': 'partner', }, bases=('home.user', ), managers=[ ('objects', apps.home.models.CustomUserManager()), ], ), migrations.CreateModel( name='Veteran', fields=[ ('user', models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, primary_key=True, serialize=False, to=settings.AUTH_USER_MODEL)), ('vet_mobile', models.CharField(blank=True, max_length=12, null=True)), ('vet_state', models.CharField(blank=True, 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') ], max_length=2, null=True, verbose_name='state')), ('vet_zip', models.CharField(blank=True, max_length=5, null=True)), ('vet_branch', models.CharField(choices=[('', '---------'), ('usaf', 'Air Force'), ('usa', 'Army'), ('uscg', 'Coast Guard'), ('usmc', 'Marines'), ('usn', 'Navy')], max_length=4, verbose_name='vet_branch')), ('vet_unit', models.CharField(blank=True, max_length=50, null=True)), ('vet_isPost911', models.BooleanField(blank=True, choices=[('', '---------'), (True, 'Yes'), (False, 'No')], null=True, verbose_name='vet_isPost911')), ('vet_isCombat', models.BooleanField(blank=True, choices=[('', '---------'), (True, 'Yes'), (False, 'No')], null=True, verbose_name='vet_isCombat')), ('vet_isVet', models.BooleanField(default=True)), ('vet_isNotifications', models.BooleanField(blank=True, choices=[('', '---------'), (True, 'Yes'), (False, 'No')], null=True, verbose_name='vet_isNotifications')), ('vet_isShared', models.BooleanField(blank=True, choices=[('', '---------'), (True, 'Yes'), (False, 'No')], null=True, verbose_name='vet_isShared')), ('vet_isSignedUp', models.BooleanField(blank=True, choices=[('', '---------'), (True, 'Yes'), (False, 'No')], null=True, verbose_name='vet_isSignedUp')), ('vet_Lat', models.FloatField(blank=True, default=0.0, null=True)), ('vet_Lon', models.FloatField(blank=True, default=0.0, null=True)), ('vet_point', django.contrib.gis.db.models.fields.PointField( blank=True, default= '0101000020E6100000EC884336906740407B911A248E495DC0', null=True, srid=4326)), ], options={ 'db_table': 'veteran', }, bases=('home.user', ), managers=[ ('objects', apps.home.models.CustomUserManager()), ], ), migrations.AddField( model_name='user', name='groups', field=models.ManyToManyField( blank=True, help_text= 'The groups this user belongs to. A user will get all permissions granted to each of their groups.', related_name='user_set', related_query_name='user', to='auth.Group', verbose_name='groups'), ), migrations.AddField( model_name='user', name='user_permissions', field=models.ManyToManyField( blank=True, help_text='Specific permissions for this user.', related_name='user_set', related_query_name='user', to='auth.Permission', verbose_name='user permissions'), ), ]