12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- # 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 = [
- ]
- operations = [
- migrations.CreateModel(
- name='Software',
- fields=[
- ('name', models.CharField(max_length=50, verbose_name='被测试软件名')),
- ('id', models.CharField(default='TestLaboratory_V1_Software_1', max_length=30, primary_key=True, serialize=False, unique=True, verbose_name='被测试软件编号')),
- ('type', models.CharField(max_length=20, verbose_name='被测试软件类型')),
- ('report_file', models.TextField(null=True, verbose_name='测试报告id文件')),
- ('create_time', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')),
- ('update_time', models.DateTimeField(auto_now=True, verbose_name='修改时间')),
- ('delete', models.BooleanField(default=False)),
- ],
- options={
- 'verbose_name': '被测试软件',
- 'verbose_name_plural': '被测试软件',
- 'db_table': 'software',
- },
- ),
- migrations.CreateModel(
- name='Version',
- fields=[
- ('id', models.CharField(default='TestLaboratory_V1_Version_1', max_length=30, primary_key=True, serialize=False, unique=True, verbose_name='软件版本')),
- ('number', models.CharField(max_length=20, verbose_name='版本号')),
- ('version_file', models.TextField(verbose_name='软件路径id文件')),
- ('create_time', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')),
- ('update_time', models.DateTimeField(auto_now=True, verbose_name='修改时间')),
- ('delete', models.BooleanField(default=False)),
- ('software', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='software.software', verbose_name='所属软件')),
- ],
- options={
- 'verbose_name': '软件版本',
- 'verbose_name_plural': '软件版本',
- 'db_table': 'version',
- },
- ),
- ]
|