|
@@ -0,0 +1,46 @@
|
|
|
|
+# Generated by Django 3.0.8 on 2020-08-06 11:20
|
|
|
|
+
|
|
|
|
+from django.db import migrations, models
|
|
|
|
+import django.db.models.deletion
|
|
|
|
+import mptt.fields
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+class Migration(migrations.Migration):
|
|
|
|
+
|
|
|
|
+ dependencies = [
|
|
|
|
+ ('auth', '0011_update_proxy_permissions'),
|
|
|
|
+ ('basic', '0001_initial'),
|
|
|
|
+ ]
|
|
|
|
+
|
|
|
|
+ operations = [
|
|
|
|
+ migrations.CreateModel(
|
|
|
|
+ name='RouterMenu',
|
|
|
|
+ fields=[
|
|
|
|
+ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
|
|
+ ('name', models.CharField(max_length=50)),
|
|
|
|
+ ('path', models.CharField(max_length=50)),
|
|
|
|
+ ('url', models.CharField(max_length=50)),
|
|
|
|
+ ('lft', models.PositiveIntegerField(editable=False)),
|
|
|
|
+ ('rght', models.PositiveIntegerField(editable=False)),
|
|
|
|
+ ('tree_id', models.PositiveIntegerField(db_index=True, editable=False)),
|
|
|
|
+ ('level', models.PositiveIntegerField(editable=False)),
|
|
|
|
+ ('parent', mptt.fields.TreeForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='basic.RouterMenu')),
|
|
|
|
+ ],
|
|
|
|
+ options={
|
|
|
|
+ 'verbose_name': '前端菜单',
|
|
|
|
+ 'verbose_name_plural': '前端菜单列表',
|
|
|
|
+ },
|
|
|
|
+ ),
|
|
|
|
+ migrations.CreateModel(
|
|
|
|
+ name='GroupRouterMenu',
|
|
|
|
+ fields=[
|
|
|
|
+ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
|
|
+ ('group', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='auth.Group')),
|
|
|
|
+ ('menu', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='basic.RouterMenu')),
|
|
|
|
+ ],
|
|
|
|
+ options={
|
|
|
|
+ 'verbose_name': '前端菜单与角色的中间表',
|
|
|
|
+ 'verbose_name_plural': '前端菜单和角色的中间表列表',
|
|
|
|
+ },
|
|
|
|
+ ),
|
|
|
|
+ ]
|