# Generated by Django 3.1.4 on 2021-03-03 19:12

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


class Migration(migrations.Migration):

    dependencies = [
        ('company', '0171_auto_20210302_0948'),
    ]

    operations = [
        migrations.CreateModel(
            name='Department',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=20, verbose_name='部门名称')),
                ('sn', models.SmallIntegerField(default=0, verbose_name='序号')),
                ('remark', models.CharField(blank=True, max_length=100, null=True, verbose_name='备注说明')),
                ('company', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='department_company', to='company.company', verbose_name='公司名称')),
            ],
            options={
                'verbose_name': '公司部门',
                'verbose_name_plural': '公司部门',
            },
        ),
    ]
