summaryrefslogtreecommitdiffstats
path: root/instruments/migrations/0001_initial.py
diff options
context:
space:
mode:
Diffstat (limited to 'instruments/migrations/0001_initial.py')
-rw-r--r--instruments/migrations/0001_initial.py50
1 files changed, 50 insertions, 0 deletions
diff --git a/instruments/migrations/0001_initial.py b/instruments/migrations/0001_initial.py
new file mode 100644
index 0000000..ef73e3c
--- /dev/null
+++ b/instruments/migrations/0001_initial.py
@@ -0,0 +1,50 @@
+# Generated by Django 4.0.8 on 2022-11-02 09:00
+
+from django.db import migrations, models
+import django.db.models.deletion
+
+
+class Migration(migrations.Migration):
+
+ initial = True
+
+ dependencies = [
+ ('engagements', '0001_initial'),
+ ]
+
+ operations = [
+ migrations.CreateModel(
+ name='Instrument',
+ fields=[
+ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
+ ('date_created', models.DateTimeField(auto_now_add=True)),
+ ('last_modified', models.DateTimeField(auto_now=True)),
+ ('name', models.CharField(max_length=512)),
+ ('long_title', models.CharField(blank=True, max_length=1024, null=True)),
+ ('designator', models.CharField(blank=True, max_length=3, null=True)),
+ ('link', models.URLField(blank=True, max_length=1024, null=True)),
+ ('owner', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='engagements.organisation')),
+ ],
+ options={
+ 'verbose_name_plural': 'Instruments',
+ },
+ ),
+ migrations.CreateModel(
+ name='SubInstrument',
+ fields=[
+ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
+ ('date_created', models.DateTimeField(auto_now_add=True)),
+ ('last_modified', models.DateTimeField(auto_now=True)),
+ ('is_guidance', models.BooleanField(blank=True, default=False, null=True)),
+ ('itype', models.CharField(choices=[('DSC', 'Defence Security Condition (DSC)'), ('DSYAP', 'Defence Security Assessment Principle (DSyAP)'), ('DSTAIG', "Defence Security Testing And I Don't Know (DSTAIG)")], max_length=6, verbose_name='Instrument Type')),
+ ('title', models.CharField(max_length=512)),
+ ('description', models.TextField(blank=True, null=True)),
+ ('rationale', models.TextField(blank=True, null=True)),
+ ('parent', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='instruments.instrument', verbose_name='Parent Instrument')),
+ ('relative', models.ManyToManyField(to='instruments.subinstrument')),
+ ],
+ options={
+ 'verbose_name_plural': 'Sub Instruments',
+ },
+ ),
+ ]