# Generated by Django 2.1.5 on 2019-01-12 05:33

from django.db import migrations, models


class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='BankCard',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('number', models.CharField(max_length=32)),
                ('bankaddr', models.CharField(max_length=32)),
                ('username', models.CharField(max_length=32)),
                ('idCard', models.CharField(max_length=32)),
                ('phone', models.CharField(max_length=32)),
            ],
        ),
        migrations.CreateModel(
            name='Goods',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('goods_id', models.CharField(max_length=32)),
                ('goods_name', models.CharField(max_length=32)),
                ('goods_price', models.CharField(max_length=32)),
                ('goods_now_price', models.CharField(max_length=32)),
                ('goods_stock', models.CharField(max_length=32)),
                ('goods_description', models.CharField(max_length=128)),
                ('goods_content', models.TextField()),
                ('goods_show_time', models.DateField()),
                ('goods_status', models.IntegerField(default=0)),
            ],
        ),
        migrations.CreateModel(
            name='Image',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('img_address', models.ImageField(upload_to='image')),
                ('img_label', models.CharField(max_length=32)),
                ('img_description', models.TextField()),
                ('goods', models.ForeignKey(on_delete=True, to='Seller.Goods')),
            ],
        ),
        migrations.CreateModel(
            name='Seller',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('username', models.CharField(max_length=32)),
                ('password', models.CharField(max_length=32)),
                ('photo', models.ImageField(upload_to='img')),
                ('phone', models.CharField(max_length=32)),
                ('address', models.CharField(max_length=32)),
                ('email', models.EmailField(max_length=32)),
                ('id_number', models.CharField(max_length=32)),
            ],
        ),
        migrations.CreateModel(
            name='Type',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('label', models.CharField(max_length=32)),
                ('parent_id', models.IntegerField()),
                ('description', models.CharField(max_length=128)),
            ],
        ),
        migrations.AddField(
            model_name='goods',
            name='seller',
            field=models.ForeignKey(on_delete=True, to='Seller.Seller'),
        ),
        migrations.AddField(
            model_name='goods',
            name='type',
            field=models.ForeignKey(on_delete=True, to='Seller.Type'),
        ),
        migrations.AddField(
            model_name='bankcard',
            name='seller',
            field=models.ForeignKey(on_delete=True, to='Seller.Seller'),
        ),
    ]
