# Generated by Django 3.1.4 on 2021-02-22 14:11

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


class Migration(migrations.Migration):

    dependencies = [
        ('product', '0013_product_brand'),
        ('company', '0163_remove_bankinfo_status'),
        ('inventory', '0084_auto_20210222_1352'),
    ]

    operations = [
        migrations.RemoveField(
            model_name='tickets',
            name='agent_id',
        ),
        migrations.RemoveField(
            model_name='tickets',
            name='product_id',
        ),
        migrations.RemoveField(
            model_name='tickets',
            name='store_id',
        ),
        migrations.AddField(
            model_name='tickets',
            name='agent',
            field=models.ForeignKey(default=1, on_delete=django.db.models.deletion.CASCADE, to='company.company', verbose_name='经销商'),
            preserve_default=False,
        ),
        migrations.AddField(
            model_name='tickets',
            name='product',
            field=models.ForeignKey(default=1, on_delete=django.db.models.deletion.CASCADE, to='product.product', verbose_name='产品'),
            preserve_default=False,
        ),
        migrations.AddField(
            model_name='tickets',
            name='store',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='inventory.storehouse', verbose_name='仓库'),
        ),
    ]
