32 lines
1.1 KiB
Python
32 lines
1.1 KiB
Python
# Generated by Django 2.1.5 on 2019-09-19 14:09
|
|
|
|
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
initial = True
|
|
|
|
dependencies = [
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='Groups',
|
|
fields=[
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('name', models.CharField(max_length=128, unique=True)),
|
|
('password', models.CharField(max_length=256)),
|
|
('groupname', models.CharField(max_length=128, unique=True)),
|
|
('type', models.CharField(choices=[('real', '集团'), ('fictitious', '组合')], default='集团', max_length=32)),
|
|
('createtime', models.DateTimeField(auto_now_add=True)),
|
|
('members', models.ManyToManyField(to='safesite.Partment')),
|
|
],
|
|
options={
|
|
'ordering': ['-createtime'],
|
|
'verbose_name_plural': '集团',
|
|
'verbose_name': '集团',
|
|
},
|
|
),
|
|
]
|