# Generated by Django 3.1.4 on 2021-04-24 10:50

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


class Migration(migrations.Migration):

    dependencies = [
        ('auth', '0012_alter_user_first_name_max_length'),
        ('company', '0204_delete_cgroup'),
    ]

    operations = [
        migrations.CreateModel(
            name='CGroup',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=50, verbose_name='组别角色名称')),
                ('is_delete', models.BooleanField(default=False, verbose_name='是否已删除')),
                ('tm', models.DateTimeField(auto_now_add=True, verbose_name='时间')),
                ('company', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='cgroupcompany', to='company.company', verbose_name='企业')),
                ('group', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='cgroupgroup', to='auth.group', verbose_name='功能组别')),
            ],
            options={
                'verbose_name': '企业角色(组别)',
                'verbose_name_plural': '企业角色(组别)',
                'unique_together': {('company', 'group')},
            },
        ),
    ]
