# Generated by Django 2.2.12 on 2020-05-15 12:59

from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ("datasets", "0009_auto_20200514_1350"),
    ]

    operations = [
        migrations.CreateModel(
            name="CityCouncilContract",
            fields=[
                (
                    "id",
                    models.AutoField(
                        auto_created=True,
                        primary_key=True,
                        serialize=False,
                        verbose_name="ID",
                    ),
                ),
                ("created_at", models.DateTimeField(auto_now_add=True)),
                ("updated_at", models.DateTimeField(auto_now=True)),
                ("crawled_at", models.DateTimeField()),
                ("crawled_from", models.URLField()),
                ("notes", models.TextField(blank=True, null=True)),
                (
                    "external_code",
                    models.PositiveIntegerField(verbose_name="Código externo"),
                ),
                (
                    "description",
                    models.TextField(blank=True, null=True, verbose_name="Descrição"),
                ),
                (
                    "details",
                    models.TextField(
                        blank=True, null=True, verbose_name="Objeto do contrato"
                    ),
                ),
                (
                    "company_or_person_document",
                    models.CharField(
                        blank=True, max_length=50, null=True, verbose_name="CNPJ ou CPF"
                    ),
                ),
                (
                    "company_or_person",
                    models.TextField(
                        blank=True, null=True, verbose_name="Empresa ou pessoa"
                    ),
                ),
                (
                    "value",
                    models.DecimalField(
                        decimal_places=2, max_digits=10, verbose_name="Valor"
                    ),
                ),
                ("start_date", models.DateField(verbose_name="Data de início")),
                ("end_date", models.DateField(verbose_name="Data final")),
                ("excluded", models.BooleanField(default=False)),
            ],
            options={
                "verbose_name": "Câmara de Vereadores - Contrato",
                "verbose_name_plural": "Câmara de Vereadores - Contratos",
                "get_latest_by": "start_date",
            },
        ),
        migrations.AddField(
            model_name="citycouncilexpense",
            name="external_file_code",
            field=models.CharField(blank=True, max_length=50, null=True),
        ),
        migrations.AddField(
            model_name="citycouncilexpense",
            name="external_file_line",
            field=models.CharField(blank=True, max_length=50, null=True),
        ),
    ]
