# Generated by Django 2.1.7 on 2020-07-03 12:44

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


class Migration(migrations.Migration):

    dependencies = [
        ('sales', '0021_auto_20200702_1118'),
    ]

    operations = [
        migrations.CreateModel(
            name='TjfwAccount',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('wx_openid', models.CharField(db_index=True, max_length=50, verbose_name='微信OpenID')),
                ('dt', models.DateField(auto_now_add=True, db_index=True, verbose_name='日期')),
                ('tm', models.DateTimeField(auto_now_add=True, verbose_name='时间')),
            ],
            options={
                'verbose_name': '天鉴防伪OPENID',
                'verbose_name_plural': '天鉴防伪OPENID',
            },
        ),
        migrations.AddField(
            model_name='consumeraccount',
            name='tjfwaccout',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='sales.WxOfficialAccounts', verbose_name='微信公众号'),
        ),
        migrations.AlterField(
            model_name='consumeraccount',
            name='wx_account',
            field=models.ForeignKey(default=1, on_delete=django.db.models.deletion.CASCADE, to='sales.TjfwAccount', verbose_name='微信公众号'),
            preserve_default=False,
        ),
    ]
