<reponame>mtravis/UK-Polling-Stations<filename>polling_stations/apps/pollingstations/migrations/0001_initial.py<gh_stars>0
# -*- coding: utf-8 -*-


from django.db import models, migrations
import django.contrib.gis.db.models.fields


class Migration(migrations.Migration):

    dependencies = [("councils", "0001_initial")]

    operations = [
        migrations.CreateModel(
            name="PollingDistrict",
            fields=[
                (
                    "id",
                    models.AutoField(
                        verbose_name="ID",
                        serialize=False,
                        auto_created=True,
                        primary_key=True,
                    ),
                ),
                ("name", models.CharField(max_length=255, null=True, blank=True)),
                ("internal_council_id", models.CharField(max_length=100, blank=True)),
                ("extra_id", models.CharField(max_length=100, null=True, blank=True)),
                (
                    "area",
                    django.contrib.gis.db.models.fields.MultiPolygonField(
                        srid=4326, null=True, blank=True
                    ),
                ),
                ("council", models.ForeignKey(to="councils.Council", null=True)),
            ],
            options={},
            bases=(models.Model,),
        ),
        migrations.CreateModel(
            name="PollingStation",
            fields=[
                (
                    "id",
                    models.AutoField(
                        verbose_name="ID",
                        serialize=False,
                        auto_created=True,
                        primary_key=True,
                    ),
                ),
                ("internal_council_id", models.CharField(max_length=100, blank=True)),
                ("postcode", models.CharField(max_length=100, null=True, blank=True)),
                ("address", models.TextField(null=True, blank=True)),
                (
                    "location",
                    django.contrib.gis.db.models.fields.PointField(
                        srid=4326, null=True, blank=True
                    ),
                ),
                ("council", models.ForeignKey(to="councils.Council", null=True)),
            ],
            options={},
            bases=(models.Model,),
        ),
    ]

# -*- coding: utf-8 -*-


from django.db import models, migrations
import django.contrib.gis.db.models.fields


class Migration(migrations.Migration):

    dependencies = [("councils", "0001_initial")]

    operations = [
        migrations.CreateModel(
            name="PollingDistrict",
            fields=[
                (
                    "id",
                    models.AutoField(
                        verbose_name="ID",
                        serialize=False,
                        auto_created=True,
                        primary_key=True,
                    ),
                ),
                ("name", models.CharField(max_length=255, null=True, blank=True)),
                ("internal_council_id", models.CharField(max_length=100, blank=True)),
                ("extra_id", models.CharField(max_length=100, null=True, blank=True)),
                (
                    "area",
                    django.contrib.gis.db.models.fields.MultiPolygonField(
                        srid=4326, null=True, blank=True
                    ),
                ),
                ("council", models.ForeignKey(to="councils.Council", null=True)),
            ],
            options={},
            bases=(models.Model,),
        ),
        migrations.CreateModel(
            name="PollingStation",
            fields=[
                (
                    "id",
                    models.AutoField(
                        verbose_name="ID",
                        serialize=False,
                        auto_created=True,
                        primary_key=True,
                    ),
                ),
                ("internal_council_id", models.CharField(max_length=100, blank=True)),
                ("postcode", models.CharField(max_length=100, null=True, blank=True)),
                ("address", models.TextField(null=True, blank=True)),
                (
                    "location",
                    django.contrib.gis.db.models.fields.PointField(
                        srid=4326, null=True, blank=True
                    ),
                ),
                ("council", models.ForeignKey(to="councils.Council", null=True)),
            ],
            options={},
            bases=(models.Model,),
        ),
    ]
# -*- coding: utf-8 -*-