# Generated by Django 2.1.7 on 2020-07-03 13:18

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


class Migration(migrations.Migration):

    dependencies = [
        ('sales', '0022_auto_20200703_1244'),
        ('company', '0043_auto_20200620_0908'),
    ]

    operations = [
        migrations.CreateModel(
            name='CompanyCfg',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('tjbase_oauth', models.BooleanField(default=True, verbose_name='允许天鉴防伪微信静默授权')),
                ('inv_mgt', models.BooleanField(blank=True, default=True, null=True, verbose_name='库存管理')),
                ('company', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='cfg_company', to='company.Company', verbose_name='公司名称')),
                ('wx_account', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='sales.WxOfficialAccounts', verbose_name='微信公众号')),
            ],
            options={
                'verbose_name': '公司基础设置',
                'verbose_name_plural': '公司基础设置',
            },
        ),
        migrations.RemoveField(
            model_name='configs',
            name='cfgoption',
        ),
        migrations.RemoveField(
            model_name='configs',
            name='company',
        ),
        migrations.DeleteModel(
            name='CfgOptions',
        ),
        migrations.DeleteModel(
            name='Configs',
        ),
    ]
