You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
908 B
Python
28 lines
908 B
Python
1 year ago
|
# Generated by Django 3.2.19 on 2023-09-22 09:47
|
||
|
|
||
|
from django.db import migrations, models
|
||
|
|
||
|
|
||
|
class Migration(migrations.Migration):
|
||
|
|
||
|
initial = True
|
||
|
|
||
|
dependencies = [
|
||
|
]
|
||
|
|
||
|
operations = [
|
||
|
migrations.CreateModel(
|
||
|
name='Department',
|
||
|
fields=[
|
||
|
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||
|
('name', models.CharField(max_length=128, verbose_name='部门名称')),
|
||
|
('parent_id', models.IntegerField(blank=True, null=True, verbose_name='上级部门id')),
|
||
|
('status', models.IntegerField(default=1, verbose_name='状态')),
|
||
|
('create_time', models.DateTimeField(auto_now_add=True, null=True, verbose_name='创建时间')),
|
||
|
],
|
||
|
options={
|
||
|
'db_table': 'tp_department',
|
||
|
},
|
||
|
),
|
||
|
]
|