summaryrefslogtreecommitdiffstats
path: root/instruments/migrations/0001_initial.py
diff options
context:
space:
mode:
authorYulqen <246857+yulqen@users.noreply.github.com>2024-04-23 11:22:21 +0100
committerGitHub <noreply@github.com>2024-04-23 11:22:21 +0100
commitceca6fa956b21c43263e53c328d619c4ede21914 (patch)
treea48384210cdc168e3bd3ccff6d6d516eeed9e748 /instruments/migrations/0001_initial.py
parent8b084e9fe7a5f3a04c32daf9a24f7f2cf67300f9 (diff)
parent0f951dcf029d4af284467543a3afdf5bf6581a20 (diff)
Merge pull request #22 from defencedigital/pyswitch
switched to Django
Diffstat (limited to '')
-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',
+ },
+ ),
+ ]