|
@@ -0,0 +1,36 @@
|
|
|
+# Generated by Django 3.0.8 on 2020-07-21 08:51
|
|
|
+
|
|
|
+from django.db import migrations, models
|
|
|
+import django.db.models.deletion
|
|
|
+
|
|
|
+
|
|
|
+class Migration(migrations.Migration):
|
|
|
+
|
|
|
+ initial = True
|
|
|
+
|
|
|
+ dependencies = [
|
|
|
+ ]
|
|
|
+
|
|
|
+ operations = [
|
|
|
+ migrations.CreateModel(
|
|
|
+ name='SchoolDept',
|
|
|
+ fields=[
|
|
|
+ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
|
+ ('name', models.CharField(max_length=20)),
|
|
|
+ ('remark', models.TextField(null=True)),
|
|
|
+ ('create_at', models.DateField(auto_now_add=True, verbose_name='创建人')),
|
|
|
+ ('update_at', models.DateField(auto_now=True, null=True, verbose_name='最后修改时间')),
|
|
|
+ ('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, related_name='children', to='workTtree.SchoolDept')),
|
|
|
+ ('update_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='workTtree.SchoolDept', verbose_name='最后修改人')),
|
|
|
+ ],
|
|
|
+ options={
|
|
|
+ 'verbose_name': '学校部门树形结构',
|
|
|
+ 'verbose_name_plural': '学校部门树形结构列表',
|
|
|
+ 'db_table': 'school_dept_tree',
|
|
|
+ },
|
|
|
+ ),
|
|
|
+ ]
|