0006_beidoucase.py 3.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. # Generated by Django 3.2.4 on 2022-11-15 20:23
  2. from django.db import migrations, models
  3. import django.db.models.deletion
  4. class Migration(migrations.Migration):
  5. dependencies = [
  6. ('user', '0003_remove_user_group'),
  7. ('software', '0003_auto_20221004_2044'),
  8. ('task', '0005_testtask_type'),
  9. ]
  10. operations = [
  11. migrations.CreateModel(
  12. name='BeidouCase',
  13. fields=[
  14. ('id', models.CharField(default='TestLaboratory_V1_BeidouCase_1', max_length=128, primary_key=True, serialize=False, unique=True, verbose_name='测试用例编号')),
  15. ('version', models.CharField(max_length=30, null=True, verbose_name='软件版本')),
  16. ('title', models.CharField(max_length=50, verbose_name='测试用例名称')),
  17. ('state', models.IntegerField(default=0, verbose_name='状态')),
  18. ('positioning_accuracy', models.FloatField(null=True, verbose_name='定位精度')),
  19. ('timing_accuracy', models.FloatField(null=True, verbose_name='定时精度')),
  20. ('pseudo_range_measurement_accuracy', models.FloatField(null=True, verbose_name='伪距测量精度')),
  21. ('carrier_measurement_accuracy', models.FloatField(null=True, verbose_name='载波测量精度')),
  22. ('speed_measurement_accuracy', models.FloatField(null=True, verbose_name='测速精度')),
  23. ('sensitivity_capture', models.FloatField(null=True, verbose_name='捕获灵敏度')),
  24. ('receiving_sensitivity', models.FloatField(null=True, verbose_name='接受灵敏度')),
  25. ('sensitivity_track', models.FloatField(null=True, verbose_name='跟踪灵敏度')),
  26. ('power_range_low', models.FloatField(null=True, verbose_name='接收功率范围下界')),
  27. ('power_range_high', models.FloatField(null=True, verbose_name='接收功率范围上界')),
  28. ('self_integrity', models.FloatField(null=True, verbose_name='自主完好性')),
  29. ('system_integrity', models.FloatField(null=True, verbose_name='系统完好性')),
  30. ('capture_time', models.FloatField(null=True, verbose_name='首次捕获时间')),
  31. ('recapture_time', models.FloatField(null=True, verbose_name='失锁重捕时间')),
  32. ('update_rate', models.FloatField(null=True, verbose_name='定位测速更新率')),
  33. ('trace_channels', models.IntegerField(null=True, verbose_name='跟踪通道数')),
  34. ('max_velocity', models.FloatField(null=True, verbose_name='最大速度')),
  35. ('max_acceleration', models.FloatField(null=True, verbose_name='最大加速度')),
  36. ('create_time', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')),
  37. ('update_time', models.DateTimeField(auto_now=True, verbose_name='修改时间')),
  38. ('delete', models.BooleanField(default=False)),
  39. ('remark', models.TextField(null=True, verbose_name='备注')),
  40. ('executor', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='user.user', verbose_name='执行者id')),
  41. ('software', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='software.software', verbose_name='测试软件')),
  42. ('task', models.ForeignKey(default='TestLaboratory_V1_Task_1', on_delete=django.db.models.deletion.CASCADE, to='task.testtask', verbose_name='测试用例所在测试任务')),
  43. ],
  44. options={
  45. 'verbose_name': '北斗测试用例',
  46. 'verbose_name_plural': '北斗测试用例',
  47. 'db_table': 'beidou_case',
  48. },
  49. ),
  50. ]