aboutsummaryrefslogtreecommitdiffstats
path: root/ctrack/register/migrations
diff options
context:
space:
mode:
authorMatthew Lemon <lemon@matthewlemon.com>2020-02-21 16:00:12 +0000
committerMatthew Lemon <lemon@matthewlemon.com>2020-02-21 16:00:27 +0000
commitabd22b0143661370aa29246d21389d5f0bf7abc3 (patch)
treecad94ede9241b19d8560aec3b7cae4f693272aa8 /ctrack/register/migrations
parent46107b7539211adbe71ab25d319b5c1f744fe4c4 (diff)
added first register models - engagement-related
Diffstat (limited to '')
-rw-r--r--ctrack/register/migrations/0001_initial.py45
-rw-r--r--ctrack/register/migrations/0002_auto_20200221_1527.py49
-rw-r--r--ctrack/register/migrations/0003_engagementevent_short_description.py19
3 files changed, 113 insertions, 0 deletions
diff --git a/ctrack/register/migrations/0001_initial.py b/ctrack/register/migrations/0001_initial.py
new file mode 100644
index 0000000..2ac7241
--- /dev/null
+++ b/ctrack/register/migrations/0001_initial.py
@@ -0,0 +1,45 @@
+# Generated by Django 2.2.9 on 2020-02-21 15:20
+
+import ctrack.register.models
+from django.conf import settings
+from django.db import migrations, models
+import django.db.models.deletion
+
+
+class Migration(migrations.Migration):
+
+ initial = True
+
+ dependencies = [
+ ('organisations', '0004_auto_20200220_1634'),
+ migrations.swappable_dependency(settings.AUTH_USER_MODEL),
+ ('caf', '0002_auto_20200220_1434'),
+ ]
+
+ operations = [
+ migrations.CreateModel(
+ name='EngagementType',
+ fields=[
+ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
+ ('descriptor', models.CharField(max_length=50)),
+ ('enforcement_instrument', models.BooleanField(default=False)),
+ ('regulation_reference', models.CharField(blank=True, max_length=100)),
+ ('comments', models.TextField(max_length=1000)),
+ ],
+ ),
+ migrations.CreateModel(
+ name='EngagementEvent',
+ fields=[
+ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
+ ('date', models.DateTimeField()),
+ ('end_date', models.DateTimeField(blank=True)),
+ ('document_link', models.URLField(max_length=1000)),
+ ('response_date_requested', models.DateField()),
+ ('response_received', models.DateField()),
+ ('participants', models.ManyToManyField(to='organisations.Person')),
+ ('related_caf', models.ForeignKey(blank=True, on_delete=django.db.models.deletion.CASCADE, to='caf.CAF')),
+ ('type', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='register.EngagementType')),
+ ('user', models.ForeignKey(on_delete=models.SET(ctrack.register.models.EngagementEvent.get_sentinel_user), to=settings.AUTH_USER_MODEL)),
+ ],
+ ),
+ ]
diff --git a/ctrack/register/migrations/0002_auto_20200221_1527.py b/ctrack/register/migrations/0002_auto_20200221_1527.py
new file mode 100644
index 0000000..ad82341
--- /dev/null
+++ b/ctrack/register/migrations/0002_auto_20200221_1527.py
@@ -0,0 +1,49 @@
+# Generated by Django 2.2.9 on 2020-02-21 15:27
+
+from django.db import migrations, models
+import django.db.models.deletion
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('register', '0001_initial'),
+ ]
+
+ operations = [
+ migrations.AlterField(
+ model_name='engagementevent',
+ name='document_link',
+ field=models.URLField(blank=True, max_length=1000, null=True),
+ ),
+ migrations.AlterField(
+ model_name='engagementevent',
+ name='end_date',
+ field=models.DateTimeField(blank=True, null=True),
+ ),
+ migrations.AlterField(
+ model_name='engagementevent',
+ name='related_caf',
+ field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='caf.CAF'),
+ ),
+ migrations.AlterField(
+ model_name='engagementevent',
+ name='response_date_requested',
+ field=models.DateField(blank=True, null=True),
+ ),
+ migrations.AlterField(
+ model_name='engagementevent',
+ name='response_received',
+ field=models.DateField(blank=True, null=True),
+ ),
+ migrations.AlterField(
+ model_name='engagementtype',
+ name='comments',
+ field=models.TextField(blank=True, max_length=1000, null=True),
+ ),
+ migrations.AlterField(
+ model_name='engagementtype',
+ name='regulation_reference',
+ field=models.CharField(blank=True, max_length=100, null=True),
+ ),
+ ]
diff --git a/ctrack/register/migrations/0003_engagementevent_short_description.py b/ctrack/register/migrations/0003_engagementevent_short_description.py
new file mode 100644
index 0000000..dc976f9
--- /dev/null
+++ b/ctrack/register/migrations/0003_engagementevent_short_description.py
@@ -0,0 +1,19 @@
+# Generated by Django 2.2.9 on 2020-02-21 15:30
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('register', '0002_auto_20200221_1527'),
+ ]
+
+ operations = [
+ migrations.AddField(
+ model_name='engagementevent',
+ name='short_description',
+ field=models.CharField(default='NA', help_text='Short description of the event', max_length=50),
+ preserve_default=False,
+ ),
+ ]