# Generated by Django 3.1.4 on 2021-09-08 18:15

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


class Migration(migrations.Migration):

    dependencies = [
        ('company', '0246_auto_20210907_1147'),
        ('rbac', '0018_auto_20210906_0801'),
    ]

    operations = [
        migrations.CreateModel(
            name='CompanyMenu',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('title', models.CharField(max_length=50, verbose_name='菜单名')),
                ('icon', models.CharField(blank=True, max_length=32, null=True, verbose_name='菜单图标')),
                ('priority', models.IntegerField(blank=True, default=10000, help_text='菜单的显示顺序，优先级越小显示越靠前', null=True, verbose_name='顺序序号')),
                ('level', models.SmallIntegerField(blank=True, default=1, null=True, verbose_name='层级')),
                ('url', models.CharField(blank=True, max_length=100, null=True, verbose_name='URL地址')),
                ('remark', models.CharField(blank=True, max_length=50, null=True, verbose_name='备注说明')),
                ('company', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='company.company', verbose_name='所属企业')),
                ('parent', models.ForeignKey(blank=True, help_text='如果添加的是子菜单，请选择父菜单', null=True, on_delete=django.db.models.deletion.CASCADE, to='rbac.companymenu', verbose_name='父级菜单')),
            ],
            options={
                'verbose_name': '企业菜单表',
                'verbose_name_plural': '企业菜单表',
                'ordering': ['priority', 'id'],
            },
        ),
    ]
