# Generated by Django 3.1.4 on 2021-02-18 19:11

from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('inventory', '0080_auto_20210201_1539'),
    ]

    operations = [
        migrations.CreateModel(
            name='Tickets',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('ancestor_id', models.IntegerField(db_index=True, verbose_name='族系')),
                ('company_id', models.IntegerField(db_index=True, verbose_name='公司名称')),
                ('order_no', models.CharField(blank=True, db_index=True, max_length=20, null=True, verbose_name='订单号')),
                ('product_id', models.IntegerField(verbose_name='产品ID')),
                ('product_name', models.CharField(max_length=100, verbose_name='产品名称')),
                ('agent_id', models.IntegerField(verbose_name='经销商ID')),
                ('agent_name', models.CharField(max_length=100, verbose_name='经销商名称')),
                ('package_id', models.SmallIntegerField(default=3, verbose_name='包装单位ID')),
                ('qty', models.IntegerField(verbose_name='数量')),
                ('dt', models.DateField(auto_now_add=True, db_index=True, verbose_name='日期')),
                ('tm', models.DateTimeField(auto_now_add=True, verbose_name='生成时间')),
                ('remark', models.CharField(blank=True, max_length=50, null=True, verbose_name='备注说明')),
            ],
            options={
                'verbose_name': '销售启票',
                'verbose_name_plural': '销售启票',
            },
        ),
        migrations.AddField(
            model_name='batch',
            name='ticket_id',
            field=models.IntegerField(blank=True, null=True, verbose_name='销售启票ID'),
        ),
    ]
