# Generated by Django 3.0.6 on 2020-06-04 12:40

from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ("datasets", "0016_auto_20200522_0647"),
    ]

    operations = [
        migrations.CreateModel(
            name="CityCouncilRevenue",
            fields=[
                (
                    "id",
                    models.AutoField(
                        auto_created=True,
                        primary_key=True,
                        serialize=False,
                        verbose_name="ID",
                    ),
                ),
                (
                    "created_at",
                    models.DateTimeField(auto_now_add=True, verbose_name="Criado em"),
                ),
                (
                    "updated_at",
                    models.DateTimeField(auto_now=True, verbose_name="Atualizado em"),
                ),
                ("crawled_at", models.DateTimeField(verbose_name="Coletado em")),
                ("crawled_from", models.URLField(verbose_name="Fonte")),
                (
                    "notes",
                    models.TextField(blank=True, null=True, verbose_name="Anotações"),
                ),
                (
                    "external_code",
                    models.CharField(
                        db_index=True, max_length=10, verbose_name="Código externo"
                    ),
                ),
                (
                    "budget_unit",
                    models.PositiveIntegerField(
                        default=101, verbose_name="Unidade gestora"
                    ),
                ),
                (
                    "published_at",
                    models.DateField(
                        db_index=True, null=True, verbose_name="Publicado em"
                    ),
                ),
                (
                    "registered_at",
                    models.DateField(
                        db_index=True, null=True, verbose_name="Registrado em"
                    ),
                ),
                (
                    "revenue_type",
                    models.CharField(
                        choices=[
                            ("orcamentaria", "Orçamentária"),
                            ("nao_orcamentaria", "Não-orçamentária"),
                            ("transferencia", "Transferência"),
                        ],
                        db_index=True,
                        max_length=20,
                        verbose_name="Tipo da receita",
                    ),
                ),
                (
                    "modality",
                    models.CharField(
                        blank=True, max_length=60, null=True, verbose_name="Modalidade"
                    ),
                ),
                ("description", models.TextField(verbose_name="Descrição")),
                (
                    "value",
                    models.DecimalField(
                        decimal_places=2, max_digits=10, verbose_name="Valor"
                    ),
                ),
                (
                    "resource",
                    models.CharField(
                        blank=True,
                        default="prefeitura",
                        max_length=200,
                        null=True,
                        verbose_name="Fonte",
                    ),
                ),
                (
                    "legal_status",
                    models.CharField(
                        blank=True,
                        db_index=True,
                        max_length=200,
                        null=True,
                        verbose_name="Natureza",
                    ),
                ),
                (
                    "destination",
                    models.CharField(
                        blank=True, max_length=200, null=True, verbose_name="Destinação"
                    ),
                ),
                (
                    "excluded",
                    models.BooleanField(default=False, verbose_name="Excluído?"),
                ),
            ],
            options={
                "verbose_name": "Câmara de Vereadores - Receita",
                "verbose_name_plural": "Câmara de Vereadores - Receitas",
                "get_latest_by": "published_at",
            },
        ),
    ]

# Generated by Django 3.0.6 on 2020-06-04 12:40

from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ("datasets", "0016_auto_20200522_0647"),
    ]

    operations = [
        migrations.CreateModel(
            name="CityCouncilRevenue",
            fields=[
                (
                    "id",
                    models.AutoField(
                        auto_created=True,
                        primary_key=True,
                        serialize=False,
                        verbose_name="ID",
                    ),
                ),
                (
                    "created_at",
                    models.DateTimeField(auto_now_add=True, verbose_name="Criado em"),
                ),
                (
                    "updated_at",
                    models.DateTimeField(auto_now=True, verbose_name="Atualizado em"),
                ),
                ("crawled_at", models.DateTimeField(verbose_name="Coletado em")),
                ("crawled_from", models.URLField(verbose_name="Fonte")),
                (
                    "notes",
                    models.TextField(blank=True, null=True, verbose_name="Anotações"),
                ),
                (
                    "external_code",
                    models.CharField(
                        db_index=True, max_length=10, verbose_name="Código externo"
                    ),
                ),
                (
                    "budget_unit",
                    models.PositiveIntegerField(
                        default=101, verbose_name="Unidade gestora"
                    ),
                ),
                (
                    "published_at",
                    models.DateField(
                        db_index=True, null=True, verbose_name="Publicado em"
                    ),
                ),
                (
                    "registered_at",
                    models.DateField(
                        db_index=True, null=True, verbose_name="Registrado em"
                    ),
                ),
                (
                    "revenue_type",
                    models.CharField(
                        choices=[
                            ("orcamentaria", "Orçamentária"),
                            ("nao_orcamentaria", "Não-orçamentária"),
                            ("transferencia", "Transferência"),
                        ],
                        db_index=True,
                        max_length=20,
                        verbose_name="Tipo da receita",
                    ),
                ),
                (
                    "modality",
                    models.CharField(
                        blank=True, max_length=60, null=True, verbose_name="Modalidade"
                    ),
                ),
                ("description", models.TextField(verbose_name="Descrição")),
                (
                    "value",
                    models.DecimalField(
                        decimal_places=2, max_digits=10, verbose_name="Valor"
                    ),
                ),
                (
                    "resource",
                    models.CharField(
                        blank=True,
                        default="prefeitura",
                        max_length=200,
                        null=True,
                        verbose_name="Fonte",
                    ),
                ),
                (
                    "legal_status",
                    models.CharField(
                        blank=True,
                        db_index=True,
                        max_length=200,
                        null=True,
                        verbose_name="Natureza",
                    ),
                ),
                (
                    "destination",
                    models.CharField(
                        blank=True, max_length=200, null=True, verbose_name="Destinação"
                    ),
                ),
                (
                    "excluded",
                    models.BooleanField(default=False, verbose_name="Excluído?"),
                ),
            ],
            options={
                "verbose_name": "Câmara de Vereadores - Receita",
                "verbose_name_plural": "Câmara de Vereadores - Receitas",
                "get_latest_by": "published_at",
            },
        ),
    ]

# Generated by Django 3.0.6 on 2020-06-04 12:40