# Generated by Django 3.2 on 2021-07-17 20:05 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('user', '0001_initial'), ('plan', '0001_initial'), ('software', '0001_initial'), ] operations = [ migrations.CreateModel( name='TestTask', fields=[ ('id', models.CharField(default='TestLaboratory_V1_Task_1', max_length=30, primary_key=True, serialize=False, unique=True, verbose_name='测试任务编号')), ('title', models.CharField(max_length=50, verbose_name='测试任务标题')), ('state', models.IntegerField(verbose_name='测试任务状态')), ('description', models.TextField(verbose_name='测试任务描述')), ('statement_file', models.TextField(verbose_name='说明文档id文件')), ('case_file', models.TextField(null=True, verbose_name='测试用例文档')), ('case_all', models.IntegerField(null=True, verbose_name='全部测试用例数量')), ('case_not_execute', models.IntegerField(null=True, verbose_name='未执行测试用例数量')), ('case_success', models.IntegerField(null=True, verbose_name='成功测试用例数量')), ('case_fail', models.IntegerField(null=True, verbose_name='失败测试用例数量')), ('create_time', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')), ('update_time', models.DateTimeField(auto_now=True, verbose_name='修改时间')), ('delete', models.BooleanField(default=False)), ('executor', models.ManyToManyField(to='user.User', verbose_name='测试任务执行者')), ('plan', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='plan.testplan', verbose_name='测试任务所属计划')), ], options={ 'verbose_name': '测试任务', 'verbose_name_plural': '测试任务', 'db_table': 'task', }, ), migrations.CreateModel( name='TestCase', fields=[ ('id', models.CharField(default='TestLaboratory_V1_Case_1', max_length=30, primary_key=True, serialize=False, unique=True, verbose_name='测试用例编号')), ('id_in_task', models.CharField(default='1', max_length=30, verbose_name='在测试任务中编号')), ('version', models.CharField(max_length=30, null=True, verbose_name='软件版本')), ('name', models.CharField(max_length=50, verbose_name='名称')), ('state', models.IntegerField(verbose_name='状态')), ('writer', models.CharField(max_length=30, null=True, verbose_name='测试用例编写人')), ('executor', models.CharField(max_length=30, null=True, verbose_name='测试用例执行人')), ('assessor', models.CharField(max_length=30, null=True, verbose_name='测试用例评审员')), ('requisite', models.TextField(null=True, verbose_name='前置条件')), ('priority', models.CharField(max_length=10, null=True, verbose_name='优先级')), ('environment', models.TextField(null=True, verbose_name='测试环境')), ('type', models.CharField(max_length=30, null=True, verbose_name='测试类型')), ('process', models.TextField(verbose_name='测试步骤')), ('expected_result', models.TextField(verbose_name='预期结果')), ('actual_result', models.TextField(null=True, verbose_name='实际结果')), ('create_time', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')), ('update_time', models.DateTimeField(auto_now=True, verbose_name='修改时间')), ('delete', models.BooleanField(default=False)), ('remark', models.TextField(null=True, verbose_name='备注')), ('software', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='software.software', verbose_name='测试软件')), ('task', models.ForeignKey(default='TestLaboratory_V1_Task_1', on_delete=django.db.models.deletion.CASCADE, to='task.testtask', verbose_name='测试用例所在测试任务')), ], options={ 'verbose_name': '测试用例', 'verbose_name_plural': '测试用例', 'db_table': 'test_case', }, ), ]