# Generated by Django 3.1.4 on 2021-01-05 13:01

from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone


class Migration(migrations.Migration):

    dependencies = [
        ('company', '0107_auto_20201230_0952'),
        ('inventory', '0066_storehouse_keeper'),
    ]

    operations = [
        migrations.CreateModel(
            name='OnlineOrder',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('order_sn', models.CharField(max_length=20, verbose_name='订单号')),
                ('product_id', models.IntegerField(blank=True, null=True, verbose_name='产品ID')),
                ('product_name', models.CharField(max_length=50, verbose_name='商品名称')),
                ('product_code', models.CharField(max_length=20, verbose_name='商品编号')),
                ('quantity', models.IntegerField(verbose_name='数量')),
                ('amount', models.DecimalField(blank=True, decimal_places=2, max_digits=12, null=True, verbose_name='订单总价')),
                ('username', models.CharField(blank=True, max_length=20, null=True, verbose_name='姓名')),
                ('mobile', models.CharField(blank=True, max_length=20, null=True, verbose_name='电话')),
                ('address', models.CharField(blank=True, max_length=100, null=True, verbose_name='地址')),
                ('storeid', models.IntegerField(blank=True, null=True, verbose_name='库房id')),
                ('dt', models.DateField(db_index=True, default=django.utils.timezone.now, verbose_name='日期')),
                ('tm', models.DateTimeField(default=django.utils.timezone.now, verbose_name='时间')),
                ('company_id', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='onlineorder_company', to='company.company', verbose_name='公司')),
            ],
            options={
                'verbose_name': '线上商城订单',
                'verbose_name_plural': '线上商城订单',
            },
        ),
    ]
