text: # Generated by Django 3.0.5 on 2020-05-20 13:50
  
  import django.contrib.postgres.indexes
  import django.contrib.postgres.search
  import django.db.models.deletion
  from django.db import migrations, models
  
  
  class Migration(migrations.Migration):
  
      dependencies = [
          ("contenttypes", "0002_remove_content_type_name"),
          ("datasets", "0011_auto_20200515_1115"),
      ]
  
      operations = [
          migrations.AlterField(
              model_name="citycouncilagenda",
              name="event_type",
              field=models.CharField(
                  blank=True,
                  choices=[
                      ("sessao_ordinaria", "Sessão Ordinária"),
                      ("ordem_do_dia", "Ordem do Dia"),
                      ("sessao_solene", "Sessão Solene"),
                      ("sessao_especial", "Sessão Especial"),
                      ("audiencia_publica", "Audiência Pública"),
                  ],
                  max_length=20,
                  null=True,
                  verbose_name="Tipo do evento",
              ),
          ),
          migrations.AlterField(
              model_name="citycouncilminute",
              name="event_type",
              field=models.CharField(
                  blank=True,
                  choices=[
                      ("sessao_ordinaria", "Sessão Ordinária"),
                      ("ordem_do_dia", "Ordem do Dia"),
                      ("sessao_solene", "Sessão Solene"),
                      ("sessao_especial", "Sessão Especial"),
                      ("audiencia_publica", "Audiência Pública"),
                  ],
                  max_length=20,
                  null=True,
                  verbose_name="Tipo de evento",
              ),
          ),
          migrations.CreateModel(
              name="File",
              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"),
                  ),
                  ("url", models.URLField(verbose_name="Arquivo")),
                  (
                      "content",
                      models.TextField(blank=True, null=True, verbose_name="Conteúdo"),
                  ),
                  ("object_id", models.PositiveIntegerField()),
                  ("checksum", models.CharField(blank=True, max_length=128, null=True)),
                  (
                      "s3_url",
                      models.URLField(blank=True, null=True, verbose_name="URL externa"),
                  ),
                  (
                      "s3_file_path",
                      models.CharField(blank=True, max_length=300, null=True),
                  ),
                  (
                      "search_vector",
                      django.contrib.postgres.search.SearchVectorField(
                          editable=False, null=True
                      ),
                  ),
                  (
                      "content_type",
                      models.ForeignKey(
                          on_delete=django.db.models.deletion.CASCADE,
                          to="contenttypes.ContentType",
                      ),
                  ),
              ],
              options={
                  "verbose_name": "Arquivo",
                  "verbose_name_plural": "Arquivos",
              },
          ),
          migrations.AddIndex(
              model_name="file",
              index=django.contrib.postgres.indexes.GinIndex(
                  fields=["search_vector"], name="datasets_fi_search__52321c_gin"
              ),
          ),
          migrations.AlterUniqueTogether(
              name="file",
              unique_together={("url", "content_type", "object_id")},
          ),
      ]
  