# Generated by Django 3.1.4 on 2021-04-22 09:57

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', '0202_user_roles'),
        ('rbac', '0008_menu_companys_only'),
    ]

    operations = [
        migrations.AlterField(
            model_name='menu',
            name='companys_only',
            field=models.JSONField(blank=True, default=list, null=True, verbose_name='限定企业ID'),
        ),
        migrations.CreateModel(
            name='PositionMenu',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('menus', models.JSONField(blank=True, default=list, null=True, verbose_name='操作菜单')),
                ('positions', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to='company.position', verbose_name='岗位职务')),
            ],
            options={
                'verbose_name': '岗位职务菜单',
                'verbose_name_plural': '岗位职务菜单',
            },
        ),
        migrations.CreateModel(
            name='GroupMenu',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('menus', models.JSONField(blank=True, default=list, null=True, verbose_name='操作菜单')),
                ('groups', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to='auth.group', verbose_name='功能组别')),
            ],
            options={
                'verbose_name': '工能组别菜单',
                'verbose_name_plural': '工能组别菜单',
            },
        ),
    ]
