# Generated by Django 2.1.7 on 2020-04-23 11:42

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


class Migration(migrations.Migration):

    dependencies = [
        ('company', '0019_user_pwd_changed'),
    ]

    operations = [
        migrations.CreateModel(
            name='ErrCategory',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('code', models.IntegerField(unique=True, verbose_name='类别代码')),
                ('name', models.CharField(max_length=100, verbose_name='类别说明')),
            ],
            options={
                'verbose_name': '错误类别',
                'verbose_name_plural': '错误类别',
            },
        ),
        migrations.CreateModel(
            name='ErrCode',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('code', models.IntegerField(unique=True, verbose_name='错误代码')),
                ('name', models.CharField(max_length=100, verbose_name='错误说明')),
                ('category', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='company.ErrCategory', verbose_name='错误类别')),
            ],
            options={
                'verbose_name': '错误代码',
                'verbose_name_plural': '错误代码',
            },
        ),
    ]
