summaryrefslogtreecommitdiffstats
path: root/engagements/migrations
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2024-09-10 12:34:49 +0100
committerMatthew Lemon <y@yulqen.org>2024-09-10 12:34:49 +0100
commitc4fd33fce3dbef280657c150a7658462c80da877 (patch)
treecb366d210edc4bd8d40ea8e6f3af3e1cdd59d6b8 /engagements/migrations
parent5fb0621c53967bf24f4411f579712223e96b296a (diff)
wip: implementing EngagementStrategy
Diffstat (limited to 'engagements/migrations')
-rw-r--r--engagements/migrations/0005_engagementstrategy.py62
1 files changed, 62 insertions, 0 deletions
diff --git a/engagements/migrations/0005_engagementstrategy.py b/engagements/migrations/0005_engagementstrategy.py
new file mode 100644
index 0000000..213499d
--- /dev/null
+++ b/engagements/migrations/0005_engagementstrategy.py
@@ -0,0 +1,62 @@
+# Generated by Django 5.0.4 on 2024-09-10 11:24
+
+import django.db.models.deletion
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ("engagements", "0004_regulatorycycle_alter_engagementeffort_effort_type"),
+ ]
+
+ operations = [
+ migrations.CreateModel(
+ name="EngagementStrategy",
+ 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=128)),
+ ("description", models.TextField(max_length=1024)),
+ ("inspector_sign_off", models.DateField(blank=True, null=True)),
+ ("management_sign_off", models.DateField(blank=True, null=True)),
+ (
+ "status",
+ models.CharField(
+ choices=[
+ ("DRAFT", "Draft"),
+ ("SUBMITTED", "Submitted"),
+ ("APPROVED", "Approved"),
+ ("REJECTED", "Rejected"),
+ ],
+ default="DRAFT",
+ max_length=32,
+ ),
+ ),
+ (
+ "end_year",
+ models.ForeignKey(
+ on_delete=django.db.models.deletion.CASCADE,
+ related_name="end_year",
+ to="engagements.regulatorycycle",
+ ),
+ ),
+ (
+ "organisation",
+ models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to="engagements.organisation"),
+ ),
+ (
+ "start_year",
+ models.ForeignKey(
+ on_delete=django.db.models.deletion.CASCADE,
+ related_name="start_year",
+ to="engagements.regulatorycycle",
+ ),
+ ),
+ ],
+ options={
+ "abstract": False,
+ },
+ ),
+ ]