# Generated by Django 2.2.3 on 2019-09-23 22:36

from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('polling_units', '0001_initial'),
    ]

    operations = [
        migrations.CreateModel(
            name='PollingUnitResult',
            fields=[
                ('result_id', models.AutoField(primary_key=True, serialize=False)),
                ('party_abbreviation', models.CharField(max_length=10)),
                ('party_score', models.IntegerField()),
                ('entered_by_user', models.CharField(max_length=200)),
                ('date_entered', models.DateField(auto_now_add=True)),
                ('user_ip_address', models.GenericIPAddressField(null=True)),
                ('polling_unit', models.ForeignKey(db_column='polling_unit_uniqueid', null=True, on_delete=django.db.models.deletion.CASCADE, to='polling_units.PollingUnit')),
            ],
            options={
                'verbose_name': 'Result',
                'verbose_name_plural': 'Results',
                'db_table': 'announced_pu_results',
            },
        ),
    ]
