@@ -0,0 +1,1994 @@
+# -*- coding: utf-8 -*-%0Afrom __future__ import unicode_literals%0A%0Afrom django.db import models, migrations%0Aimport django.utils.timezone%0Aimport django.db.models.deletion%0Afrom django.conf import settings%0Aimport common.models.base%0Aimport uuid%0A%0A%0Aclass Migration(migrations.Migration):%0A%0A    dependencies = %5B%0A        migrations.swappable_dependency(settings.AUTH_USER_MODEL),%0A        ('facilities', '0005_facilityapproval'),%0A    %5D%0A%0A    operations = %5B%0A        migrations.CreateModel(%0A            name='FacilityOperationState',%0A            fields=%5B%0A                ('id', models.UUIDField(default=uuid.uuid4, serialize=False, editable=False, primary_key=True)),%0A                ('created', models.DateTimeField(default=django.utils.timezone.now)),%0A                ('updated', models.DateTimeField(default=django.utils.timezone.now)),%0A                ('deleted', models.BooleanField(default=False)),%0A                ('active', models.BooleanField(default=True, help_text=b'Indicates whether the record has been retired?')),%0A                ('reason', models.TextField(help_text=b'Additional information for the transition', null=True, blank=True)),%0A                ('created_by', models.ForeignKey(related_name='+', on_delete=django.db.models.deletion.PROTECT, default=common.models.base.get_default_system_user_id, to=settings.AUTH_USER_MODEL)),%0A                ('facility', models.ForeignKey(to='facilities.Facility')),%0A                ('operation_status', models.ForeignKey(help_text=b'Indicates whether the facilityhas been approved to operate, is operating, is temporarilynon-operational, or is closed down', to='facilities.FacilityStatus')),%0A                ('updated_by', models.ForeignKey(related_name='+', on_delete=django.db.models.deletion.PROTECT, default=common.models.base.get_default_system_user_id, to=settings.AUTH_USER_MODEL)),%0A            %5D,%0A            options=%7B%0A                'ordering': ('-updated', '-created'),%0A                'abstract': False,%0A            %7D,%0A        ),%0A    %5D%0A

Update migrations.