# Generated by Django 2.1.7 on 2020-05-30 14:15

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


class Migration(migrations.Migration):

    dependencies = [
        ('company', '0041_auto_20200528_1720'),
    ]

    operations = [
        migrations.CreateModel(
            name='CfgOptions',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=100, unique=True, verbose_name='项目名称')),
                ('remark', models.CharField(blank=True, max_length=100, null=True, verbose_name='备注说明')),
            ],
            options={
                'verbose_name': '公司配置选项',
                'verbose_name_plural': '公司配置选项',
            },
        ),
        migrations.CreateModel(
            name='Configs',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('active', models.BooleanField(default=True, verbose_name='是否启用')),
                ('cfgoption', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='company.CfgOptions', verbose_name='选项名称')),
                ('company', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='cfg_company', to='company.Company', verbose_name='公司名称')),
            ],
            options={
                'verbose_name': '公司选项设置',
                'verbose_name_plural': '公司选项设置',
            },
        ),
    ]
