# Generated by Django 1.9.12 on 2017-03-10 01:10

from django.db import migrations, models
import uuid


class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='AlertScheduleInstance',
            fields=[
                ('schedule_instance_id', models.UUIDField(default=uuid.uuid4, primary_key=True, serialize=False)),
                ('domain', models.CharField(max_length=126)),
                ('recipient_type', models.CharField(max_length=126)),
                ('recipient_id', models.CharField(max_length=126)),
                ('current_event_num', models.IntegerField()),
                ('schedule_iteration_num', models.IntegerField()),
                ('next_event_due', models.DateTimeField()),
                ('active', models.BooleanField()),
                ('alert_schedule_id', models.UUIDField()),
            ],
            options={
                'abstract': False,
                'db_table': 'scheduling_alertscheduleinstance',
            },
        ),
        migrations.CreateModel(
            name='TimedScheduleInstance',
            fields=[
                ('schedule_instance_id', models.UUIDField(default=uuid.uuid4, primary_key=True, serialize=False)),
                ('domain', models.CharField(max_length=126)),
                ('recipient_type', models.CharField(max_length=126)),
                ('recipient_id', models.CharField(max_length=126)),
                ('current_event_num', models.IntegerField()),
                ('schedule_iteration_num', models.IntegerField()),
                ('next_event_due', models.DateTimeField()),
                ('active', models.BooleanField()),
                ('timed_schedule_id', models.UUIDField()),
                ('start_date', models.DateField()),
            ],
            options={
                'abstract': False,
                'db_table': 'scheduling_timedscheduleinstance',
            },
        ),
        migrations.AlterIndexTogether(
            name='timedscheduleinstance',
            index_together=set([('active', 'next_event_due'), ('domain', 'active', 'next_event_due')]),
        ),
        migrations.AlterIndexTogether(
            name='alertscheduleinstance',
            index_together=set([('active', 'next_event_due'), ('domain', 'active', 'next_event_due')]),
        ),
    ]
