# -*- coding: utf-8 -*-
# Generated by Django 1.11.26 on 2019-12-27 11:47
from __future__ import unicode_literals

import custom.icds_reports.models.aggregate
from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('icds_reports', '0157_updated_unique_constraint'),
    ]

    operations = [
        migrations.CreateModel(
            name='DailyIndicatorsView',
            fields=[
                ('state_id', models.TextField(primary_key=True, serialize=False)),
                ('state_name', models.TextField(blank=True, null=True)),
                ('date', models.DateField(blank=True, null=True)),
                ('pse_eligible', models.IntegerField(blank=True, null=True)),
                ('total_attended_pse', models.IntegerField(blank=True, null=True)),
                ('num_launched_awcs', models.IntegerField(blank=True, null=True)),
                ('daily_attendance_open', models.IntegerField(blank=True, null=True)),
            ],
            options={
                'db_table': 'daily_indicators',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='MWCDReportView',
            fields=[
                ('state_id', models.TextField(primary_key=True, serialize=False)),
                ('state_name', models.TextField(blank=True, null=True)),
                ('state_site_code', models.TextField(blank=True, null=True)),
                ('month', models.DateField(blank=True, null=True)),
                ('num_launched_awcs', models.IntegerField(blank=True, null=True)),
                ('num_launched_districts', models.IntegerField(blank=True, null=True)),
                ('num_launched_states', models.IntegerField(blank=True, null=True)),
                ('awc_with_gm_devices', models.IntegerField(blank=True, null=True)),
                ('cases_household', models.IntegerField(blank=True, null=True)),
                ('cases_child_health', models.IntegerField(blank=True, null=True)),
                ('total_mothers', models.IntegerField(blank=True, null=True)),
                ('num_ls_launched', models.IntegerField(blank=True, null=True)),
            ],
            options={
                'db_table': 'mwcd_report',
                'managed': False,
            },
        ),
        migrations.CreateModel(
            name='AggregateMigrationForms',
            fields=[
                ('state_id', models.CharField(max_length=40)),
                ('supervisor_id', models.TextField(null=True)),
                ('month', models.DateField(help_text='Will always be YYYY-MM-01')),
                ('person_case_id', models.CharField(max_length=40, primary_key=True, serialize=False)),
                ('latest_time_end_processed', models.DateTimeField(help_text='The latest form.meta.timeEnd that has been processed for this case')),
                ('migration_status', models.CharField(help_text='Status of the Migration', max_length=40)),
            ],
            options={
                'db_table': 'icds_dashboard_migration_forms',
            },
            bases=(models.Model, custom.icds_reports.models.aggregate.AggregateMixin),
        ),
        migrations.AddField(
            model_name='aggregateccsrecorddeliveryforms',
            name='num_children_del',
            field=models.PositiveSmallIntegerField(help_text='Number of children born', null=True),
        ),
        migrations.AddField(
            model_name='aggregateccsrecorddeliveryforms',
            name='still_live_birth',
            field=models.PositiveSmallIntegerField(help_text='Number of children alive', null=True),
        ),
        migrations.AlterUniqueTogether(
            name='aggregatemigrationforms',
            unique_together=set([('month', 'supervisor_id', 'person_case_id')]),
        ),
    ]

@@ -378,1997 +378,8 @@
 el(%0A
-            name='DailyIndicatorsView',%0A            fields=%5B%0A                ('state_id', models.TextField(primary_key=True, serialize=False)),%0A                ('state_name', models.TextField(blank=True, null=True)),%0A                ('date', models.DateField(blank=True, null=True)),%0A                ('pse_eligible', models.IntegerField(blank=True, null=True)),%0A                ('total_attended_pse', models.IntegerField(blank=True, null=True)),%0A                ('num_launched_awcs', models.IntegerField(blank=True, null=True)),%0A                ('daily_attendance_open', models.IntegerField(blank=True, null=True)),%0A            %5D,%0A            options=%7B%0A                'db_table': 'daily_indicators',%0A                'managed': False,%0A            %7D,%0A        ),%0A        migrations.CreateModel(%0A            name='MWCDReportView',%0A            fields=%5B%0A                ('state_id', models.TextField(primary_key=True, serialize=False)),%0A                ('state_name', models.TextField(blank=True, null=True)),%0A                ('state_site_code', models.TextField(blank=True, null=True)),%0A                ('month', models.DateField(blank=True, null=True)),%0A                ('num_launched_awcs', models.IntegerField(blank=True, null=True)),%0A                ('num_launched_districts', models.IntegerField(blank=True, null=True)),%0A                ('num_launched_states', models.IntegerField(blank=True, null=True)),%0A                ('awc_with_gm_devices', models.IntegerField(blank=True, null=True)),%0A                ('cases_household', models.IntegerField(blank=True, null=True)),%0A                ('cases_child_health', models.IntegerField(blank=True, null=True)),%0A                ('total_mothers', models.IntegerField(blank=True, null=True)),%0A                ('num_ls_launched', models.IntegerField(blank=True, null=True)),%0A            %5D,%0A            options=%7B%0A                'db_table': 'mwcd_report',%0A                'managed': False,%0A            %7D,%0A        ),%0A        migrations.CreateModel(%0A
     
@@ -414,24 +414,24 @@
 tionForms',%0A
+
             
@@ -817,24 +817,45 @@
 teTimeField(
+%0A                    
 help_text='T
@@ -1146,16 +1146,16 @@
      %7D,%0A
+
         
@@ -1248,479 +1248,8 @@
  ),%0A
-        migrations.AddField(%0A            model_name='aggregateccsrecorddeliveryforms',%0A            name='num_children_del',%0A            field=models.PositiveSmallIntegerField(help_text='Number of children born', null=True),%0A        ),%0A        migrations.AddField(%0A            model_name='aggregateccsrecorddeliveryforms',%0A            name='still_live_birth',%0A            field=models.PositiveSmallIntegerField(help_text='Number of children alive', null=True),%0A        ),%0A
     

remove extra autogenerated migration code