0001_initial.py 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. # Generated by Django 3.2 on 2021-07-17 20:05
  2. from django.db import migrations, models
  3. import django.db.models.deletion
  4. class Migration(migrations.Migration):
  5. initial = True
  6. dependencies = [
  7. ('user', '0001_initial'),
  8. ('software', '0001_initial'),
  9. ]
  10. operations = [
  11. migrations.CreateModel(
  12. name='TestPlan',
  13. fields=[
  14. ('id', models.CharField(default='TestLaboratory_V1_Plan_1', max_length=30, primary_key=True, serialize=False, unique=True, verbose_name='测试计划编号')),
  15. ('title', models.CharField(max_length=30, verbose_name='测试计划标题')),
  16. ('version', models.CharField(max_length=20, verbose_name='软件版本')),
  17. ('state', models.IntegerField(verbose_name='测试计划执行状态')),
  18. ('description', models.TextField(verbose_name='测试计划描述')),
  19. ('statement_file', models.TextField(verbose_name='说明文档id路径')),
  20. ('create_time', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')),
  21. ('update_time', models.DateTimeField(auto_now=True, verbose_name='修改时间')),
  22. ('delete', models.BooleanField(default=False)),
  23. ('creator', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to='user.user', verbose_name='测试计划执行者')),
  24. ('software', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='software.software', verbose_name='测试软件')),
  25. ],
  26. options={
  27. 'verbose_name': '测试计划',
  28. 'verbose_name_plural': '测试计划',
  29. 'db_table': 'plan',
  30. },
  31. ),
  32. ]