|
@@ -0,0 +1,39 @@
|
|
|
+# Generated by Django 3.0.8 on 2020-07-28 08:27
|
|
|
+
|
|
|
+from django.conf import settings
|
|
|
+from django.db import migrations, models
|
|
|
+import django.db.models.deletion
|
|
|
+import mptt.fields
|
|
|
+
|
|
|
+
|
|
|
+class Migration(migrations.Migration):
|
|
|
+
|
|
|
+ initial = True
|
|
|
+
|
|
|
+ dependencies = [
|
|
|
+ migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
|
|
+ ]
|
|
|
+
|
|
|
+ operations = [
|
|
|
+ migrations.CreateModel(
|
|
|
+ name='Menu',
|
|
|
+ fields=[
|
|
|
+ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
|
+ ('name', models.CharField(max_length=100)),
|
|
|
+ ('config', models.TextField()),
|
|
|
+ ('create_at', models.DateTimeField(auto_now_add=True)),
|
|
|
+ ('code', models.CharField(max_length=100)),
|
|
|
+ ('lft', models.PositiveIntegerField(editable=False)),
|
|
|
+ ('rght', models.PositiveIntegerField(editable=False)),
|
|
|
+ ('tree_id', models.PositiveIntegerField(db_index=True, editable=False)),
|
|
|
+ ('level', models.PositiveIntegerField(editable=False)),
|
|
|
+ ('create_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
|
|
|
+ ('parent', mptt.fields.TreeForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='basic.Menu')),
|
|
|
+ ],
|
|
|
+ options={
|
|
|
+ 'verbose_name': '报表菜单',
|
|
|
+ 'verbose_name_plural': '报表菜单列表',
|
|
|
+ 'db_table': 'basic_menu',
|
|
|
+ },
|
|
|
+ ),
|
|
|
+ ]
|