# 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', }, ), ]