|
@@ -0,0 +1,36 @@
|
|
|
+# Generated by Django 3.0.8 on 2020-07-31 08:42
|
|
|
+
|
|
|
+from django.db import migrations, models
|
|
|
+import django.db.models.deletion
|
|
|
+import mptt.fields
|
|
|
+
|
|
|
+
|
|
|
+class Migration(migrations.Migration):
|
|
|
+
|
|
|
+ initial = True
|
|
|
+
|
|
|
+ dependencies = [
|
|
|
+ ]
|
|
|
+
|
|
|
+ operations = [
|
|
|
+ migrations.CreateModel(
|
|
|
+ name='Route',
|
|
|
+ fields=[
|
|
|
+ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
|
+ ('path', models.CharField(max_length=50)),
|
|
|
+ ('name', models.CharField(max_length=50)),
|
|
|
+ ('alias', models.CharField(max_length=50)),
|
|
|
+ ('component', 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, related_name='children', to='routes.Route')),
|
|
|
+ ],
|
|
|
+ options={
|
|
|
+ 'verbose_name': '路由表',
|
|
|
+ 'verbose_name_plural': '路由表',
|
|
|
+ 'db_table': 'routes',
|
|
|
+ },
|
|
|
+ ),
|
|
|
+ ]
|