From e981e5b469e9ab6e4ad432de441935b96bf1f837 Mon Sep 17 00:00:00 2001 From: Marcio Mazza Date: Thu, 18 Jun 2015 20:29:51 -0300 Subject: [PATCH] Add initial migrations --- comissoes/migrations/0001_initial.py | 89 ++ legacy/migrations/0001_initial.py | 1210 ++++++++++++++++++++++ lexml/migrations/0001_initial.py | 40 + materia/migrations/0001_initial.py | 355 +++++++ norma/migrations/0001_initial.py | 91 ++ parlamentares/migrations/0001_initial.py | 235 +++++ pglegacy/migrations/0001_initial.py | 921 ++++++++++++++++ protocoloadm/migrations/0001_initial.py | 124 +++ sessao/migrations/0001_initial.py | 201 ++++ 9 files changed, 3266 insertions(+) create mode 100644 comissoes/migrations/0001_initial.py create mode 100644 legacy/migrations/0001_initial.py create mode 100644 lexml/migrations/0001_initial.py create mode 100644 materia/migrations/0001_initial.py create mode 100644 norma/migrations/0001_initial.py create mode 100644 parlamentares/migrations/0001_initial.py create mode 100644 pglegacy/migrations/0001_initial.py create mode 100644 protocoloadm/migrations/0001_initial.py create mode 100644 sessao/migrations/0001_initial.py diff --git a/comissoes/migrations/0001_initial.py b/comissoes/migrations/0001_initial.py new file mode 100644 index 000000000..54208d335 --- /dev/null +++ b/comissoes/migrations/0001_initial.py @@ -0,0 +1,89 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + +from django.db import models, migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('parlamentares', '0001_initial'), + ] + + operations = [ + migrations.CreateModel( + name='CargoComissao', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('nome', models.CharField(max_length=50)), + ('unico', models.BooleanField()), + ], + ), + migrations.CreateModel( + name='Comissao', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('nome_comissao', models.CharField(max_length=60)), + ('sigla_comissao', models.CharField(max_length=10)), + ('data_criacao', models.DateField()), + ('data_extincao', models.DateField(null=True, blank=True)), + ('nome_apelido_temp', models.CharField(max_length=100, null=True, blank=True)), + ('data_instalacao_temp', models.DateField(null=True, blank=True)), + ('data_final_prevista_temp', models.DateField(null=True, blank=True)), + ('data_prorrogada_temp', models.DateField(null=True, blank=True)), + ('data_fim_comissao', models.DateField(null=True, blank=True)), + ('nome_secretario', models.CharField(max_length=30, null=True, blank=True)), + ('numero_tel_reuniao', models.CharField(max_length=15, null=True, blank=True)), + ('endereco_secretaria', models.CharField(max_length=100, null=True, blank=True)), + ('numero_tel_secretaria', models.CharField(max_length=15, null=True, blank=True)), + ('numero_fax_secretaria', models.CharField(max_length=15, null=True, blank=True)), + ('descricao_agenda_reuniao', models.CharField(max_length=100, null=True, blank=True)), + ('local_reuniao', models.CharField(max_length=100, null=True, blank=True)), + ('txt_finalidade', models.TextField(null=True, blank=True)), + ('endereco_email', models.CharField(max_length=100, null=True, blank=True)), + ('unid_deliberativa', models.BooleanField()), + ], + ), + migrations.CreateModel( + name='ComposicaoComissao', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('titular', models.BooleanField()), + ('data_designacao', models.DateField()), + ('data_desligamento', models.DateField(null=True, blank=True)), + ('descricao_motivo_desligamento', models.CharField(max_length=150, null=True, blank=True)), + ('obs_composicao', models.CharField(max_length=150, null=True, blank=True)), + ('cargo', models.ForeignKey(to='comissoes.CargoComissao')), + ('comissao', models.ForeignKey(to='comissoes.Comissao')), + ('parlamentar', models.ForeignKey(to='parlamentares.Parlamentar')), + ], + ), + migrations.CreateModel( + name='PeriodoCompComissao', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('data_inicio_periodo', models.DateField()), + ('data_fim_periodo', models.DateField(null=True, blank=True)), + ], + ), + migrations.CreateModel( + name='TipoComissao', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('nome_tipo_comissao', models.CharField(max_length=50)), + ('sigla_natureza_comissao', models.CharField(max_length=1)), + ('sigla_tipo_comissao', models.CharField(max_length=10)), + ('descricao_dispositivo_regimental', models.CharField(max_length=50, null=True, blank=True)), + ], + ), + migrations.AddField( + model_name='composicaocomissao', + name='periodo_comp', + field=models.ForeignKey(to='comissoes.PeriodoCompComissao'), + ), + migrations.AddField( + model_name='comissao', + name='tipo_comissao', + field=models.ForeignKey(to='comissoes.TipoComissao'), + ), + ] diff --git a/legacy/migrations/0001_initial.py b/legacy/migrations/0001_initial.py new file mode 100644 index 000000000..81d213e08 --- /dev/null +++ b/legacy/migrations/0001_initial.py @@ -0,0 +1,1210 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + +from django.db import models, migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ] + + operations = [ + migrations.CreateModel( + name='AcompMateria', + fields=[ + ('cod_cadastro', models.AutoField(serialize=False, primary_key=True)), + ('cod_materia', models.IntegerField()), + ('end_email', models.CharField(max_length=100)), + ('txt_hash', models.CharField(max_length=8)), + ('ind_excluido', models.IntegerField()), + ], + options={ + 'db_table': 'acomp_materia', + 'managed': False, + }, + ), + migrations.CreateModel( + name='Anexada', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('cod_materia_principal', models.IntegerField()), + ('cod_materia_anexada', models.IntegerField()), + ('dat_anexacao', models.DateField()), + ('dat_desanexacao', models.DateField(null=True, blank=True)), + ('ind_excluido', models.IntegerField()), + ], + options={ + 'db_table': 'anexada', + 'managed': False, + }, + ), + migrations.CreateModel( + name='AssuntoMateria', + fields=[ + ('cod_assunto', models.IntegerField(serialize=False, primary_key=True)), + ('des_assunto', models.CharField(max_length=200)), + ('des_dispositivo', models.CharField(max_length=50)), + ('ind_excluido', models.IntegerField()), + ], + options={ + 'db_table': 'assunto_materia', + 'managed': False, + }, + ), + migrations.CreateModel( + name='AssuntoNorma', + fields=[ + ('cod_assunto', models.AutoField(serialize=False, primary_key=True)), + ('des_assunto', models.CharField(max_length=50)), + ('des_estendida', models.CharField(max_length=250, null=True, blank=True)), + ('ind_excluido', models.IntegerField()), + ], + options={ + 'db_table': 'assunto_norma', + 'managed': False, + }, + ), + migrations.CreateModel( + name='Autor', + fields=[ + ('cod_autor', models.AutoField(serialize=False, primary_key=True)), + ('cod_partido', models.IntegerField(null=True, blank=True)), + ('cod_comissao', models.IntegerField(null=True, blank=True)), + ('cod_parlamentar', models.IntegerField(null=True, blank=True)), + ('tip_autor', models.IntegerField()), + ('nom_autor', models.CharField(max_length=50, null=True, blank=True)), + ('des_cargo', models.CharField(max_length=50, null=True, blank=True)), + ('col_username', models.CharField(max_length=50, null=True, blank=True)), + ('ind_excluido', models.IntegerField()), + ], + options={ + 'db_table': 'autor', + 'managed': False, + }, + ), + migrations.CreateModel( + name='Autoria', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('cod_autor', models.IntegerField()), + ('cod_materia', models.IntegerField()), + ('ind_primeiro_autor', models.IntegerField()), + ('ind_excluido', models.IntegerField()), + ], + options={ + 'db_table': 'autoria', + 'managed': False, + }, + ), + migrations.CreateModel( + name='CargoComissao', + fields=[ + ('cod_cargo', models.AutoField(serialize=False, primary_key=True)), + ('des_cargo', models.CharField(max_length=50)), + ('ind_unico', models.IntegerField()), + ('ind_excluido', models.IntegerField()), + ], + options={ + 'db_table': 'cargo_comissao', + 'managed': False, + }, + ), + migrations.CreateModel( + name='CargoMesa', + fields=[ + ('cod_cargo', models.AutoField(serialize=False, primary_key=True)), + ('des_cargo', models.CharField(max_length=50)), + ('ind_unico', models.IntegerField()), + ('ind_excluido', models.IntegerField()), + ], + options={ + 'db_table': 'cargo_mesa', + 'managed': False, + }, + ), + migrations.CreateModel( + name='Coligacao', + fields=[ + ('cod_coligacao', models.AutoField(serialize=False, primary_key=True)), + ('num_legislatura', models.IntegerField()), + ('nom_coligacao', models.CharField(max_length=50)), + ('num_votos_coligacao', models.IntegerField(null=True, blank=True)), + ('ind_excluido', models.IntegerField()), + ], + options={ + 'db_table': 'coligacao', + 'managed': False, + }, + ), + migrations.CreateModel( + name='Comissao', + fields=[ + ('cod_comissao', models.AutoField(serialize=False, primary_key=True)), + ('tip_comissao', models.IntegerField()), + ('nom_comissao', models.CharField(max_length=60)), + ('sgl_comissao', models.CharField(max_length=10)), + ('dat_criacao', models.DateField()), + ('dat_extincao', models.DateField(null=True, blank=True)), + ('nom_apelido_temp', models.CharField(max_length=100, null=True, blank=True)), + ('dat_instalacao_temp', models.DateField(null=True, blank=True)), + ('dat_final_prevista_temp', models.DateField(null=True, blank=True)), + ('dat_prorrogada_temp', models.DateField(null=True, blank=True)), + ('dat_fim_comissao', models.DateField(null=True, blank=True)), + ('nom_secretario', models.CharField(max_length=30, null=True, blank=True)), + ('num_tel_reuniao', models.CharField(max_length=15, null=True, blank=True)), + ('end_secretaria', models.CharField(max_length=100, null=True, blank=True)), + ('num_tel_secretaria', models.CharField(max_length=15, null=True, blank=True)), + ('num_fax_secretaria', models.CharField(max_length=15, null=True, blank=True)), + ('des_agenda_reuniao', models.CharField(max_length=100, null=True, blank=True)), + ('loc_reuniao', models.CharField(max_length=100, null=True, blank=True)), + ('txt_finalidade', models.TextField(null=True, blank=True)), + ('end_email', models.CharField(max_length=100, null=True, blank=True)), + ('ind_unid_deliberativa', models.IntegerField()), + ('ind_excluido', models.IntegerField()), + ], + options={ + 'db_table': 'comissao', + 'managed': False, + }, + ), + migrations.CreateModel( + name='ComposicaoColigacao', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('cod_partido', models.IntegerField()), + ('cod_coligacao', models.IntegerField()), + ('ind_excluido', models.IntegerField()), + ], + options={ + 'db_table': 'composicao_coligacao', + 'managed': False, + }, + ), + migrations.CreateModel( + name='ComposicaoComissao', + fields=[ + ('cod_comp_comissao', models.AutoField(serialize=False, primary_key=True)), + ('cod_parlamentar', models.IntegerField()), + ('cod_comissao', models.IntegerField()), + ('cod_periodo_comp', models.IntegerField()), + ('cod_cargo', models.IntegerField()), + ('ind_titular', models.IntegerField()), + ('dat_designacao', models.DateField()), + ('dat_desligamento', models.DateField(null=True, blank=True)), + ('des_motivo_desligamento', models.CharField(max_length=150, null=True, blank=True)), + ('obs_composicao', models.CharField(max_length=150, null=True, blank=True)), + ('ind_excluido', models.IntegerField()), + ], + options={ + 'db_table': 'composicao_comissao', + 'managed': False, + }, + ), + migrations.CreateModel( + name='ComposicaoMesa', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('cod_parlamentar', models.IntegerField()), + ('cod_sessao_leg', models.IntegerField()), + ('cod_cargo', models.IntegerField()), + ('ind_excluido', models.IntegerField()), + ], + options={ + 'db_table': 'composicao_mesa', + 'managed': False, + }, + ), + migrations.CreateModel( + name='Dependente', + fields=[ + ('cod_dependente', models.AutoField(serialize=False, primary_key=True)), + ('tip_dependente', models.IntegerField()), + ('cod_parlamentar', models.IntegerField()), + ('nom_dependente', models.CharField(max_length=50)), + ('sex_dependente', models.CharField(max_length=1)), + ('dat_nascimento', models.DateField(null=True, blank=True)), + ('num_cpf', models.CharField(max_length=14, null=True, blank=True)), + ('num_rg', models.CharField(max_length=15, null=True, blank=True)), + ('num_tit_eleitor', models.CharField(max_length=15, null=True, blank=True)), + ('ind_excluido', models.IntegerField()), + ], + options={ + 'db_table': 'dependente', + 'managed': False, + }, + ), + migrations.CreateModel( + name='DespachoInicial', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('cod_materia', models.IntegerField()), + ('num_ordem', models.IntegerField()), + ('cod_comissao', models.IntegerField()), + ('ind_excluido', models.IntegerField()), + ], + options={ + 'db_table': 'despacho_inicial', + 'managed': False, + }, + ), + migrations.CreateModel( + name='DocumentoAcessorio', + fields=[ + ('cod_documento', models.AutoField(serialize=False, primary_key=True)), + ('cod_materia', models.IntegerField()), + ('tip_documento', models.IntegerField()), + ('nom_documento', models.CharField(max_length=30)), + ('dat_documento', models.DateField(null=True, blank=True)), + ('nom_autor_documento', models.CharField(max_length=50, null=True, blank=True)), + ('txt_ementa', models.TextField(null=True, blank=True)), + ('txt_indexacao', models.TextField(null=True, blank=True)), + ('ind_excluido', models.IntegerField()), + ], + options={ + 'db_table': 'documento_acessorio', + 'managed': False, + }, + ), + migrations.CreateModel( + name='DocumentoAcessorioAdministrativo', + fields=[ + ('cod_documento_acessorio', models.AutoField(serialize=False, primary_key=True)), + ('cod_documento', models.IntegerField()), + ('tip_documento', models.IntegerField()), + ('nom_documento', models.CharField(max_length=30)), + ('nom_arquivo', models.CharField(max_length=100)), + ('dat_documento', models.DateField(null=True, blank=True)), + ('nom_autor_documento', models.CharField(max_length=50, null=True, blank=True)), + ('txt_assunto', models.TextField(null=True, blank=True)), + ('txt_indexacao', models.TextField(null=True, blank=True)), + ('ind_excluido', models.IntegerField()), + ], + options={ + 'db_table': 'documento_acessorio_administrativo', + 'managed': False, + }, + ), + migrations.CreateModel( + name='DocumentoAdministrativo', + fields=[ + ('cod_documento', models.AutoField(serialize=False, primary_key=True)), + ('tip_documento', models.IntegerField()), + ('num_documento', models.IntegerField()), + ('ano_documento', models.SmallIntegerField()), + ('dat_documento', models.DateField()), + ('num_protocolo', models.IntegerField(null=True, blank=True)), + ('txt_interessado', models.CharField(max_length=50, null=True, blank=True)), + ('cod_autor', models.IntegerField(null=True, blank=True)), + ('num_dias_prazo', models.IntegerField(null=True, blank=True)), + ('dat_fim_prazo', models.DateField(null=True, blank=True)), + ('ind_tramitacao', models.IntegerField()), + ('txt_assunto', models.TextField()), + ('txt_observacao', models.TextField(null=True, blank=True)), + ('ind_excluido', models.IntegerField()), + ], + options={ + 'db_table': 'documento_administrativo', + 'managed': False, + }, + ), + migrations.CreateModel( + name='ExpedienteMateria', + fields=[ + ('cod_ordem', models.AutoField(serialize=False, primary_key=True)), + ('cod_sessao_plen', models.IntegerField()), + ('cod_materia', models.IntegerField()), + ('dat_ordem', models.DateField()), + ('txt_observacao', models.TextField(null=True, blank=True)), + ('ind_excluido', models.IntegerField()), + ('num_ordem', models.IntegerField()), + ('txt_resultado', models.TextField(null=True, blank=True)), + ('tip_votacao', models.IntegerField()), + ], + options={ + 'db_table': 'expediente_materia', + 'managed': False, + }, + ), + migrations.CreateModel( + name='ExpedienteSessaoPlenaria', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('cod_sessao_plen', models.IntegerField()), + ('cod_expediente', models.IntegerField()), + ('txt_expediente', models.TextField(null=True, blank=True)), + ('ind_excluido', models.IntegerField()), + ], + options={ + 'db_table': 'expediente_sessao_plenaria', + 'managed': False, + }, + ), + migrations.CreateModel( + name='Filiacao', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('dat_filiacao', models.DateField()), + ('cod_parlamentar', models.IntegerField()), + ('cod_partido', models.IntegerField()), + ('dat_desfiliacao', models.DateField(null=True, blank=True)), + ('ind_excluido', models.IntegerField()), + ], + options={ + 'db_table': 'filiacao', + 'managed': False, + }, + ), + migrations.CreateModel( + name='LegislacaoCitada', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('cod_materia', models.IntegerField()), + ('cod_norma', models.IntegerField()), + ('des_disposicoes', models.CharField(max_length=15, null=True, blank=True)), + ('des_parte', models.CharField(max_length=8, null=True, blank=True)), + ('des_livro', models.CharField(max_length=7, null=True, blank=True)), + ('des_titulo', models.CharField(max_length=7, null=True, blank=True)), + ('des_capitulo', models.CharField(max_length=7, null=True, blank=True)), + ('des_secao', models.CharField(max_length=7, null=True, blank=True)), + ('des_subsecao', models.CharField(max_length=7, null=True, blank=True)), + ('des_artigo', models.CharField(max_length=4, null=True, blank=True)), + ('des_paragrafo', models.CharField(max_length=3, null=True, blank=True)), + ('des_inciso', models.CharField(max_length=10, null=True, blank=True)), + ('des_alinea', models.CharField(max_length=3, null=True, blank=True)), + ('des_item', models.CharField(max_length=3, null=True, blank=True)), + ('ind_excluido', models.IntegerField()), + ], + options={ + 'db_table': 'legislacao_citada', + 'managed': False, + }, + ), + migrations.CreateModel( + name='Legislatura', + fields=[ + ('num_legislatura', models.IntegerField(serialize=False, primary_key=True)), + ('dat_inicio', models.DateField()), + ('dat_fim', models.DateField()), + ('dat_eleicao', models.DateField()), + ('ind_excluido', models.IntegerField()), + ], + options={ + 'db_table': 'legislatura', + 'managed': False, + }, + ), + migrations.CreateModel( + name='LexmlRegistroProvedor', + fields=[ + ('cod_provedor', models.AutoField(serialize=False, primary_key=True)), + ('id_provedor', models.IntegerField()), + ('nom_provedor', models.CharField(max_length=255)), + ('sgl_provedor', models.CharField(max_length=15)), + ('adm_email', models.CharField(max_length=50, null=True, blank=True)), + ('nom_responsavel', models.CharField(max_length=255, null=True, blank=True)), + ('tipo', models.CharField(max_length=50)), + ('id_responsavel', models.IntegerField(null=True, blank=True)), + ('xml_provedor', models.TextField(null=True, blank=True)), + ], + options={ + 'db_table': 'lexml_registro_provedor', + 'managed': False, + }, + ), + migrations.CreateModel( + name='LexmlRegistroPublicador', + fields=[ + ('cod_publicador', models.AutoField(serialize=False, primary_key=True)), + ('id_publicador', models.IntegerField()), + ('nom_publicador', models.CharField(max_length=255)), + ('adm_email', models.CharField(max_length=50, null=True, blank=True)), + ('sigla', models.CharField(max_length=255, null=True, blank=True)), + ('nom_responsavel', models.CharField(max_length=255, null=True, blank=True)), + ('tipo', models.CharField(max_length=50)), + ('id_responsavel', models.IntegerField()), + ], + options={ + 'db_table': 'lexml_registro_publicador', + 'managed': False, + }, + ), + migrations.CreateModel( + name='Localidade', + fields=[ + ('cod_localidade', models.IntegerField(serialize=False, primary_key=True)), + ('nom_localidade', models.CharField(max_length=50, null=True, blank=True)), + ('nom_localidade_pesq', models.CharField(max_length=50, null=True, blank=True)), + ('tip_localidade', models.CharField(max_length=1, null=True, blank=True)), + ('sgl_uf', models.CharField(max_length=2, null=True, blank=True)), + ('sgl_regiao', models.CharField(max_length=2, null=True, blank=True)), + ('ind_excluido', models.IntegerField()), + ], + options={ + 'db_table': 'localidade', + 'managed': False, + }, + ), + migrations.CreateModel( + name='Mandato', + fields=[ + ('cod_mandato', models.AutoField(serialize=False, primary_key=True)), + ('cod_parlamentar', models.IntegerField()), + ('tip_afastamento', models.IntegerField(null=True, blank=True)), + ('num_legislatura', models.IntegerField()), + ('cod_coligacao', models.IntegerField(null=True, blank=True)), + ('tip_causa_fim_mandato', models.IntegerField(null=True, blank=True)), + ('dat_fim_mandato', models.DateField(null=True, blank=True)), + ('num_votos_recebidos', models.IntegerField(null=True, blank=True)), + ('dat_expedicao_diploma', models.DateField(null=True, blank=True)), + ('txt_observacao', models.TextField(null=True, blank=True)), + ('ind_excluido', models.IntegerField()), + ], + options={ + 'db_table': 'mandato', + 'managed': False, + }, + ), + migrations.CreateModel( + name='MateriaAssunto', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('cod_assunto', models.IntegerField()), + ('cod_materia', models.IntegerField()), + ('ind_excluido', models.IntegerField()), + ], + options={ + 'db_table': 'materia_assunto', + 'managed': False, + }, + ), + migrations.CreateModel( + name='MateriaLegislativa', + fields=[ + ('cod_materia', models.AutoField(serialize=False, primary_key=True)), + ('tip_id_basica', models.IntegerField()), + ('num_protocolo', models.IntegerField(null=True, blank=True)), + ('num_ident_basica', models.IntegerField()), + ('ano_ident_basica', models.SmallIntegerField()), + ('dat_apresentacao', models.DateField(null=True, blank=True)), + ('tip_apresentacao', models.CharField(max_length=1, null=True, blank=True)), + ('cod_regime_tramitacao', models.IntegerField()), + ('dat_publicacao', models.DateField(null=True, blank=True)), + ('tip_origem_externa', models.IntegerField(null=True, blank=True)), + ('num_origem_externa', models.CharField(max_length=5, null=True, blank=True)), + ('ano_origem_externa', models.SmallIntegerField(null=True, blank=True)), + ('dat_origem_externa', models.DateField(null=True, blank=True)), + ('cod_local_origem_externa', models.IntegerField(null=True, blank=True)), + ('nom_apelido', models.CharField(max_length=50, null=True, blank=True)), + ('num_dias_prazo', models.IntegerField(null=True, blank=True)), + ('dat_fim_prazo', models.DateField(null=True, blank=True)), + ('ind_tramitacao', models.IntegerField()), + ('ind_polemica', models.IntegerField(null=True, blank=True)), + ('des_objeto', models.CharField(max_length=150, null=True, blank=True)), + ('ind_complementar', models.IntegerField(null=True, blank=True)), + ('txt_ementa', models.TextField()), + ('txt_indexacao', models.TextField(null=True, blank=True)), + ('txt_observacao', models.TextField(null=True, blank=True)), + ('ind_excluido', models.IntegerField()), + ('txt_resultado', models.TextField(null=True, blank=True)), + ], + options={ + 'db_table': 'materia_legislativa', + 'managed': False, + }, + ), + migrations.CreateModel( + name='MesaSessaoPlenaria', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('cod_cargo', models.IntegerField()), + ('cod_sessao_leg', models.IntegerField()), + ('cod_parlamentar', models.IntegerField()), + ('cod_sessao_plen', models.IntegerField()), + ('ind_excluido', models.IntegerField(null=True, blank=True)), + ], + options={ + 'db_table': 'mesa_sessao_plenaria', + 'managed': False, + }, + ), + migrations.CreateModel( + name='NivelInstrucao', + fields=[ + ('cod_nivel_instrucao', models.AutoField(serialize=False, primary_key=True)), + ('des_nivel_instrucao', models.CharField(max_length=50)), + ('ind_excluido', models.IntegerField()), + ], + options={ + 'db_table': 'nivel_instrucao', + 'managed': False, + }, + ), + migrations.CreateModel( + name='NormaJuridica', + fields=[ + ('cod_norma', models.AutoField(serialize=False, primary_key=True)), + ('tip_norma', models.IntegerField()), + ('cod_materia', models.IntegerField(null=True, blank=True)), + ('num_norma', models.IntegerField()), + ('ano_norma', models.SmallIntegerField()), + ('tip_esfera_federacao', models.CharField(max_length=1)), + ('dat_norma', models.DateField(null=True, blank=True)), + ('dat_publicacao', models.DateField(null=True, blank=True)), + ('des_veiculo_publicacao', models.CharField(max_length=30, null=True, blank=True)), + ('num_pag_inicio_publ', models.IntegerField(null=True, blank=True)), + ('num_pag_fim_publ', models.IntegerField(null=True, blank=True)), + ('txt_ementa', models.TextField()), + ('txt_indexacao', models.TextField(null=True, blank=True)), + ('txt_observacao', models.TextField(null=True, blank=True)), + ('ind_complemento', models.IntegerField(null=True, blank=True)), + ('cod_assunto', models.CharField(max_length=16)), + ('dat_vigencia', models.DateField(null=True, blank=True)), + ('timestamp', models.DateTimeField()), + ('ind_excluido', models.IntegerField()), + ], + options={ + 'db_table': 'norma_juridica', + 'managed': False, + }, + ), + migrations.CreateModel( + name='Numeracao', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('cod_materia', models.IntegerField()), + ('num_ordem', models.IntegerField()), + ('tip_materia', models.IntegerField()), + ('num_materia', models.CharField(max_length=5)), + ('ano_materia', models.SmallIntegerField()), + ('dat_materia', models.DateField(null=True, blank=True)), + ('ind_excluido', models.IntegerField()), + ], + options={ + 'db_table': 'numeracao', + 'managed': False, + }, + ), + migrations.CreateModel( + name='Oradores', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('cod_sessao_plen', models.IntegerField()), + ('cod_parlamentar', models.IntegerField()), + ('num_ordem', models.IntegerField()), + ('url_discurso', models.CharField(max_length=150, null=True, blank=True)), + ('ind_excluido', models.IntegerField()), + ], + options={ + 'db_table': 'oradores', + 'managed': False, + }, + ), + migrations.CreateModel( + name='OradoresExpediente', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('cod_sessao_plen', models.IntegerField()), + ('cod_parlamentar', models.IntegerField()), + ('num_ordem', models.IntegerField()), + ('url_discurso', models.CharField(max_length=150, null=True, blank=True)), + ('ind_excluido', models.IntegerField()), + ], + options={ + 'db_table': 'oradores_expediente', + 'managed': False, + }, + ), + migrations.CreateModel( + name='OrdemDia', + fields=[ + ('cod_ordem', models.AutoField(serialize=False, primary_key=True)), + ('cod_sessao_plen', models.IntegerField()), + ('cod_materia', models.IntegerField()), + ('dat_ordem', models.DateField()), + ('txt_observacao', models.TextField(null=True, blank=True)), + ('ind_excluido', models.IntegerField()), + ('num_ordem', models.IntegerField()), + ('txt_resultado', models.TextField(null=True, blank=True)), + ('tip_votacao', models.IntegerField()), + ], + options={ + 'db_table': 'ordem_dia', + 'managed': False, + }, + ), + migrations.CreateModel( + name='OrdemDiaPresenca', + fields=[ + ('cod_presenca_ordem_dia', models.AutoField(serialize=False, primary_key=True)), + ('cod_sessao_plen', models.IntegerField()), + ('cod_parlamentar', models.IntegerField()), + ('dat_ordem', models.DateField()), + ('ind_excluido', models.IntegerField()), + ], + options={ + 'db_table': 'ordem_dia_presenca', + 'managed': False, + }, + ), + migrations.CreateModel( + name='Orgao', + fields=[ + ('cod_orgao', models.AutoField(serialize=False, primary_key=True)), + ('nom_orgao', models.CharField(max_length=60)), + ('sgl_orgao', models.CharField(max_length=10)), + ('ind_unid_deliberativa', models.IntegerField()), + ('end_orgao', models.CharField(max_length=100, null=True, blank=True)), + ('num_tel_orgao', models.CharField(max_length=50, null=True, blank=True)), + ('ind_excluido', models.IntegerField()), + ], + options={ + 'db_table': 'orgao', + 'managed': False, + }, + ), + migrations.CreateModel( + name='Origem', + fields=[ + ('cod_origem', models.AutoField(serialize=False, primary_key=True)), + ('sgl_origem', models.CharField(max_length=10)), + ('nom_origem', models.CharField(max_length=50)), + ('ind_excluido', models.IntegerField()), + ], + options={ + 'db_table': 'origem', + 'managed': False, + }, + ), + migrations.CreateModel( + name='Parecer', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('cod_relatoria', models.IntegerField()), + ('cod_materia', models.IntegerField()), + ('tip_conclusao', models.CharField(max_length=3, null=True, blank=True)), + ('tip_apresentacao', models.CharField(max_length=1)), + ('txt_parecer', models.TextField(null=True, blank=True)), + ('ind_excluido', models.IntegerField()), + ], + options={ + 'db_table': 'parecer', + 'managed': False, + }, + ), + migrations.CreateModel( + name='Parlamentar', + fields=[ + ('cod_parlamentar', models.AutoField(serialize=False, primary_key=True)), + ('cod_nivel_instrucao', models.IntegerField(null=True, blank=True)), + ('tip_situacao_militar', models.IntegerField(null=True, blank=True)), + ('nom_completo', models.CharField(max_length=50)), + ('nom_parlamentar', models.CharField(max_length=50, null=True, blank=True)), + ('sex_parlamentar', models.CharField(max_length=1)), + ('dat_nascimento', models.DateField(null=True, blank=True)), + ('num_cpf', models.CharField(max_length=14, null=True, blank=True)), + ('num_rg', models.CharField(max_length=15, null=True, blank=True)), + ('num_tit_eleitor', models.CharField(max_length=15, null=True, blank=True)), + ('cod_casa', models.IntegerField()), + ('num_gab_parlamentar', models.CharField(max_length=10, null=True, blank=True)), + ('num_tel_parlamentar', models.CharField(max_length=50, null=True, blank=True)), + ('num_fax_parlamentar', models.CharField(max_length=50, null=True, blank=True)), + ('end_residencial', models.CharField(max_length=100, null=True, blank=True)), + ('cod_localidade_resid', models.IntegerField(null=True, blank=True)), + ('num_cep_resid', models.CharField(max_length=9, null=True, blank=True)), + ('num_tel_resid', models.CharField(max_length=50, null=True, blank=True)), + ('num_fax_resid', models.CharField(max_length=50, null=True, blank=True)), + ('end_web', models.CharField(max_length=100, null=True, blank=True)), + ('nom_profissao', models.CharField(max_length=50, null=True, blank=True)), + ('end_email', models.CharField(max_length=100, null=True, blank=True)), + ('des_local_atuacao', models.CharField(max_length=100, null=True, blank=True)), + ('ind_ativo', models.IntegerField()), + ('txt_biografia', models.TextField(null=True, blank=True)), + ('ind_unid_deliberativa', models.IntegerField()), + ('ind_excluido', models.IntegerField()), + ], + options={ + 'db_table': 'parlamentar', + 'managed': False, + }, + ), + migrations.CreateModel( + name='Partido', + fields=[ + ('cod_partido', models.AutoField(serialize=False, primary_key=True)), + ('sgl_partido', models.CharField(max_length=9)), + ('nom_partido', models.CharField(max_length=50)), + ('dat_criacao', models.DateField(null=True, blank=True)), + ('dat_extincao', models.DateField(null=True, blank=True)), + ('ind_excluido', models.IntegerField()), + ], + options={ + 'db_table': 'partido', + 'managed': False, + }, + ), + migrations.CreateModel( + name='PeriodoCompComissao', + fields=[ + ('cod_periodo_comp', models.AutoField(serialize=False, primary_key=True)), + ('dat_inicio_periodo', models.DateField()), + ('dat_fim_periodo', models.DateField(null=True, blank=True)), + ('ind_excluido', models.IntegerField()), + ], + options={ + 'db_table': 'periodo_comp_comissao', + 'managed': False, + }, + ), + migrations.CreateModel( + name='Proposicao', + fields=[ + ('cod_proposicao', models.AutoField(serialize=False, primary_key=True)), + ('cod_materia', models.IntegerField(null=True, blank=True)), + ('cod_autor', models.IntegerField()), + ('tip_proposicao', models.IntegerField()), + ('dat_envio', models.DateTimeField()), + ('dat_recebimento', models.DateTimeField(null=True, blank=True)), + ('txt_descricao', models.CharField(max_length=100)), + ('cod_mat_ou_doc', models.IntegerField(null=True, blank=True)), + ('dat_devolucao', models.DateTimeField(null=True, blank=True)), + ('txt_justif_devolucao', models.CharField(max_length=200, null=True, blank=True)), + ('num_proposicao', models.IntegerField(null=True, blank=True)), + ('ind_excluido', models.IntegerField()), + ], + options={ + 'db_table': 'proposicao', + 'managed': False, + }, + ), + migrations.CreateModel( + name='Protocolo', + fields=[ + ('cod_protocolo', models.AutoField(serialize=False, primary_key=True)), + ('num_protocolo', models.IntegerField(null=True, blank=True)), + ('ano_protocolo', models.SmallIntegerField()), + ('dat_protocolo', models.DateField()), + ('hor_protocolo', models.TimeField()), + ('dat_timestamp', models.DateTimeField()), + ('tip_protocolo', models.IntegerField()), + ('tip_processo', models.IntegerField()), + ('txt_interessado', models.CharField(max_length=60, null=True, blank=True)), + ('cod_autor', models.IntegerField(null=True, blank=True)), + ('txt_assunto_ementa', models.TextField(null=True, blank=True)), + ('tip_documento', models.IntegerField(null=True, blank=True)), + ('tip_materia', models.IntegerField(null=True, blank=True)), + ('num_paginas', models.IntegerField(null=True, blank=True)), + ('txt_observacao', models.TextField(null=True, blank=True)), + ('ind_anulado', models.IntegerField()), + ('txt_user_anulacao', models.CharField(max_length=20, null=True, blank=True)), + ('txt_ip_anulacao', models.CharField(max_length=15, null=True, blank=True)), + ('txt_just_anulacao', models.CharField(max_length=60, null=True, blank=True)), + ('timestamp_anulacao', models.DateTimeField(null=True, blank=True)), + ], + options={ + 'db_table': 'protocolo', + 'managed': False, + }, + ), + migrations.CreateModel( + name='RegimeTramitacao', + fields=[ + ('cod_regime_tramitacao', models.AutoField(serialize=False, primary_key=True)), + ('des_regime_tramitacao', models.CharField(max_length=50)), + ('ind_excluido', models.IntegerField()), + ], + options={ + 'db_table': 'regime_tramitacao', + 'managed': False, + }, + ), + migrations.CreateModel( + name='RegistroVotacao', + fields=[ + ('cod_votacao', models.AutoField(serialize=False, primary_key=True)), + ('tip_resultado_votacao', models.IntegerField()), + ('cod_materia', models.IntegerField()), + ('cod_ordem', models.IntegerField()), + ('num_votos_sim', models.IntegerField()), + ('num_votos_nao', models.IntegerField()), + ('num_abstencao', models.IntegerField()), + ('txt_observacao', models.TextField(null=True, blank=True)), + ('ind_excluido', models.IntegerField()), + ], + options={ + 'db_table': 'registro_votacao', + 'managed': False, + }, + ), + migrations.CreateModel( + name='RegistroVotacaoParlamentar', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('cod_votacao', models.IntegerField()), + ('cod_parlamentar', models.IntegerField()), + ('ind_excluido', models.IntegerField()), + ('vot_parlamentar', models.CharField(max_length=10)), + ], + options={ + 'db_table': 'registro_votacao_parlamentar', + 'managed': False, + }, + ), + migrations.CreateModel( + name='Relatoria', + fields=[ + ('cod_relatoria', models.AutoField(serialize=False, primary_key=True)), + ('cod_materia', models.IntegerField()), + ('cod_parlamentar', models.IntegerField()), + ('tip_fim_relatoria', models.IntegerField(null=True, blank=True)), + ('cod_comissao', models.IntegerField(null=True, blank=True)), + ('dat_desig_relator', models.DateField()), + ('dat_destit_relator', models.DateField(null=True, blank=True)), + ('ind_excluido', models.IntegerField()), + ], + options={ + 'db_table': 'relatoria', + 'managed': False, + }, + ), + migrations.CreateModel( + name='SessaoLegislativa', + fields=[ + ('cod_sessao_leg', models.AutoField(serialize=False, primary_key=True)), + ('num_legislatura', models.IntegerField()), + ('num_sessao_leg', models.IntegerField()), + ('tip_sessao_leg', models.CharField(max_length=1)), + ('dat_inicio', models.DateField()), + ('dat_fim', models.DateField()), + ('dat_inicio_intervalo', models.DateField(null=True, blank=True)), + ('dat_fim_intervalo', models.DateField(null=True, blank=True)), + ('ind_excluido', models.IntegerField()), + ], + options={ + 'db_table': 'sessao_legislativa', + 'managed': False, + }, + ), + migrations.CreateModel( + name='SessaoPlenaria', + fields=[ + ('cod_sessao_plen', models.AutoField(serialize=False, primary_key=True)), + ('cod_andamento_sessao', models.IntegerField(null=True, blank=True)), + ('tip_sessao', models.IntegerField()), + ('cod_sessao_leg', models.IntegerField()), + ('num_legislatura', models.IntegerField()), + ('tip_expediente', models.CharField(max_length=10)), + ('dat_inicio_sessao', models.DateField()), + ('dia_sessao', models.CharField(max_length=15)), + ('hr_inicio_sessao', models.CharField(max_length=5)), + ('hr_fim_sessao', models.CharField(max_length=5, null=True, blank=True)), + ('num_sessao_plen', models.IntegerField()), + ('dat_fim_sessao', models.DateField(null=True, blank=True)), + ('url_audio', models.CharField(max_length=150, null=True, blank=True)), + ('url_video', models.CharField(max_length=150, null=True, blank=True)), + ('ind_excluido', models.IntegerField()), + ], + options={ + 'db_table': 'sessao_plenaria', + 'managed': False, + }, + ), + migrations.CreateModel( + name='SessaoPlenariaPresenca', + fields=[ + ('cod_presenca_sessao', models.AutoField(serialize=False, primary_key=True)), + ('cod_sessao_plen', models.IntegerField()), + ('cod_parlamentar', models.IntegerField()), + ('dat_sessao', models.DateField(null=True, blank=True)), + ('ind_excluido', models.IntegerField()), + ], + options={ + 'db_table': 'sessao_plenaria_presenca', + 'managed': False, + }, + ), + migrations.CreateModel( + name='SituacaoMilitar', + fields=[ + ('tip_situacao_militar', models.IntegerField(serialize=False, primary_key=True)), + ('des_tipo_situacao', models.CharField(max_length=50)), + ('ind_excluido', models.IntegerField()), + ], + options={ + 'db_table': 'tipo_situacao_militar', + 'managed': False, + }, + ), + migrations.CreateModel( + name='StatusTramitacao', + fields=[ + ('cod_status', models.AutoField(serialize=False, primary_key=True)), + ('sgl_status', models.CharField(max_length=10)), + ('des_status', models.CharField(max_length=60)), + ('ind_fim_tramitacao', models.IntegerField()), + ('ind_retorno_tramitacao', models.IntegerField()), + ('ind_excluido', models.IntegerField()), + ], + options={ + 'db_table': 'status_tramitacao', + 'managed': False, + }, + ), + migrations.CreateModel( + name='StatusTramitacaoAdministrativo', + fields=[ + ('cod_status', models.AutoField(serialize=False, primary_key=True)), + ('sgl_status', models.CharField(max_length=10)), + ('des_status', models.CharField(max_length=60)), + ('ind_fim_tramitacao', models.IntegerField()), + ('ind_retorno_tramitacao', models.IntegerField()), + ('ind_excluido', models.IntegerField()), + ], + options={ + 'db_table': 'status_tramitacao_administrativo', + 'managed': False, + }, + ), + migrations.CreateModel( + name='TipoAfastamento', + fields=[ + ('tip_afastamento', models.AutoField(serialize=False, primary_key=True)), + ('des_afastamento', models.CharField(max_length=50)), + ('ind_afastamento', models.IntegerField()), + ('ind_fim_mandato', models.IntegerField()), + ('des_dispositivo', models.CharField(max_length=50, null=True, blank=True)), + ('ind_excluido', models.IntegerField()), + ], + options={ + 'db_table': 'tipo_afastamento', + 'managed': False, + }, + ), + migrations.CreateModel( + name='TipoAutor', + fields=[ + ('tip_autor', models.IntegerField(serialize=False, primary_key=True)), + ('des_tipo_autor', models.CharField(max_length=50)), + ('ind_excluido', models.IntegerField()), + ], + options={ + 'db_table': 'tipo_autor', + 'managed': False, + }, + ), + migrations.CreateModel( + name='TipoComissao', + fields=[ + ('tip_comissao', models.AutoField(serialize=False, primary_key=True)), + ('nom_tipo_comissao', models.CharField(max_length=50)), + ('sgl_natureza_comissao', models.CharField(max_length=1)), + ('sgl_tipo_comissao', models.CharField(max_length=10)), + ('des_dispositivo_regimental', models.CharField(max_length=50, null=True, blank=True)), + ('ind_excluido', models.IntegerField()), + ], + options={ + 'db_table': 'tipo_comissao', + 'managed': False, + }, + ), + migrations.CreateModel( + name='TipoDependente', + fields=[ + ('tip_dependente', models.AutoField(serialize=False, primary_key=True)), + ('des_tipo_dependente', models.CharField(max_length=50)), + ('ind_excluido', models.IntegerField()), + ], + options={ + 'db_table': 'tipo_dependente', + 'managed': False, + }, + ), + migrations.CreateModel( + name='TipoDocumento', + fields=[ + ('tip_documento', models.AutoField(serialize=False, primary_key=True)), + ('des_tipo_documento', models.CharField(max_length=50)), + ('ind_excluido', models.IntegerField()), + ], + options={ + 'db_table': 'tipo_documento', + 'managed': False, + }, + ), + migrations.CreateModel( + name='TipoDocumentoAdministrativo', + fields=[ + ('tip_documento', models.AutoField(serialize=False, primary_key=True)), + ('sgl_tipo_documento', models.CharField(max_length=5)), + ('des_tipo_documento', models.CharField(max_length=50)), + ('ind_excluido', models.IntegerField()), + ], + options={ + 'db_table': 'tipo_documento_administrativo', + 'managed': False, + }, + ), + migrations.CreateModel( + name='TipoExpediente', + fields=[ + ('cod_expediente', models.AutoField(serialize=False, primary_key=True)), + ('nom_expediente', models.CharField(max_length=100)), + ('ind_excluido', models.IntegerField()), + ], + options={ + 'db_table': 'tipo_expediente', + 'managed': False, + }, + ), + migrations.CreateModel( + name='TipoFimRelatoria', + fields=[ + ('tip_fim_relatoria', models.AutoField(serialize=False, primary_key=True)), + ('des_fim_relatoria', models.CharField(max_length=50)), + ('ind_excluido', models.IntegerField()), + ], + options={ + 'db_table': 'tipo_fim_relatoria', + 'managed': False, + }, + ), + migrations.CreateModel( + name='TipoMateriaLegislativa', + fields=[ + ('tip_materia', models.AutoField(serialize=False, primary_key=True)), + ('sgl_tipo_materia', models.CharField(max_length=5)), + ('des_tipo_materia', models.CharField(max_length=50)), + ('ind_num_automatica', models.IntegerField()), + ('quorum_minimo_votacao', models.IntegerField()), + ('ind_excluido', models.IntegerField()), + ], + options={ + 'db_table': 'tipo_materia_legislativa', + 'managed': False, + }, + ), + migrations.CreateModel( + name='TipoNormaJuridica', + fields=[ + ('tip_norma', models.AutoField(serialize=False, primary_key=True)), + ('voc_lexml', models.CharField(max_length=50, null=True, blank=True)), + ('sgl_tipo_norma', models.CharField(max_length=3)), + ('des_tipo_norma', models.CharField(max_length=50)), + ('ind_excluido', models.IntegerField()), + ], + options={ + 'db_table': 'tipo_norma_juridica', + 'managed': False, + }, + ), + migrations.CreateModel( + name='TipoProposicao', + fields=[ + ('tip_proposicao', models.AutoField(serialize=False, primary_key=True)), + ('des_tipo_proposicao', models.CharField(max_length=50)), + ('ind_mat_ou_doc', models.CharField(max_length=1)), + ('tip_mat_ou_doc', models.IntegerField()), + ('nom_modelo', models.CharField(max_length=50)), + ('ind_excluido', models.IntegerField()), + ], + options={ + 'db_table': 'tipo_proposicao', + 'managed': False, + }, + ), + migrations.CreateModel( + name='TipoResultadoVotacao', + fields=[ + ('tip_resultado_votacao', models.AutoField(serialize=False, primary_key=True)), + ('nom_resultado', models.CharField(max_length=100)), + ('ind_excluido', models.IntegerField()), + ], + options={ + 'db_table': 'tipo_resultado_votacao', + 'managed': False, + }, + ), + migrations.CreateModel( + name='TipoSessaoPlenaria', + fields=[ + ('tip_sessao', models.AutoField(serialize=False, primary_key=True)), + ('nom_sessao', models.CharField(max_length=30)), + ('ind_excluido', models.IntegerField()), + ('num_minimo', models.IntegerField()), + ], + options={ + 'db_table': 'tipo_sessao_plenaria', + 'managed': False, + }, + ), + migrations.CreateModel( + name='Tramitacao', + fields=[ + ('cod_tramitacao', models.AutoField(serialize=False, primary_key=True)), + ('cod_status', models.IntegerField(null=True, blank=True)), + ('cod_materia', models.IntegerField()), + ('dat_tramitacao', models.DateField(null=True, blank=True)), + ('cod_unid_tram_local', models.IntegerField(null=True, blank=True)), + ('dat_encaminha', models.DateField(null=True, blank=True)), + ('cod_unid_tram_dest', models.IntegerField(null=True, blank=True)), + ('ind_ult_tramitacao', models.IntegerField()), + ('ind_urgencia', models.IntegerField()), + ('sgl_turno', models.CharField(max_length=1, null=True, blank=True)), + ('txt_tramitacao', models.TextField(null=True, blank=True)), + ('dat_fim_prazo', models.DateField(null=True, blank=True)), + ('ind_excluido', models.IntegerField()), + ], + options={ + 'db_table': 'tramitacao', + 'managed': False, + }, + ), + migrations.CreateModel( + name='TramitacaoAdministrativo', + fields=[ + ('cod_tramitacao', models.AutoField(serialize=False, primary_key=True)), + ('cod_documento', models.IntegerField()), + ('dat_tramitacao', models.DateField(null=True, blank=True)), + ('cod_unid_tram_local', models.IntegerField(null=True, blank=True)), + ('dat_encaminha', models.DateField(null=True, blank=True)), + ('cod_unid_tram_dest', models.IntegerField(null=True, blank=True)), + ('cod_status', models.IntegerField(null=True, blank=True)), + ('ind_ult_tramitacao', models.IntegerField()), + ('txt_tramitacao', models.TextField(null=True, blank=True)), + ('dat_fim_prazo', models.DateField(null=True, blank=True)), + ('ind_excluido', models.IntegerField()), + ], + options={ + 'db_table': 'tramitacao_administrativo', + 'managed': False, + }, + ), + migrations.CreateModel( + name='UnidadeTramitacao', + fields=[ + ('cod_unid_tramitacao', models.AutoField(serialize=False, primary_key=True)), + ('cod_comissao', models.IntegerField(null=True, blank=True)), + ('cod_orgao', models.IntegerField(null=True, blank=True)), + ('cod_parlamentar', models.IntegerField(null=True, blank=True)), + ('ind_excluido', models.IntegerField()), + ], + options={ + 'db_table': 'unidade_tramitacao', + 'managed': False, + }, + ), + migrations.CreateModel( + name='VinculoNormaJuridica', + fields=[ + ('cod_vinculo', models.AutoField(serialize=False, primary_key=True)), + ('cod_norma_referente', models.IntegerField()), + ('cod_norma_referida', models.IntegerField()), + ('tip_vinculo', models.CharField(max_length=1, null=True, blank=True)), + ('ind_excluido', models.CharField(max_length=1)), + ], + options={ + 'db_table': 'vinculo_norma_juridica', + 'managed': False, + }, + ), + ] diff --git a/lexml/migrations/0001_initial.py b/lexml/migrations/0001_initial.py new file mode 100644 index 000000000..702adc2d9 --- /dev/null +++ b/lexml/migrations/0001_initial.py @@ -0,0 +1,40 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + +from django.db import models, migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ] + + operations = [ + migrations.CreateModel( + name='LexmlRegistroProvedor', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('id_provedor', models.IntegerField()), + ('nome_provedor', models.CharField(max_length=255)), + ('sigla_provedor', models.CharField(max_length=15)), + ('adm_email', models.CharField(max_length=50, null=True, blank=True)), + ('nome_responsavel', models.CharField(max_length=255, null=True, blank=True)), + ('tipo', models.CharField(max_length=50)), + ('id_responsavel', models.IntegerField(null=True, blank=True)), + ('xml_provedor', models.TextField(null=True, blank=True)), + ], + ), + migrations.CreateModel( + name='LexmlRegistroPublicador', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('id_publicador', models.IntegerField()), + ('nome_publicador', models.CharField(max_length=255)), + ('adm_email', models.CharField(max_length=50, null=True, blank=True)), + ('sigla', models.CharField(max_length=255, null=True, blank=True)), + ('nome_responsavel', models.CharField(max_length=255, null=True, blank=True)), + ('tipo', models.CharField(max_length=50)), + ('id_responsavel', models.IntegerField()), + ], + ), + ] diff --git a/materia/migrations/0001_initial.py b/materia/migrations/0001_initial.py new file mode 100644 index 000000000..28a52a892 --- /dev/null +++ b/materia/migrations/0001_initial.py @@ -0,0 +1,355 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + +from django.db import models, migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('comissoes', '0001_initial'), + ('parlamentares', '0001_initial'), + ] + + operations = [ + migrations.CreateModel( + name='AcompMateria', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('endereco_email', models.CharField(max_length=100)), + ('txt_hash', models.CharField(max_length=8)), + ], + ), + migrations.CreateModel( + name='Anexada', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('data_anexacao', models.DateField()), + ('data_desanexacao', models.DateField(null=True, blank=True)), + ], + ), + migrations.CreateModel( + name='AssuntoMateria', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('descricao_assunto', models.CharField(max_length=200)), + ('descricao_dispositivo', models.CharField(max_length=50)), + ], + ), + migrations.CreateModel( + name='Autor', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('nome_autor', models.CharField(max_length=50, null=True, blank=True)), + ('descricao_cargo', models.CharField(max_length=50, null=True, blank=True)), + ('col_username', models.CharField(max_length=50, null=True, blank=True)), + ('comissao', models.ForeignKey(blank=True, to='comissoes.Comissao', null=True)), + ('parlamentar', models.ForeignKey(blank=True, to='parlamentares.Parlamentar', null=True)), + ('partido', models.ForeignKey(blank=True, to='parlamentares.Partido', null=True)), + ], + ), + migrations.CreateModel( + name='Autoria', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('primeiro_autor', models.BooleanField()), + ('autor', models.ForeignKey(to='materia.Autor')), + ], + ), + migrations.CreateModel( + name='DespachoInicial', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('numero_ordem', models.IntegerField()), + ('comissao', models.ForeignKey(to='comissoes.Comissao')), + ], + ), + migrations.CreateModel( + name='DocumentoAcessorio', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('nome_documento', models.CharField(max_length=30)), + ('data_documento', models.DateField(null=True, blank=True)), + ('nome_autor_documento', models.CharField(max_length=50, null=True, blank=True)), + ('txt_ementa', models.TextField(null=True, blank=True)), + ('txt_indexacao', models.TextField(null=True, blank=True)), + ], + ), + migrations.CreateModel( + name='MateriaAssunto', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('assunto', models.ForeignKey(to='materia.AssuntoMateria')), + ], + ), + migrations.CreateModel( + name='MateriaLegislativa', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('numero_protocolo', models.IntegerField(null=True, blank=True)), + ('numero_ident_basica', models.IntegerField()), + ('ano_ident_basica', models.SmallIntegerField()), + ('data_apresentacao', models.DateField(null=True, blank=True)), + ('tipo_apresentacao', models.CharField(max_length=1, null=True, blank=True)), + ('data_publicacao', models.DateField(null=True, blank=True)), + ('numero_origem_externa', models.CharField(max_length=5, null=True, blank=True)), + ('ano_origem_externa', models.SmallIntegerField(null=True, blank=True)), + ('data_origem_externa', models.DateField(null=True, blank=True)), + ('nome_apelido', models.CharField(max_length=50, null=True, blank=True)), + ('numero_dias_prazo', models.IntegerField(null=True, blank=True)), + ('data_fim_prazo', models.DateField(null=True, blank=True)), + ('indicador_tramitacao', models.BooleanField()), + ('polemica', models.NullBooleanField()), + ('descricao_objeto', models.CharField(max_length=150, null=True, blank=True)), + ('complementar', models.NullBooleanField()), + ('txt_ementa', models.TextField()), + ('txt_indexacao', models.TextField(null=True, blank=True)), + ('txt_observacao', models.TextField(null=True, blank=True)), + ('txt_resultado', models.TextField(null=True, blank=True)), + ('anexadas', models.ManyToManyField(related_name='anexo_de', through='materia.Anexada', to='materia.MateriaLegislativa')), + ], + ), + migrations.CreateModel( + name='Numeracao', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('numero_ordem', models.IntegerField()), + ('numero_materia', models.CharField(max_length=5)), + ('ano_materia', models.SmallIntegerField()), + ('data_materia', models.DateField(null=True, blank=True)), + ('materia', models.ForeignKey(to='materia.MateriaLegislativa')), + ], + ), + migrations.CreateModel( + name='Orgao', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('nome_orgao', models.CharField(max_length=60)), + ('sigla_orgao', models.CharField(max_length=10)), + ('unid_deliberativa', models.BooleanField()), + ('endereco_orgao', models.CharField(max_length=100, null=True, blank=True)), + ('numero_tel_orgao', models.CharField(max_length=50, null=True, blank=True)), + ], + ), + migrations.CreateModel( + name='Origem', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('sigla_origem', models.CharField(max_length=10)), + ('nome_origem', models.CharField(max_length=50)), + ], + ), + migrations.CreateModel( + name='Parecer', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('tipo_conclusao', models.CharField(max_length=3, null=True, blank=True)), + ('tipo_apresentacao', models.CharField(max_length=1)), + ('txt_parecer', models.TextField(null=True, blank=True)), + ('materia', models.ForeignKey(to='materia.MateriaLegislativa')), + ], + ), + migrations.CreateModel( + name='Proposicao', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('data_envio', models.DateTimeField()), + ('data_recebimento', models.DateTimeField(null=True, blank=True)), + ('txt_descricao', models.CharField(max_length=100)), + ('cod_mat_ou_doc', models.IntegerField(null=True, blank=True)), + ('data_devolucao', models.DateTimeField(null=True, blank=True)), + ('txt_justif_devolucao', models.CharField(max_length=200, null=True, blank=True)), + ('numero_proposicao', models.IntegerField(null=True, blank=True)), + ('autor', models.ForeignKey(to='materia.Autor')), + ('materia', models.ForeignKey(blank=True, to='materia.MateriaLegislativa', null=True)), + ], + ), + migrations.CreateModel( + name='RegimeTramitacao', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('descricao_regime_tramitacao', models.CharField(max_length=50)), + ], + ), + migrations.CreateModel( + name='Relatoria', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('data_desig_relator', models.DateField()), + ('data_destit_relator', models.DateField(null=True, blank=True)), + ('comissao', models.ForeignKey(blank=True, to='comissoes.Comissao', null=True)), + ('materia', models.ForeignKey(to='materia.MateriaLegislativa')), + ('parlamentar', models.ForeignKey(to='parlamentares.Parlamentar')), + ], + ), + migrations.CreateModel( + name='StatusTramitacao', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('sigla_status', models.CharField(max_length=10)), + ('descricao_status', models.CharField(max_length=60)), + ('fim_tramitacao', models.BooleanField()), + ('retorno_tramitacao', models.BooleanField()), + ], + ), + migrations.CreateModel( + name='TipoAutor', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('descricao_tipo_autor', models.CharField(max_length=50)), + ], + ), + migrations.CreateModel( + name='TipoDocumento', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('descricao_tipo_documento', models.CharField(max_length=50)), + ], + ), + migrations.CreateModel( + name='TipoFimRelatoria', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('descricao_fim_relatoria', models.CharField(max_length=50)), + ], + ), + migrations.CreateModel( + name='TipoMateriaLegislativa', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('sigla_tipo_materia', models.CharField(max_length=5)), + ('descricao_tipo_materia', models.CharField(max_length=50)), + ('num_automatica', models.BooleanField()), + ('quorum_minimo_votacao', models.IntegerField()), + ], + ), + migrations.CreateModel( + name='TipoProposicao', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('descricao_tipo_proposicao', models.CharField(max_length=50)), + ('mat_ou_doc', models.BooleanField()), + ('tipo_mat_ou_doc', models.IntegerField()), + ('nome_modelo', models.CharField(max_length=50)), + ], + ), + migrations.CreateModel( + name='Tramitacao', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('data_tramitacao', models.DateField(null=True, blank=True)), + ('data_encaminha', models.DateField(null=True, blank=True)), + ('ult_tramitacao', models.BooleanField()), + ('urgencia', models.BooleanField()), + ('sigla_turno', models.CharField(max_length=1, null=True, blank=True)), + ('txt_tramitacao', models.TextField(null=True, blank=True)), + ('data_fim_prazo', models.DateField(null=True, blank=True)), + ('materia', models.ForeignKey(to='materia.MateriaLegislativa')), + ('status', models.ForeignKey(blank=True, to='materia.StatusTramitacao', null=True)), + ], + ), + migrations.CreateModel( + name='UnidadeTramitacao', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('comissao', models.ForeignKey(blank=True, to='comissoes.Comissao', null=True)), + ('orgao', models.ForeignKey(blank=True, to='materia.Orgao', null=True)), + ('parlamentar', models.ForeignKey(blank=True, to='parlamentares.Parlamentar', null=True)), + ], + ), + migrations.AddField( + model_name='tramitacao', + name='unid_tram_dest', + field=models.ForeignKey(related_name='+', blank=True, to='materia.UnidadeTramitacao', null=True), + ), + migrations.AddField( + model_name='tramitacao', + name='unid_tram_local', + field=models.ForeignKey(related_name='+', blank=True, to='materia.UnidadeTramitacao', null=True), + ), + migrations.AddField( + model_name='relatoria', + name='tipo_fim_relatoria', + field=models.ForeignKey(blank=True, to='materia.TipoFimRelatoria', null=True), + ), + migrations.AddField( + model_name='proposicao', + name='tipo', + field=models.ForeignKey(to='materia.TipoProposicao'), + ), + migrations.AddField( + model_name='parecer', + name='relatoria', + field=models.ForeignKey(to='materia.Relatoria'), + ), + migrations.AddField( + model_name='numeracao', + name='tipo_materia', + field=models.ForeignKey(to='materia.TipoMateriaLegislativa'), + ), + migrations.AddField( + model_name='materialegislativa', + name='local_origem_externa', + field=models.ForeignKey(blank=True, to='materia.Origem', null=True), + ), + migrations.AddField( + model_name='materialegislativa', + name='regime_tramitacao', + field=models.ForeignKey(to='materia.RegimeTramitacao'), + ), + migrations.AddField( + model_name='materialegislativa', + name='tipo_id_basica', + field=models.ForeignKey(to='materia.TipoMateriaLegislativa'), + ), + migrations.AddField( + model_name='materialegislativa', + name='tipo_origem_externa', + field=models.ForeignKey(related_name='+', blank=True, to='materia.TipoMateriaLegislativa', null=True), + ), + migrations.AddField( + model_name='materiaassunto', + name='materia', + field=models.ForeignKey(to='materia.MateriaLegislativa'), + ), + migrations.AddField( + model_name='documentoacessorio', + name='materia', + field=models.ForeignKey(to='materia.MateriaLegislativa'), + ), + migrations.AddField( + model_name='documentoacessorio', + name='tipo', + field=models.ForeignKey(to='materia.TipoDocumento'), + ), + migrations.AddField( + model_name='despachoinicial', + name='materia', + field=models.ForeignKey(to='materia.MateriaLegislativa'), + ), + migrations.AddField( + model_name='autoria', + name='materia', + field=models.ForeignKey(to='materia.MateriaLegislativa'), + ), + migrations.AddField( + model_name='autor', + name='tipo', + field=models.ForeignKey(to='materia.TipoAutor'), + ), + migrations.AddField( + model_name='anexada', + name='materia_anexada', + field=models.ForeignKey(related_name='+', to='materia.MateriaLegislativa'), + ), + migrations.AddField( + model_name='anexada', + name='materia_principal', + field=models.ForeignKey(related_name='+', to='materia.MateriaLegislativa'), + ), + migrations.AddField( + model_name='acompmateria', + name='materia', + field=models.ForeignKey(to='materia.MateriaLegislativa'), + ), + ] diff --git a/norma/migrations/0001_initial.py b/norma/migrations/0001_initial.py new file mode 100644 index 000000000..d51496404 --- /dev/null +++ b/norma/migrations/0001_initial.py @@ -0,0 +1,91 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + +from django.db import models, migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('materia', '0001_initial'), + ] + + operations = [ + migrations.CreateModel( + name='AssuntoNorma', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('descricao_assunto', models.CharField(max_length=50)), + ('descricao_estendida', models.CharField(max_length=250, null=True, blank=True)), + ], + ), + migrations.CreateModel( + name='LegislacaoCitada', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('descricao_disposicoes', models.CharField(max_length=15, null=True, blank=True)), + ('descricao_parte', models.CharField(max_length=8, null=True, blank=True)), + ('descricao_livro', models.CharField(max_length=7, null=True, blank=True)), + ('descricao_titulo', models.CharField(max_length=7, null=True, blank=True)), + ('descricao_capitulo', models.CharField(max_length=7, null=True, blank=True)), + ('descricao_secao', models.CharField(max_length=7, null=True, blank=True)), + ('descricao_subsecao', models.CharField(max_length=7, null=True, blank=True)), + ('descricao_artigo', models.CharField(max_length=4, null=True, blank=True)), + ('descricao_paragrafo', models.CharField(max_length=3, null=True, blank=True)), + ('descricao_inciso', models.CharField(max_length=10, null=True, blank=True)), + ('descricao_alinea', models.CharField(max_length=3, null=True, blank=True)), + ('descricao_item', models.CharField(max_length=3, null=True, blank=True)), + ('materia', models.ForeignKey(to='materia.MateriaLegislativa')), + ], + ), + migrations.CreateModel( + name='NormaJuridica', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('numero_norma', models.IntegerField()), + ('ano_norma', models.SmallIntegerField()), + ('tipo_esfera_federacao', models.CharField(max_length=1)), + ('data_norma', models.DateField(null=True, blank=True)), + ('data_publicacao', models.DateField(null=True, blank=True)), + ('descricao_veiculo_publicacao', models.CharField(max_length=30, null=True, blank=True)), + ('numero_pag_inicio_publ', models.IntegerField(null=True, blank=True)), + ('numero_pag_fim_publ', models.IntegerField(null=True, blank=True)), + ('txt_ementa', models.TextField()), + ('txt_indexacao', models.TextField(null=True, blank=True)), + ('txt_observacao', models.TextField(null=True, blank=True)), + ('complemento', models.NullBooleanField()), + ('data_vigencia', models.DateField(null=True, blank=True)), + ('timestamp', models.DateTimeField()), + ('assunto', models.ForeignKey(to='norma.AssuntoNorma')), + ('materia', models.ForeignKey(blank=True, to='materia.MateriaLegislativa', null=True)), + ], + ), + migrations.CreateModel( + name='TipoNormaJuridica', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('voc_lexml', models.CharField(max_length=50, null=True, blank=True)), + ('sigla_tipo_norma', models.CharField(max_length=3)), + ('descricao_tipo_norma', models.CharField(max_length=50)), + ], + ), + migrations.CreateModel( + name='VinculoNormaJuridica', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('tipo_vinculo', models.CharField(max_length=1, null=True, blank=True)), + ('norma_referente', models.ForeignKey(related_name='+', to='norma.NormaJuridica')), + ('norma_referida', models.ForeignKey(related_name='+', to='norma.NormaJuridica')), + ], + ), + migrations.AddField( + model_name='normajuridica', + name='tipo', + field=models.ForeignKey(to='norma.TipoNormaJuridica'), + ), + migrations.AddField( + model_name='legislacaocitada', + name='norma', + field=models.ForeignKey(to='norma.NormaJuridica'), + ), + ] diff --git a/parlamentares/migrations/0001_initial.py b/parlamentares/migrations/0001_initial.py new file mode 100644 index 000000000..456633a40 --- /dev/null +++ b/parlamentares/migrations/0001_initial.py @@ -0,0 +1,235 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + +from django.db import models, migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ] + + operations = [ + migrations.CreateModel( + name='CargoMesa', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('nome', models.CharField(max_length=50)), + ('unico', models.BooleanField()), + ], + ), + migrations.CreateModel( + name='Coligacao', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('nome_coligacao', models.CharField(max_length=50)), + ('numero_votos_coligacao', models.IntegerField(null=True, blank=True)), + ], + ), + migrations.CreateModel( + name='ComposicaoColigacao', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('coligacao', models.ForeignKey(to='parlamentares.Coligacao')), + ], + ), + migrations.CreateModel( + name='ComposicaoMesa', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('cargo', models.ForeignKey(to='parlamentares.CargoMesa')), + ], + ), + migrations.CreateModel( + name='Dependente', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('nome_dependente', models.CharField(max_length=50)), + ('sexo', models.CharField(max_length=1)), + ('data_nascimento', models.DateField(null=True, blank=True)), + ('numero_cpf', models.CharField(max_length=14, null=True, blank=True)), + ('numero_rg', models.CharField(max_length=15, null=True, blank=True)), + ('numero_tit_eleitor', models.CharField(max_length=15, null=True, blank=True)), + ], + ), + migrations.CreateModel( + name='Filiacao', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('data_filiacao', models.DateField()), + ('data_desfiliacao', models.DateField(null=True, blank=True)), + ], + ), + migrations.CreateModel( + name='Legislatura', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('data_inicio', models.DateField()), + ('data_fim', models.DateField()), + ('data_eleicao', models.DateField()), + ], + ), + migrations.CreateModel( + name='Localidade', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('nome_localidade', models.CharField(max_length=50, null=True, blank=True)), + ('nome_localidade_pesq', models.CharField(max_length=50, null=True, blank=True)), + ('tipo_localidade', models.CharField(max_length=1, null=True, blank=True)), + ('sigla_uf', models.CharField(max_length=2, null=True, blank=True)), + ('sigla_regiao', models.CharField(max_length=2, null=True, blank=True)), + ], + ), + migrations.CreateModel( + name='Mandato', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('tipo_causa_fim_mandato', models.IntegerField(null=True, blank=True)), + ('data_fim_mandato', models.DateField(null=True, blank=True)), + ('numero_votos_recebidos', models.IntegerField(null=True, blank=True)), + ('data_expedicao_diploma', models.DateField(null=True, blank=True)), + ('txt_observacao', models.TextField(null=True, blank=True)), + ('coligacao', models.ForeignKey(blank=True, to='parlamentares.Coligacao', null=True)), + ('legislatura', models.ForeignKey(to='parlamentares.Legislatura')), + ], + ), + migrations.CreateModel( + name='NivelInstrucao', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('nivel_instrucao', models.CharField(max_length=50)), + ], + ), + migrations.CreateModel( + name='Parlamentar', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('nome_completo', models.CharField(max_length=50)), + ('nome_parlamentar', models.CharField(max_length=50, null=True, blank=True)), + ('sexo', models.CharField(max_length=1)), + ('data_nascimento', models.DateField(null=True, blank=True)), + ('numero_cpf', models.CharField(max_length=14, null=True, blank=True)), + ('numero_rg', models.CharField(max_length=15, null=True, blank=True)), + ('numero_tit_eleitor', models.CharField(max_length=15, null=True, blank=True)), + ('cod_casa', models.IntegerField()), + ('numero_gab_parlamentar', models.CharField(max_length=10, null=True, blank=True)), + ('numero_tel_parlamentar', models.CharField(max_length=50, null=True, blank=True)), + ('numero_fax_parlamentar', models.CharField(max_length=50, null=True, blank=True)), + ('endereco_residencial', models.CharField(max_length=100, null=True, blank=True)), + ('numero_cep_resid', models.CharField(max_length=9, null=True, blank=True)), + ('numero_tel_resid', models.CharField(max_length=50, null=True, blank=True)), + ('numero_fax_resid', models.CharField(max_length=50, null=True, blank=True)), + ('endereco_web', models.CharField(max_length=100, null=True, blank=True)), + ('nome_profissao', models.CharField(max_length=50, null=True, blank=True)), + ('endereco_email', models.CharField(max_length=100, null=True, blank=True)), + ('descricao_local_atuacao', models.CharField(max_length=100, null=True, blank=True)), + ('ativo', models.BooleanField()), + ('txt_biografia', models.TextField(null=True, blank=True)), + ('unid_deliberativa', models.BooleanField()), + ('localidade_resid', models.ForeignKey(blank=True, to='parlamentares.Localidade', null=True)), + ('nivel_instrucao', models.ForeignKey(blank=True, to='parlamentares.NivelInstrucao', null=True)), + ], + ), + migrations.CreateModel( + name='Partido', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('sigla_partido', models.CharField(max_length=9)), + ('nome_partido', models.CharField(max_length=50)), + ('data_criacao', models.DateField(null=True, blank=True)), + ('data_extincao', models.DateField(null=True, blank=True)), + ], + ), + migrations.CreateModel( + name='SessaoLegislativa', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('numero', models.IntegerField()), + ('tipo', models.CharField(max_length=1)), + ('data_inicio', models.DateField()), + ('data_fim', models.DateField()), + ('data_inicio_intervalo', models.DateField(null=True, blank=True)), + ('data_fim_intervalo', models.DateField(null=True, blank=True)), + ('legislatura', models.ForeignKey(to='parlamentares.Legislatura')), + ], + ), + migrations.CreateModel( + name='SituacaoMilitar', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('descricao_tipo_situacao', models.CharField(max_length=50)), + ], + ), + migrations.CreateModel( + name='TipoAfastamento', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('descricao_afastamento', models.CharField(max_length=50)), + ('afastamento', models.BooleanField()), + ('fim_mandato', models.BooleanField()), + ('descricao_dispositivo', models.CharField(max_length=50, null=True, blank=True)), + ], + ), + migrations.CreateModel( + name='TipoDependente', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('descricao_tipo_dependente', models.CharField(max_length=50)), + ], + ), + migrations.AddField( + model_name='parlamentar', + name='situacao_militar', + field=models.ForeignKey(blank=True, to='parlamentares.SituacaoMilitar', null=True), + ), + migrations.AddField( + model_name='mandato', + name='parlamentar', + field=models.ForeignKey(to='parlamentares.Parlamentar'), + ), + migrations.AddField( + model_name='mandato', + name='tipo_afastamento', + field=models.ForeignKey(blank=True, to='parlamentares.TipoAfastamento', null=True), + ), + migrations.AddField( + model_name='filiacao', + name='parlamentar', + field=models.ForeignKey(to='parlamentares.Parlamentar'), + ), + migrations.AddField( + model_name='filiacao', + name='partido', + field=models.ForeignKey(to='parlamentares.Partido'), + ), + migrations.AddField( + model_name='dependente', + name='parlamentar', + field=models.ForeignKey(to='parlamentares.Parlamentar'), + ), + migrations.AddField( + model_name='dependente', + name='tipo_dependente', + field=models.ForeignKey(to='parlamentares.TipoDependente'), + ), + migrations.AddField( + model_name='composicaomesa', + name='parlamentar', + field=models.ForeignKey(to='parlamentares.Parlamentar'), + ), + migrations.AddField( + model_name='composicaomesa', + name='sessao_legislativa', + field=models.ForeignKey(to='parlamentares.SessaoLegislativa'), + ), + migrations.AddField( + model_name='composicaocoligacao', + name='partido', + field=models.ForeignKey(to='parlamentares.Partido'), + ), + migrations.AddField( + model_name='coligacao', + name='legislatura', + field=models.ForeignKey(to='parlamentares.Legislatura'), + ), + ] diff --git a/pglegacy/migrations/0001_initial.py b/pglegacy/migrations/0001_initial.py new file mode 100644 index 000000000..51dec1cad --- /dev/null +++ b/pglegacy/migrations/0001_initial.py @@ -0,0 +1,921 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + +from django.db import models, migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ] + + operations = [ + migrations.CreateModel( + name='AcompMateria', + fields=[ + ('cod_cadastro', models.IntegerField(serialize=False, primary_key=True)), + ('txt_email', models.CharField(max_length=40)), + ('txt_nome', models.CharField(max_length=50)), + ('ind_excluido', models.SmallIntegerField()), + ], + options={ + 'db_table': 'acomp_materia', + 'managed': False, + }, + ), + migrations.CreateModel( + name='AndamentoSessao', + fields=[ + ('cod_andamento_sessao', models.AutoField(serialize=False, primary_key=True)), + ('nom_andamento', models.CharField(max_length=100)), + ('ind_excluido', models.SmallIntegerField()), + ], + options={ + 'db_table': 'andamento_sessao', + 'managed': False, + }, + ), + migrations.CreateModel( + name='Anexada', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('dat_anexacao', models.DateField()), + ('dat_desanexacao', models.DateField()), + ('ind_excluido', models.SmallIntegerField()), + ], + options={ + 'db_table': 'anexada', + 'managed': False, + }, + ), + migrations.CreateModel( + name='AssuntoMateria', + fields=[ + ('cod_assunto', models.IntegerField(serialize=False, primary_key=True)), + ('des_assunto', models.CharField(max_length=200)), + ('des_dispositivo', models.CharField(max_length=50)), + ('ind_excluido', models.SmallIntegerField()), + ], + options={ + 'db_table': 'assunto_materia', + 'managed': False, + }, + ), + migrations.CreateModel( + name='Autor', + fields=[ + ('cod_autor', models.AutoField(serialize=False, primary_key=True)), + ('nom_autor', models.CharField(max_length=50, null=True, blank=True)), + ('des_cargo', models.CharField(max_length=50, null=True, blank=True)), + ('col_username', models.CharField(max_length=50, null=True, blank=True)), + ('ind_excluido', models.SmallIntegerField()), + ], + options={ + 'db_table': 'autor', + 'managed': False, + }, + ), + migrations.CreateModel( + name='Autoria', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('ind_primeiro_autor', models.SmallIntegerField()), + ('ind_excluido', models.SmallIntegerField()), + ], + options={ + 'db_table': 'autoria', + 'managed': False, + }, + ), + migrations.CreateModel( + name='CargoComissao', + fields=[ + ('cod_cargo', models.SmallIntegerField(serialize=False, primary_key=True)), + ('des_cargo', models.CharField(max_length=50)), + ('ind_unico', models.SmallIntegerField()), + ('ind_excluido', models.SmallIntegerField()), + ], + options={ + 'db_table': 'cargo_comissao', + 'managed': False, + }, + ), + migrations.CreateModel( + name='CargoMesa', + fields=[ + ('cod_cargo', models.SmallIntegerField(serialize=False, primary_key=True)), + ('des_cargo', models.CharField(max_length=50)), + ('ind_unico', models.SmallIntegerField()), + ('ind_excluido', models.SmallIntegerField()), + ], + options={ + 'db_table': 'cargo_mesa', + 'managed': False, + }, + ), + migrations.CreateModel( + name='Coligacao', + fields=[ + ('cod_coligacao', models.AutoField(serialize=False, primary_key=True)), + ('nom_coligacao', models.CharField(max_length=50)), + ('num_votos_coligacao', models.IntegerField(null=True, blank=True)), + ('ind_excluido', models.SmallIntegerField()), + ], + options={ + 'db_table': 'coligacao', + 'managed': False, + }, + ), + migrations.CreateModel( + name='Comissao', + fields=[ + ('cod_comissao', models.AutoField(serialize=False, primary_key=True)), + ('nom_comissao', models.CharField(max_length=60)), + ('sgl_comissao', models.CharField(max_length=10)), + ('dat_criacao', models.DateField()), + ('dat_extincao', models.DateField(null=True, blank=True)), + ('nom_apelido_temp', models.CharField(max_length=100, null=True, blank=True)), + ('dat_instalacao_temp', models.DateField(null=True, blank=True)), + ('dat_final_prevista_temp', models.DateField(null=True, blank=True)), + ('dat_prorrogada_temp', models.DateField(null=True, blank=True)), + ('dat_fim_comissao', models.DateField(null=True, blank=True)), + ('nom_secretario', models.CharField(max_length=30, null=True, blank=True)), + ('num_tel_reuniao', models.CharField(max_length=15, null=True, blank=True)), + ('end_secretaria', models.CharField(max_length=100, null=True, blank=True)), + ('num_tel_secretaria', models.CharField(max_length=15, null=True, blank=True)), + ('num_fax_secretaria', models.CharField(max_length=15, null=True, blank=True)), + ('des_agenda_reuniao', models.CharField(max_length=100, null=True, blank=True)), + ('loc_reuniao', models.CharField(max_length=100, null=True, blank=True)), + ('txt_finalidade', models.TextField(null=True, blank=True)), + ('end_email', models.CharField(max_length=100, null=True, blank=True)), + ('ind_unid_deliberativa', models.SmallIntegerField()), + ('ind_excluido', models.SmallIntegerField()), + ], + options={ + 'db_table': 'comissao', + 'managed': False, + }, + ), + migrations.CreateModel( + name='ComposicaoColigacao', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('ind_excluido', models.SmallIntegerField()), + ], + options={ + 'db_table': 'composicao_coligacao', + 'managed': False, + }, + ), + migrations.CreateModel( + name='ComposicaoComissao', + fields=[ + ('cod_comp_comissao', models.AutoField(serialize=False, primary_key=True)), + ('ind_titular', models.SmallIntegerField()), + ('dat_designacao', models.DateField()), + ('dat_desligamento', models.DateField(null=True, blank=True)), + ('des_motivo_desligamento', models.CharField(max_length=150)), + ('obs_composicao', models.CharField(max_length=150)), + ('ind_excluido', models.SmallIntegerField()), + ], + options={ + 'db_table': 'composicao_comissao', + 'managed': False, + }, + ), + migrations.CreateModel( + name='ComposicaoMesa', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('ind_excluido', models.SmallIntegerField()), + ], + options={ + 'db_table': 'composicao_mesa', + 'managed': False, + }, + ), + migrations.CreateModel( + name='Dependente', + fields=[ + ('cod_dependente', models.AutoField(serialize=False, primary_key=True)), + ('nom_dependente', models.CharField(max_length=50)), + ('sex_dependente', models.CharField(max_length=1)), + ('dat_nascimento', models.DateField(null=True, blank=True)), + ('num_cpf', models.CharField(max_length=14, null=True, blank=True)), + ('num_rg', models.CharField(max_length=15, null=True, blank=True)), + ('num_tit_eleitor', models.CharField(max_length=15, null=True, blank=True)), + ('ind_excluido', models.SmallIntegerField()), + ], + options={ + 'db_table': 'dependente', + 'managed': False, + }, + ), + migrations.CreateModel( + name='DespachoInicial', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('num_ordem', models.SmallIntegerField()), + ('ind_excluido', models.SmallIntegerField()), + ], + options={ + 'db_table': 'despacho_inicial', + 'managed': False, + }, + ), + migrations.CreateModel( + name='DocumentoAcessorio', + fields=[ + ('cod_documento', models.AutoField(serialize=False, primary_key=True)), + ('nom_documento', models.CharField(max_length=30)), + ('dat_documento', models.DateField(null=True, blank=True)), + ('nom_autor_documento', models.CharField(max_length=50, null=True, blank=True)), + ('txt_ementa', models.TextField(null=True, blank=True)), + ('txt_indexacao', models.TextField(null=True, blank=True)), + ('ind_excluido', models.SmallIntegerField()), + ], + options={ + 'db_table': 'documento_acessorio', + 'managed': False, + }, + ), + migrations.CreateModel( + name='ExpedienteSessaoPlenaria', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('txt_expediente', models.TextField(null=True, blank=True)), + ('ind_excluido', models.SmallIntegerField()), + ], + options={ + 'db_table': 'expediente_sessao_plenaria', + 'managed': False, + }, + ), + migrations.CreateModel( + name='Filiacao', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('dat_filiacao', models.DateField()), + ('dat_desfiliacao', models.DateField(null=True, blank=True)), + ('ind_excluido', models.SmallIntegerField()), + ], + options={ + 'db_table': 'filiacao', + 'managed': False, + }, + ), + migrations.CreateModel( + name='LegislacaoCitada', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('des_disposicoes', models.CharField(max_length=15, null=True, blank=True)), + ('des_parte', models.CharField(max_length=8, null=True, blank=True)), + ('des_livro', models.CharField(max_length=7, null=True, blank=True)), + ('des_titulo', models.CharField(max_length=7, null=True, blank=True)), + ('des_capitulo', models.CharField(max_length=7, null=True, blank=True)), + ('des_secao', models.CharField(max_length=7, null=True, blank=True)), + ('des_subsecao', models.CharField(max_length=7, null=True, blank=True)), + ('des_artigo', models.CharField(max_length=4, null=True, blank=True)), + ('des_paragrafo', models.CharField(max_length=3, null=True, blank=True)), + ('des_inciso', models.CharField(max_length=10, null=True, blank=True)), + ('des_alinea', models.CharField(max_length=3, null=True, blank=True)), + ('des_item', models.CharField(max_length=3, null=True, blank=True)), + ('ind_excluido', models.SmallIntegerField()), + ], + options={ + 'db_table': 'legislacao_citada', + 'managed': False, + }, + ), + migrations.CreateModel( + name='Legislatura', + fields=[ + ('num_legislatura', models.IntegerField(serialize=False, primary_key=True)), + ('dat_inicio', models.DateField()), + ('dat_fim', models.DateField()), + ('dat_eleicao', models.DateField()), + ('ind_excluido', models.SmallIntegerField()), + ], + options={ + 'db_table': 'legislatura', + 'managed': False, + }, + ), + migrations.CreateModel( + name='Localidade', + fields=[ + ('cod_localidade', models.IntegerField(serialize=False, primary_key=True)), + ('nom_localidade', models.CharField(max_length=50)), + ('nom_localidade_pesq', models.CharField(max_length=50)), + ('tip_localidade', models.CharField(max_length=1)), + ('sgl_uf', models.CharField(max_length=2)), + ('sgl_regiao', models.CharField(max_length=2)), + ('ind_excluido', models.SmallIntegerField()), + ], + options={ + 'db_table': 'localidade', + 'managed': False, + }, + ), + migrations.CreateModel( + name='Mandato', + fields=[ + ('cod_mandato', models.AutoField(serialize=False, primary_key=True)), + ('tip_causa_fim_mandato', models.SmallIntegerField(null=True, blank=True)), + ('dat_fim_mandato', models.DateField(null=True, blank=True)), + ('num_votos_recebidos', models.IntegerField(null=True, blank=True)), + ('dat_expedicao_diploma', models.DateField(null=True, blank=True)), + ('txt_observacao', models.TextField(null=True, blank=True)), + ('ind_excluido', models.SmallIntegerField()), + ], + options={ + 'db_table': 'mandato', + 'managed': False, + }, + ), + migrations.CreateModel( + name='MateriaAssunto', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('ind_excluido', models.SmallIntegerField()), + ], + options={ + 'db_table': 'materia_assunto', + 'managed': False, + }, + ), + migrations.CreateModel( + name='MateriaLegislativa', + fields=[ + ('cod_materia', models.AutoField(serialize=False, primary_key=True)), + ('num_ident_basica', models.CharField(max_length=6)), + ('ano_ident_basica', models.SmallIntegerField()), + ('dat_apresentacao', models.DateField(null=True, blank=True)), + ('tip_apresentacao', models.CharField(max_length=1, null=True, blank=True)), + ('dat_publicacao', models.DateField(null=True, blank=True)), + ('num_origem_externa', models.CharField(max_length=9, null=True, blank=True)), + ('ano_origem_externa', models.SmallIntegerField(null=True, blank=True)), + ('dat_origem_externa', models.DateField(null=True, blank=True)), + ('nom_apelido', models.CharField(max_length=50, null=True, blank=True)), + ('num_dias_prazo', models.SmallIntegerField(null=True, blank=True)), + ('dat_fim_prazo', models.DateField(null=True, blank=True)), + ('ind_tramitacao', models.SmallIntegerField()), + ('ind_polemica', models.SmallIntegerField(null=True, blank=True)), + ('des_objeto', models.CharField(max_length=150, null=True, blank=True)), + ('ind_complementar', models.SmallIntegerField(null=True, blank=True)), + ('txt_ementa', models.TextField()), + ('txt_indexacao', models.TextField(null=True, blank=True)), + ('txt_observacao', models.TextField(null=True, blank=True)), + ('ind_excluido', models.SmallIntegerField()), + ('txt_resultado', models.TextField(null=True, blank=True)), + ], + options={ + 'db_table': 'materia_legislativa', + 'managed': False, + }, + ), + migrations.CreateModel( + name='MesaSessaoPlenaria', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('ind_excluido', models.SmallIntegerField(null=True, blank=True)), + ], + options={ + 'db_table': 'mesa_sessao_plenaria', + 'managed': False, + }, + ), + migrations.CreateModel( + name='NivelInstrucao', + fields=[ + ('cod_nivel_instrucao', models.SmallIntegerField(serialize=False, primary_key=True)), + ('des_nivel_instrucao', models.CharField(max_length=50)), + ('ind_excluido', models.SmallIntegerField()), + ], + options={ + 'db_table': 'nivel_instrucao', + 'managed': False, + }, + ), + migrations.CreateModel( + name='NormaJuridica', + fields=[ + ('cod_norma', models.AutoField(serialize=False, primary_key=True)), + ('num_norma', models.IntegerField()), + ('ano_norma', models.SmallIntegerField()), + ('tip_esfera_federacao', models.CharField(max_length=1)), + ('dat_norma', models.DateField(null=True, blank=True)), + ('dat_publicacao', models.DateField(null=True, blank=True)), + ('des_veiculo_publicacao', models.CharField(max_length=30, null=True, blank=True)), + ('num_pag_inicio_publ', models.IntegerField(null=True, blank=True)), + ('num_pag_fim_publ', models.IntegerField(null=True, blank=True)), + ('txt_ementa', models.TextField()), + ('txt_indexacao', models.TextField(null=True, blank=True)), + ('txt_observacao', models.TextField(null=True, blank=True)), + ('ind_complemento', models.SmallIntegerField(null=True, blank=True)), + ('ind_excluido', models.SmallIntegerField()), + ], + options={ + 'db_table': 'norma_juridica', + 'managed': False, + }, + ), + migrations.CreateModel( + name='Numeracao', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('num_ordem', models.SmallIntegerField()), + ('num_materia', models.CharField(max_length=6)), + ('ano_materia', models.SmallIntegerField()), + ('dat_materia', models.DateField(null=True, blank=True)), + ('ind_excluido', models.SmallIntegerField()), + ], + options={ + 'db_table': 'numeracao', + 'managed': False, + }, + ), + migrations.CreateModel( + name='Oradores', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('num_ordem', models.SmallIntegerField()), + ('ind_excluido', models.SmallIntegerField()), + ], + options={ + 'db_table': 'oradores', + 'managed': False, + }, + ), + migrations.CreateModel( + name='OrdemDia', + fields=[ + ('cod_ordem', models.AutoField(serialize=False, primary_key=True)), + ('dat_ordem', models.DateField()), + ('txt_observacao', models.TextField(null=True, blank=True)), + ('ind_excluido', models.SmallIntegerField()), + ('num_ordem', models.IntegerField()), + ('txt_resultado', models.TextField(null=True, blank=True)), + ('tip_votacao', models.IntegerField()), + ], + options={ + 'db_table': 'ordem_dia', + 'managed': False, + }, + ), + migrations.CreateModel( + name='OrdemDiaPresenca', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('ind_excluido', models.SmallIntegerField()), + ('dat_ordem', models.DateField()), + ], + options={ + 'db_table': 'ordem_dia_presenca', + 'managed': False, + }, + ), + migrations.CreateModel( + name='Orgao', + fields=[ + ('cod_orgao', models.AutoField(serialize=False, primary_key=True)), + ('nom_orgao', models.CharField(max_length=60)), + ('sgl_orgao', models.CharField(max_length=10)), + ('ind_unid_deliberativa', models.SmallIntegerField()), + ('end_orgao', models.CharField(max_length=100, null=True, blank=True)), + ('num_tel_orgao', models.CharField(max_length=50, null=True, blank=True)), + ('ind_excluido', models.SmallIntegerField()), + ], + options={ + 'db_table': 'orgao', + 'managed': False, + }, + ), + migrations.CreateModel( + name='Origem', + fields=[ + ('cod_origem', models.AutoField(serialize=False, primary_key=True)), + ('sgl_origem', models.CharField(max_length=10)), + ('nom_origem', models.CharField(max_length=50)), + ('ind_excluido', models.SmallIntegerField()), + ], + options={ + 'db_table': 'origem', + 'managed': False, + }, + ), + migrations.CreateModel( + name='Parecer', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('tip_conclusao', models.CharField(max_length=3, null=True, blank=True)), + ('tip_apresentacao', models.CharField(max_length=1)), + ('txt_parecer', models.TextField(null=True, blank=True)), + ('ind_excluido', models.SmallIntegerField()), + ], + options={ + 'db_table': 'parecer', + 'managed': False, + }, + ), + migrations.CreateModel( + name='Parlamentar', + fields=[ + ('cod_parlamentar', models.AutoField(serialize=False, primary_key=True)), + ('nom_completo', models.CharField(max_length=50)), + ('nom_parlamentar', models.CharField(max_length=50, null=True, blank=True)), + ('sex_parlamentar', models.CharField(max_length=1)), + ('dat_nascimento', models.DateField(null=True, blank=True)), + ('num_cpf', models.CharField(max_length=14, null=True, blank=True)), + ('num_rg', models.CharField(max_length=15, null=True, blank=True)), + ('num_tit_eleitor', models.CharField(max_length=15, null=True, blank=True)), + ('cod_casa', models.IntegerField()), + ('num_gab_parlamentar', models.CharField(max_length=10, null=True, blank=True)), + ('num_tel_parlamentar', models.CharField(max_length=50, null=True, blank=True)), + ('num_fax_parlamentar', models.CharField(max_length=50, null=True, blank=True)), + ('end_residencial', models.CharField(max_length=100, null=True, blank=True)), + ('num_cep_resid', models.CharField(max_length=9, null=True, blank=True)), + ('num_tel_resid', models.CharField(max_length=50, null=True, blank=True)), + ('num_fax_resid', models.CharField(max_length=50, null=True, blank=True)), + ('end_web', models.CharField(max_length=100, null=True, blank=True)), + ('nom_profissao', models.CharField(max_length=50, null=True, blank=True)), + ('end_email', models.CharField(max_length=100, null=True, blank=True)), + ('des_local_atuacao', models.CharField(max_length=100, null=True, blank=True)), + ('ind_ativo', models.SmallIntegerField()), + ('ind_unid_deliberativa', models.SmallIntegerField()), + ('ind_excluido', models.SmallIntegerField()), + ], + options={ + 'db_table': 'parlamentar', + 'managed': False, + }, + ), + migrations.CreateModel( + name='Partido', + fields=[ + ('cod_partido', models.AutoField(serialize=False, primary_key=True)), + ('sgl_partido', models.CharField(max_length=9)), + ('nom_partido', models.CharField(max_length=50)), + ('dat_criacao', models.DateField(null=True, blank=True)), + ('dat_extincao', models.DateField(null=True, blank=True)), + ('ind_excluido', models.SmallIntegerField()), + ], + options={ + 'db_table': 'partido', + 'managed': False, + }, + ), + migrations.CreateModel( + name='PeriodoCompComissao', + fields=[ + ('cod_periodo_comp', models.AutoField(serialize=False, primary_key=True)), + ('dat_inicio_periodo', models.DateField()), + ('dat_fim_periodo', models.DateField(null=True, blank=True)), + ('ind_excluido', models.SmallIntegerField()), + ], + options={ + 'db_table': 'periodo_comp_comissao', + 'managed': False, + }, + ), + migrations.CreateModel( + name='Proposicao', + fields=[ + ('cod_proposicao', models.AutoField(serialize=False, primary_key=True)), + ('dat_envio', models.DateTimeField()), + ('dat_recebimento', models.DateTimeField(null=True, blank=True)), + ('txt_descricao', models.CharField(max_length=100)), + ('cod_mat_ou_doc', models.IntegerField(null=True, blank=True)), + ('dat_devolucao', models.DateTimeField(null=True, blank=True)), + ('txt_justif_devolucao', models.CharField(max_length=200, null=True, blank=True)), + ('ind_excluido', models.SmallIntegerField()), + ], + options={ + 'db_table': 'proposicao', + 'managed': False, + }, + ), + migrations.CreateModel( + name='RegimeTramitacao', + fields=[ + ('cod_regime_tramitacao', models.SmallIntegerField(serialize=False, primary_key=True)), + ('des_regime_tramitacao', models.CharField(max_length=50)), + ('ind_excluido', models.SmallIntegerField()), + ], + options={ + 'db_table': 'regime_tramitacao', + 'managed': False, + }, + ), + migrations.CreateModel( + name='RegistroVotacao', + fields=[ + ('cod_votacao', models.AutoField(serialize=False, primary_key=True)), + ('num_votos_sim', models.SmallIntegerField()), + ('num_votos_nao', models.SmallIntegerField()), + ('num_abstencao', models.SmallIntegerField()), + ('txt_observacao', models.TextField(null=True, blank=True)), + ('ind_excluido', models.SmallIntegerField()), + ], + options={ + 'db_table': 'registro_votacao', + 'managed': False, + }, + ), + migrations.CreateModel( + name='RegistroVotacaoParlamentar', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('ind_excluido', models.SmallIntegerField()), + ('vot_parlamentar', models.CharField(max_length=10)), + ], + options={ + 'db_table': 'registro_votacao_parlamentar', + 'managed': False, + }, + ), + migrations.CreateModel( + name='Relatoria', + fields=[ + ('cod_relatoria', models.AutoField(serialize=False, primary_key=True)), + ('dat_desig_relator', models.DateField()), + ('dat_destit_relator', models.DateField(null=True, blank=True)), + ('ind_excluido', models.SmallIntegerField()), + ], + options={ + 'db_table': 'relatoria', + 'managed': False, + }, + ), + migrations.CreateModel( + name='SessaoLegislativa', + fields=[ + ('cod_sessao_leg', models.AutoField(serialize=False, primary_key=True)), + ('num_sessao_leg', models.SmallIntegerField()), + ('tip_sessao_leg', models.CharField(max_length=1)), + ('dat_inicio', models.DateField()), + ('dat_fim', models.DateField()), + ('dat_inicio_intervalo', models.DateField(null=True, blank=True)), + ('dat_fim_intervalo', models.DateField(null=True, blank=True)), + ('ind_excluido', models.SmallIntegerField()), + ], + options={ + 'db_table': 'sessao_legislativa', + 'managed': False, + }, + ), + migrations.CreateModel( + name='SessaoPlenaria', + fields=[ + ('cod_sessao_plen', models.IntegerField(serialize=False, primary_key=True)), + ('tip_expediente', models.CharField(max_length=10)), + ('dat_inicio_sessao', models.DateField()), + ('dia_sessao', models.CharField(max_length=15)), + ('hr_inicio_sessao', models.CharField(max_length=5)), + ('hr_fim_sessao', models.CharField(max_length=5, null=True, blank=True)), + ('ind_excluido', models.SmallIntegerField()), + ('num_sessao_plen', models.IntegerField()), + ('dat_fim_sessao', models.DateField(null=True, blank=True)), + ], + options={ + 'db_table': 'sessao_plenaria', + 'managed': False, + }, + ), + migrations.CreateModel( + name='SessaoPlenariaPresenca', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('ind_excluido', models.SmallIntegerField(null=True, blank=True)), + ], + options={ + 'db_table': 'sessao_plenaria_presenca', + 'managed': False, + }, + ), + migrations.CreateModel( + name='StatusTramitacao', + fields=[ + ('cod_status', models.AutoField(serialize=False, primary_key=True)), + ('sgl_status', models.CharField(max_length=10)), + ('des_status', models.CharField(max_length=60)), + ('ind_fim_tramitacao', models.SmallIntegerField()), + ('ind_retorno_tramitacao', models.SmallIntegerField()), + ('ind_excluido', models.SmallIntegerField()), + ], + options={ + 'db_table': 'status_tramitacao', + 'managed': False, + }, + ), + migrations.CreateModel( + name='TipoAfastamento', + fields=[ + ('tip_afastamento', models.SmallIntegerField(serialize=False, primary_key=True)), + ('des_afastamento', models.CharField(max_length=50)), + ('ind_afastamento', models.SmallIntegerField()), + ('ind_fim_mandato', models.SmallIntegerField()), + ('des_dispositivo', models.CharField(max_length=50, null=True, blank=True)), + ('ind_excluido', models.SmallIntegerField()), + ], + options={ + 'db_table': 'tipo_afastamento', + 'managed': False, + }, + ), + migrations.CreateModel( + name='TipoAutor', + fields=[ + ('tip_autor', models.SmallIntegerField(serialize=False, primary_key=True)), + ('des_tipo_autor', models.CharField(max_length=50)), + ('ind_excluido', models.SmallIntegerField()), + ], + options={ + 'db_table': 'tipo_autor', + 'managed': False, + }, + ), + migrations.CreateModel( + name='TipoComissao', + fields=[ + ('tip_comissao', models.SmallIntegerField(serialize=False, primary_key=True)), + ('nom_tipo_comissao', models.CharField(max_length=50)), + ('sgl_natureza_comissao', models.CharField(max_length=1)), + ('sgl_tipo_comissao', models.CharField(max_length=10)), + ('des_dispositivo_regimental', models.CharField(max_length=50, null=True, blank=True)), + ('ind_excluido', models.SmallIntegerField()), + ], + options={ + 'db_table': 'tipo_comissao', + 'managed': False, + }, + ), + migrations.CreateModel( + name='TipoDependente', + fields=[ + ('tip_dependente', models.SmallIntegerField(serialize=False, primary_key=True)), + ('des_tipo_dependente', models.CharField(max_length=50)), + ('ind_excluido', models.SmallIntegerField()), + ], + options={ + 'db_table': 'tipo_dependente', + 'managed': False, + }, + ), + migrations.CreateModel( + name='TipoDocumento', + fields=[ + ('tip_documento', models.AutoField(serialize=False, primary_key=True)), + ('des_tipo_documento', models.CharField(max_length=50)), + ('ind_excluido', models.SmallIntegerField()), + ], + options={ + 'db_table': 'tipo_documento', + 'managed': False, + }, + ), + migrations.CreateModel( + name='TipoExpediente', + fields=[ + ('cod_expediente', models.AutoField(serialize=False, primary_key=True)), + ('nom_expediente', models.CharField(max_length=100)), + ('ind_excluido', models.SmallIntegerField()), + ], + options={ + 'db_table': 'tipo_expediente', + 'managed': False, + }, + ), + migrations.CreateModel( + name='TipoFimRelatoria', + fields=[ + ('tip_fim_relatoria', models.SmallIntegerField(serialize=False, primary_key=True)), + ('des_fim_relatoria', models.CharField(max_length=50)), + ('ind_excluido', models.SmallIntegerField()), + ], + options={ + 'db_table': 'tipo_fim_relatoria', + 'managed': False, + }, + ), + migrations.CreateModel( + name='TipoMateriaLegislativa', + fields=[ + ('tip_materia', models.AutoField(serialize=False, primary_key=True)), + ('sgl_tipo_materia', models.CharField(max_length=5)), + ('des_tipo_materia', models.CharField(max_length=50)), + ('ind_excluido', models.SmallIntegerField()), + ], + options={ + 'db_table': 'tipo_materia_legislativa', + 'managed': False, + }, + ), + migrations.CreateModel( + name='TipoNormaJuridica', + fields=[ + ('tip_norma', models.SmallIntegerField(serialize=False, primary_key=True)), + ('sgl_tipo_norma', models.CharField(max_length=3)), + ('des_tipo_norma', models.CharField(max_length=50)), + ('ind_excluido', models.SmallIntegerField()), + ], + options={ + 'db_table': 'tipo_norma_juridica', + 'managed': False, + }, + ), + migrations.CreateModel( + name='TipoProposicao', + fields=[ + ('tip_proposicao', models.AutoField(serialize=False, primary_key=True)), + ('des_tipo_proposicao', models.CharField(max_length=50)), + ('ind_mat_ou_doc', models.CharField(max_length=1)), + ('tip_mat_ou_doc', models.IntegerField()), + ('nom_modelo', models.CharField(max_length=50)), + ('ind_excluido', models.SmallIntegerField()), + ], + options={ + 'db_table': 'tipo_proposicao', + 'managed': False, + }, + ), + migrations.CreateModel( + name='TipoResultadoVotacao', + fields=[ + ('tip_resultado_votacao', models.AutoField(serialize=False, primary_key=True)), + ('nom_resultado', models.CharField(max_length=100)), + ('ind_excluido', models.SmallIntegerField()), + ], + options={ + 'db_table': 'tipo_resultado_votacao', + 'managed': False, + }, + ), + migrations.CreateModel( + name='TipoSessaoPlenaria', + fields=[ + ('tip_sessao', models.SmallIntegerField(serialize=False, primary_key=True)), + ('nom_sessao', models.CharField(max_length=30)), + ('ind_excluido', models.SmallIntegerField()), + ('num_minimo', models.IntegerField()), + ], + options={ + 'db_table': 'tipo_sessao_plenaria', + 'managed': False, + }, + ), + migrations.CreateModel( + name='TipoSituacaoMilitar', + fields=[ + ('tip_situacao_militar', models.SmallIntegerField(serialize=False, primary_key=True)), + ('des_tipo_situacao', models.CharField(max_length=50)), + ('ind_excluido', models.SmallIntegerField()), + ], + options={ + 'db_table': 'tipo_situacao_militar', + 'managed': False, + }, + ), + migrations.CreateModel( + name='Tramitacao', + fields=[ + ('cod_tramitacao', models.AutoField(serialize=False, primary_key=True)), + ('dat_tramitacao', models.DateField(null=True, blank=True)), + ('dat_encaminha', models.DateField(null=True, blank=True)), + ('ind_ult_tramitacao', models.SmallIntegerField()), + ('ind_urgencia', models.SmallIntegerField()), + ('sgl_turno', models.CharField(max_length=1, null=True, blank=True)), + ('txt_tramitacao', models.TextField(null=True, blank=True)), + ('dat_fim_prazo', models.DateField(null=True, blank=True)), + ('ind_excluido', models.SmallIntegerField()), + ], + options={ + 'db_table': 'tramitacao', + 'managed': False, + }, + ), + migrations.CreateModel( + name='UnidadeTramitacao', + fields=[ + ('cod_unid_tramitacao', models.AutoField(serialize=False, primary_key=True)), + ('cod_parlamentar', models.IntegerField(null=True, blank=True)), + ('ind_excluido', models.SmallIntegerField()), + ], + options={ + 'db_table': 'unidade_tramitacao', + 'managed': False, + }, + ), + migrations.CreateModel( + name='VinculoNormaJuridica', + fields=[ + ('cod_vinculo', models.AutoField(serialize=False, primary_key=True)), + ('tip_vinculo', models.CharField(max_length=1, null=True, blank=True)), + ('ind_excluido', models.CharField(max_length=1)), + ], + options={ + 'db_table': 'vinculo_norma_juridica', + 'managed': False, + }, + ), + ] diff --git a/protocoloadm/migrations/0001_initial.py b/protocoloadm/migrations/0001_initial.py new file mode 100644 index 000000000..3dc8bc48e --- /dev/null +++ b/protocoloadm/migrations/0001_initial.py @@ -0,0 +1,124 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + +from django.db import models, migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('materia', '0001_initial'), + ] + + operations = [ + migrations.CreateModel( + name='DocumentoAcessorioAdministrativo', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('nome_documento', models.CharField(max_length=30)), + ('nome_arquivo', models.CharField(max_length=100)), + ('data_documento', models.DateField(null=True, blank=True)), + ('nome_autor_documento', models.CharField(max_length=50, null=True, blank=True)), + ('txt_assunto', models.TextField(null=True, blank=True)), + ('txt_indexacao', models.TextField(null=True, blank=True)), + ], + ), + migrations.CreateModel( + name='DocumentoAdministrativo', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('numero_documento', models.IntegerField()), + ('ano_documento', models.SmallIntegerField()), + ('data_documento', models.DateField()), + ('numero_protocolo', models.IntegerField(null=True, blank=True)), + ('txt_interessado', models.CharField(max_length=50, null=True, blank=True)), + ('numero_dias_prazo', models.IntegerField(null=True, blank=True)), + ('data_fim_prazo', models.DateField(null=True, blank=True)), + ('tramitacao', models.BooleanField()), + ('txt_assunto', models.TextField()), + ('txt_observacao', models.TextField(null=True, blank=True)), + ('autor', models.ForeignKey(blank=True, to='materia.Autor', null=True)), + ], + ), + migrations.CreateModel( + name='Protocolo', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('numero_protocolo', models.IntegerField(null=True, blank=True)), + ('ano_protocolo', models.SmallIntegerField()), + ('data_protocolo', models.DateField()), + ('hora_protocolo', models.TimeField()), + ('data_timestamp', models.DateTimeField()), + ('tipo_protocolo', models.IntegerField()), + ('tipo_processo', models.IntegerField()), + ('txt_interessado', models.CharField(max_length=60, null=True, blank=True)), + ('txt_assunto_ementa', models.TextField(null=True, blank=True)), + ('numero_paginas', models.IntegerField(null=True, blank=True)), + ('txt_observacao', models.TextField(null=True, blank=True)), + ('anulado', models.BooleanField()), + ('txt_user_anulacao', models.CharField(max_length=20, null=True, blank=True)), + ('txt_ip_anulacao', models.CharField(max_length=15, null=True, blank=True)), + ('txt_just_anulacao', models.CharField(max_length=60, null=True, blank=True)), + ('timestamp_anulacao', models.DateTimeField(null=True, blank=True)), + ('autor', models.ForeignKey(blank=True, to='materia.Autor', null=True)), + ], + ), + migrations.CreateModel( + name='StatusTramitacaoAdministrativo', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('sigla_status', models.CharField(max_length=10)), + ('descricao_status', models.CharField(max_length=60)), + ('fim_tramitacao', models.BooleanField()), + ('retorno_tramitacao', models.BooleanField()), + ], + ), + migrations.CreateModel( + name='TipoDocumentoAdministrativo', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('sigla_tipo_documento', models.CharField(max_length=5)), + ('descricao_tipo_documento', models.CharField(max_length=50)), + ], + ), + migrations.CreateModel( + name='TramitacaoAdministrativo', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('data_tramitacao', models.DateField(null=True, blank=True)), + ('cod_unid_tram_local', models.IntegerField(null=True, blank=True)), + ('data_encaminha', models.DateField(null=True, blank=True)), + ('cod_unid_tram_dest', models.IntegerField(null=True, blank=True)), + ('ult_tramitacao', models.BooleanField()), + ('txt_tramitacao', models.TextField(null=True, blank=True)), + ('data_fim_prazo', models.DateField(null=True, blank=True)), + ('documento', models.ForeignKey(to='protocoloadm.DocumentoAdministrativo')), + ('status', models.ForeignKey(blank=True, to='protocoloadm.StatusTramitacaoAdministrativo', null=True)), + ], + ), + migrations.AddField( + model_name='protocolo', + name='tipo_documento', + field=models.ForeignKey(blank=True, to='protocoloadm.TipoDocumentoAdministrativo', null=True), + ), + migrations.AddField( + model_name='protocolo', + name='tipo_materia', + field=models.ForeignKey(blank=True, to='materia.TipoMateriaLegislativa', null=True), + ), + migrations.AddField( + model_name='documentoadministrativo', + name='tipo', + field=models.ForeignKey(to='protocoloadm.TipoDocumentoAdministrativo'), + ), + migrations.AddField( + model_name='documentoacessorioadministrativo', + name='documento', + field=models.ForeignKey(to='protocoloadm.DocumentoAdministrativo'), + ), + migrations.AddField( + model_name='documentoacessorioadministrativo', + name='tipo', + field=models.ForeignKey(to='protocoloadm.TipoDocumentoAdministrativo'), + ), + ] diff --git a/sessao/migrations/0001_initial.py b/sessao/migrations/0001_initial.py new file mode 100644 index 000000000..93ed20883 --- /dev/null +++ b/sessao/migrations/0001_initial.py @@ -0,0 +1,201 @@ +# -*- coding: utf-8 -*- +from __future__ import unicode_literals + +from django.db import models, migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('materia', '0001_initial'), + ('parlamentares', '0001_initial'), + ] + + operations = [ + migrations.CreateModel( + name='ExpedienteMateria', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('data_ordem', models.DateField()), + ('txt_observacao', models.TextField(null=True, blank=True)), + ('numero_ordem', models.IntegerField()), + ('txt_resultado', models.TextField(null=True, blank=True)), + ('tipo_votacao', models.IntegerField()), + ('materia', models.ForeignKey(to='materia.MateriaLegislativa')), + ], + ), + migrations.CreateModel( + name='ExpedienteSessaoPlenaria', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('txt_expediente', models.TextField(null=True, blank=True)), + ], + ), + migrations.CreateModel( + name='MesaSessaoPlenaria', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('cargo', models.ForeignKey(to='parlamentares.CargoMesa')), + ('parlamentar', models.ForeignKey(to='parlamentares.Parlamentar')), + ('sessao_leg', models.ForeignKey(to='parlamentares.SessaoLegislativa')), + ], + ), + migrations.CreateModel( + name='Oradores', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('numero_ordem', models.IntegerField()), + ('url_discurso', models.CharField(max_length=150, null=True, blank=True)), + ('parlamentar', models.ForeignKey(to='parlamentares.Parlamentar')), + ], + ), + migrations.CreateModel( + name='OradoresExpediente', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('numero_ordem', models.IntegerField()), + ('url_discurso', models.CharField(max_length=150, null=True, blank=True)), + ('parlamentar', models.ForeignKey(to='parlamentares.Parlamentar')), + ], + ), + migrations.CreateModel( + name='OrdemDia', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('data_ordem', models.DateField()), + ('txt_observacao', models.TextField(null=True, blank=True)), + ('numero_ordem', models.IntegerField()), + ('txt_resultado', models.TextField(null=True, blank=True)), + ('tipo_votacao', models.IntegerField()), + ('materia', models.ForeignKey(to='materia.MateriaLegislativa')), + ], + ), + migrations.CreateModel( + name='OrdemDiaPresenca', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('data_ordem', models.DateField()), + ('parlamentar', models.ForeignKey(to='parlamentares.Parlamentar')), + ], + ), + migrations.CreateModel( + name='RegistroVotacao', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('numero_votos_sim', models.IntegerField()), + ('numero_votos_nao', models.IntegerField()), + ('numero_abstencao', models.IntegerField()), + ('txt_observacao', models.TextField(null=True, blank=True)), + ('materia', models.ForeignKey(to='materia.MateriaLegislativa')), + ('ordem', models.ForeignKey(to='sessao.OrdemDia')), + ], + ), + migrations.CreateModel( + name='RegistroVotacaoParlamentar', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('vot_parlamentar', models.CharField(max_length=10)), + ('parlamentar', models.ForeignKey(to='parlamentares.Parlamentar')), + ('votacao', models.ForeignKey(to='sessao.RegistroVotacao')), + ], + ), + migrations.CreateModel( + name='SessaoPlenaria', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('cod_andamento_sessao', models.IntegerField(null=True, blank=True)), + ('tipo_expediente', models.CharField(max_length=10)), + ('data_inicio_sessao', models.DateField()), + ('dia_sessao', models.CharField(max_length=15)), + ('hr_inicio_sessao', models.CharField(max_length=5)), + ('hr_fim_sessao', models.CharField(max_length=5, null=True, blank=True)), + ('numero_sessao_plen', models.IntegerField()), + ('data_fim_sessao', models.DateField(null=True, blank=True)), + ('url_audio', models.CharField(max_length=150, null=True, blank=True)), + ('url_video', models.CharField(max_length=150, null=True, blank=True)), + ('legislatura', models.ForeignKey(to='parlamentares.Legislatura')), + ('sessao_leg', models.ForeignKey(to='parlamentares.SessaoLegislativa')), + ], + ), + migrations.CreateModel( + name='SessaoPlenariaPresenca', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('data_sessao', models.DateField(null=True, blank=True)), + ('parlamentar', models.ForeignKey(to='parlamentares.Parlamentar')), + ('sessao_plen', models.ForeignKey(to='sessao.SessaoPlenaria')), + ], + ), + migrations.CreateModel( + name='TipoExpediente', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('nome_expediente', models.CharField(max_length=100)), + ], + ), + migrations.CreateModel( + name='TipoResultadoVotacao', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('nome_resultado', models.CharField(max_length=100)), + ], + ), + migrations.CreateModel( + name='TipoSessaoPlenaria', + fields=[ + ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), + ('nome_sessao', models.CharField(max_length=30)), + ('numero_minimo', models.IntegerField()), + ], + ), + migrations.AddField( + model_name='sessaoplenaria', + name='tipo', + field=models.ForeignKey(to='sessao.TipoSessaoPlenaria'), + ), + migrations.AddField( + model_name='registrovotacao', + name='tipo_resultado_votacao', + field=models.ForeignKey(to='sessao.TipoResultadoVotacao'), + ), + migrations.AddField( + model_name='ordemdiapresenca', + name='sessao_plen', + field=models.ForeignKey(to='sessao.SessaoPlenaria'), + ), + migrations.AddField( + model_name='ordemdia', + name='sessao_plen', + field=models.ForeignKey(to='sessao.SessaoPlenaria'), + ), + migrations.AddField( + model_name='oradoresexpediente', + name='sessao_plen', + field=models.ForeignKey(to='sessao.SessaoPlenaria'), + ), + migrations.AddField( + model_name='oradores', + name='sessao_plen', + field=models.ForeignKey(to='sessao.SessaoPlenaria'), + ), + migrations.AddField( + model_name='mesasessaoplenaria', + name='sessao_plen', + field=models.ForeignKey(to='sessao.SessaoPlenaria'), + ), + migrations.AddField( + model_name='expedientesessaoplenaria', + name='expediente', + field=models.ForeignKey(to='sessao.TipoExpediente'), + ), + migrations.AddField( + model_name='expedientesessaoplenaria', + name='sessao_plen', + field=models.ForeignKey(to='sessao.SessaoPlenaria'), + ), + migrations.AddField( + model_name='expedientemateria', + name='sessao_plen', + field=models.ForeignKey(to='sessao.SessaoPlenaria'), + ), + ]