Browse Source

Reset migrations

pull/6/head
Marcio Mazza 10 years ago
parent
commit
d4bcf1214a
  1. 10
      base/migrations/0001_initial.py
  2. 94
      comissoes/migrations/0001_initial.py
  3. 418
      legacy/migrations/0001_initial.py
  4. 22
      lexml/migrations/0001_initial.py
  5. 270
      materia/migrations/0001_initial.py
  6. 29
      materia/migrations/0002_auto_20150707_0945.py
  7. 84
      norma/migrations/0001_initial.py
  8. 180
      parlamentares/migrations/0001_initial.py
  9. 98
      protocoloadm/migrations/0001_initial.py
  10. 140
      sessao/migrations/0001_initial.py

10
base/migrations/0001_initial.py

@ -1,5 +1,5 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations from django.db import models, migrations
@ -13,12 +13,12 @@ class Migration(migrations.Migration):
migrations.CreateModel( migrations.CreateModel(
name='CasaLegislativa', name='CasaLegislativa',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(serialize=False, primary_key=True, auto_created=True, verbose_name='ID')),
('nome', models.CharField(max_length=100, verbose_name='Nome')), ('nome', models.CharField(max_length=100, verbose_name='Nome')),
('sigla', models.CharField(max_length=100, verbose_name='Sigla')), ('sigla', models.CharField(max_length=100, verbose_name='Sigla')),
('endereco', models.CharField(max_length=100, verbose_name='Endere\xe7o')), ('endereco', models.CharField(max_length=100, verbose_name='Endereço')),
('cep', models.CharField(max_length=100, verbose_name='CEP')), ('cep', models.CharField(max_length=100, verbose_name='CEP')),
('municipio', models.CharField(max_length=100, verbose_name='Munic\xedpio')), ('municipio', models.CharField(max_length=100, verbose_name='Município')),
('uf', models.CharField(max_length=100, verbose_name='UF')), ('uf', models.CharField(max_length=100, verbose_name='UF')),
('telefone', models.CharField(max_length=100, verbose_name='Telefone')), ('telefone', models.CharField(max_length=100, verbose_name='Telefone')),
('fax', models.CharField(max_length=100, verbose_name='Fax')), ('fax', models.CharField(max_length=100, verbose_name='Fax')),
@ -28,7 +28,7 @@ class Migration(migrations.Migration):
('logotipo', models.CharField(max_length=100, verbose_name='Logotipo')), ('logotipo', models.CharField(max_length=100, verbose_name='Logotipo')),
('endereco_web', models.CharField(max_length=100, verbose_name='HomePage')), ('endereco_web', models.CharField(max_length=100, verbose_name='HomePage')),
('email', models.CharField(max_length=100, verbose_name='E-mail')), ('email', models.CharField(max_length=100, verbose_name='E-mail')),
('informacao_geral', models.CharField(max_length=100, verbose_name='Informa\xe7\xe3o Geral')), ('informacao_geral', models.CharField(max_length=100, verbose_name='Informação Geral')),
], ],
options={ options={
'verbose_name': 'Casa Legislativa', 'verbose_name': 'Casa Legislativa',

94
comissoes/migrations/0001_initial.py

@ -1,5 +1,5 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations from django.db import models, migrations
@ -14,107 +14,107 @@ class Migration(migrations.Migration):
migrations.CreateModel( migrations.CreateModel(
name='CargoComissao', name='CargoComissao',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(serialize=False, primary_key=True, auto_created=True, verbose_name='ID')),
('nome', models.CharField(max_length=50, verbose_name='Cargo')), ('nome', models.CharField(max_length=50, verbose_name='Cargo')),
('unico', models.BooleanField(verbose_name='\xdanico')), ('unico', models.BooleanField(verbose_name='Único')),
], ],
options={ options={
'verbose_name': 'Cargo de Comiss\xe3o', 'verbose_name': 'Cargo de Comissão',
'verbose_name_plural': 'Cargos de Comiss\xe3o', 'verbose_name_plural': 'Cargos de Comissão',
}, },
), ),
migrations.CreateModel( migrations.CreateModel(
name='Comissao', name='Comissao',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(serialize=False, primary_key=True, auto_created=True, verbose_name='ID')),
('nome', models.CharField(max_length=60, verbose_name='Nome')), ('nome', models.CharField(max_length=60, verbose_name='Nome')),
('sigla', models.CharField(max_length=10, verbose_name='Sigla')), ('sigla', models.CharField(max_length=10, verbose_name='Sigla')),
('data_criacao', models.DateField(verbose_name='Data de Cria\xe7\xe3o')), ('data_criacao', models.DateField(verbose_name='Data de Criação')),
('data_extincao', models.DateField(null=True, verbose_name='Data de Extin\xe7\xe3o', blank=True)), ('data_extincao', models.DateField(blank=True, verbose_name='Data de Extinção', null=True)),
('apelido_temp', models.CharField(max_length=100, null=True, verbose_name='Apelido', blank=True)), ('apelido_temp', models.CharField(max_length=100, blank=True, verbose_name='Apelido', null=True)),
('data_instalacao_temp', models.DateField(null=True, verbose_name='Data Instala\xe7\xe3o', blank=True)), ('data_instalacao_temp', models.DateField(blank=True, verbose_name='Data Instalação', null=True)),
('data_final_prevista_temp', models.DateField(null=True, verbose_name='Data Prevista T\xe9rmino', blank=True)), ('data_final_prevista_temp', models.DateField(blank=True, verbose_name='Data Prevista Término', null=True)),
('data_prorrogada_temp', models.DateField(null=True, verbose_name='Novo Prazo', blank=True)), ('data_prorrogada_temp', models.DateField(blank=True, verbose_name='Novo Prazo', null=True)),
('data_fim_comissao', models.DateField(null=True, verbose_name='Data T\xe9rmino', blank=True)), ('data_fim_comissao', models.DateField(blank=True, verbose_name='Data Término', null=True)),
('secretario', models.CharField(max_length=30, null=True, verbose_name='Secret\xe1rio', blank=True)), ('secretario', models.CharField(max_length=30, blank=True, verbose_name='Secretário', null=True)),
('telefone_reuniao', models.CharField(max_length=15, null=True, verbose_name='Tel. Sala Reuni\xe3o', blank=True)), ('telefone_reuniao', models.CharField(max_length=15, blank=True, verbose_name='Tel. Sala Reunião', null=True)),
('endereco_secretaria', models.CharField(max_length=100, null=True, verbose_name='Endere\xe7o Secretaria', blank=True)), ('endereco_secretaria', models.CharField(max_length=100, blank=True, verbose_name='Endereço Secretaria', null=True)),
('telefone_secretaria', models.CharField(max_length=15, null=True, verbose_name='Tel. Secretaria', blank=True)), ('telefone_secretaria', models.CharField(max_length=15, blank=True, verbose_name='Tel. Secretaria', null=True)),
('fax_secretaria', models.CharField(max_length=15, null=True, verbose_name='Fax Secretaria', blank=True)), ('fax_secretaria', models.CharField(max_length=15, blank=True, verbose_name='Fax Secretaria', null=True)),
('agenda_reuniao', models.CharField(max_length=100, null=True, verbose_name='Data/Hora Reuni\xe3o', blank=True)), ('agenda_reuniao', models.CharField(max_length=100, blank=True, verbose_name='Data/Hora Reunião', null=True)),
('local_reuniao', models.CharField(max_length=100, null=True, verbose_name='Local Reuni\xe3o', blank=True)), ('local_reuniao', models.CharField(max_length=100, blank=True, verbose_name='Local Reunião', null=True)),
('finalidade', models.TextField(null=True, verbose_name='Finalidade', blank=True)), ('finalidade', models.TextField(blank=True, verbose_name='Finalidade', null=True)),
('email', models.CharField(max_length=100, null=True, verbose_name='E-mail', blank=True)), ('email', models.CharField(max_length=100, blank=True, verbose_name='E-mail', null=True)),
('unidade_deliberativa', models.BooleanField()), ('unidade_deliberativa', models.BooleanField()),
], ],
options={ options={
'verbose_name': 'Comiss\xe3o', 'verbose_name': 'Comissão',
'verbose_name_plural': 'Comiss\xf5es', 'verbose_name_plural': 'Comissões',
}, },
), ),
migrations.CreateModel( migrations.CreateModel(
name='Composicao', name='Composicao',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(serialize=False, primary_key=True, auto_created=True, verbose_name='ID')),
('comissao', models.ForeignKey(verbose_name='Comiss\xe3o', to='comissoes.Comissao')), ('comissao', models.ForeignKey(to='comissoes.Comissao', verbose_name='Comissão')),
], ],
options={ options={
'verbose_name': 'Composi\xe7\xe3o de Comiss\xe3o', 'verbose_name': 'Composição de Comissão',
'verbose_name_plural': 'Composi\xe7\xf5es de Comiss\xe3o', 'verbose_name_plural': 'Composições de Comissão',
}, },
), ),
migrations.CreateModel( migrations.CreateModel(
name='Participacao', name='Participacao',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(serialize=False, primary_key=True, auto_created=True, verbose_name='ID')),
('titular', models.BooleanField(verbose_name='Titular')), ('titular', models.BooleanField(verbose_name='Titular')),
('data_designacao', models.DateField(verbose_name='Data Designa\xe7\xe3o')), ('data_designacao', models.DateField(verbose_name='Data Designação')),
('data_desligamento', models.DateField(null=True, verbose_name='Data Desligamento', blank=True)), ('data_desligamento', models.DateField(blank=True, verbose_name='Data Desligamento', null=True)),
('motivo_desligamento', models.CharField(max_length=150, null=True, verbose_name='Motivo Desligamento', blank=True)), ('motivo_desligamento', models.CharField(max_length=150, blank=True, verbose_name='Motivo Desligamento', null=True)),
('observacao', models.CharField(max_length=150, null=True, verbose_name='Observa\xe7\xe3o', blank=True)), ('observacao', models.CharField(max_length=150, blank=True, verbose_name='Observação', null=True)),
('cargo', models.ForeignKey(to='comissoes.CargoComissao')), ('cargo', models.ForeignKey(to='comissoes.CargoComissao')),
('composicao', models.ForeignKey(to='comissoes.Composicao')), ('composicao', models.ForeignKey(to='comissoes.Composicao')),
('parlamentar', models.ForeignKey(to='parlamentares.Parlamentar')), ('parlamentar', models.ForeignKey(to='parlamentares.Parlamentar')),
], ],
options={ options={
'verbose_name': 'Participa\xe7\xe3o em Comiss\xe3o', 'verbose_name': 'Participação em Comissão',
'verbose_name_plural': 'Participa\xe7\xf5es em Comiss\xe3o', 'verbose_name_plural': 'Participações em Comissão',
}, },
), ),
migrations.CreateModel( migrations.CreateModel(
name='Periodo', name='Periodo',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(serialize=False, primary_key=True, auto_created=True, verbose_name='ID')),
('data_inicio', models.DateField(verbose_name='Data In\xedcio')), ('data_inicio', models.DateField(verbose_name='Data Início')),
('data_fim', models.DateField(null=True, verbose_name='Data Fim', blank=True)), ('data_fim', models.DateField(blank=True, verbose_name='Data Fim', null=True)),
], ],
options={ options={
'verbose_name': 'Per\xedodo de composi\xe7\xe3o de Comiss\xe3o', 'verbose_name': 'Período de composição de Comissão',
'verbose_name_plural': 'Per\xedodos de composi\xe7\xe3o de Comiss\xe3o', 'verbose_name_plural': 'Períodos de composição de Comissão',
}, },
), ),
migrations.CreateModel( migrations.CreateModel(
name='TipoComissao', name='TipoComissao',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(serialize=False, primary_key=True, auto_created=True, verbose_name='ID')),
('nome', models.CharField(max_length=50, verbose_name='Nome')), ('nome', models.CharField(max_length=50, verbose_name='Nome')),
('natureza', models.CharField(max_length=1, verbose_name='Natureza', choices=[(b'T', 'Tempor\xe1ria'), (b'P', 'Permanente')])), ('natureza', models.CharField(max_length=1, choices=[('T', 'Temporária'), ('P', 'Permanente')], verbose_name='Natureza')),
('sigla', models.CharField(max_length=10, verbose_name='Sigla')), ('sigla', models.CharField(max_length=10, verbose_name='Sigla')),
('dispositivo_regimental', models.CharField(max_length=50, null=True, verbose_name='Dispositivo Regimental', blank=True)), ('dispositivo_regimental', models.CharField(max_length=50, blank=True, verbose_name='Dispositivo Regimental', null=True)),
], ],
options={ options={
'verbose_name': 'Tipo de Comiss\xe3o', 'verbose_name': 'Tipo de Comissão',
'verbose_name_plural': 'Tipos de Comiss\xe3o', 'verbose_name_plural': 'Tipos de Comissão',
}, },
), ),
migrations.AddField( migrations.AddField(
model_name='composicao', model_name='composicao',
name='periodo', name='periodo',
field=models.ForeignKey(verbose_name='Per\xedodo', to='comissoes.Periodo'), field=models.ForeignKey(to='comissoes.Periodo', verbose_name='Período'),
), ),
migrations.AddField( migrations.AddField(
model_name='comissao', model_name='comissao',
name='tipo', name='tipo',
field=models.ForeignKey(verbose_name='Tipo', to='comissoes.TipoComissao'), field=models.ForeignKey(to='comissoes.TipoComissao', verbose_name='Tipo'),
), ),
] ]

418
legacy/migrations/0001_initial.py

@ -1,5 +1,5 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations from django.db import models, migrations
@ -27,11 +27,11 @@ class Migration(migrations.Migration):
migrations.CreateModel( migrations.CreateModel(
name='Anexada', name='Anexada',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(serialize=False, primary_key=True, auto_created=True, verbose_name='ID')),
('cod_materia_principal', models.IntegerField()), ('cod_materia_principal', models.IntegerField()),
('cod_materia_anexada', models.IntegerField()), ('cod_materia_anexada', models.IntegerField()),
('dat_anexacao', models.DateField()), ('dat_anexacao', models.DateField()),
('dat_desanexacao', models.DateField(null=True, blank=True)), ('dat_desanexacao', models.DateField(blank=True, null=True)),
('ind_excluido', models.IntegerField()), ('ind_excluido', models.IntegerField()),
], ],
options={ options={
@ -57,7 +57,7 @@ class Migration(migrations.Migration):
fields=[ fields=[
('cod_assunto', models.AutoField(serialize=False, primary_key=True)), ('cod_assunto', models.AutoField(serialize=False, primary_key=True)),
('des_assunto', models.CharField(max_length=50)), ('des_assunto', models.CharField(max_length=50)),
('des_estendida', models.CharField(max_length=250, null=True, blank=True)), ('des_estendida', models.CharField(max_length=250, blank=True, null=True)),
('ind_excluido', models.IntegerField()), ('ind_excluido', models.IntegerField()),
], ],
options={ options={
@ -69,13 +69,13 @@ class Migration(migrations.Migration):
name='Autor', name='Autor',
fields=[ fields=[
('cod_autor', models.AutoField(serialize=False, primary_key=True)), ('cod_autor', models.AutoField(serialize=False, primary_key=True)),
('cod_partido', models.IntegerField(null=True, blank=True)), ('cod_partido', models.IntegerField(blank=True, null=True)),
('cod_comissao', models.IntegerField(null=True, blank=True)), ('cod_comissao', models.IntegerField(blank=True, null=True)),
('cod_parlamentar', models.IntegerField(null=True, blank=True)), ('cod_parlamentar', models.IntegerField(blank=True, null=True)),
('tip_autor', models.IntegerField()), ('tip_autor', models.IntegerField()),
('nom_autor', models.CharField(max_length=50, null=True, blank=True)), ('nom_autor', models.CharField(max_length=50, blank=True, null=True)),
('des_cargo', models.CharField(max_length=50, null=True, blank=True)), ('des_cargo', models.CharField(max_length=50, blank=True, null=True)),
('col_username', models.CharField(max_length=50, null=True, blank=True)), ('col_username', models.CharField(max_length=50, blank=True, null=True)),
('ind_excluido', models.IntegerField()), ('ind_excluido', models.IntegerField()),
], ],
options={ options={
@ -86,7 +86,7 @@ class Migration(migrations.Migration):
migrations.CreateModel( migrations.CreateModel(
name='Autoria', name='Autoria',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(serialize=False, primary_key=True, auto_created=True, verbose_name='ID')),
('cod_autor', models.IntegerField()), ('cod_autor', models.IntegerField()),
('cod_materia', models.IntegerField()), ('cod_materia', models.IntegerField()),
('ind_primeiro_autor', models.IntegerField()), ('ind_primeiro_autor', models.IntegerField()),
@ -129,7 +129,7 @@ class Migration(migrations.Migration):
('cod_coligacao', models.AutoField(serialize=False, primary_key=True)), ('cod_coligacao', models.AutoField(serialize=False, primary_key=True)),
('num_legislatura', models.IntegerField()), ('num_legislatura', models.IntegerField()),
('nom_coligacao', models.CharField(max_length=50)), ('nom_coligacao', models.CharField(max_length=50)),
('num_votos_coligacao', models.IntegerField(null=True, blank=True)), ('num_votos_coligacao', models.IntegerField(blank=True, null=True)),
('ind_excluido', models.IntegerField()), ('ind_excluido', models.IntegerField()),
], ],
options={ options={
@ -145,21 +145,21 @@ class Migration(migrations.Migration):
('nom_comissao', models.CharField(max_length=60)), ('nom_comissao', models.CharField(max_length=60)),
('sgl_comissao', models.CharField(max_length=10)), ('sgl_comissao', models.CharField(max_length=10)),
('dat_criacao', models.DateField()), ('dat_criacao', models.DateField()),
('dat_extincao', models.DateField(null=True, blank=True)), ('dat_extincao', models.DateField(blank=True, null=True)),
('nom_apelido_temp', models.CharField(max_length=100, null=True, blank=True)), ('nom_apelido_temp', models.CharField(max_length=100, blank=True, null=True)),
('dat_instalacao_temp', models.DateField(null=True, blank=True)), ('dat_instalacao_temp', models.DateField(blank=True, null=True)),
('dat_final_prevista_temp', models.DateField(null=True, blank=True)), ('dat_final_prevista_temp', models.DateField(blank=True, null=True)),
('dat_prorrogada_temp', models.DateField(null=True, blank=True)), ('dat_prorrogada_temp', models.DateField(blank=True, null=True)),
('dat_fim_comissao', models.DateField(null=True, blank=True)), ('dat_fim_comissao', models.DateField(blank=True, null=True)),
('nom_secretario', models.CharField(max_length=30, null=True, blank=True)), ('nom_secretario', models.CharField(max_length=30, blank=True, null=True)),
('num_tel_reuniao', models.CharField(max_length=15, null=True, blank=True)), ('num_tel_reuniao', models.CharField(max_length=15, blank=True, null=True)),
('end_secretaria', models.CharField(max_length=100, null=True, blank=True)), ('end_secretaria', models.CharField(max_length=100, blank=True, null=True)),
('num_tel_secretaria', models.CharField(max_length=15, null=True, blank=True)), ('num_tel_secretaria', models.CharField(max_length=15, blank=True, null=True)),
('num_fax_secretaria', models.CharField(max_length=15, null=True, blank=True)), ('num_fax_secretaria', models.CharField(max_length=15, blank=True, null=True)),
('des_agenda_reuniao', models.CharField(max_length=100, null=True, blank=True)), ('des_agenda_reuniao', models.CharField(max_length=100, blank=True, null=True)),
('loc_reuniao', models.CharField(max_length=100, null=True, blank=True)), ('loc_reuniao', models.CharField(max_length=100, blank=True, null=True)),
('txt_finalidade', models.TextField(null=True, blank=True)), ('txt_finalidade', models.TextField(blank=True, null=True)),
('end_email', models.CharField(max_length=100, null=True, blank=True)), ('end_email', models.CharField(max_length=100, blank=True, null=True)),
('ind_unid_deliberativa', models.IntegerField()), ('ind_unid_deliberativa', models.IntegerField()),
('ind_excluido', models.IntegerField()), ('ind_excluido', models.IntegerField()),
], ],
@ -171,7 +171,7 @@ class Migration(migrations.Migration):
migrations.CreateModel( migrations.CreateModel(
name='ComposicaoColigacao', name='ComposicaoColigacao',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(serialize=False, primary_key=True, auto_created=True, verbose_name='ID')),
('cod_partido', models.IntegerField()), ('cod_partido', models.IntegerField()),
('cod_coligacao', models.IntegerField()), ('cod_coligacao', models.IntegerField()),
('ind_excluido', models.IntegerField()), ('ind_excluido', models.IntegerField()),
@ -191,9 +191,9 @@ class Migration(migrations.Migration):
('cod_cargo', models.IntegerField()), ('cod_cargo', models.IntegerField()),
('ind_titular', models.IntegerField()), ('ind_titular', models.IntegerField()),
('dat_designacao', models.DateField()), ('dat_designacao', models.DateField()),
('dat_desligamento', models.DateField(null=True, blank=True)), ('dat_desligamento', models.DateField(blank=True, null=True)),
('des_motivo_desligamento', models.CharField(max_length=150, null=True, blank=True)), ('des_motivo_desligamento', models.CharField(max_length=150, blank=True, null=True)),
('obs_composicao', models.CharField(max_length=150, null=True, blank=True)), ('obs_composicao', models.CharField(max_length=150, blank=True, null=True)),
('ind_excluido', models.IntegerField()), ('ind_excluido', models.IntegerField()),
], ],
options={ options={
@ -204,7 +204,7 @@ class Migration(migrations.Migration):
migrations.CreateModel( migrations.CreateModel(
name='ComposicaoMesa', name='ComposicaoMesa',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(serialize=False, primary_key=True, auto_created=True, verbose_name='ID')),
('cod_parlamentar', models.IntegerField()), ('cod_parlamentar', models.IntegerField()),
('cod_sessao_leg', models.IntegerField()), ('cod_sessao_leg', models.IntegerField()),
('cod_cargo', models.IntegerField()), ('cod_cargo', models.IntegerField()),
@ -223,10 +223,10 @@ class Migration(migrations.Migration):
('cod_parlamentar', models.IntegerField()), ('cod_parlamentar', models.IntegerField()),
('nom_dependente', models.CharField(max_length=50)), ('nom_dependente', models.CharField(max_length=50)),
('sex_dependente', models.CharField(max_length=1)), ('sex_dependente', models.CharField(max_length=1)),
('dat_nascimento', models.DateField(null=True, blank=True)), ('dat_nascimento', models.DateField(blank=True, null=True)),
('num_cpf', models.CharField(max_length=14, null=True, blank=True)), ('num_cpf', models.CharField(max_length=14, blank=True, null=True)),
('num_rg', models.CharField(max_length=15, null=True, blank=True)), ('num_rg', models.CharField(max_length=15, blank=True, null=True)),
('num_tit_eleitor', models.CharField(max_length=15, null=True, blank=True)), ('num_tit_eleitor', models.CharField(max_length=15, blank=True, null=True)),
('ind_excluido', models.IntegerField()), ('ind_excluido', models.IntegerField()),
], ],
options={ options={
@ -237,7 +237,7 @@ class Migration(migrations.Migration):
migrations.CreateModel( migrations.CreateModel(
name='DespachoInicial', name='DespachoInicial',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(serialize=False, primary_key=True, auto_created=True, verbose_name='ID')),
('cod_materia', models.IntegerField()), ('cod_materia', models.IntegerField()),
('num_ordem', models.IntegerField()), ('num_ordem', models.IntegerField()),
('cod_comissao', models.IntegerField()), ('cod_comissao', models.IntegerField()),
@ -255,10 +255,10 @@ class Migration(migrations.Migration):
('cod_materia', models.IntegerField()), ('cod_materia', models.IntegerField()),
('tip_documento', models.IntegerField()), ('tip_documento', models.IntegerField()),
('nom_documento', models.CharField(max_length=30)), ('nom_documento', models.CharField(max_length=30)),
('dat_documento', models.DateField(null=True, blank=True)), ('dat_documento', models.DateField(blank=True, null=True)),
('nom_autor_documento', models.CharField(max_length=50, null=True, blank=True)), ('nom_autor_documento', models.CharField(max_length=50, blank=True, null=True)),
('txt_ementa', models.TextField(null=True, blank=True)), ('txt_ementa', models.TextField(blank=True, null=True)),
('txt_indexacao', models.TextField(null=True, blank=True)), ('txt_indexacao', models.TextField(blank=True, null=True)),
('ind_excluido', models.IntegerField()), ('ind_excluido', models.IntegerField()),
], ],
options={ options={
@ -274,10 +274,10 @@ class Migration(migrations.Migration):
('tip_documento', models.IntegerField()), ('tip_documento', models.IntegerField()),
('nom_documento', models.CharField(max_length=30)), ('nom_documento', models.CharField(max_length=30)),
('nom_arquivo', models.CharField(max_length=100)), ('nom_arquivo', models.CharField(max_length=100)),
('dat_documento', models.DateField(null=True, blank=True)), ('dat_documento', models.DateField(blank=True, null=True)),
('nom_autor_documento', models.CharField(max_length=50, null=True, blank=True)), ('nom_autor_documento', models.CharField(max_length=50, blank=True, null=True)),
('txt_assunto', models.TextField(null=True, blank=True)), ('txt_assunto', models.TextField(blank=True, null=True)),
('txt_indexacao', models.TextField(null=True, blank=True)), ('txt_indexacao', models.TextField(blank=True, null=True)),
('ind_excluido', models.IntegerField()), ('ind_excluido', models.IntegerField()),
], ],
options={ options={
@ -293,14 +293,14 @@ class Migration(migrations.Migration):
('num_documento', models.IntegerField()), ('num_documento', models.IntegerField()),
('ano_documento', models.SmallIntegerField()), ('ano_documento', models.SmallIntegerField()),
('dat_documento', models.DateField()), ('dat_documento', models.DateField()),
('num_protocolo', models.IntegerField(null=True, blank=True)), ('num_protocolo', models.IntegerField(blank=True, null=True)),
('txt_interessado', models.CharField(max_length=50, null=True, blank=True)), ('txt_interessado', models.CharField(max_length=50, blank=True, null=True)),
('cod_autor', models.IntegerField(null=True, blank=True)), ('cod_autor', models.IntegerField(blank=True, null=True)),
('num_dias_prazo', models.IntegerField(null=True, blank=True)), ('num_dias_prazo', models.IntegerField(blank=True, null=True)),
('dat_fim_prazo', models.DateField(null=True, blank=True)), ('dat_fim_prazo', models.DateField(blank=True, null=True)),
('ind_tramitacao', models.IntegerField()), ('ind_tramitacao', models.IntegerField()),
('txt_assunto', models.TextField()), ('txt_assunto', models.TextField()),
('txt_observacao', models.TextField(null=True, blank=True)), ('txt_observacao', models.TextField(blank=True, null=True)),
('ind_excluido', models.IntegerField()), ('ind_excluido', models.IntegerField()),
], ],
options={ options={
@ -315,10 +315,10 @@ class Migration(migrations.Migration):
('cod_sessao_plen', models.IntegerField()), ('cod_sessao_plen', models.IntegerField()),
('cod_materia', models.IntegerField()), ('cod_materia', models.IntegerField()),
('dat_ordem', models.DateField()), ('dat_ordem', models.DateField()),
('txt_observacao', models.TextField(null=True, blank=True)), ('txt_observacao', models.TextField(blank=True, null=True)),
('ind_excluido', models.IntegerField()), ('ind_excluido', models.IntegerField()),
('num_ordem', models.IntegerField()), ('num_ordem', models.IntegerField()),
('txt_resultado', models.TextField(null=True, blank=True)), ('txt_resultado', models.TextField(blank=True, null=True)),
('tip_votacao', models.IntegerField()), ('tip_votacao', models.IntegerField()),
], ],
options={ options={
@ -329,10 +329,10 @@ class Migration(migrations.Migration):
migrations.CreateModel( migrations.CreateModel(
name='ExpedienteSessaoPlenaria', name='ExpedienteSessaoPlenaria',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(serialize=False, primary_key=True, auto_created=True, verbose_name='ID')),
('cod_sessao_plen', models.IntegerField()), ('cod_sessao_plen', models.IntegerField()),
('cod_expediente', models.IntegerField()), ('cod_expediente', models.IntegerField()),
('txt_expediente', models.TextField(null=True, blank=True)), ('txt_expediente', models.TextField(blank=True, null=True)),
('ind_excluido', models.IntegerField()), ('ind_excluido', models.IntegerField()),
], ],
options={ options={
@ -343,11 +343,11 @@ class Migration(migrations.Migration):
migrations.CreateModel( migrations.CreateModel(
name='Filiacao', name='Filiacao',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(serialize=False, primary_key=True, auto_created=True, verbose_name='ID')),
('dat_filiacao', models.DateField()), ('dat_filiacao', models.DateField()),
('cod_parlamentar', models.IntegerField()), ('cod_parlamentar', models.IntegerField()),
('cod_partido', models.IntegerField()), ('cod_partido', models.IntegerField()),
('dat_desfiliacao', models.DateField(null=True, blank=True)), ('dat_desfiliacao', models.DateField(blank=True, null=True)),
('ind_excluido', models.IntegerField()), ('ind_excluido', models.IntegerField()),
], ],
options={ options={
@ -358,21 +358,21 @@ class Migration(migrations.Migration):
migrations.CreateModel( migrations.CreateModel(
name='LegislacaoCitada', name='LegislacaoCitada',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(serialize=False, primary_key=True, auto_created=True, verbose_name='ID')),
('cod_materia', models.IntegerField()), ('cod_materia', models.IntegerField()),
('cod_norma', models.IntegerField()), ('cod_norma', models.IntegerField()),
('des_disposicoes', models.CharField(max_length=15, null=True, blank=True)), ('des_disposicoes', models.CharField(max_length=15, blank=True, null=True)),
('des_parte', models.CharField(max_length=8, null=True, blank=True)), ('des_parte', models.CharField(max_length=8, blank=True, null=True)),
('des_livro', models.CharField(max_length=7, null=True, blank=True)), ('des_livro', models.CharField(max_length=7, blank=True, null=True)),
('des_titulo', models.CharField(max_length=7, null=True, blank=True)), ('des_titulo', models.CharField(max_length=7, blank=True, null=True)),
('des_capitulo', models.CharField(max_length=7, null=True, blank=True)), ('des_capitulo', models.CharField(max_length=7, blank=True, null=True)),
('des_secao', models.CharField(max_length=7, null=True, blank=True)), ('des_secao', models.CharField(max_length=7, blank=True, null=True)),
('des_subsecao', models.CharField(max_length=7, null=True, blank=True)), ('des_subsecao', models.CharField(max_length=7, blank=True, null=True)),
('des_artigo', models.CharField(max_length=4, null=True, blank=True)), ('des_artigo', models.CharField(max_length=4, blank=True, null=True)),
('des_paragrafo', models.CharField(max_length=3, null=True, blank=True)), ('des_paragrafo', models.CharField(max_length=3, blank=True, null=True)),
('des_inciso', models.CharField(max_length=10, null=True, blank=True)), ('des_inciso', models.CharField(max_length=10, blank=True, null=True)),
('des_alinea', models.CharField(max_length=3, null=True, blank=True)), ('des_alinea', models.CharField(max_length=3, blank=True, null=True)),
('des_item', models.CharField(max_length=3, null=True, blank=True)), ('des_item', models.CharField(max_length=3, blank=True, null=True)),
('ind_excluido', models.IntegerField()), ('ind_excluido', models.IntegerField()),
], ],
options={ options={
@ -401,11 +401,11 @@ class Migration(migrations.Migration):
('id_provedor', models.IntegerField()), ('id_provedor', models.IntegerField()),
('nom_provedor', models.CharField(max_length=255)), ('nom_provedor', models.CharField(max_length=255)),
('sgl_provedor', models.CharField(max_length=15)), ('sgl_provedor', models.CharField(max_length=15)),
('adm_email', models.CharField(max_length=50, null=True, blank=True)), ('adm_email', models.CharField(max_length=50, blank=True, null=True)),
('nom_responsavel', models.CharField(max_length=255, null=True, blank=True)), ('nom_responsavel', models.CharField(max_length=255, blank=True, null=True)),
('tipo', models.CharField(max_length=50)), ('tipo', models.CharField(max_length=50)),
('id_responsavel', models.IntegerField(null=True, blank=True)), ('id_responsavel', models.IntegerField(blank=True, null=True)),
('xml_provedor', models.TextField(null=True, blank=True)), ('xml_provedor', models.TextField(blank=True, null=True)),
], ],
options={ options={
'db_table': 'lexml_registro_provedor', 'db_table': 'lexml_registro_provedor',
@ -418,9 +418,9 @@ class Migration(migrations.Migration):
('cod_publicador', models.AutoField(serialize=False, primary_key=True)), ('cod_publicador', models.AutoField(serialize=False, primary_key=True)),
('id_publicador', models.IntegerField()), ('id_publicador', models.IntegerField()),
('nom_publicador', models.CharField(max_length=255)), ('nom_publicador', models.CharField(max_length=255)),
('adm_email', models.CharField(max_length=50, null=True, blank=True)), ('adm_email', models.CharField(max_length=50, blank=True, null=True)),
('sigla', models.CharField(max_length=255, null=True, blank=True)), ('sigla', models.CharField(max_length=255, blank=True, null=True)),
('nom_responsavel', models.CharField(max_length=255, null=True, blank=True)), ('nom_responsavel', models.CharField(max_length=255, blank=True, null=True)),
('tipo', models.CharField(max_length=50)), ('tipo', models.CharField(max_length=50)),
('id_responsavel', models.IntegerField()), ('id_responsavel', models.IntegerField()),
], ],
@ -433,11 +433,11 @@ class Migration(migrations.Migration):
name='Localidade', name='Localidade',
fields=[ fields=[
('cod_localidade', models.IntegerField(serialize=False, primary_key=True)), ('cod_localidade', models.IntegerField(serialize=False, primary_key=True)),
('nom_localidade', models.CharField(max_length=50, null=True, blank=True)), ('nom_localidade', models.CharField(max_length=50, blank=True, null=True)),
('nom_localidade_pesq', models.CharField(max_length=50, null=True, blank=True)), ('nom_localidade_pesq', models.CharField(max_length=50, blank=True, null=True)),
('tip_localidade', models.CharField(max_length=1, null=True, blank=True)), ('tip_localidade', models.CharField(max_length=1, blank=True, null=True)),
('sgl_uf', models.CharField(max_length=2, null=True, blank=True)), ('sgl_uf', models.CharField(max_length=2, blank=True, null=True)),
('sgl_regiao', models.CharField(max_length=2, null=True, blank=True)), ('sgl_regiao', models.CharField(max_length=2, blank=True, null=True)),
('ind_excluido', models.IntegerField()), ('ind_excluido', models.IntegerField()),
], ],
options={ options={
@ -450,14 +450,14 @@ class Migration(migrations.Migration):
fields=[ fields=[
('cod_mandato', models.AutoField(serialize=False, primary_key=True)), ('cod_mandato', models.AutoField(serialize=False, primary_key=True)),
('cod_parlamentar', models.IntegerField()), ('cod_parlamentar', models.IntegerField()),
('tip_afastamento', models.IntegerField(null=True, blank=True)), ('tip_afastamento', models.IntegerField(blank=True, null=True)),
('num_legislatura', models.IntegerField()), ('num_legislatura', models.IntegerField()),
('cod_coligacao', models.IntegerField(null=True, blank=True)), ('cod_coligacao', models.IntegerField(blank=True, null=True)),
('tip_causa_fim_mandato', models.IntegerField(null=True, blank=True)), ('tip_causa_fim_mandato', models.IntegerField(blank=True, null=True)),
('dat_fim_mandato', models.DateField(null=True, blank=True)), ('dat_fim_mandato', models.DateField(blank=True, null=True)),
('num_votos_recebidos', models.IntegerField(null=True, blank=True)), ('num_votos_recebidos', models.IntegerField(blank=True, null=True)),
('dat_expedicao_diploma', models.DateField(null=True, blank=True)), ('dat_expedicao_diploma', models.DateField(blank=True, null=True)),
('txt_observacao', models.TextField(null=True, blank=True)), ('txt_observacao', models.TextField(blank=True, null=True)),
('ind_excluido', models.IntegerField()), ('ind_excluido', models.IntegerField()),
], ],
options={ options={
@ -468,7 +468,7 @@ class Migration(migrations.Migration):
migrations.CreateModel( migrations.CreateModel(
name='MateriaAssunto', name='MateriaAssunto',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(serialize=False, primary_key=True, auto_created=True, verbose_name='ID')),
('cod_assunto', models.IntegerField()), ('cod_assunto', models.IntegerField()),
('cod_materia', models.IntegerField()), ('cod_materia', models.IntegerField()),
('ind_excluido', models.IntegerField()), ('ind_excluido', models.IntegerField()),
@ -483,30 +483,30 @@ class Migration(migrations.Migration):
fields=[ fields=[
('cod_materia', models.AutoField(serialize=False, primary_key=True)), ('cod_materia', models.AutoField(serialize=False, primary_key=True)),
('tip_id_basica', models.IntegerField()), ('tip_id_basica', models.IntegerField()),
('num_protocolo', models.IntegerField(null=True, blank=True)), ('num_protocolo', models.IntegerField(blank=True, null=True)),
('num_ident_basica', models.IntegerField()), ('num_ident_basica', models.IntegerField()),
('ano_ident_basica', models.SmallIntegerField()), ('ano_ident_basica', models.SmallIntegerField()),
('dat_apresentacao', models.DateField(null=True, blank=True)), ('dat_apresentacao', models.DateField(blank=True, null=True)),
('tip_apresentacao', models.CharField(max_length=1, null=True, blank=True)), ('tip_apresentacao', models.CharField(max_length=1, blank=True, null=True)),
('cod_regime_tramitacao', models.IntegerField()), ('cod_regime_tramitacao', models.IntegerField()),
('dat_publicacao', models.DateField(null=True, blank=True)), ('dat_publicacao', models.DateField(blank=True, null=True)),
('tip_origem_externa', models.IntegerField(null=True, blank=True)), ('tip_origem_externa', models.IntegerField(blank=True, null=True)),
('num_origem_externa', models.CharField(max_length=5, null=True, blank=True)), ('num_origem_externa', models.CharField(max_length=5, blank=True, null=True)),
('ano_origem_externa', models.SmallIntegerField(null=True, blank=True)), ('ano_origem_externa', models.SmallIntegerField(blank=True, null=True)),
('dat_origem_externa', models.DateField(null=True, blank=True)), ('dat_origem_externa', models.DateField(blank=True, null=True)),
('cod_local_origem_externa', models.IntegerField(null=True, blank=True)), ('cod_local_origem_externa', models.IntegerField(blank=True, null=True)),
('nom_apelido', models.CharField(max_length=50, null=True, blank=True)), ('nom_apelido', models.CharField(max_length=50, blank=True, null=True)),
('num_dias_prazo', models.IntegerField(null=True, blank=True)), ('num_dias_prazo', models.IntegerField(blank=True, null=True)),
('dat_fim_prazo', models.DateField(null=True, blank=True)), ('dat_fim_prazo', models.DateField(blank=True, null=True)),
('ind_tramitacao', models.IntegerField()), ('ind_tramitacao', models.IntegerField()),
('ind_polemica', models.IntegerField(null=True, blank=True)), ('ind_polemica', models.IntegerField(blank=True, null=True)),
('des_objeto', models.CharField(max_length=150, null=True, blank=True)), ('des_objeto', models.CharField(max_length=150, blank=True, null=True)),
('ind_complementar', models.IntegerField(null=True, blank=True)), ('ind_complementar', models.IntegerField(blank=True, null=True)),
('txt_ementa', models.TextField()), ('txt_ementa', models.TextField()),
('txt_indexacao', models.TextField(null=True, blank=True)), ('txt_indexacao', models.TextField(blank=True, null=True)),
('txt_observacao', models.TextField(null=True, blank=True)), ('txt_observacao', models.TextField(blank=True, null=True)),
('ind_excluido', models.IntegerField()), ('ind_excluido', models.IntegerField()),
('txt_resultado', models.TextField(null=True, blank=True)), ('txt_resultado', models.TextField(blank=True, null=True)),
], ],
options={ options={
'db_table': 'materia_legislativa', 'db_table': 'materia_legislativa',
@ -516,12 +516,12 @@ class Migration(migrations.Migration):
migrations.CreateModel( migrations.CreateModel(
name='MesaSessaoPlenaria', name='MesaSessaoPlenaria',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(serialize=False, primary_key=True, auto_created=True, verbose_name='ID')),
('cod_cargo', models.IntegerField()), ('cod_cargo', models.IntegerField()),
('cod_sessao_leg', models.IntegerField()), ('cod_sessao_leg', models.IntegerField()),
('cod_parlamentar', models.IntegerField()), ('cod_parlamentar', models.IntegerField()),
('cod_sessao_plen', models.IntegerField()), ('cod_sessao_plen', models.IntegerField()),
('ind_excluido', models.IntegerField(null=True, blank=True)), ('ind_excluido', models.IntegerField(blank=True, null=True)),
], ],
options={ options={
'db_table': 'mesa_sessao_plenaria', 'db_table': 'mesa_sessao_plenaria',
@ -545,21 +545,21 @@ class Migration(migrations.Migration):
fields=[ fields=[
('cod_norma', models.AutoField(serialize=False, primary_key=True)), ('cod_norma', models.AutoField(serialize=False, primary_key=True)),
('tip_norma', models.IntegerField()), ('tip_norma', models.IntegerField()),
('cod_materia', models.IntegerField(null=True, blank=True)), ('cod_materia', models.IntegerField(blank=True, null=True)),
('num_norma', models.IntegerField()), ('num_norma', models.IntegerField()),
('ano_norma', models.SmallIntegerField()), ('ano_norma', models.SmallIntegerField()),
('tip_esfera_federacao', models.CharField(max_length=1)), ('tip_esfera_federacao', models.CharField(max_length=1)),
('dat_norma', models.DateField(null=True, blank=True)), ('dat_norma', models.DateField(blank=True, null=True)),
('dat_publicacao', models.DateField(null=True, blank=True)), ('dat_publicacao', models.DateField(blank=True, null=True)),
('des_veiculo_publicacao', models.CharField(max_length=30, null=True, blank=True)), ('des_veiculo_publicacao', models.CharField(max_length=30, blank=True, null=True)),
('num_pag_inicio_publ', models.IntegerField(null=True, blank=True)), ('num_pag_inicio_publ', models.IntegerField(blank=True, null=True)),
('num_pag_fim_publ', models.IntegerField(null=True, blank=True)), ('num_pag_fim_publ', models.IntegerField(blank=True, null=True)),
('txt_ementa', models.TextField()), ('txt_ementa', models.TextField()),
('txt_indexacao', models.TextField(null=True, blank=True)), ('txt_indexacao', models.TextField(blank=True, null=True)),
('txt_observacao', models.TextField(null=True, blank=True)), ('txt_observacao', models.TextField(blank=True, null=True)),
('ind_complemento', models.IntegerField(null=True, blank=True)), ('ind_complemento', models.IntegerField(blank=True, null=True)),
('cod_assunto', models.CharField(max_length=16)), ('cod_assunto', models.CharField(max_length=16)),
('dat_vigencia', models.DateField(null=True, blank=True)), ('dat_vigencia', models.DateField(blank=True, null=True)),
('timestamp', models.DateTimeField()), ('timestamp', models.DateTimeField()),
('ind_excluido', models.IntegerField()), ('ind_excluido', models.IntegerField()),
], ],
@ -571,13 +571,13 @@ class Migration(migrations.Migration):
migrations.CreateModel( migrations.CreateModel(
name='Numeracao', name='Numeracao',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(serialize=False, primary_key=True, auto_created=True, verbose_name='ID')),
('cod_materia', models.IntegerField()), ('cod_materia', models.IntegerField()),
('num_ordem', models.IntegerField()), ('num_ordem', models.IntegerField()),
('tip_materia', models.IntegerField()), ('tip_materia', models.IntegerField()),
('num_materia', models.CharField(max_length=5)), ('num_materia', models.CharField(max_length=5)),
('ano_materia', models.SmallIntegerField()), ('ano_materia', models.SmallIntegerField()),
('dat_materia', models.DateField(null=True, blank=True)), ('dat_materia', models.DateField(blank=True, null=True)),
('ind_excluido', models.IntegerField()), ('ind_excluido', models.IntegerField()),
], ],
options={ options={
@ -588,11 +588,11 @@ class Migration(migrations.Migration):
migrations.CreateModel( migrations.CreateModel(
name='Oradores', name='Oradores',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(serialize=False, primary_key=True, auto_created=True, verbose_name='ID')),
('cod_sessao_plen', models.IntegerField()), ('cod_sessao_plen', models.IntegerField()),
('cod_parlamentar', models.IntegerField()), ('cod_parlamentar', models.IntegerField()),
('num_ordem', models.IntegerField()), ('num_ordem', models.IntegerField()),
('url_discurso', models.CharField(max_length=150, null=True, blank=True)), ('url_discurso', models.CharField(max_length=150, blank=True, null=True)),
('ind_excluido', models.IntegerField()), ('ind_excluido', models.IntegerField()),
], ],
options={ options={
@ -603,11 +603,11 @@ class Migration(migrations.Migration):
migrations.CreateModel( migrations.CreateModel(
name='OradoresExpediente', name='OradoresExpediente',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(serialize=False, primary_key=True, auto_created=True, verbose_name='ID')),
('cod_sessao_plen', models.IntegerField()), ('cod_sessao_plen', models.IntegerField()),
('cod_parlamentar', models.IntegerField()), ('cod_parlamentar', models.IntegerField()),
('num_ordem', models.IntegerField()), ('num_ordem', models.IntegerField()),
('url_discurso', models.CharField(max_length=150, null=True, blank=True)), ('url_discurso', models.CharField(max_length=150, blank=True, null=True)),
('ind_excluido', models.IntegerField()), ('ind_excluido', models.IntegerField()),
], ],
options={ options={
@ -622,10 +622,10 @@ class Migration(migrations.Migration):
('cod_sessao_plen', models.IntegerField()), ('cod_sessao_plen', models.IntegerField()),
('cod_materia', models.IntegerField()), ('cod_materia', models.IntegerField()),
('dat_ordem', models.DateField()), ('dat_ordem', models.DateField()),
('txt_observacao', models.TextField(null=True, blank=True)), ('txt_observacao', models.TextField(blank=True, null=True)),
('ind_excluido', models.IntegerField()), ('ind_excluido', models.IntegerField()),
('num_ordem', models.IntegerField()), ('num_ordem', models.IntegerField()),
('txt_resultado', models.TextField(null=True, blank=True)), ('txt_resultado', models.TextField(blank=True, null=True)),
('tip_votacao', models.IntegerField()), ('tip_votacao', models.IntegerField()),
], ],
options={ options={
@ -654,8 +654,8 @@ class Migration(migrations.Migration):
('nom_orgao', models.CharField(max_length=60)), ('nom_orgao', models.CharField(max_length=60)),
('sgl_orgao', models.CharField(max_length=10)), ('sgl_orgao', models.CharField(max_length=10)),
('ind_unid_deliberativa', models.IntegerField()), ('ind_unid_deliberativa', models.IntegerField()),
('end_orgao', models.CharField(max_length=100, null=True, blank=True)), ('end_orgao', models.CharField(max_length=100, blank=True, null=True)),
('num_tel_orgao', models.CharField(max_length=50, null=True, blank=True)), ('num_tel_orgao', models.CharField(max_length=50, blank=True, null=True)),
('ind_excluido', models.IntegerField()), ('ind_excluido', models.IntegerField()),
], ],
options={ options={
@ -679,12 +679,12 @@ class Migration(migrations.Migration):
migrations.CreateModel( migrations.CreateModel(
name='Parecer', name='Parecer',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(serialize=False, primary_key=True, auto_created=True, verbose_name='ID')),
('cod_relatoria', models.IntegerField()), ('cod_relatoria', models.IntegerField()),
('cod_materia', models.IntegerField()), ('cod_materia', models.IntegerField()),
('tip_conclusao', models.CharField(max_length=3, null=True, blank=True)), ('tip_conclusao', models.CharField(max_length=3, blank=True, null=True)),
('tip_apresentacao', models.CharField(max_length=1)), ('tip_apresentacao', models.CharField(max_length=1)),
('txt_parecer', models.TextField(null=True, blank=True)), ('txt_parecer', models.TextField(blank=True, null=True)),
('ind_excluido', models.IntegerField()), ('ind_excluido', models.IntegerField()),
], ],
options={ options={
@ -696,30 +696,30 @@ class Migration(migrations.Migration):
name='Parlamentar', name='Parlamentar',
fields=[ fields=[
('cod_parlamentar', models.AutoField(serialize=False, primary_key=True)), ('cod_parlamentar', models.AutoField(serialize=False, primary_key=True)),
('cod_nivel_instrucao', models.IntegerField(null=True, blank=True)), ('cod_nivel_instrucao', models.IntegerField(blank=True, null=True)),
('tip_situacao_militar', models.IntegerField(null=True, blank=True)), ('tip_situacao_militar', models.IntegerField(blank=True, null=True)),
('nom_completo', models.CharField(max_length=50)), ('nom_completo', models.CharField(max_length=50)),
('nom_parlamentar', models.CharField(max_length=50, null=True, blank=True)), ('nom_parlamentar', models.CharField(max_length=50, blank=True, null=True)),
('sex_parlamentar', models.CharField(max_length=1)), ('sex_parlamentar', models.CharField(max_length=1)),
('dat_nascimento', models.DateField(null=True, blank=True)), ('dat_nascimento', models.DateField(blank=True, null=True)),
('num_cpf', models.CharField(max_length=14, null=True, blank=True)), ('num_cpf', models.CharField(max_length=14, blank=True, null=True)),
('num_rg', models.CharField(max_length=15, null=True, blank=True)), ('num_rg', models.CharField(max_length=15, blank=True, null=True)),
('num_tit_eleitor', models.CharField(max_length=15, null=True, blank=True)), ('num_tit_eleitor', models.CharField(max_length=15, blank=True, null=True)),
('cod_casa', models.IntegerField()), ('cod_casa', models.IntegerField()),
('num_gab_parlamentar', models.CharField(max_length=10, null=True, blank=True)), ('num_gab_parlamentar', models.CharField(max_length=10, blank=True, null=True)),
('num_tel_parlamentar', models.CharField(max_length=50, null=True, blank=True)), ('num_tel_parlamentar', models.CharField(max_length=50, blank=True, null=True)),
('num_fax_parlamentar', models.CharField(max_length=50, null=True, blank=True)), ('num_fax_parlamentar', models.CharField(max_length=50, blank=True, null=True)),
('end_residencial', models.CharField(max_length=100, null=True, blank=True)), ('end_residencial', models.CharField(max_length=100, blank=True, null=True)),
('cod_localidade_resid', models.IntegerField(null=True, blank=True)), ('cod_localidade_resid', models.IntegerField(blank=True, null=True)),
('num_cep_resid', models.CharField(max_length=9, null=True, blank=True)), ('num_cep_resid', models.CharField(max_length=9, blank=True, null=True)),
('num_tel_resid', models.CharField(max_length=50, null=True, blank=True)), ('num_tel_resid', models.CharField(max_length=50, blank=True, null=True)),
('num_fax_resid', models.CharField(max_length=50, null=True, blank=True)), ('num_fax_resid', models.CharField(max_length=50, blank=True, null=True)),
('end_web', models.CharField(max_length=100, null=True, blank=True)), ('end_web', models.CharField(max_length=100, blank=True, null=True)),
('nom_profissao', models.CharField(max_length=50, null=True, blank=True)), ('nom_profissao', models.CharField(max_length=50, blank=True, null=True)),
('end_email', models.CharField(max_length=100, null=True, blank=True)), ('end_email', models.CharField(max_length=100, blank=True, null=True)),
('des_local_atuacao', models.CharField(max_length=100, null=True, blank=True)), ('des_local_atuacao', models.CharField(max_length=100, blank=True, null=True)),
('ind_ativo', models.IntegerField()), ('ind_ativo', models.IntegerField()),
('txt_biografia', models.TextField(null=True, blank=True)), ('txt_biografia', models.TextField(blank=True, null=True)),
('ind_unid_deliberativa', models.IntegerField()), ('ind_unid_deliberativa', models.IntegerField()),
('ind_excluido', models.IntegerField()), ('ind_excluido', models.IntegerField()),
], ],
@ -734,8 +734,8 @@ class Migration(migrations.Migration):
('cod_partido', models.AutoField(serialize=False, primary_key=True)), ('cod_partido', models.AutoField(serialize=False, primary_key=True)),
('sgl_partido', models.CharField(max_length=9)), ('sgl_partido', models.CharField(max_length=9)),
('nom_partido', models.CharField(max_length=50)), ('nom_partido', models.CharField(max_length=50)),
('dat_criacao', models.DateField(null=True, blank=True)), ('dat_criacao', models.DateField(blank=True, null=True)),
('dat_extincao', models.DateField(null=True, blank=True)), ('dat_extincao', models.DateField(blank=True, null=True)),
('ind_excluido', models.IntegerField()), ('ind_excluido', models.IntegerField()),
], ],
options={ options={
@ -748,7 +748,7 @@ class Migration(migrations.Migration):
fields=[ fields=[
('cod_periodo_comp', models.AutoField(serialize=False, primary_key=True)), ('cod_periodo_comp', models.AutoField(serialize=False, primary_key=True)),
('dat_inicio_periodo', models.DateField()), ('dat_inicio_periodo', models.DateField()),
('dat_fim_periodo', models.DateField(null=True, blank=True)), ('dat_fim_periodo', models.DateField(blank=True, null=True)),
('ind_excluido', models.IntegerField()), ('ind_excluido', models.IntegerField()),
], ],
options={ options={
@ -760,16 +760,16 @@ class Migration(migrations.Migration):
name='Proposicao', name='Proposicao',
fields=[ fields=[
('cod_proposicao', models.AutoField(serialize=False, primary_key=True)), ('cod_proposicao', models.AutoField(serialize=False, primary_key=True)),
('cod_materia', models.IntegerField(null=True, blank=True)), ('cod_materia', models.IntegerField(blank=True, null=True)),
('cod_autor', models.IntegerField()), ('cod_autor', models.IntegerField()),
('tip_proposicao', models.IntegerField()), ('tip_proposicao', models.IntegerField()),
('dat_envio', models.DateTimeField()), ('dat_envio', models.DateTimeField()),
('dat_recebimento', models.DateTimeField(null=True, blank=True)), ('dat_recebimento', models.DateTimeField(blank=True, null=True)),
('txt_descricao', models.CharField(max_length=100)), ('txt_descricao', models.CharField(max_length=100)),
('cod_mat_ou_doc', models.IntegerField(null=True, blank=True)), ('cod_mat_ou_doc', models.IntegerField(blank=True, null=True)),
('dat_devolucao', models.DateTimeField(null=True, blank=True)), ('dat_devolucao', models.DateTimeField(blank=True, null=True)),
('txt_justif_devolucao', models.CharField(max_length=200, null=True, blank=True)), ('txt_justif_devolucao', models.CharField(max_length=200, blank=True, null=True)),
('num_proposicao', models.IntegerField(null=True, blank=True)), ('num_proposicao', models.IntegerField(blank=True, null=True)),
('ind_excluido', models.IntegerField()), ('ind_excluido', models.IntegerField()),
], ],
options={ options={
@ -781,25 +781,25 @@ class Migration(migrations.Migration):
name='Protocolo', name='Protocolo',
fields=[ fields=[
('cod_protocolo', models.AutoField(serialize=False, primary_key=True)), ('cod_protocolo', models.AutoField(serialize=False, primary_key=True)),
('num_protocolo', models.IntegerField(null=True, blank=True)), ('num_protocolo', models.IntegerField(blank=True, null=True)),
('ano_protocolo', models.SmallIntegerField()), ('ano_protocolo', models.SmallIntegerField()),
('dat_protocolo', models.DateField()), ('dat_protocolo', models.DateField()),
('hor_protocolo', models.TimeField()), ('hor_protocolo', models.TimeField()),
('dat_timestamp', models.DateTimeField()), ('dat_timestamp', models.DateTimeField()),
('tip_protocolo', models.IntegerField()), ('tip_protocolo', models.IntegerField()),
('tip_processo', models.IntegerField()), ('tip_processo', models.IntegerField()),
('txt_interessado', models.CharField(max_length=60, null=True, blank=True)), ('txt_interessado', models.CharField(max_length=60, blank=True, null=True)),
('cod_autor', models.IntegerField(null=True, blank=True)), ('cod_autor', models.IntegerField(blank=True, null=True)),
('txt_assunto_ementa', models.TextField(null=True, blank=True)), ('txt_assunto_ementa', models.TextField(blank=True, null=True)),
('tip_documento', models.IntegerField(null=True, blank=True)), ('tip_documento', models.IntegerField(blank=True, null=True)),
('tip_materia', models.IntegerField(null=True, blank=True)), ('tip_materia', models.IntegerField(blank=True, null=True)),
('num_paginas', models.IntegerField(null=True, blank=True)), ('num_paginas', models.IntegerField(blank=True, null=True)),
('txt_observacao', models.TextField(null=True, blank=True)), ('txt_observacao', models.TextField(blank=True, null=True)),
('ind_anulado', models.IntegerField()), ('ind_anulado', models.IntegerField()),
('txt_user_anulacao', models.CharField(max_length=20, null=True, blank=True)), ('txt_user_anulacao', models.CharField(max_length=20, blank=True, null=True)),
('txt_ip_anulacao', models.CharField(max_length=15, null=True, blank=True)), ('txt_ip_anulacao', models.CharField(max_length=15, blank=True, null=True)),
('txt_just_anulacao', models.CharField(max_length=60, null=True, blank=True)), ('txt_just_anulacao', models.CharField(max_length=60, blank=True, null=True)),
('timestamp_anulacao', models.DateTimeField(null=True, blank=True)), ('timestamp_anulacao', models.DateTimeField(blank=True, null=True)),
], ],
options={ options={
'db_table': 'protocolo', 'db_table': 'protocolo',
@ -828,7 +828,7 @@ class Migration(migrations.Migration):
('num_votos_sim', models.IntegerField()), ('num_votos_sim', models.IntegerField()),
('num_votos_nao', models.IntegerField()), ('num_votos_nao', models.IntegerField()),
('num_abstencao', models.IntegerField()), ('num_abstencao', models.IntegerField()),
('txt_observacao', models.TextField(null=True, blank=True)), ('txt_observacao', models.TextField(blank=True, null=True)),
('ind_excluido', models.IntegerField()), ('ind_excluido', models.IntegerField()),
], ],
options={ options={
@ -839,7 +839,7 @@ class Migration(migrations.Migration):
migrations.CreateModel( migrations.CreateModel(
name='RegistroVotacaoParlamentar', name='RegistroVotacaoParlamentar',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(serialize=False, primary_key=True, auto_created=True, verbose_name='ID')),
('cod_votacao', models.IntegerField()), ('cod_votacao', models.IntegerField()),
('cod_parlamentar', models.IntegerField()), ('cod_parlamentar', models.IntegerField()),
('ind_excluido', models.IntegerField()), ('ind_excluido', models.IntegerField()),
@ -856,10 +856,10 @@ class Migration(migrations.Migration):
('cod_relatoria', models.AutoField(serialize=False, primary_key=True)), ('cod_relatoria', models.AutoField(serialize=False, primary_key=True)),
('cod_materia', models.IntegerField()), ('cod_materia', models.IntegerField()),
('cod_parlamentar', models.IntegerField()), ('cod_parlamentar', models.IntegerField()),
('tip_fim_relatoria', models.IntegerField(null=True, blank=True)), ('tip_fim_relatoria', models.IntegerField(blank=True, null=True)),
('cod_comissao', models.IntegerField(null=True, blank=True)), ('cod_comissao', models.IntegerField(blank=True, null=True)),
('dat_desig_relator', models.DateField()), ('dat_desig_relator', models.DateField()),
('dat_destit_relator', models.DateField(null=True, blank=True)), ('dat_destit_relator', models.DateField(blank=True, null=True)),
('ind_excluido', models.IntegerField()), ('ind_excluido', models.IntegerField()),
], ],
options={ options={
@ -876,8 +876,8 @@ class Migration(migrations.Migration):
('tip_sessao_leg', models.CharField(max_length=1)), ('tip_sessao_leg', models.CharField(max_length=1)),
('dat_inicio', models.DateField()), ('dat_inicio', models.DateField()),
('dat_fim', models.DateField()), ('dat_fim', models.DateField()),
('dat_inicio_intervalo', models.DateField(null=True, blank=True)), ('dat_inicio_intervalo', models.DateField(blank=True, null=True)),
('dat_fim_intervalo', models.DateField(null=True, blank=True)), ('dat_fim_intervalo', models.DateField(blank=True, null=True)),
('ind_excluido', models.IntegerField()), ('ind_excluido', models.IntegerField()),
], ],
options={ options={
@ -889,7 +889,7 @@ class Migration(migrations.Migration):
name='SessaoPlenaria', name='SessaoPlenaria',
fields=[ fields=[
('cod_sessao_plen', models.AutoField(serialize=False, primary_key=True)), ('cod_sessao_plen', models.AutoField(serialize=False, primary_key=True)),
('cod_andamento_sessao', models.IntegerField(null=True, blank=True)), ('cod_andamento_sessao', models.IntegerField(blank=True, null=True)),
('tip_sessao', models.IntegerField()), ('tip_sessao', models.IntegerField()),
('cod_sessao_leg', models.IntegerField()), ('cod_sessao_leg', models.IntegerField()),
('num_legislatura', models.IntegerField()), ('num_legislatura', models.IntegerField()),
@ -897,11 +897,11 @@ class Migration(migrations.Migration):
('dat_inicio_sessao', models.DateField()), ('dat_inicio_sessao', models.DateField()),
('dia_sessao', models.CharField(max_length=15)), ('dia_sessao', models.CharField(max_length=15)),
('hr_inicio_sessao', models.CharField(max_length=5)), ('hr_inicio_sessao', models.CharField(max_length=5)),
('hr_fim_sessao', models.CharField(max_length=5, null=True, blank=True)), ('hr_fim_sessao', models.CharField(max_length=5, blank=True, null=True)),
('num_sessao_plen', models.IntegerField()), ('num_sessao_plen', models.IntegerField()),
('dat_fim_sessao', models.DateField(null=True, blank=True)), ('dat_fim_sessao', models.DateField(blank=True, null=True)),
('url_audio', models.CharField(max_length=150, null=True, blank=True)), ('url_audio', models.CharField(max_length=150, blank=True, null=True)),
('url_video', models.CharField(max_length=150, null=True, blank=True)), ('url_video', models.CharField(max_length=150, blank=True, null=True)),
('ind_excluido', models.IntegerField()), ('ind_excluido', models.IntegerField()),
], ],
options={ options={
@ -915,7 +915,7 @@ class Migration(migrations.Migration):
('cod_presenca_sessao', models.AutoField(serialize=False, primary_key=True)), ('cod_presenca_sessao', models.AutoField(serialize=False, primary_key=True)),
('cod_sessao_plen', models.IntegerField()), ('cod_sessao_plen', models.IntegerField()),
('cod_parlamentar', models.IntegerField()), ('cod_parlamentar', models.IntegerField()),
('dat_sessao', models.DateField(null=True, blank=True)), ('dat_sessao', models.DateField(blank=True, null=True)),
('ind_excluido', models.IntegerField()), ('ind_excluido', models.IntegerField()),
], ],
options={ options={
@ -972,7 +972,7 @@ class Migration(migrations.Migration):
('des_afastamento', models.CharField(max_length=50)), ('des_afastamento', models.CharField(max_length=50)),
('ind_afastamento', models.IntegerField()), ('ind_afastamento', models.IntegerField()),
('ind_fim_mandato', models.IntegerField()), ('ind_fim_mandato', models.IntegerField()),
('des_dispositivo', models.CharField(max_length=50, null=True, blank=True)), ('des_dispositivo', models.CharField(max_length=50, blank=True, null=True)),
('ind_excluido', models.IntegerField()), ('ind_excluido', models.IntegerField()),
], ],
options={ options={
@ -999,7 +999,7 @@ class Migration(migrations.Migration):
('nom_tipo_comissao', models.CharField(max_length=50)), ('nom_tipo_comissao', models.CharField(max_length=50)),
('sgl_natureza_comissao', models.CharField(max_length=1)), ('sgl_natureza_comissao', models.CharField(max_length=1)),
('sgl_tipo_comissao', models.CharField(max_length=10)), ('sgl_tipo_comissao', models.CharField(max_length=10)),
('des_dispositivo_regimental', models.CharField(max_length=50, null=True, blank=True)), ('des_dispositivo_regimental', models.CharField(max_length=50, blank=True, null=True)),
('ind_excluido', models.IntegerField()), ('ind_excluido', models.IntegerField()),
], ],
options={ options={
@ -1087,7 +1087,7 @@ class Migration(migrations.Migration):
name='TipoNormaJuridica', name='TipoNormaJuridica',
fields=[ fields=[
('tip_norma', models.AutoField(serialize=False, primary_key=True)), ('tip_norma', models.AutoField(serialize=False, primary_key=True)),
('voc_lexml', models.CharField(max_length=50, null=True, blank=True)), ('voc_lexml', models.CharField(max_length=50, blank=True, null=True)),
('sgl_tipo_norma', models.CharField(max_length=3)), ('sgl_tipo_norma', models.CharField(max_length=3)),
('des_tipo_norma', models.CharField(max_length=50)), ('des_tipo_norma', models.CharField(max_length=50)),
('ind_excluido', models.IntegerField()), ('ind_excluido', models.IntegerField()),
@ -1141,17 +1141,17 @@ class Migration(migrations.Migration):
name='Tramitacao', name='Tramitacao',
fields=[ fields=[
('cod_tramitacao', models.AutoField(serialize=False, primary_key=True)), ('cod_tramitacao', models.AutoField(serialize=False, primary_key=True)),
('cod_status', models.IntegerField(null=True, blank=True)), ('cod_status', models.IntegerField(blank=True, null=True)),
('cod_materia', models.IntegerField()), ('cod_materia', models.IntegerField()),
('dat_tramitacao', models.DateField(null=True, blank=True)), ('dat_tramitacao', models.DateField(blank=True, null=True)),
('cod_unid_tram_local', models.IntegerField(null=True, blank=True)), ('cod_unid_tram_local', models.IntegerField(blank=True, null=True)),
('dat_encaminha', models.DateField(null=True, blank=True)), ('dat_encaminha', models.DateField(blank=True, null=True)),
('cod_unid_tram_dest', models.IntegerField(null=True, blank=True)), ('cod_unid_tram_dest', models.IntegerField(blank=True, null=True)),
('ind_ult_tramitacao', models.IntegerField()), ('ind_ult_tramitacao', models.IntegerField()),
('ind_urgencia', models.IntegerField()), ('ind_urgencia', models.IntegerField()),
('sgl_turno', models.CharField(max_length=1, null=True, blank=True)), ('sgl_turno', models.CharField(max_length=1, blank=True, null=True)),
('txt_tramitacao', models.TextField(null=True, blank=True)), ('txt_tramitacao', models.TextField(blank=True, null=True)),
('dat_fim_prazo', models.DateField(null=True, blank=True)), ('dat_fim_prazo', models.DateField(blank=True, null=True)),
('ind_excluido', models.IntegerField()), ('ind_excluido', models.IntegerField()),
], ],
options={ options={
@ -1164,14 +1164,14 @@ class Migration(migrations.Migration):
fields=[ fields=[
('cod_tramitacao', models.AutoField(serialize=False, primary_key=True)), ('cod_tramitacao', models.AutoField(serialize=False, primary_key=True)),
('cod_documento', models.IntegerField()), ('cod_documento', models.IntegerField()),
('dat_tramitacao', models.DateField(null=True, blank=True)), ('dat_tramitacao', models.DateField(blank=True, null=True)),
('cod_unid_tram_local', models.IntegerField(null=True, blank=True)), ('cod_unid_tram_local', models.IntegerField(blank=True, null=True)),
('dat_encaminha', models.DateField(null=True, blank=True)), ('dat_encaminha', models.DateField(blank=True, null=True)),
('cod_unid_tram_dest', models.IntegerField(null=True, blank=True)), ('cod_unid_tram_dest', models.IntegerField(blank=True, null=True)),
('cod_status', models.IntegerField(null=True, blank=True)), ('cod_status', models.IntegerField(blank=True, null=True)),
('ind_ult_tramitacao', models.IntegerField()), ('ind_ult_tramitacao', models.IntegerField()),
('txt_tramitacao', models.TextField(null=True, blank=True)), ('txt_tramitacao', models.TextField(blank=True, null=True)),
('dat_fim_prazo', models.DateField(null=True, blank=True)), ('dat_fim_prazo', models.DateField(blank=True, null=True)),
('ind_excluido', models.IntegerField()), ('ind_excluido', models.IntegerField()),
], ],
options={ options={
@ -1183,9 +1183,9 @@ class Migration(migrations.Migration):
name='UnidadeTramitacao', name='UnidadeTramitacao',
fields=[ fields=[
('cod_unid_tramitacao', models.AutoField(serialize=False, primary_key=True)), ('cod_unid_tramitacao', models.AutoField(serialize=False, primary_key=True)),
('cod_comissao', models.IntegerField(null=True, blank=True)), ('cod_comissao', models.IntegerField(blank=True, null=True)),
('cod_orgao', models.IntegerField(null=True, blank=True)), ('cod_orgao', models.IntegerField(blank=True, null=True)),
('cod_parlamentar', models.IntegerField(null=True, blank=True)), ('cod_parlamentar', models.IntegerField(blank=True, null=True)),
('ind_excluido', models.IntegerField()), ('ind_excluido', models.IntegerField()),
], ],
options={ options={
@ -1199,7 +1199,7 @@ class Migration(migrations.Migration):
('cod_vinculo', models.AutoField(serialize=False, primary_key=True)), ('cod_vinculo', models.AutoField(serialize=False, primary_key=True)),
('cod_norma_referente', models.IntegerField()), ('cod_norma_referente', models.IntegerField()),
('cod_norma_referida', models.IntegerField()), ('cod_norma_referida', models.IntegerField()),
('tip_vinculo', models.CharField(max_length=1, null=True, blank=True)), ('tip_vinculo', models.CharField(max_length=1, blank=True, null=True)),
('ind_excluido', models.CharField(max_length=1)), ('ind_excluido', models.CharField(max_length=1)),
], ],
options={ options={

22
lexml/migrations/0001_initial.py

@ -1,5 +1,5 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations from django.db import models, migrations
@ -13,15 +13,15 @@ class Migration(migrations.Migration):
migrations.CreateModel( migrations.CreateModel(
name='LexmlProvedor', name='LexmlProvedor',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(serialize=False, primary_key=True, auto_created=True, verbose_name='ID')),
('id_provedor', models.IntegerField(verbose_name='Id do provedor')), ('id_provedor', models.IntegerField(verbose_name='Id do provedor')),
('nome', models.CharField(max_length=255, verbose_name='Nome do provedor')), ('nome', models.CharField(max_length=255, verbose_name='Nome do provedor')),
('sigla', models.CharField(max_length=15)), ('sigla', models.CharField(max_length=15)),
('email_responsavel', models.CharField(max_length=50, null=True, verbose_name='E-mail do respons\xe1vel', blank=True)), ('email_responsavel', models.CharField(max_length=50, blank=True, verbose_name='E-mail do responsável', null=True)),
('nome_responsavel', models.CharField(max_length=255, null=True, verbose_name='Nome do respons\xe1vel', blank=True)), ('nome_responsavel', models.CharField(max_length=255, blank=True, verbose_name='Nome do responsável', null=True)),
('tipo', models.CharField(max_length=50)), ('tipo', models.CharField(max_length=50)),
('id_responsavel', models.IntegerField(null=True, verbose_name='Id do respons\xe1vel', blank=True)), ('id_responsavel', models.IntegerField(blank=True, verbose_name='Id do responsável', null=True)),
('xml', models.TextField(null=True, verbose_name='XML fornecido pela equipe do LexML:', blank=True)), ('xml', models.TextField(blank=True, verbose_name='XML fornecido pela equipe do LexML:', null=True)),
], ],
options={ options={
'verbose_name': 'Provedor Lexml', 'verbose_name': 'Provedor Lexml',
@ -31,14 +31,14 @@ class Migration(migrations.Migration):
migrations.CreateModel( migrations.CreateModel(
name='LexmlPublicador', name='LexmlPublicador',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(serialize=False, primary_key=True, auto_created=True, verbose_name='ID')),
('id_publicador', models.IntegerField(verbose_name='Id do publicador')), ('id_publicador', models.IntegerField(verbose_name='Id do publicador')),
('nome', models.CharField(max_length=255, verbose_name='Nome do publicador')), ('nome', models.CharField(max_length=255, verbose_name='Nome do publicador')),
('email_responsavel', models.CharField(max_length=50, null=True, verbose_name='E-mail do respons\xe1vel', blank=True)), ('email_responsavel', models.CharField(max_length=50, blank=True, verbose_name='E-mail do responsável', null=True)),
('sigla', models.CharField(max_length=255, null=True, verbose_name='Sigla do Publicador', blank=True)), ('sigla', models.CharField(max_length=255, blank=True, verbose_name='Sigla do Publicador', null=True)),
('nome_responsavel', models.CharField(max_length=255, null=True, verbose_name='Nome do respons\xe1vel', blank=True)), ('nome_responsavel', models.CharField(max_length=255, blank=True, verbose_name='Nome do responsável', null=True)),
('tipo', models.CharField(max_length=50)), ('tipo', models.CharField(max_length=50)),
('id_responsavel', models.IntegerField(verbose_name='Id do respons\xe1vel')), ('id_responsavel', models.IntegerField(verbose_name='Id do responsável')),
], ],
options={ options={
'verbose_name': 'Publicador Lexml', 'verbose_name': 'Publicador Lexml',

270
materia/migrations/0001_initial.py

@ -1,5 +1,5 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations from django.db import models, migrations
@ -15,21 +15,21 @@ class Migration(migrations.Migration):
migrations.CreateModel( migrations.CreateModel(
name='AcompanhamentoMateria', name='AcompanhamentoMateria',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(serialize=False, primary_key=True, auto_created=True, verbose_name='ID')),
('email', models.CharField(max_length=100, verbose_name='Endere\xe7o de E-mail')), ('email', models.CharField(max_length=100, verbose_name='Endereço de E-mail')),
('hash', models.CharField(max_length=8)), ('hash', models.CharField(max_length=8)),
], ],
options={ options={
'verbose_name': 'Acompanhamento de Mat\xe9ria', 'verbose_name': 'Acompanhamento de Matéria',
'verbose_name_plural': 'Acompanhamentos de Mat\xe9ria', 'verbose_name_plural': 'Acompanhamentos de Matéria',
}, },
), ),
migrations.CreateModel( migrations.CreateModel(
name='Anexada', name='Anexada',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(serialize=False, primary_key=True, auto_created=True, verbose_name='ID')),
('data_anexacao', models.DateField(verbose_name='Data Anexa\xe7\xe3o')), ('data_anexacao', models.DateField(verbose_name='Data Anexação')),
('data_desanexacao', models.DateField(null=True, verbose_name='Data Desanexa\xe7\xe3o', blank=True)), ('data_desanexacao', models.DateField(blank=True, verbose_name='Data Desanexação', null=True)),
], ],
options={ options={
'verbose_name': 'Anexada', 'verbose_name': 'Anexada',
@ -39,25 +39,25 @@ class Migration(migrations.Migration):
migrations.CreateModel( migrations.CreateModel(
name='AssuntoMateria', name='AssuntoMateria',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(serialize=False, primary_key=True, auto_created=True, verbose_name='ID')),
('assunto', models.CharField(max_length=200)), ('assunto', models.CharField(max_length=200)),
('dispositivo', models.CharField(max_length=50)), ('dispositivo', models.CharField(max_length=50)),
], ],
options={ options={
'verbose_name': 'Assunto de Mat\xe9ria', 'verbose_name': 'Assunto de Matéria',
'verbose_name_plural': 'Assuntos de Mat\xe9ria', 'verbose_name_plural': 'Assuntos de Matéria',
}, },
), ),
migrations.CreateModel( migrations.CreateModel(
name='Autor', name='Autor',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(serialize=False, primary_key=True, auto_created=True, verbose_name='ID')),
('nome', models.CharField(max_length=50, null=True, verbose_name='Autor', blank=True)), ('nome', models.CharField(max_length=50, blank=True, verbose_name='Autor', null=True)),
('cargo', models.CharField(max_length=50, null=True, blank=True)), ('cargo', models.CharField(max_length=50, blank=True, null=True)),
('username', models.CharField(max_length=50, null=True, blank=True)), ('username', models.CharField(max_length=50, blank=True, null=True)),
('comissao', models.ForeignKey(blank=True, to='comissoes.Comissao', null=True)), ('comissao', models.ForeignKey(to='comissoes.Comissao', blank=True, null=True)),
('parlamentar', models.ForeignKey(blank=True, to='parlamentares.Parlamentar', null=True)), ('parlamentar', models.ForeignKey(to='parlamentares.Parlamentar', blank=True, null=True)),
('partido', models.ForeignKey(blank=True, to='parlamentares.Partido', null=True)), ('partido', models.ForeignKey(to='parlamentares.Partido', blank=True, null=True)),
], ],
options={ options={
'verbose_name': 'Autor', 'verbose_name': 'Autor',
@ -67,7 +67,7 @@ class Migration(migrations.Migration):
migrations.CreateModel( migrations.CreateModel(
name='Autoria', name='Autoria',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(serialize=False, primary_key=True, auto_created=True, verbose_name='ID')),
('primeiro_autor', models.BooleanField(verbose_name='Primeiro Autor')), ('primeiro_autor', models.BooleanField(verbose_name='Primeiro Autor')),
('autor', models.ForeignKey(to='materia.Autor')), ('autor', models.ForeignKey(to='materia.Autor')),
], ],
@ -79,7 +79,7 @@ class Migration(migrations.Migration):
migrations.CreateModel( migrations.CreateModel(
name='DespachoInicial', name='DespachoInicial',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(serialize=False, primary_key=True, auto_created=True, verbose_name='ID')),
('numero_ordem', models.IntegerField()), ('numero_ordem', models.IntegerField()),
('comissao', models.ForeignKey(to='comissoes.Comissao')), ('comissao', models.ForeignKey(to='comissoes.Comissao')),
], ],
@ -91,94 +91,94 @@ class Migration(migrations.Migration):
migrations.CreateModel( migrations.CreateModel(
name='DocumentoAcessorio', name='DocumentoAcessorio',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(serialize=False, primary_key=True, auto_created=True, verbose_name='ID')),
('nome', models.CharField(max_length=30, verbose_name='Descri\xe7\xe3o')), ('nome', models.CharField(max_length=30, verbose_name='Descrição')),
('data', models.DateField(null=True, verbose_name='Data', blank=True)), ('data', models.DateField(blank=True, verbose_name='Data', null=True)),
('autor', models.CharField(max_length=50, null=True, verbose_name='Autor', blank=True)), ('autor', models.CharField(max_length=50, blank=True, verbose_name='Autor', null=True)),
('ementa', models.TextField(null=True, verbose_name='Ementa', blank=True)), ('ementa', models.TextField(blank=True, verbose_name='Ementa', null=True)),
('indexacao', models.TextField(null=True, blank=True)), ('indexacao', models.TextField(blank=True, null=True)),
], ],
options={ options={
'verbose_name': 'Documento Acess\xf3rio', 'verbose_name': 'Documento Acessório',
'verbose_name_plural': 'Documentos Acess\xf3rios', 'verbose_name_plural': 'Documentos Acessórios',
}, },
), ),
migrations.CreateModel( migrations.CreateModel(
name='MateriaAssunto', name='MateriaAssunto',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(serialize=False, primary_key=True, auto_created=True, verbose_name='ID')),
('assunto', models.ForeignKey(to='materia.AssuntoMateria')), ('assunto', models.ForeignKey(to='materia.AssuntoMateria')),
], ],
options={ options={
'verbose_name': 'Rela\xe7\xe3o Mat\xe9ria - Assunto', 'verbose_name': 'Relação Matéria - Assunto',
'verbose_name_plural': 'Rela\xe7\xf5es Mat\xe9ria - Assunto', 'verbose_name_plural': 'Relações Matéria - Assunto',
}, },
), ),
migrations.CreateModel( migrations.CreateModel(
name='MateriaLegislativa', name='MateriaLegislativa',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(serialize=False, primary_key=True, auto_created=True, verbose_name='ID')),
('numero_protocolo', models.IntegerField(null=True, verbose_name='N\xfam. Protocolo', blank=True)), ('numero', models.IntegerField(verbose_name='Número')),
('numero_ident_basica', models.IntegerField(verbose_name='N\xfamero')), ('ano', models.SmallIntegerField(verbose_name='Ano')),
('ano_ident_basica', models.SmallIntegerField(verbose_name='Ano')), ('numero_protocolo', models.IntegerField(blank=True, verbose_name='Núm. Protocolo', null=True)),
('data_apresentacao', models.DateField(null=True, verbose_name='Data Apresenta\xe7\xe3o', blank=True)), ('data_apresentacao', models.DateField(blank=True, verbose_name='Data Apresentação', null=True)),
('tipo_apresentacao', models.CharField(blank=True, max_length=1, null=True, verbose_name='Tipo de Apresenta\xe7\xe3o', choices=[(b'O', 'Oral'), (b'E', 'Escrita')])), ('tipo_apresentacao', models.CharField(max_length=1, choices=[('O', 'Oral'), ('E', 'Escrita')], blank=True, verbose_name='Tipo de Apresentação', null=True)),
('data_publicacao', models.DateField(null=True, verbose_name='Data Publica\xe7\xe3o', blank=True)), ('data_publicacao', models.DateField(blank=True, verbose_name='Data Publicação', null=True)),
('numero_origem_externa', models.CharField(max_length=5, null=True, verbose_name='N\xfamero', blank=True)), ('numero_origem_externa', models.CharField(max_length=5, blank=True, verbose_name='Número', null=True)),
('ano_origem_externa', models.SmallIntegerField(null=True, verbose_name='Ano', blank=True)), ('ano_origem_externa', models.SmallIntegerField(blank=True, verbose_name='Ano', null=True)),
('data_origem_externa', models.DateField(null=True, verbose_name='Data', blank=True)), ('data_origem_externa', models.DateField(blank=True, verbose_name='Data', null=True)),
('apelido', models.CharField(max_length=50, null=True, verbose_name='Apelido', blank=True)), ('apelido', models.CharField(max_length=50, blank=True, verbose_name='Apelido', null=True)),
('dias_prazo', models.IntegerField(null=True, verbose_name='Dias Prazo', blank=True)), ('dias_prazo', models.IntegerField(blank=True, verbose_name='Dias Prazo', null=True)),
('data_fim_prazo', models.DateField(null=True, verbose_name='Data Fim Prazo', blank=True)), ('data_fim_prazo', models.DateField(blank=True, verbose_name='Data Fim Prazo', null=True)),
('em_tramitacao', models.BooleanField(verbose_name='Em Tramita\xe7\xe3o?')), ('em_tramitacao', models.BooleanField(verbose_name='Em Tramitação?')),
('polemica', models.NullBooleanField(verbose_name='Mat\xe9ria Pol\xeamica?')), ('polemica', models.NullBooleanField(verbose_name='Matéria Polêmica?')),
('objeto', models.CharField(max_length=150, null=True, verbose_name='Objeto', blank=True)), ('objeto', models.CharField(max_length=150, blank=True, verbose_name='Objeto', null=True)),
('complementar', models.NullBooleanField(verbose_name='\xc9 Complementar?')), ('complementar', models.NullBooleanField(verbose_name='É Complementar?')),
('ementa', models.TextField(verbose_name='Ementa')), ('ementa', models.TextField(verbose_name='Ementa')),
('indexacao', models.TextField(null=True, verbose_name='Indexa\xe7\xe3o', blank=True)), ('indexacao', models.TextField(blank=True, verbose_name='Indexação', null=True)),
('observacao', models.TextField(null=True, verbose_name='Observa\xe7\xe3o', blank=True)), ('observacao', models.TextField(blank=True, verbose_name='Observação', null=True)),
('resultado', models.TextField(null=True, blank=True)), ('resultado', models.TextField(blank=True, null=True)),
('anexadas', models.ManyToManyField(related_name='anexo_de', through='materia.Anexada', to='materia.MateriaLegislativa')), ('anexadas', models.ManyToManyField(to='materia.MateriaLegislativa', through='materia.Anexada', related_name='anexo_de')),
], ],
options={ options={
'verbose_name': 'Mat\xe9ria Legislativa', 'verbose_name': 'Matéria Legislativa',
'verbose_name_plural': 'Mat\xe9rias Legislativas', 'verbose_name_plural': 'Matérias Legislativas',
}, },
), ),
migrations.CreateModel( migrations.CreateModel(
name='Numeracao', name='Numeracao',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(serialize=False, primary_key=True, auto_created=True, verbose_name='ID')),
('numero_ordem', models.IntegerField()), ('numero_ordem', models.IntegerField()),
('numero_materia', models.CharField(max_length=5, verbose_name='N\xfamero')), ('numero_materia', models.CharField(max_length=5, verbose_name='Número')),
('ano_materia', models.SmallIntegerField(verbose_name='Ano')), ('ano_materia', models.SmallIntegerField(verbose_name='Ano')),
('data_materia', models.DateField(null=True, verbose_name='Data', blank=True)), ('data_materia', models.DateField(blank=True, verbose_name='Data', null=True)),
('materia', models.ForeignKey(to='materia.MateriaLegislativa')), ('materia', models.ForeignKey(to='materia.MateriaLegislativa')),
], ],
options={ options={
'verbose_name': 'Numera\xe7\xe3o', 'verbose_name': 'Numeração',
'verbose_name_plural': 'Numera\xe7\xf5es', 'verbose_name_plural': 'Numerações',
}, },
), ),
migrations.CreateModel( migrations.CreateModel(
name='Orgao', name='Orgao',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(serialize=False, primary_key=True, auto_created=True, verbose_name='ID')),
('nome', models.CharField(max_length=60, verbose_name='Nome')), ('nome', models.CharField(max_length=60, verbose_name='Nome')),
('sigla', models.CharField(max_length=10, verbose_name='Sigla')), ('sigla', models.CharField(max_length=10, verbose_name='Sigla')),
('unidade_deliberativa', models.BooleanField(verbose_name='Unidade Deliberativa')), ('unidade_deliberativa', models.BooleanField(verbose_name='Unidade Deliberativa')),
('endereco', models.CharField(max_length=100, null=True, verbose_name='Endere\xe7o', blank=True)), ('endereco', models.CharField(max_length=100, blank=True, verbose_name='Endereço', null=True)),
('telefone', models.CharField(max_length=50, null=True, verbose_name='Telefone', blank=True)), ('telefone', models.CharField(max_length=50, blank=True, verbose_name='Telefone', null=True)),
], ],
options={ options={
'verbose_name': '\xd3rg\xe3o', 'verbose_name': 'Órgão',
'verbose_name_plural': '\xd3rg\xe3os', 'verbose_name_plural': 'Órgãos',
}, },
), ),
migrations.CreateModel( migrations.CreateModel(
name='Origem', name='Origem',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(serialize=False, primary_key=True, auto_created=True, verbose_name='ID')),
('sigla', models.CharField(max_length=10, verbose_name='Sigla')), ('sigla', models.CharField(max_length=10, verbose_name='Sigla')),
('nome', models.CharField(max_length=50, verbose_name='Nome')), ('nome', models.CharField(max_length=50, verbose_name='Nome')),
], ],
@ -190,10 +190,10 @@ class Migration(migrations.Migration):
migrations.CreateModel( migrations.CreateModel(
name='Parecer', name='Parecer',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(serialize=False, primary_key=True, auto_created=True, verbose_name='ID')),
('tipo_conclusao', models.CharField(max_length=3, null=True, blank=True)), ('tipo_conclusao', models.CharField(max_length=3, blank=True, null=True)),
('tipo_apresentacao', models.CharField(max_length=1, choices=[(b'O', 'Oral'), (b'E', 'Escrita')])), ('tipo_apresentacao', models.CharField(max_length=1, choices=[('O', 'Oral'), ('E', 'Escrita')])),
('parecer', models.TextField(null=True, blank=True)), ('parecer', models.TextField(blank=True, null=True)),
('materia', models.ForeignKey(to='materia.MateriaLegislativa')), ('materia', models.ForeignKey(to='materia.MateriaLegislativa')),
], ],
options={ options={
@ -204,42 +204,42 @@ class Migration(migrations.Migration):
migrations.CreateModel( migrations.CreateModel(
name='Proposicao', name='Proposicao',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(serialize=False, primary_key=True, auto_created=True, verbose_name='ID')),
('data_envio', models.DateTimeField(null=True, verbose_name='Data de Envio')), ('data_envio', models.DateTimeField(verbose_name='Data de Envio', null=True)),
('data_recebimento', models.DateTimeField(null=True, verbose_name='Data de Incorpora\xe7\xe3o', blank=True)), ('data_recebimento', models.DateTimeField(blank=True, verbose_name='Data de Incorporação', null=True)),
('descricao', models.CharField(max_length=100, verbose_name='Descri\xe7\xe3o')), ('descricao', models.CharField(max_length=100, verbose_name='Descrição')),
('data_devolucao', models.DateTimeField(null=True, verbose_name='Data de devolu\xe7\xe3o', blank=True)), ('data_devolucao', models.DateTimeField(blank=True, verbose_name='Data de devolução', null=True)),
('justificativa_devolucao', models.CharField(max_length=200, null=True, verbose_name='Justificativa da Devolu\xe7\xe3o', blank=True)), ('justificativa_devolucao', models.CharField(max_length=200, blank=True, verbose_name='Justificativa da Devolução', null=True)),
('numero_proposicao', models.IntegerField(null=True, verbose_name='', blank=True)), ('numero_proposicao', models.IntegerField(blank=True, verbose_name='', null=True)),
('autor', models.ForeignKey(to='materia.Autor')), ('autor', models.ForeignKey(to='materia.Autor')),
('documento', models.ForeignKey(verbose_name='Documento', blank=True, to='materia.DocumentoAcessorio', null=True)), ('documento', models.ForeignKey(to='materia.DocumentoAcessorio', blank=True, null=True, verbose_name='Documento')),
('materia', models.ForeignKey(verbose_name='Mat\xe9ria', blank=True, to='materia.MateriaLegislativa', null=True)), ('materia', models.ForeignKey(to='materia.MateriaLegislativa', blank=True, null=True, verbose_name='Matéria')),
], ],
options={ options={
'verbose_name': 'Proposi\xe7\xe3o', 'verbose_name': 'Proposição',
'verbose_name_plural': 'Proposi\xe7\xf5es', 'verbose_name_plural': 'Proposições',
}, },
), ),
migrations.CreateModel( migrations.CreateModel(
name='RegimeTramitacao', name='RegimeTramitacao',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(serialize=False, primary_key=True, auto_created=True, verbose_name='ID')),
('descricao', models.CharField(max_length=50)), ('descricao', models.CharField(max_length=50)),
], ],
options={ options={
'verbose_name': 'Regime Tramita\xe7\xe3o', 'verbose_name': 'Regime Tramitação',
'verbose_name_plural': 'Regimes Tramita\xe7\xe3o', 'verbose_name_plural': 'Regimes Tramitação',
}, },
), ),
migrations.CreateModel( migrations.CreateModel(
name='Relatoria', name='Relatoria',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(serialize=False, primary_key=True, auto_created=True, verbose_name='ID')),
('data_designacao_relator', models.DateField(verbose_name='Data Designa\xe7\xe3o')), ('data_designacao_relator', models.DateField(verbose_name='Data Designação')),
('data_destituicao_relator', models.DateField(null=True, verbose_name='Data Destitui\xe7\xe3o', blank=True)), ('data_destituicao_relator', models.DateField(blank=True, verbose_name='Data Destituição', null=True)),
('comissao', models.ForeignKey(verbose_name='Localiza\xe7\xe3o Atual', blank=True, to='comissoes.Comissao', null=True)), ('comissao', models.ForeignKey(to='comissoes.Comissao', blank=True, null=True, verbose_name='Localização Atual')),
('materia', models.ForeignKey(to='materia.MateriaLegislativa')), ('materia', models.ForeignKey(to='materia.MateriaLegislativa')),
('parlamentar', models.ForeignKey(verbose_name='Parlamentar', to='parlamentares.Parlamentar')), ('parlamentar', models.ForeignKey(to='parlamentares.Parlamentar', verbose_name='Parlamentar')),
], ],
options={ options={
'verbose_name': 'Relatoria', 'verbose_name': 'Relatoria',
@ -249,21 +249,21 @@ class Migration(migrations.Migration):
migrations.CreateModel( migrations.CreateModel(
name='StatusTramitacao', name='StatusTramitacao',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(serialize=False, primary_key=True, auto_created=True, verbose_name='ID')),
('sigla', models.CharField(max_length=10, verbose_name='Sigla')), ('sigla', models.CharField(max_length=10, verbose_name='Sigla')),
('descricao', models.CharField(max_length=60, verbose_name='Descri\xe7\xe3o')), ('descricao', models.CharField(max_length=60, verbose_name='Descrição')),
('indicador', models.CharField(max_length=1, verbose_name='Indicador da Tramita\xe7\xe3o', choices=[(b'F', 'Fim'), (b'R', 'Retorno')])), ('indicador', models.CharField(max_length=1, choices=[('F', 'Fim'), ('R', 'Retorno')], verbose_name='Indicador da Tramitação')),
], ],
options={ options={
'verbose_name': 'Status de Tramita\xe7\xe3o', 'verbose_name': 'Status de Tramitação',
'verbose_name_plural': 'Status de Tramita\xe7\xe3o', 'verbose_name_plural': 'Status de Tramitação',
}, },
), ),
migrations.CreateModel( migrations.CreateModel(
name='TipoAutor', name='TipoAutor',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(serialize=False, primary_key=True, auto_created=True, verbose_name='ID')),
('descricao', models.CharField(max_length=50, verbose_name='Descri\xe7\xe3o')), ('descricao', models.CharField(max_length=50, verbose_name='Descrição')),
], ],
options={ options={
'verbose_name': 'Tipo de Autor', 'verbose_name': 'Tipo de Autor',
@ -273,7 +273,7 @@ class Migration(migrations.Migration):
migrations.CreateModel( migrations.CreateModel(
name='TipoDocumento', name='TipoDocumento',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(serialize=False, primary_key=True, auto_created=True, verbose_name='ID')),
('descricao', models.CharField(max_length=50, verbose_name='Tipo Documento')), ('descricao', models.CharField(max_length=50, verbose_name='Tipo Documento')),
], ],
options={ options={
@ -284,7 +284,7 @@ class Migration(migrations.Migration):
migrations.CreateModel( migrations.CreateModel(
name='TipoFimRelatoria', name='TipoFimRelatoria',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(serialize=False, primary_key=True, auto_created=True, verbose_name='ID')),
('descricao', models.CharField(max_length=50, verbose_name='Tipo Fim Relatoria')), ('descricao', models.CharField(max_length=50, verbose_name='Tipo Fim Relatoria')),
], ],
options={ options={
@ -295,83 +295,83 @@ class Migration(migrations.Migration):
migrations.CreateModel( migrations.CreateModel(
name='TipoMateriaLegislativa', name='TipoMateriaLegislativa',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(serialize=False, primary_key=True, auto_created=True, verbose_name='ID')),
('sigla', models.CharField(max_length=5, verbose_name='Sigla')), ('sigla', models.CharField(max_length=5, verbose_name='Sigla')),
('descricao', models.CharField(max_length=50, verbose_name='Descri\xe7\xe3o ')), ('descricao', models.CharField(max_length=50, verbose_name='Descrição ')),
('num_automatica', models.BooleanField()), ('num_automatica', models.BooleanField()),
('quorum_minimo_votacao', models.IntegerField()), ('quorum_minimo_votacao', models.IntegerField()),
], ],
options={ options={
'verbose_name': 'Tipo de Mat\xe9ria Legislativa', 'verbose_name': 'Tipo de Matéria Legislativa',
'verbose_name_plural': 'Tipos de Mat\xe9rias Legislativas', 'verbose_name_plural': 'Tipos de Matérias Legislativas',
}, },
), ),
migrations.CreateModel( migrations.CreateModel(
name='TipoProposicao', name='TipoProposicao',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(serialize=False, primary_key=True, auto_created=True, verbose_name='ID')),
('descricao', models.CharField(max_length=50, verbose_name='Descri\xe7\xe3o')), ('descricao', models.CharField(max_length=50, verbose_name='Descrição')),
('materia_ou_documento', models.CharField(max_length=1, verbose_name='Gera', choices=[(b'M', 'Mat\xe9ria'), (b'D', 'Documento')])), ('materia_ou_documento', models.CharField(max_length=1, choices=[('M', 'Matéria'), ('D', 'Documento')], verbose_name='Gera')),
('modelo', models.CharField(max_length=50, verbose_name='Modelo XML')), ('modelo', models.CharField(max_length=50, verbose_name='Modelo XML')),
('tipo_documento', models.ForeignKey(verbose_name='Tipo Documento', blank=True, to='materia.TipoDocumento', null=True)), ('tipo_documento', models.ForeignKey(to='materia.TipoDocumento', blank=True, null=True, verbose_name='Tipo Documento')),
('tipo_materia', models.ForeignKey(verbose_name='Tipo Mat\xe9ria', blank=True, to='materia.TipoMateriaLegislativa', null=True)), ('tipo_materia', models.ForeignKey(to='materia.TipoMateriaLegislativa', blank=True, null=True, verbose_name='Tipo Matéria')),
], ],
options={ options={
'verbose_name': 'Tipo de Proposi\xe7\xe3o', 'verbose_name': 'Tipo de Proposição',
'verbose_name_plural': 'Tipos de Proposi\xe7\xf5es', 'verbose_name_plural': 'Tipos de Proposições',
}, },
), ),
migrations.CreateModel( migrations.CreateModel(
name='Tramitacao', name='Tramitacao',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(serialize=False, primary_key=True, auto_created=True, verbose_name='ID')),
('data_tramitacao', models.DateField(null=True, verbose_name='Data Tramita\xe7\xe3o', blank=True)), ('data_tramitacao', models.DateField(blank=True, verbose_name='Data Tramitação', null=True)),
('data_encaminhamento', models.DateField(null=True, verbose_name='Data Encaminhamento', blank=True)), ('data_encaminhamento', models.DateField(blank=True, verbose_name='Data Encaminhamento', null=True)),
('ultima', models.BooleanField()), ('ultima', models.BooleanField()),
('urgente', models.BooleanField(verbose_name='Urgente ?')), ('urgente', models.BooleanField(verbose_name='Urgente ?')),
('turno', models.CharField(blank=True, max_length=1, null=True, verbose_name='Turno', choices=[(b'P', 'Primeiro'), (b'S', 'Segundo'), (b'\xc3\x9a', '\xdanico'), (b'L', 'Suplementar'), (b'F', 'Final'), (b'A', 'Vota\xe7\xe3o \xfanica em Regime de Urg\xeancia'), (b'B', '1\xaa Vota\xe7\xe3o'), (b'C', '2\xaa e 3\xaa Vota\xe7\xe3o')])), ('turno', models.CharField(max_length=1, choices=[('P', 'Primeiro'), ('S', 'Segundo'), ('Ú', 'Único'), ('L', 'Suplementar'), ('F', 'Final'), ('A', 'Votação única em Regime de Urgência'), ('B', '1ª Votação'), ('C', '2ª e 3ª Votação')], blank=True, verbose_name='Turno', null=True)),
('texto', models.TextField(null=True, verbose_name='Texto da A\xe7\xe3o', blank=True)), ('texto', models.TextField(blank=True, verbose_name='Texto da Ação', null=True)),
('data_fim_prazo', models.DateField(null=True, verbose_name='Data Fim Prazo', blank=True)), ('data_fim_prazo', models.DateField(blank=True, verbose_name='Data Fim Prazo', null=True)),
('materia', models.ForeignKey(to='materia.MateriaLegislativa')), ('materia', models.ForeignKey(to='materia.MateriaLegislativa')),
('status', models.ForeignKey(verbose_name='Status', blank=True, to='materia.StatusTramitacao', null=True)), ('status', models.ForeignKey(to='materia.StatusTramitacao', blank=True, null=True, verbose_name='Status')),
], ],
options={ options={
'verbose_name': 'Tramita\xe7\xe3o', 'verbose_name': 'Tramitação',
'verbose_name_plural': 'Tramita\xe7\xf5es', 'verbose_name_plural': 'Tramitações',
}, },
), ),
migrations.CreateModel( migrations.CreateModel(
name='UnidadeTramitacao', name='UnidadeTramitacao',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(serialize=False, primary_key=True, auto_created=True, verbose_name='ID')),
('comissao', models.ForeignKey(verbose_name='Comiss\xe3o', blank=True, to='comissoes.Comissao', null=True)), ('comissao', models.ForeignKey(to='comissoes.Comissao', blank=True, null=True, verbose_name='Comissão')),
('orgao', models.ForeignKey(verbose_name='\xd3rg\xe3o', blank=True, to='materia.Orgao', null=True)), ('orgao', models.ForeignKey(to='materia.Orgao', blank=True, null=True, verbose_name='Órgão')),
('parlamentar', models.ForeignKey(verbose_name='Parlamentar', blank=True, to='parlamentares.Parlamentar', null=True)), ('parlamentar', models.ForeignKey(to='parlamentares.Parlamentar', blank=True, null=True, verbose_name='Parlamentar')),
], ],
options={ options={
'verbose_name': 'Unidade de Tramita\xe7\xe3o', 'verbose_name': 'Unidade de Tramitação',
'verbose_name_plural': 'Unidades de Tramita\xe7\xe3o', 'verbose_name_plural': 'Unidades de Tramitação',
}, },
), ),
migrations.AddField( migrations.AddField(
model_name='tramitacao', model_name='tramitacao',
name='unidade_tramitacao_destino', name='unidade_tramitacao_destino',
field=models.ForeignKey(related_name='+', verbose_name='Unidade Destino', blank=True, to='materia.UnidadeTramitacao', null=True), field=models.ForeignKey(to='materia.UnidadeTramitacao', blank=True, null=True, related_name='+', verbose_name='Unidade Destino'),
), ),
migrations.AddField( migrations.AddField(
model_name='tramitacao', model_name='tramitacao',
name='unidade_tramitacao_local', name='unidade_tramitacao_local',
field=models.ForeignKey(related_name='+', verbose_name='Unidade Local', blank=True, to='materia.UnidadeTramitacao', null=True), field=models.ForeignKey(to='materia.UnidadeTramitacao', blank=True, null=True, related_name='+', verbose_name='Unidade Local'),
), ),
migrations.AddField( migrations.AddField(
model_name='relatoria', model_name='relatoria',
name='tipo_fim_relatoria', name='tipo_fim_relatoria',
field=models.ForeignKey(verbose_name='Motivo Fim Relatoria', blank=True, to='materia.TipoFimRelatoria', null=True), field=models.ForeignKey(to='materia.TipoFimRelatoria', blank=True, null=True, verbose_name='Motivo Fim Relatoria'),
), ),
migrations.AddField( migrations.AddField(
model_name='proposicao', model_name='proposicao',
name='tipo', name='tipo',
field=models.ForeignKey(verbose_name='Tipo', to='materia.TipoProposicao'), field=models.ForeignKey(to='materia.TipoProposicao', verbose_name='Tipo'),
), ),
migrations.AddField( migrations.AddField(
model_name='parecer', model_name='parecer',
@ -381,27 +381,27 @@ class Migration(migrations.Migration):
migrations.AddField( migrations.AddField(
model_name='numeracao', model_name='numeracao',
name='tipo_materia', name='tipo_materia',
field=models.ForeignKey(verbose_name='Tipo de Mat\xe9ria', to='materia.TipoMateriaLegislativa'), field=models.ForeignKey(to='materia.TipoMateriaLegislativa', verbose_name='Tipo de Matéria'),
), ),
migrations.AddField( migrations.AddField(
model_name='materialegislativa', model_name='materialegislativa',
name='local_origem_externa', name='local_origem_externa',
field=models.ForeignKey(verbose_name='Local Origem', blank=True, to='materia.Origem', null=True), field=models.ForeignKey(to='materia.Origem', blank=True, null=True, verbose_name='Local Origem'),
), ),
migrations.AddField( migrations.AddField(
model_name='materialegislativa', model_name='materialegislativa',
name='regime_tramitacao', name='regime_tramitacao',
field=models.ForeignKey(verbose_name='Regime Tramita\xe7\xe3o', to='materia.RegimeTramitacao'), field=models.ForeignKey(to='materia.RegimeTramitacao', verbose_name='Regime Tramitação'),
), ),
migrations.AddField( migrations.AddField(
model_name='materialegislativa', model_name='materialegislativa',
name='tipo_id_basica', name='tipo',
field=models.ForeignKey(verbose_name='Tipo', to='materia.TipoMateriaLegislativa'), field=models.ForeignKey(to='materia.TipoMateriaLegislativa', verbose_name='Tipo'),
), ),
migrations.AddField( migrations.AddField(
model_name='materialegislativa', model_name='materialegislativa',
name='tipo_origem_externa', name='tipo_origem_externa',
field=models.ForeignKey(related_name='+', verbose_name='Tipo', blank=True, to='materia.TipoMateriaLegislativa', null=True), field=models.ForeignKey(to='materia.TipoMateriaLegislativa', blank=True, null=True, related_name='+', verbose_name='Tipo'),
), ),
migrations.AddField( migrations.AddField(
model_name='materiaassunto', model_name='materiaassunto',
@ -416,7 +416,7 @@ class Migration(migrations.Migration):
migrations.AddField( migrations.AddField(
model_name='documentoacessorio', model_name='documentoacessorio',
name='tipo', name='tipo',
field=models.ForeignKey(verbose_name='Tipo', to='materia.TipoDocumento'), field=models.ForeignKey(to='materia.TipoDocumento', verbose_name='Tipo'),
), ),
migrations.AddField( migrations.AddField(
model_name='despachoinicial', model_name='despachoinicial',
@ -431,7 +431,7 @@ class Migration(migrations.Migration):
migrations.AddField( migrations.AddField(
model_name='autor', model_name='autor',
name='tipo', name='tipo',
field=models.ForeignKey(verbose_name='Tipo', to='materia.TipoAutor'), field=models.ForeignKey(to='materia.TipoAutor', verbose_name='Tipo'),
), ),
migrations.AddField( migrations.AddField(
model_name='anexada', model_name='anexada',

29
materia/migrations/0002_auto_20150707_0945.py

@ -1,29 +0,0 @@
# -*- coding: utf-8 -*-
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('materia', '0001_initial'),
]
operations = [
migrations.RenameField(
model_name='materialegislativa',
old_name='ano_ident_basica',
new_name='ano',
),
migrations.RenameField(
model_name='materialegislativa',
old_name='numero_ident_basica',
new_name='numero',
),
migrations.RenameField(
model_name='materialegislativa',
old_name='tipo_id_basica',
new_name='tipo',
),
]

84
norma/migrations/0001_initial.py

@ -1,5 +1,5 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations from django.db import models, migrations
@ -14,9 +14,9 @@ class Migration(migrations.Migration):
migrations.CreateModel( migrations.CreateModel(
name='AssuntoNorma', name='AssuntoNorma',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(serialize=False, primary_key=True, auto_created=True, verbose_name='ID')),
('assunto', models.CharField(max_length=50, verbose_name='Assunto')), ('assunto', models.CharField(max_length=50, verbose_name='Assunto')),
('descricao', models.CharField(max_length=250, null=True, verbose_name='Descri\xe7\xe3o', blank=True)), ('descricao', models.CharField(max_length=250, blank=True, verbose_name='Descrição', null=True)),
], ],
options={ options={
'verbose_name': 'Assunto de Norma', 'verbose_name': 'Assunto de Norma',
@ -26,82 +26,82 @@ class Migration(migrations.Migration):
migrations.CreateModel( migrations.CreateModel(
name='LegislacaoCitada', name='LegislacaoCitada',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(serialize=False, primary_key=True, auto_created=True, verbose_name='ID')),
('disposicoes', models.CharField(max_length=15, null=True, verbose_name='Disposi\xe7\xe3o', blank=True)), ('disposicoes', models.CharField(max_length=15, blank=True, verbose_name='Disposição', null=True)),
('parte', models.CharField(max_length=8, null=True, verbose_name='Parte', blank=True)), ('parte', models.CharField(max_length=8, blank=True, verbose_name='Parte', null=True)),
('livro', models.CharField(max_length=7, null=True, verbose_name='Livro', blank=True)), ('livro', models.CharField(max_length=7, blank=True, verbose_name='Livro', null=True)),
('titulo', models.CharField(max_length=7, null=True, verbose_name='T\xedtulo', blank=True)), ('titulo', models.CharField(max_length=7, blank=True, verbose_name='Título', null=True)),
('capitulo', models.CharField(max_length=7, null=True, verbose_name='Cap\xedtulo', blank=True)), ('capitulo', models.CharField(max_length=7, blank=True, verbose_name='Capítulo', null=True)),
('secao', models.CharField(max_length=7, null=True, verbose_name='Se\xe7\xe3o', blank=True)), ('secao', models.CharField(max_length=7, blank=True, verbose_name='Seção', null=True)),
('subsecao', models.CharField(max_length=7, null=True, verbose_name='Subse\xe7\xe3o', blank=True)), ('subsecao', models.CharField(max_length=7, blank=True, verbose_name='Subseção', null=True)),
('artigo', models.CharField(max_length=4, null=True, verbose_name='Artigo', blank=True)), ('artigo', models.CharField(max_length=4, blank=True, verbose_name='Artigo', null=True)),
('paragrafo', models.CharField(max_length=3, null=True, verbose_name='Par\xe1grafo', blank=True)), ('paragrafo', models.CharField(max_length=3, blank=True, verbose_name='Parágrafo', null=True)),
('inciso', models.CharField(max_length=10, null=True, verbose_name='Inciso', blank=True)), ('inciso', models.CharField(max_length=10, blank=True, verbose_name='Inciso', null=True)),
('alinea', models.CharField(max_length=3, null=True, verbose_name='Al\xednea', blank=True)), ('alinea', models.CharField(max_length=3, blank=True, verbose_name='Alínea', null=True)),
('item', models.CharField(max_length=3, null=True, verbose_name='Item', blank=True)), ('item', models.CharField(max_length=3, blank=True, verbose_name='Item', null=True)),
('materia', models.ForeignKey(to='materia.MateriaLegislativa')), ('materia', models.ForeignKey(to='materia.MateriaLegislativa')),
], ],
options={ options={
'verbose_name': 'Mat\xe9ria Legislativa', 'verbose_name': 'Matéria Legislativa',
'verbose_name_plural': 'Mat\xe9rias Legislativas', 'verbose_name_plural': 'Matérias Legislativas',
}, },
), ),
migrations.CreateModel( migrations.CreateModel(
name='NormaJuridica', name='NormaJuridica',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(serialize=False, primary_key=True, auto_created=True, verbose_name='ID')),
('numero', models.IntegerField(verbose_name='N\xfamero')), ('numero', models.IntegerField(verbose_name='Número')),
('ano', models.SmallIntegerField(verbose_name='Ano')), ('ano', models.SmallIntegerField(verbose_name='Ano')),
('esfera_federacao', models.CharField(max_length=1, verbose_name='Esfera Federa\xe7\xe3o', choices=[(b'M', 'Municipal'), (b'E', 'Estadual'), (b'F', 'Federal')])), ('esfera_federacao', models.CharField(max_length=1, choices=[('E', 'Estadual'), ('F', 'Federal'), ('M', 'Municipal')], verbose_name='Esfera Federação')),
('data', models.DateField(null=True, verbose_name='Data', blank=True)), ('data', models.DateField(blank=True, verbose_name='Data', null=True)),
('data_publicacao', models.DateField(null=True, verbose_name='Data Publica\xe7\xe3o', blank=True)), ('data_publicacao', models.DateField(blank=True, verbose_name='Data Publicação', null=True)),
('veiculo_publicacao', models.CharField(max_length=30, null=True, verbose_name='Ve\xedculo Publica\xe7\xe3o', blank=True)), ('veiculo_publicacao', models.CharField(max_length=30, blank=True, verbose_name='Veículo Publicação', null=True)),
('pagina_inicio_publicacao', models.IntegerField(null=True, verbose_name='Pg. In\xedcio', blank=True)), ('pagina_inicio_publicacao', models.IntegerField(blank=True, verbose_name='Pg. Início', null=True)),
('pagina_fim_publicacao', models.IntegerField(null=True, verbose_name='Pg. Fim', blank=True)), ('pagina_fim_publicacao', models.IntegerField(blank=True, verbose_name='Pg. Fim', null=True)),
('ementa', models.TextField(verbose_name='Ementa')), ('ementa', models.TextField(verbose_name='Ementa')),
('indexacao', models.TextField(null=True, verbose_name='Indexa\xe7\xe3o', blank=True)), ('indexacao', models.TextField(blank=True, verbose_name='Indexação', null=True)),
('observacao', models.TextField(null=True, verbose_name='Observa\xe7\xe3o', blank=True)), ('observacao', models.TextField(blank=True, verbose_name='Observação', null=True)),
('complemento', models.NullBooleanField(verbose_name='Complementar ?')), ('complemento', models.NullBooleanField(verbose_name='Complementar ?')),
('data_vigencia', models.DateField(null=True, blank=True)), ('data_vigencia', models.DateField(blank=True, null=True)),
('timestamp', models.DateTimeField()), ('timestamp', models.DateTimeField()),
('assunto', models.ForeignKey(to='norma.AssuntoNorma')), ('assunto', models.ForeignKey(to='norma.AssuntoNorma')),
('materia', models.ForeignKey(blank=True, to='materia.MateriaLegislativa', null=True)), ('materia', models.ForeignKey(to='materia.MateriaLegislativa', blank=True, null=True)),
], ],
options={ options={
'verbose_name': 'Norma Jur\xeddica', 'verbose_name': 'Norma Jurídica',
'verbose_name_plural': 'Normas Jur\xeddicas', 'verbose_name_plural': 'Normas Jurídicas',
}, },
), ),
migrations.CreateModel( migrations.CreateModel(
name='TipoNormaJuridica', name='TipoNormaJuridica',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(serialize=False, primary_key=True, auto_created=True, verbose_name='ID')),
('equivalente_lexml', models.CharField(blank=True, max_length=50, null=True, verbose_name='Equivalente LexML', choices=[(b'constituicao', b'constituicao'), (b'ementa.constitucional', b'ementa.constitucional'), (b'lei.complementar', b'lei.complementar'), (b'lei.delegada', b'lei.delegada'), (b'lei', b'lei'), (b'decreto.lei', b'decreto.lei'), (b'medida.provisoria', b'medida.provisoria'), (b'decreto', b'decreto'), (b'lei.organica', b'lei.organica'), (b'emenda.lei.organica', b'emenda.lei.organica'), (b'decreto.legislativo', b'decreto.legislativo'), (b'resolucao', b'resolucao'), (b'regimento.interno', b'regimento.interno')])), ('equivalente_lexml', models.CharField(max_length=50, choices=[('constituicao', 'constituicao'), ('ementa.constitucional', 'ementa.constitucional'), ('lei.complementar', 'lei.complementar'), ('lei.delegada', 'lei.delegada'), ('lei', 'lei'), ('decreto.lei', 'decreto.lei'), ('medida.provisoria', 'medida.provisoria'), ('decreto', 'decreto'), ('lei.organica', 'lei.organica'), ('emenda.lei.organica', 'emenda.lei.organica'), ('decreto.legislativo', 'decreto.legislativo'), ('resolucao', 'resolucao'), ('regimento.interno', 'regimento.interno')], blank=True, verbose_name='Equivalente LexML', null=True)),
('sigla', models.CharField(max_length=3, verbose_name='Sigla')), ('sigla', models.CharField(max_length=3, verbose_name='Sigla')),
('descricao', models.CharField(max_length=50, verbose_name='Descri\xe7\xe3o')), ('descricao', models.CharField(max_length=50, verbose_name='Descrição')),
], ],
options={ options={
'verbose_name': 'Tipo de Norma Jur\xeddica', 'verbose_name': 'Tipo de Norma Jurídica',
'verbose_name_plural': 'Tipos de Norma Jur\xeddica', 'verbose_name_plural': 'Tipos de Norma Jurídica',
}, },
), ),
migrations.CreateModel( migrations.CreateModel(
name='VinculoNormaJuridica', name='VinculoNormaJuridica',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(serialize=False, primary_key=True, auto_created=True, verbose_name='ID')),
('tipo_vinculo', models.CharField(blank=True, max_length=1, null=True, choices=[(b'A', 'Altera a norma'), (b'R', 'Revoga a norma'), (b'P', 'Revoga parcialmente a norma'), (b'T', 'Revoga por consolida\xe7\xe3o a norma'), (b'C', 'Norma correlata'), (b'I', 'Suspende a execu\xe7\xe3o da norma'), (b'G', 'Regulamenta a norma')])), ('tipo_vinculo', models.CharField(max_length=1, choices=[('A', 'Altera a norma'), ('R', 'Revoga a norma'), ('P', 'Revoga parcialmente a norma'), ('T', 'Revoga por consolidação a norma'), ('C', 'Norma correlata'), ('I', 'Suspende a execução da norma'), ('G', 'Regulamenta a norma')], blank=True, null=True)),
('norma_referente', models.ForeignKey(related_name='+', to='norma.NormaJuridica')), ('norma_referente', models.ForeignKey(related_name='+', to='norma.NormaJuridica')),
('norma_referida', models.ForeignKey(related_name='+', to='norma.NormaJuridica')), ('norma_referida', models.ForeignKey(related_name='+', to='norma.NormaJuridica')),
], ],
options={ options={
'verbose_name': 'V\xednculo entre Normas Jur\xeddicas', 'verbose_name': 'Vínculo entre Normas Jurídicas',
'verbose_name_plural': 'V\xednculos entre Normas Jur\xeddicas', 'verbose_name_plural': 'Vínculos entre Normas Jurídicas',
}, },
), ),
migrations.AddField( migrations.AddField(
model_name='normajuridica', model_name='normajuridica',
name='tipo', name='tipo',
field=models.ForeignKey(verbose_name='Tipo', to='norma.TipoNormaJuridica'), field=models.ForeignKey(to='norma.TipoNormaJuridica', verbose_name='Tipo'),
), ),
migrations.AddField( migrations.AddField(
model_name='legislacaocitada', model_name='legislacaocitada',

180
parlamentares/migrations/0001_initial.py

@ -1,5 +1,5 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations from django.db import models, migrations
@ -13,9 +13,9 @@ class Migration(migrations.Migration):
migrations.CreateModel( migrations.CreateModel(
name='CargoMesa', name='CargoMesa',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(serialize=False, primary_key=True, auto_created=True, verbose_name='ID')),
('descricao', models.CharField(max_length=50, verbose_name='Cargo na Mesa')), ('descricao', models.CharField(max_length=50, verbose_name='Cargo na Mesa')),
('unico', models.BooleanField(verbose_name='Cargo \xdanico')), ('unico', models.BooleanField(verbose_name='Cargo Único')),
], ],
options={ options={
'verbose_name': 'Cargo na Mesa', 'verbose_name': 'Cargo na Mesa',
@ -25,43 +25,47 @@ class Migration(migrations.Migration):
migrations.CreateModel( migrations.CreateModel(
name='Coligacao', name='Coligacao',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(serialize=False, primary_key=True, auto_created=True, verbose_name='ID')),
('nome', models.CharField(max_length=50, verbose_name='Nome')), ('nome', models.CharField(max_length=50, verbose_name='Nome')),
('numero_votos', models.IntegerField(null=True, verbose_name='N\xba Votos Recebidos', blank=True)), ('numero_votos', models.IntegerField(blank=True, verbose_name='Nº Votos Recebidos', null=True)),
], ],
options={ options={
'verbose_name': 'Coliga\xe7\xe3o', 'verbose_name': 'Coligação',
'verbose_name_plural': 'Coliga\xe7\xf5es', 'verbose_name_plural': 'Coligações',
}, },
), ),
migrations.CreateModel( migrations.CreateModel(
name='ComposicaoColigacao', name='ComposicaoColigacao',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(serialize=False, primary_key=True, auto_created=True, verbose_name='ID')),
('coligacao', models.ForeignKey(to='parlamentares.Coligacao')), ('coligacao', models.ForeignKey(to='parlamentares.Coligacao')),
], ],
options={
'verbose_name': 'Composição Coligação',
'verbose_name_plural': 'Composição Coligações',
},
), ),
migrations.CreateModel( migrations.CreateModel(
name='ComposicaoMesa', name='ComposicaoMesa',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(serialize=False, primary_key=True, auto_created=True, verbose_name='ID')),
('cargo', models.ForeignKey(to='parlamentares.CargoMesa')), ('cargo', models.ForeignKey(to='parlamentares.CargoMesa')),
], ],
options={ options={
'verbose_name': 'Ocupa\xe7\xe3o de cargo na Mesa', 'verbose_name': 'Ocupação de cargo na Mesa',
'verbose_name_plural': 'Ocupa\xe7\xf5es de cargo na Mesa', 'verbose_name_plural': 'Ocupações de cargo na Mesa',
}, },
), ),
migrations.CreateModel( migrations.CreateModel(
name='Dependente', name='Dependente',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(serialize=False, primary_key=True, auto_created=True, verbose_name='ID')),
('nome', models.CharField(max_length=50, verbose_name='Nome')), ('nome', models.CharField(max_length=50, verbose_name='Nome')),
('sexo', models.CharField(max_length=1, verbose_name='Sexo', choices=[(b'F', 'Feminino'), (b'M', 'Masculino')])), ('sexo', models.CharField(max_length=1, choices=[('F', 'Feminino'), ('M', 'Masculino')], verbose_name='Sexo')),
('data_nascimento', models.DateField(null=True, verbose_name='Data Nascimento', blank=True)), ('data_nascimento', models.DateField(blank=True, verbose_name='Data Nascimento', null=True)),
('cpf', models.CharField(max_length=14, null=True, verbose_name='CPF', blank=True)), ('cpf', models.CharField(max_length=14, blank=True, verbose_name='CPF', null=True)),
('rg', models.CharField(max_length=15, null=True, verbose_name='RG', blank=True)), ('rg', models.CharField(max_length=15, blank=True, verbose_name='RG', null=True)),
('titulo_eleitor', models.CharField(max_length=15, null=True, verbose_name='N\xba T\xedtulo Eleitor', blank=True)), ('titulo_eleitor', models.CharField(max_length=15, blank=True, verbose_name='Nº Título Eleitor', null=True)),
], ],
options={ options={
'verbose_name': 'Dependente', 'verbose_name': 'Dependente',
@ -71,22 +75,22 @@ class Migration(migrations.Migration):
migrations.CreateModel( migrations.CreateModel(
name='Filiacao', name='Filiacao',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(serialize=False, primary_key=True, auto_created=True, verbose_name='ID')),
('data', models.DateField(verbose_name='Data Filia\xe7\xe3o')), ('data', models.DateField(verbose_name='Data Filiação')),
('data_desfiliacao', models.DateField(null=True, verbose_name='Data Desfilia\xe7\xe3o', blank=True)), ('data_desfiliacao', models.DateField(blank=True, verbose_name='Data Desfiliação', null=True)),
], ],
options={ options={
'verbose_name': 'Filia\xe7\xe3o', 'verbose_name': 'Filiação',
'verbose_name_plural': 'Filia\xe7\xf5es', 'verbose_name_plural': 'Filiações',
}, },
), ),
migrations.CreateModel( migrations.CreateModel(
name='Legislatura', name='Legislatura',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(serialize=False, primary_key=True, auto_created=True, verbose_name='ID')),
('data_inicio', models.DateField(verbose_name='Data In\xedcio')), ('data_inicio', models.DateField(verbose_name='Data Início')),
('data_fim', models.DateField(verbose_name='Data Fim')), ('data_fim', models.DateField(verbose_name='Data Fim')),
('data_eleicao', models.DateField(verbose_name='Data Elei\xe7\xe3o')), ('data_eleicao', models.DateField(verbose_name='Data Eleição')),
], ],
options={ options={
'verbose_name': 'Legislatura', 'verbose_name': 'Legislatura',
@ -96,14 +100,14 @@ class Migration(migrations.Migration):
migrations.CreateModel( migrations.CreateModel(
name='Mandato', name='Mandato',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(serialize=False, primary_key=True, auto_created=True, verbose_name='ID')),
('tipo_causa_fim_mandato', models.IntegerField(null=True, blank=True)), ('tipo_causa_fim_mandato', models.IntegerField(blank=True, null=True)),
('data_fim_mandato', models.DateField(null=True, verbose_name='Fim do Mandato', blank=True)), ('data_fim_mandato', models.DateField(blank=True, verbose_name='Fim do Mandato', null=True)),
('votos_recebidos', models.IntegerField(null=True, verbose_name='Votos Recebidos', blank=True)), ('votos_recebidos', models.IntegerField(blank=True, verbose_name='Votos Recebidos', null=True)),
('data_expedicao_diploma', models.DateField(null=True, verbose_name='Expedi\xe7\xe3o do Diploma', blank=True)), ('data_expedicao_diploma', models.DateField(blank=True, verbose_name='Expedição do Diploma', null=True)),
('observacao', models.TextField(null=True, verbose_name='Observa\xe7\xe3o', blank=True)), ('observacao', models.TextField(blank=True, verbose_name='Observação', null=True)),
('coligacao', models.ForeignKey(verbose_name='Coliga\xe7\xe3o', blank=True, to='parlamentares.Coligacao', null=True)), ('coligacao', models.ForeignKey(to='parlamentares.Coligacao', blank=True, null=True, verbose_name='Coligação')),
('legislatura', models.ForeignKey(verbose_name='Legislatura', to='parlamentares.Legislatura')), ('legislatura', models.ForeignKey(to='parlamentares.Legislatura', verbose_name='Legislatura')),
], ],
options={ options={
'verbose_name': 'Mandato', 'verbose_name': 'Mandato',
@ -113,55 +117,55 @@ class Migration(migrations.Migration):
migrations.CreateModel( migrations.CreateModel(
name='Municipio', name='Municipio',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(serialize=False, primary_key=True, auto_created=True, verbose_name='ID')),
('nome', models.CharField(max_length=50, null=True, blank=True)), ('nome', models.CharField(max_length=50, blank=True, null=True)),
('uf', models.CharField(blank=True, max_length=2, null=True, choices=[(b'AC', 'Acre'), (b'AL', 'Alagoas'), (b'AP', 'Amap\xe1'), (b'AM', 'Amazonas'), (b'BA', 'Bahia'), (b'CE', 'Cear\xe1'), (b'DF', 'Distrito Federal'), (b'ES', 'Esp\xedrito Santo'), (b'GO', 'Goi\xe1s'), (b'MA', 'Maranh\xe3o'), (b'MT', 'Mato Grosso'), (b'MS', 'Mato Grosso do Sul'), (b'MG', 'Minas Gerais'), (b'PR', 'Paran\xe1'), (b'PB', 'Para\xedba'), (b'PA', 'Par\xe1'), (b'PE', 'Pernambuco'), (b'PI', 'Piau\xed'), (b'RJ', 'Rio de Janeiro'), (b'RN', 'Rio Grande do Norte'), (b'RS', 'Rio Grande do Sul'), (b'RO', 'Rond\xf4nia'), (b'RR', 'Roraima'), (b'SC', 'Santa Catarina'), (b'SE', 'Sergipe'), (b'SP', 'S\xe3o Paulo'), (b'TO', 'Tocantins'), (b'EX', 'Exterior')])), ('uf', models.CharField(max_length=2, choices=[('AC', 'Acre'), ('AL', 'Alagoas'), ('AP', 'Amapá'), ('AM', 'Amazonas'), ('BA', 'Bahia'), ('CE', 'Ceará'), ('DF', 'Distrito Federal'), ('ES', 'Espírito Santo'), ('GO', 'Goiás'), ('MA', 'Maranhão'), ('MT', 'Mato Grosso'), ('MS', 'Mato Grosso do Sul'), ('MG', 'Minas Gerais'), ('PR', 'Paraná'), ('PB', 'Paraíba'), ('PA', 'Pará'), ('PE', 'Pernambuco'), ('PI', 'Piauí'), ('RJ', 'Rio de Janeiro'), ('RN', 'Rio Grande do Norte'), ('RS', 'Rio Grande do Sul'), ('RO', 'Rondônia'), ('RR', 'Roraima'), ('SC', 'Santa Catarina'), ('SE', 'Sergipe'), ('SP', 'São Paulo'), ('TO', 'Tocantins'), ('EX', 'Exterior')], blank=True, null=True)),
('regiao', models.CharField(blank=True, max_length=2, null=True, choices=[(b'CO', 'Centro-Oeste'), (b'NE', 'Nordeste'), (b'NO', 'Norte'), (b'SE', 'Sudeste'), (b'SL', 'Sul'), (b'EX', 'Exterior')])), ('regiao', models.CharField(max_length=2, choices=[('CO', 'Centro-Oeste'), ('NE', 'Nordeste'), ('NO', 'Norte'), ('SE', 'Sudeste'), ('SL', 'Sul'), ('EX', 'Exterior')], blank=True, null=True)),
], ],
options={ options={
'verbose_name': 'Munic\xedpio', 'verbose_name': 'Município',
'verbose_name_plural': 'Munic\xedpios', 'verbose_name_plural': 'Municípios',
}, },
), ),
migrations.CreateModel( migrations.CreateModel(
name='NivelInstrucao', name='NivelInstrucao',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(serialize=False, primary_key=True, auto_created=True, verbose_name='ID')),
('descricao', models.CharField(max_length=50, verbose_name='N\xedvel de Instru\xe7\xe3o')), ('descricao', models.CharField(max_length=50, verbose_name='Nível de Instrução')),
], ],
options={ options={
'verbose_name': 'N\xedvel Instru\xe7\xe3o', 'verbose_name': 'Nível Instrução',
'verbose_name_plural': 'N\xedveis Instru\xe7\xe3o', 'verbose_name_plural': 'Níveis Instrução',
}, },
), ),
migrations.CreateModel( migrations.CreateModel(
name='Parlamentar', name='Parlamentar',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(serialize=False, primary_key=True, auto_created=True, verbose_name='ID')),
('nome_completo', models.CharField(max_length=50, verbose_name='Nome Completo')), ('nome_completo', models.CharField(max_length=50, verbose_name='Nome Completo')),
('nome_parlamentar', models.CharField(max_length=50, null=True, verbose_name='Nome Parlamentar', blank=True)), ('nome_parlamentar', models.CharField(max_length=50, blank=True, verbose_name='Nome Parlamentar', null=True)),
('sexo', models.CharField(max_length=1, verbose_name='Sexo', choices=[(b'F', 'Feminino'), (b'M', 'Masculino')])), ('sexo', models.CharField(max_length=1, choices=[('F', 'Feminino'), ('M', 'Masculino')], verbose_name='Sexo')),
('data_nascimento', models.DateField(null=True, verbose_name='Data Nascimento', blank=True)), ('data_nascimento', models.DateField(blank=True, verbose_name='Data Nascimento', null=True)),
('cpf', models.CharField(max_length=14, null=True, verbose_name='C.P.F', blank=True)), ('cpf', models.CharField(max_length=14, blank=True, verbose_name='C.P.F', null=True)),
('rg', models.CharField(max_length=15, null=True, verbose_name='R.G.', blank=True)), ('rg', models.CharField(max_length=15, blank=True, verbose_name='R.G.', null=True)),
('titulo_eleitor', models.CharField(max_length=15, null=True, verbose_name='T\xedtulo de Eleitor', blank=True)), ('titulo_eleitor', models.CharField(max_length=15, blank=True, verbose_name='Título de Eleitor', null=True)),
('cod_casa', models.IntegerField()), ('cod_casa', models.IntegerField()),
('numero_gab_parlamentar', models.CharField(max_length=10, null=True, verbose_name='N\xba Gabinete', blank=True)), ('numero_gab_parlamentar', models.CharField(max_length=10, blank=True, verbose_name='Nº Gabinete', null=True)),
('telefone', models.CharField(max_length=50, null=True, verbose_name='Telefone', blank=True)), ('telefone', models.CharField(max_length=50, blank=True, verbose_name='Telefone', null=True)),
('fax', models.CharField(max_length=50, null=True, verbose_name='Fax', blank=True)), ('fax', models.CharField(max_length=50, blank=True, verbose_name='Fax', null=True)),
('endereco_residencia', models.CharField(max_length=100, null=True, verbose_name='Endere\xe7o Residencial', blank=True)), ('endereco_residencia', models.CharField(max_length=100, blank=True, verbose_name='Endereço Residencial', null=True)),
('cep_residencia', models.CharField(max_length=9, null=True, verbose_name='CEP', blank=True)), ('cep_residencia', models.CharField(max_length=9, blank=True, verbose_name='CEP', null=True)),
('telefone_residencia', models.CharField(max_length=50, null=True, verbose_name='Telefone Residencial', blank=True)), ('telefone_residencia', models.CharField(max_length=50, blank=True, verbose_name='Telefone Residencial', null=True)),
('fax_residencia', models.CharField(max_length=50, null=True, verbose_name='Fax Residencial', blank=True)), ('fax_residencia', models.CharField(max_length=50, blank=True, verbose_name='Fax Residencial', null=True)),
('endereco_web', models.CharField(max_length=100, null=True, verbose_name='HomePage', blank=True)), ('endereco_web', models.CharField(max_length=100, blank=True, verbose_name='HomePage', null=True)),
('profissao', models.CharField(max_length=50, null=True, verbose_name='Profiss\xe3o', blank=True)), ('profissao', models.CharField(max_length=50, blank=True, verbose_name='Profissão', null=True)),
('email', models.CharField(max_length=100, null=True, verbose_name='Correio Eletr\xf4nico', blank=True)), ('email', models.CharField(max_length=100, blank=True, verbose_name='Correio Eletrônico', null=True)),
('locais_atuacao', models.CharField(max_length=100, null=True, verbose_name='Locais de Atua\xe7\xe3o', blank=True)), ('locais_atuacao', models.CharField(max_length=100, blank=True, verbose_name='Locais de Atuação', null=True)),
('ativo', models.BooleanField(verbose_name='Ativo na Casa?')), ('ativo', models.BooleanField(verbose_name='Ativo na Casa?')),
('biografia', models.TextField(null=True, verbose_name='Biografia', blank=True)), ('biografia', models.TextField(blank=True, verbose_name='Biografia', null=True)),
('unidade_deliberativa', models.BooleanField()), ('unidade_deliberativa', models.BooleanField()),
('municipio_residencia', models.ForeignKey(verbose_name='Munic\xedpio', blank=True, to='parlamentares.Municipio', null=True)), ('municipio_residencia', models.ForeignKey(to='parlamentares.Municipio', blank=True, null=True, verbose_name='Município')),
('nivel_instrucao', models.ForeignKey(verbose_name='N\xedvel Instru\xe7\xe3o', blank=True, to='parlamentares.NivelInstrucao', null=True)), ('nivel_instrucao', models.ForeignKey(to='parlamentares.NivelInstrucao', blank=True, null=True, verbose_name='Nível Instrução')),
], ],
options={ options={
'verbose_name': 'Parlamentar', 'verbose_name': 'Parlamentar',
@ -171,11 +175,11 @@ class Migration(migrations.Migration):
migrations.CreateModel( migrations.CreateModel(
name='Partido', name='Partido',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(serialize=False, primary_key=True, auto_created=True, verbose_name='ID')),
('sigla', models.CharField(max_length=9, verbose_name='Sigla')), ('sigla', models.CharField(max_length=9, verbose_name='Sigla')),
('nome', models.CharField(max_length=50, verbose_name='Nome')), ('nome', models.CharField(max_length=50, verbose_name='Nome')),
('data_criacao', models.DateField(null=True, verbose_name='Data Cria\xe7\xe3o', blank=True)), ('data_criacao', models.DateField(blank=True, verbose_name='Data Criação', null=True)),
('data_extincao', models.DateField(null=True, verbose_name='Data Extin\xe7\xe3o', blank=True)), ('data_extincao', models.DateField(blank=True, verbose_name='Data Extinção', null=True)),
], ],
options={ options={
'verbose_name': 'Partido', 'verbose_name': 'Partido',
@ -185,39 +189,39 @@ class Migration(migrations.Migration):
migrations.CreateModel( migrations.CreateModel(
name='SessaoLegislativa', name='SessaoLegislativa',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(serialize=False, primary_key=True, auto_created=True, verbose_name='ID')),
('numero', models.IntegerField(verbose_name='N\xfamero')), ('numero', models.IntegerField(verbose_name='Número')),
('tipo', models.CharField(max_length=1, verbose_name='Tipo', choices=[(b'O', 'Ordin\xe1ria'), (b'E', 'Extraordin\xe1ria')])), ('tipo', models.CharField(max_length=1, choices=[('O', 'Ordinária'), ('E', 'Extraordinária')], verbose_name='Tipo')),
('data_inicio', models.DateField(verbose_name='Data In\xedcio')), ('data_inicio', models.DateField(verbose_name='Data Início')),
('data_fim', models.DateField(verbose_name='Data Fim')), ('data_fim', models.DateField(verbose_name='Data Fim')),
('data_inicio_intervalo', models.DateField(null=True, verbose_name='In\xedcio Intervalo', blank=True)), ('data_inicio_intervalo', models.DateField(blank=True, verbose_name='Início Intervalo', null=True)),
('data_fim_intervalo', models.DateField(null=True, verbose_name='Fim Intervalo', blank=True)), ('data_fim_intervalo', models.DateField(blank=True, verbose_name='Fim Intervalo', null=True)),
('legislatura', models.ForeignKey(to='parlamentares.Legislatura')), ('legislatura', models.ForeignKey(to='parlamentares.Legislatura')),
], ],
options={ options={
'verbose_name': 'Sess\xe3o Legislativa', 'verbose_name': 'Sessão Legislativa',
'verbose_name_plural': 'Sess\xf5es Legislativas', 'verbose_name_plural': 'Sessões Legislativas',
}, },
), ),
migrations.CreateModel( migrations.CreateModel(
name='SituacaoMilitar', name='SituacaoMilitar',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(serialize=False, primary_key=True, auto_created=True, verbose_name='ID')),
('descricao', models.CharField(max_length=50, verbose_name='Situa\xe7\xe3o Militar')), ('descricao', models.CharField(max_length=50, verbose_name='Situação Militar')),
], ],
options={ options={
'verbose_name': 'Tipo Situa\xe7\xe3o Militar', 'verbose_name': 'Tipo Situação Militar',
'verbose_name_plural': 'Tipos Situa\xe7\xf5es Militares', 'verbose_name_plural': 'Tipos Situações Militares',
}, },
), ),
migrations.CreateModel( migrations.CreateModel(
name='TipoAfastamento', name='TipoAfastamento',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(serialize=False, primary_key=True, auto_created=True, verbose_name='ID')),
('descricao', models.CharField(max_length=50, verbose_name='Descri\xe7\xe3o')), ('descricao', models.CharField(max_length=50, verbose_name='Descrição')),
('afastamento', models.BooleanField(verbose_name='Indicador')), ('afastamento', models.BooleanField(verbose_name='Indicador')),
('fim_mandato', models.BooleanField(verbose_name='Indicador')), ('fim_mandato', models.BooleanField(verbose_name='Indicador')),
('dispositivo', models.CharField(max_length=50, null=True, verbose_name='Dispositivo', blank=True)), ('dispositivo', models.CharField(max_length=50, blank=True, verbose_name='Dispositivo', null=True)),
], ],
options={ options={
'verbose_name': 'Tipo de Afastamento', 'verbose_name': 'Tipo de Afastamento',
@ -227,7 +231,7 @@ class Migration(migrations.Migration):
migrations.CreateModel( migrations.CreateModel(
name='TipoDependente', name='TipoDependente',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(serialize=False, primary_key=True, auto_created=True, verbose_name='ID')),
('descricao', models.CharField(max_length=50)), ('descricao', models.CharField(max_length=50)),
], ],
options={ options={
@ -238,7 +242,7 @@ class Migration(migrations.Migration):
migrations.AddField( migrations.AddField(
model_name='parlamentar', model_name='parlamentar',
name='situacao_militar', name='situacao_militar',
field=models.ForeignKey(verbose_name='Situa\xe7\xe3o Militar', blank=True, to='parlamentares.SituacaoMilitar', null=True), field=models.ForeignKey(to='parlamentares.SituacaoMilitar', blank=True, null=True, verbose_name='Situação Militar'),
), ),
migrations.AddField( migrations.AddField(
model_name='mandato', model_name='mandato',
@ -248,7 +252,7 @@ class Migration(migrations.Migration):
migrations.AddField( migrations.AddField(
model_name='mandato', model_name='mandato',
name='tipo_afastamento', name='tipo_afastamento',
field=models.ForeignKey(blank=True, to='parlamentares.TipoAfastamento', null=True), field=models.ForeignKey(to='parlamentares.TipoAfastamento', blank=True, null=True),
), ),
migrations.AddField( migrations.AddField(
model_name='filiacao', model_name='filiacao',
@ -258,7 +262,7 @@ class Migration(migrations.Migration):
migrations.AddField( migrations.AddField(
model_name='filiacao', model_name='filiacao',
name='partido', name='partido',
field=models.ForeignKey(verbose_name='Partido', to='parlamentares.Partido'), field=models.ForeignKey(to='parlamentares.Partido', verbose_name='Partido'),
), ),
migrations.AddField( migrations.AddField(
model_name='dependente', model_name='dependente',
@ -268,7 +272,7 @@ class Migration(migrations.Migration):
migrations.AddField( migrations.AddField(
model_name='dependente', model_name='dependente',
name='tipo', name='tipo',
field=models.ForeignKey(verbose_name='Tipo', to='parlamentares.TipoDependente'), field=models.ForeignKey(to='parlamentares.TipoDependente', verbose_name='Tipo'),
), ),
migrations.AddField( migrations.AddField(
model_name='composicaomesa', model_name='composicaomesa',
@ -288,6 +292,6 @@ class Migration(migrations.Migration):
migrations.AddField( migrations.AddField(
model_name='coligacao', model_name='coligacao',
name='legislatura', name='legislatura',
field=models.ForeignKey(verbose_name='Legislatura', to='parlamentares.Legislatura'), field=models.ForeignKey(to='parlamentares.Legislatura', verbose_name='Legislatura'),
), ),
] ]

98
protocoloadm/migrations/0001_initial.py

@ -1,5 +1,5 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations from django.db import models, migrations
@ -14,34 +14,34 @@ class Migration(migrations.Migration):
migrations.CreateModel( migrations.CreateModel(
name='DocumentoAcessorioAdministrativo', name='DocumentoAcessorioAdministrativo',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(serialize=False, primary_key=True, auto_created=True, verbose_name='ID')),
('nome', models.CharField(max_length=30, verbose_name='Nome')), ('nome', models.CharField(max_length=30, verbose_name='Nome')),
('arquivo', models.CharField(max_length=100, verbose_name='Arquivo')), ('arquivo', models.CharField(max_length=100, verbose_name='Arquivo')),
('data', models.DateField(null=True, verbose_name='Data', blank=True)), ('data', models.DateField(blank=True, verbose_name='Data', null=True)),
('autor', models.CharField(max_length=50, null=True, verbose_name='Autor', blank=True)), ('autor', models.CharField(max_length=50, blank=True, verbose_name='Autor', null=True)),
('assunto', models.TextField(null=True, verbose_name='Assunto', blank=True)), ('assunto', models.TextField(blank=True, verbose_name='Assunto', null=True)),
('indexacao', models.TextField(null=True, blank=True)), ('indexacao', models.TextField(blank=True, null=True)),
], ],
options={ options={
'verbose_name': 'Documento Acess\xf3rio', 'verbose_name': 'Documento Acessório',
'verbose_name_plural': 'Documentos Acess\xf3rios', 'verbose_name_plural': 'Documentos Acessórios',
}, },
), ),
migrations.CreateModel( migrations.CreateModel(
name='DocumentoAdministrativo', name='DocumentoAdministrativo',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(serialize=False, primary_key=True, auto_created=True, verbose_name='ID')),
('numero', models.IntegerField(verbose_name='N\xfamero')), ('numero', models.IntegerField(verbose_name='Número')),
('ano', models.SmallIntegerField(verbose_name='Ano')), ('ano', models.SmallIntegerField(verbose_name='Ano')),
('data', models.DateField(verbose_name='Data')), ('data', models.DateField(verbose_name='Data')),
('numero_protocolo', models.IntegerField(null=True, verbose_name='N\xfam. Protocolo', blank=True)), ('numero_protocolo', models.IntegerField(blank=True, verbose_name='Núm. Protocolo', null=True)),
('interessado', models.CharField(max_length=50, null=True, verbose_name='Interessado', blank=True)), ('interessado', models.CharField(max_length=50, blank=True, verbose_name='Interessado', null=True)),
('dias_prazo', models.IntegerField(null=True, verbose_name='Dias Prazo', blank=True)), ('dias_prazo', models.IntegerField(blank=True, verbose_name='Dias Prazo', null=True)),
('data_fim_prazo', models.DateField(null=True, verbose_name='Data Fim Prazo', blank=True)), ('data_fim_prazo', models.DateField(blank=True, verbose_name='Data Fim Prazo', null=True)),
('tramitacao', models.BooleanField(verbose_name='Em Tramita\xe7\xe3o?')), ('tramitacao', models.BooleanField(verbose_name='Em Tramitação?')),
('assunto', models.TextField(verbose_name='Assunto')), ('assunto', models.TextField(verbose_name='Assunto')),
('observacao', models.TextField(null=True, verbose_name='Observa\xe7\xe3o', blank=True)), ('observacao', models.TextField(blank=True, verbose_name='Observação', null=True)),
('autor', models.ForeignKey(blank=True, to='materia.Autor', null=True)), ('autor', models.ForeignKey(to='materia.Autor', blank=True, null=True)),
], ],
options={ options={
'verbose_name': 'Documento Administrativo', 'verbose_name': 'Documento Administrativo',
@ -51,24 +51,24 @@ class Migration(migrations.Migration):
migrations.CreateModel( migrations.CreateModel(
name='Protocolo', name='Protocolo',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(serialize=False, primary_key=True, auto_created=True, verbose_name='ID')),
('numero', models.IntegerField(null=True, verbose_name='N\xfamero do Protocolo', blank=True)), ('numero', models.IntegerField(blank=True, verbose_name='Número do Protocolo', null=True)),
('ano', models.SmallIntegerField()), ('ano', models.SmallIntegerField()),
('data', models.DateField()), ('data', models.DateField()),
('hora', models.TimeField()), ('hora', models.TimeField()),
('timestamp', models.DateTimeField()), ('timestamp', models.DateTimeField()),
('tipo_protocolo', models.IntegerField(verbose_name='Tipo de Protocolo')), ('tipo_protocolo', models.IntegerField(verbose_name='Tipo de Protocolo')),
('tipo_processo', models.IntegerField()), ('tipo_processo', models.IntegerField()),
('interessado', models.CharField(max_length=60, null=True, verbose_name='Interessado', blank=True)), ('interessado', models.CharField(max_length=60, blank=True, verbose_name='Interessado', null=True)),
('assunto_ementa', models.TextField(null=True, blank=True)), ('assunto_ementa', models.TextField(blank=True, null=True)),
('numero_paginas', models.IntegerField(null=True, verbose_name='N\xfamero de P\xe1ginas', blank=True)), ('numero_paginas', models.IntegerField(blank=True, verbose_name='Número de Páginas', null=True)),
('observacao', models.TextField(null=True, verbose_name='Observa\xe7\xe3o', blank=True)), ('observacao', models.TextField(blank=True, verbose_name='Observação', null=True)),
('anulado', models.BooleanField()), ('anulado', models.BooleanField()),
('user_anulacao', models.CharField(max_length=20, null=True, blank=True)), ('user_anulacao', models.CharField(max_length=20, blank=True, null=True)),
('ip_anulacao', models.CharField(max_length=15, null=True, blank=True)), ('ip_anulacao', models.CharField(max_length=15, blank=True, null=True)),
('justificativa_anulacao', models.CharField(max_length=60, null=True, blank=True)), ('justificativa_anulacao', models.CharField(max_length=60, blank=True, null=True)),
('timestamp_anulacao', models.DateTimeField(null=True, blank=True)), ('timestamp_anulacao', models.DateTimeField(blank=True, null=True)),
('autor', models.ForeignKey(blank=True, to='materia.Autor', null=True)), ('autor', models.ForeignKey(to='materia.Autor', blank=True, null=True)),
], ],
options={ options={
'verbose_name': 'Protocolo', 'verbose_name': 'Protocolo',
@ -78,22 +78,22 @@ class Migration(migrations.Migration):
migrations.CreateModel( migrations.CreateModel(
name='StatusTramitacaoAdministrativo', name='StatusTramitacaoAdministrativo',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(serialize=False, primary_key=True, auto_created=True, verbose_name='ID')),
('sigla', models.CharField(max_length=10, verbose_name='Sigla')), ('sigla', models.CharField(max_length=10, verbose_name='Sigla')),
('descricao', models.CharField(max_length=60, verbose_name='Descri\xe7\xe3o')), ('descricao', models.CharField(max_length=60, verbose_name='Descrição')),
('indicador', models.CharField(max_length=1, verbose_name='Indicador da Tramita\xe7\xe3o', choices=[(b'F', 'Fim'), (b'R', 'Retorno')])), ('indicador', models.CharField(max_length=1, choices=[('F', 'Fim'), ('R', 'Retorno')], verbose_name='Indicador da Tramitação')),
], ],
options={ options={
'verbose_name': 'Status de Tramita\xe7\xe3o', 'verbose_name': 'Status de Tramitação',
'verbose_name_plural': 'Status de Tramita\xe7\xe3o', 'verbose_name_plural': 'Status de Tramitação',
}, },
), ),
migrations.CreateModel( migrations.CreateModel(
name='TipoDocumentoAdministrativo', name='TipoDocumentoAdministrativo',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(serialize=False, primary_key=True, auto_created=True, verbose_name='ID')),
('sigla', models.CharField(max_length=5, verbose_name='Sigla')), ('sigla', models.CharField(max_length=5, verbose_name='Sigla')),
('descricao', models.CharField(max_length=50, verbose_name='Descri\xe7\xe3o')), ('descricao', models.CharField(max_length=50, verbose_name='Descrição')),
], ],
options={ options={
'verbose_name': 'Tipo de Documento Administrativo', 'verbose_name': 'Tipo de Documento Administrativo',
@ -103,36 +103,36 @@ class Migration(migrations.Migration):
migrations.CreateModel( migrations.CreateModel(
name='TramitacaoAdministrativo', name='TramitacaoAdministrativo',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(serialize=False, primary_key=True, auto_created=True, verbose_name='ID')),
('data_tramitacao', models.DateField(null=True, verbose_name='Data Tramita\xe7\xe3o', blank=True)), ('data_tramitacao', models.DateField(blank=True, verbose_name='Data Tramitação', null=True)),
('data_encaminhamento', models.DateField(null=True, verbose_name='Data Encaminhamento', blank=True)), ('data_encaminhamento', models.DateField(blank=True, verbose_name='Data Encaminhamento', null=True)),
('ultima', models.BooleanField()), ('ultima', models.BooleanField()),
('texto', models.TextField(null=True, verbose_name='Texto da A\xe7\xe3o', blank=True)), ('texto', models.TextField(blank=True, verbose_name='Texto da Ação', null=True)),
('data_fim_prazo', models.DateField(null=True, verbose_name='Data Fim do Prazo', blank=True)), ('data_fim_prazo', models.DateField(blank=True, verbose_name='Data Fim do Prazo', null=True)),
('documento', models.ForeignKey(to='protocoloadm.DocumentoAdministrativo')), ('documento', models.ForeignKey(to='protocoloadm.DocumentoAdministrativo')),
('status', models.ForeignKey(verbose_name='Status', blank=True, to='protocoloadm.StatusTramitacaoAdministrativo', null=True)), ('status', models.ForeignKey(to='protocoloadm.StatusTramitacaoAdministrativo', blank=True, null=True, verbose_name='Status')),
('unidade_tramitacao_destino', models.ForeignKey(related_name='+', verbose_name='Unidade Destino', blank=True, to='materia.UnidadeTramitacao', null=True)), ('unidade_tramitacao_destino', models.ForeignKey(to='materia.UnidadeTramitacao', blank=True, null=True, related_name='+', verbose_name='Unidade Destino')),
('unidade_tramitacao_local', models.ForeignKey(related_name='+', verbose_name='Unidade Local', blank=True, to='materia.UnidadeTramitacao', null=True)), ('unidade_tramitacao_local', models.ForeignKey(to='materia.UnidadeTramitacao', blank=True, null=True, related_name='+', verbose_name='Unidade Local')),
], ],
options={ options={
'verbose_name': 'Tramita\xe7\xe3o de Documento Administrativo', 'verbose_name': 'Tramitação de Documento Administrativo',
'verbose_name_plural': 'Tramita\xe7\xf5es de Documento Administrativo', 'verbose_name_plural': 'Tramitações de Documento Administrativo',
}, },
), ),
migrations.AddField( migrations.AddField(
model_name='protocolo', model_name='protocolo',
name='tipo_documento', name='tipo_documento',
field=models.ForeignKey(verbose_name='Tipo de documento', blank=True, to='protocoloadm.TipoDocumentoAdministrativo', null=True), field=models.ForeignKey(to='protocoloadm.TipoDocumentoAdministrativo', blank=True, null=True, verbose_name='Tipo de documento'),
), ),
migrations.AddField( migrations.AddField(
model_name='protocolo', model_name='protocolo',
name='tipo_materia', name='tipo_materia',
field=models.ForeignKey(verbose_name='Tipo Mat\xe9ria', blank=True, to='materia.TipoMateriaLegislativa', null=True), field=models.ForeignKey(to='materia.TipoMateriaLegislativa', blank=True, null=True, verbose_name='Tipo Matéria'),
), ),
migrations.AddField( migrations.AddField(
model_name='documentoadministrativo', model_name='documentoadministrativo',
name='tipo', name='tipo',
field=models.ForeignKey(verbose_name='Tipo Documento', to='protocoloadm.TipoDocumentoAdministrativo'), field=models.ForeignKey(to='protocoloadm.TipoDocumentoAdministrativo', verbose_name='Tipo Documento'),
), ),
migrations.AddField( migrations.AddField(
model_name='documentoacessorioadministrativo', model_name='documentoacessorioadministrativo',
@ -142,6 +142,6 @@ class Migration(migrations.Migration):
migrations.AddField( migrations.AddField(
model_name='documentoacessorioadministrativo', model_name='documentoacessorioadministrativo',
name='tipo', name='tipo',
field=models.ForeignKey(verbose_name='Tipo', to='protocoloadm.TipoDocumentoAdministrativo'), field=models.ForeignKey(to='protocoloadm.TipoDocumentoAdministrativo', verbose_name='Tipo'),
), ),
] ]

140
sessao/migrations/0001_initial.py

@ -1,5 +1,5 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations from django.db import models, migrations
@ -15,62 +15,62 @@ class Migration(migrations.Migration):
migrations.CreateModel( migrations.CreateModel(
name='ExpedienteMateria', name='ExpedienteMateria',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(serialize=False, primary_key=True, auto_created=True, verbose_name='ID')),
('data_ordem', models.DateField(verbose_name='Data da Sess\xe3o')), ('data_ordem', models.DateField(verbose_name='Data da Sessão')),
('observacao', models.TextField(null=True, verbose_name='Ementa', blank=True)), ('observacao', models.TextField(blank=True, verbose_name='Ementa', null=True)),
('numero_ordem', models.IntegerField(verbose_name='N\xba Ordem')), ('numero_ordem', models.IntegerField(verbose_name='Nº Ordem')),
('resultado', models.TextField(null=True, blank=True)), ('resultado', models.TextField(blank=True, null=True)),
('tipo_votacao', models.IntegerField(verbose_name='Tipo de vota\xe7\xe3o', choices=[(1, 'Simb\xf3lica'), (2, 'Nominal'), (3, 'Secreta')])), ('tipo_votacao', models.IntegerField(choices=[(1, 'Simbólica'), (2, 'Nominal'), (3, 'Secreta')], verbose_name='Tipo de votação')),
('materia', models.ForeignKey(to='materia.MateriaLegislativa')), ('materia', models.ForeignKey(to='materia.MateriaLegislativa')),
], ],
options={ options={
'verbose_name': 'Mat\xe9ria do Expediente', 'verbose_name': 'Matéria do Expediente',
'verbose_name_plural': 'Mat\xe9rias do Expediente', 'verbose_name_plural': 'Matérias do Expediente',
}, },
), ),
migrations.CreateModel( migrations.CreateModel(
name='ExpedienteSessao', name='ExpedienteSessao',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(serialize=False, primary_key=True, auto_created=True, verbose_name='ID')),
('conteudo', models.TextField(null=True, verbose_name='Conte\xfado do expediente', blank=True)), ('conteudo', models.TextField(blank=True, verbose_name='Conteúdo do expediente', null=True)),
], ],
options={ options={
'verbose_name': 'Expediente de Sess\xe3o Plenaria', 'verbose_name': 'Expediente de Sessão Plenaria',
'verbose_name_plural': 'Expedientes de Sess\xe3o Plenaria', 'verbose_name_plural': 'Expedientes de Sessão Plenaria',
}, },
), ),
migrations.CreateModel( migrations.CreateModel(
name='IntegranteMesa', name='IntegranteMesa',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(serialize=False, primary_key=True, auto_created=True, verbose_name='ID')),
('cargo', models.ForeignKey(to='parlamentares.CargoMesa')), ('cargo', models.ForeignKey(to='parlamentares.CargoMesa')),
('parlamentar', models.ForeignKey(to='parlamentares.Parlamentar')), ('parlamentar', models.ForeignKey(to='parlamentares.Parlamentar')),
], ],
options={ options={
'verbose_name': 'Participa\xe7\xe3o em Mesa de Sess\xe3o Plenaria', 'verbose_name': 'Participação em Mesa de Sessão Plenaria',
'verbose_name_plural': 'Participa\xe7\xf5es em Mesas de Sess\xe3o Plenaria', 'verbose_name_plural': 'Participações em Mesas de Sessão Plenaria',
}, },
), ),
migrations.CreateModel( migrations.CreateModel(
name='Orador', name='Orador',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(serialize=False, primary_key=True, auto_created=True, verbose_name='ID')),
('numero_ordem', models.IntegerField(verbose_name='Ordem de pronunciamento')), ('numero_ordem', models.IntegerField(verbose_name='Ordem de pronunciamento')),
('url_discurso', models.CharField(max_length=150, null=True, verbose_name='URL V\xeddeo', blank=True)), ('url_discurso', models.CharField(max_length=150, blank=True, verbose_name='URL Vídeo', null=True)),
('parlamentar', models.ForeignKey(verbose_name='Parlamentar', to='parlamentares.Parlamentar')), ('parlamentar', models.ForeignKey(to='parlamentares.Parlamentar', verbose_name='Parlamentar')),
], ],
options={ options={
'verbose_name': 'Orador das Explica\xe7\xf5es Pessoais', 'verbose_name': 'Orador das Explicações Pessoais',
'verbose_name_plural': 'Oradores das Explica\xe7\xf5es Pessoais', 'verbose_name_plural': 'Oradores das Explicações Pessoais',
}, },
), ),
migrations.CreateModel( migrations.CreateModel(
name='OradorExpediente', name='OradorExpediente',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(serialize=False, primary_key=True, auto_created=True, verbose_name='ID')),
('numero_ordem', models.IntegerField(verbose_name='Ordem de pronunciamento')), ('numero_ordem', models.IntegerField(verbose_name='Ordem de pronunciamento')),
('url_discurso', models.CharField(max_length=150, null=True, verbose_name='URL V\xeddeo', blank=True)), ('url_discurso', models.CharField(max_length=150, blank=True, verbose_name='URL Vídeo', null=True)),
('parlamentar', models.ForeignKey(verbose_name='Parlamentar', to='parlamentares.Parlamentar')), ('parlamentar', models.ForeignKey(to='parlamentares.Parlamentar', verbose_name='Parlamentar')),
], ],
options={ options={
'verbose_name': 'Orador do Expediente', 'verbose_name': 'Orador do Expediente',
@ -80,86 +80,86 @@ class Migration(migrations.Migration):
migrations.CreateModel( migrations.CreateModel(
name='OrdemDia', name='OrdemDia',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(serialize=False, primary_key=True, auto_created=True, verbose_name='ID')),
('data_ordem', models.DateField(verbose_name='Data da Sess\xe3o')), ('data_ordem', models.DateField(verbose_name='Data da Sessão')),
('observacao', models.TextField(null=True, verbose_name='Ementa', blank=True)), ('observacao', models.TextField(blank=True, verbose_name='Ementa', null=True)),
('numero_ordem', models.IntegerField(verbose_name='N\xba Ordem')), ('numero_ordem', models.IntegerField(verbose_name='Nº Ordem')),
('resultado', models.TextField(null=True, blank=True)), ('resultado', models.TextField(blank=True, null=True)),
('tipo_votacao', models.IntegerField(verbose_name='Tipo de vota\xe7\xe3o', choices=[(1, 'Simb\xf3lica'), (2, 'Nominal'), (3, 'Secreta')])), ('tipo_votacao', models.IntegerField(choices=[(1, 'Simbólica'), (2, 'Nominal'), (3, 'Secreta')], verbose_name='Tipo de votação')),
('materia', models.ForeignKey(to='materia.MateriaLegislativa')), ('materia', models.ForeignKey(to='materia.MateriaLegislativa')),
], ],
options={ options={
'verbose_name': 'Mat\xe9ria da Ordem do Dia', 'verbose_name': 'Matéria da Ordem do Dia',
'verbose_name_plural': 'Mat\xe9rias da Ordem do Dia', 'verbose_name_plural': 'Matérias da Ordem do Dia',
}, },
), ),
migrations.CreateModel( migrations.CreateModel(
name='PresencaOrdemDia', name='PresencaOrdemDia',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(serialize=False, primary_key=True, auto_created=True, verbose_name='ID')),
('data_ordem', models.DateField()), ('data_ordem', models.DateField()),
('parlamentar', models.ForeignKey(to='parlamentares.Parlamentar')), ('parlamentar', models.ForeignKey(to='parlamentares.Parlamentar')),
], ],
options={ options={
'verbose_name': 'Presen\xe7a da Ordem do Dia', 'verbose_name': 'Presença da Ordem do Dia',
'verbose_name_plural': 'Presen\xe7as da Ordem do Dia', 'verbose_name_plural': 'Presenças da Ordem do Dia',
}, },
), ),
migrations.CreateModel( migrations.CreateModel(
name='RegistroVotacao', name='RegistroVotacao',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(serialize=False, primary_key=True, auto_created=True, verbose_name='ID')),
('numero_votos_sim', models.IntegerField(verbose_name='Sim')), ('numero_votos_sim', models.IntegerField(verbose_name='Sim')),
('numero_votos_nao', models.IntegerField(verbose_name='N\xe3o')), ('numero_votos_nao', models.IntegerField(verbose_name='Não')),
('numero_abstencoes', models.IntegerField(verbose_name='Absten\xe7\xf5es')), ('numero_abstencoes', models.IntegerField(verbose_name='Abstenções')),
('observacao', models.TextField(null=True, verbose_name='Observa\xe7\xf5es', blank=True)), ('observacao', models.TextField(blank=True, verbose_name='Observações', null=True)),
('materia', models.ForeignKey(to='materia.MateriaLegislativa')), ('materia', models.ForeignKey(to='materia.MateriaLegislativa')),
('ordem', models.ForeignKey(to='sessao.OrdemDia')), ('ordem', models.ForeignKey(to='sessao.OrdemDia')),
], ],
options={ options={
'verbose_name': 'Vota\xe7\xe3o', 'verbose_name': 'Votação',
'verbose_name_plural': 'Vota\xe7\xf5es', 'verbose_name_plural': 'Votações',
}, },
), ),
migrations.CreateModel( migrations.CreateModel(
name='SessaoPlenaria', name='SessaoPlenaria',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(serialize=False, primary_key=True, auto_created=True, verbose_name='ID')),
('cod_andamento_sessao', models.IntegerField(null=True, blank=True)), ('cod_andamento_sessao', models.IntegerField(blank=True, null=True)),
('tipo_expediente', models.CharField(max_length=10)), ('tipo_expediente', models.CharField(max_length=10)),
('data_inicio', models.DateField(verbose_name='Abertura')), ('data_inicio', models.DateField(verbose_name='Abertura')),
('dia', models.CharField(max_length=15)), ('dia', models.CharField(max_length=15)),
('hora_inicio', models.CharField(max_length=5, verbose_name='Hor\xe1rio')), ('hora_inicio', models.CharField(max_length=5, verbose_name='Horário')),
('hora_fim', models.CharField(max_length=5, null=True, verbose_name='Hor\xe1rio', blank=True)), ('hora_fim', models.CharField(max_length=5, blank=True, verbose_name='Horário', null=True)),
('numero', models.IntegerField(verbose_name='N\xfamero')), ('numero', models.IntegerField(verbose_name='Número')),
('data_fim', models.DateField(null=True, verbose_name='Encerramento', blank=True)), ('data_fim', models.DateField(blank=True, verbose_name='Encerramento', null=True)),
('url_audio', models.CharField(max_length=150, null=True, verbose_name='URL Arquivo \xc1udio (Formatos MP3 / AAC)', blank=True)), ('url_audio', models.CharField(max_length=150, blank=True, verbose_name='URL Arquivo Áudio (Formatos MP3 / AAC)', null=True)),
('url_video', models.CharField(max_length=150, null=True, verbose_name='URL Arquivo V\xeddeo (Formatos MP4 / FLV / WebM)', blank=True)), ('url_video', models.CharField(max_length=150, blank=True, verbose_name='URL Arquivo Vídeo (Formatos MP4 / FLV / WebM)', null=True)),
('legislatura', models.ForeignKey(verbose_name='Legislatura', to='parlamentares.Legislatura')), ('legislatura', models.ForeignKey(to='parlamentares.Legislatura', verbose_name='Legislatura')),
('sessao_legislativa', models.ForeignKey(verbose_name='Sess\xe3o Legislativa', to='parlamentares.SessaoLegislativa')), ('sessao_legislativa', models.ForeignKey(to='parlamentares.SessaoLegislativa', verbose_name='Sessão Legislativa')),
], ],
options={ options={
'verbose_name': 'Sess\xe3o Plen\xe1ria', 'verbose_name': 'Sessão Plenária',
'verbose_name_plural': 'Sess\xf5es Plen\xe1rias', 'verbose_name_plural': 'Sessões Plenárias',
}, },
), ),
migrations.CreateModel( migrations.CreateModel(
name='SessaoPlenariaPresenca', name='SessaoPlenariaPresenca',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(serialize=False, primary_key=True, auto_created=True, verbose_name='ID')),
('data_sessao', models.DateField(null=True, blank=True)), ('data_sessao', models.DateField(blank=True, null=True)),
('parlamentar', models.ForeignKey(to='parlamentares.Parlamentar')), ('parlamentar', models.ForeignKey(to='parlamentares.Parlamentar')),
('sessao_plen', models.ForeignKey(to='sessao.SessaoPlenaria')), ('sessao_plen', models.ForeignKey(to='sessao.SessaoPlenaria')),
], ],
options={ options={
'verbose_name': 'Presen\xe7a em Sess\xe3o Plen\xe1ria', 'verbose_name': 'Presença em Sessão Plenária',
'verbose_name_plural': 'Presen\xe7as em Sess\xf5es Plen\xe1rias', 'verbose_name_plural': 'Presenças em Sessões Plenárias',
}, },
), ),
migrations.CreateModel( migrations.CreateModel(
name='TipoExpediente', name='TipoExpediente',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(serialize=False, primary_key=True, auto_created=True, verbose_name='ID')),
('nome', models.CharField(max_length=100, verbose_name='Tipo')), ('nome', models.CharField(max_length=100, verbose_name='Tipo')),
], ],
options={ options={
@ -170,48 +170,48 @@ class Migration(migrations.Migration):
migrations.CreateModel( migrations.CreateModel(
name='TipoResultadoVotacao', name='TipoResultadoVotacao',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(serialize=False, primary_key=True, auto_created=True, verbose_name='ID')),
('nome', models.CharField(max_length=100, verbose_name='Tipo')), ('nome', models.CharField(max_length=100, verbose_name='Tipo')),
], ],
options={ options={
'verbose_name': 'Tipo de Resultado de Vota\xe7\xe3o', 'verbose_name': 'Tipo de Resultado de Votação',
'verbose_name_plural': 'Tipos de Resultado de Vota\xe7\xe3o', 'verbose_name_plural': 'Tipos de Resultado de Votação',
}, },
), ),
migrations.CreateModel( migrations.CreateModel(
name='TipoSessaoPlenaria', name='TipoSessaoPlenaria',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(serialize=False, primary_key=True, auto_created=True, verbose_name='ID')),
('nome', models.CharField(max_length=30, verbose_name='Tipo')), ('nome', models.CharField(max_length=30, verbose_name='Tipo')),
('quorum_minimo', models.IntegerField(verbose_name='Qu\xf3rum m\xednimo')), ('quorum_minimo', models.IntegerField(verbose_name='Quórum mínimo')),
], ],
options={ options={
'verbose_name': 'Tipo de Sess\xe3o Plen\xe1ria', 'verbose_name': 'Tipo de Sessão Plenária',
'verbose_name_plural': 'Tipos de Sess\xe3o Plen\xe1ria', 'verbose_name_plural': 'Tipos de Sessão Plenária',
}, },
), ),
migrations.CreateModel( migrations.CreateModel(
name='VotoParlamentar', name='VotoParlamentar',
fields=[ fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('id', models.AutoField(serialize=False, primary_key=True, auto_created=True, verbose_name='ID')),
('voto', models.CharField(max_length=10)), ('voto', models.CharField(max_length=10)),
('parlamentar', models.ForeignKey(to='parlamentares.Parlamentar')), ('parlamentar', models.ForeignKey(to='parlamentares.Parlamentar')),
('votacao', models.ForeignKey(to='sessao.RegistroVotacao')), ('votacao', models.ForeignKey(to='sessao.RegistroVotacao')),
], ],
options={ options={
'verbose_name': 'Registro de Vota\xe7\xe3o de Parlamentar', 'verbose_name': 'Registro de Votação de Parlamentar',
'verbose_name_plural': 'Registros de Vota\xe7\xf5es de Parlamentares', 'verbose_name_plural': 'Registros de Votações de Parlamentares',
}, },
), ),
migrations.AddField( migrations.AddField(
model_name='sessaoplenaria', model_name='sessaoplenaria',
name='tipo', name='tipo',
field=models.ForeignKey(verbose_name='Tipo', to='sessao.TipoSessaoPlenaria'), field=models.ForeignKey(to='sessao.TipoSessaoPlenaria', verbose_name='Tipo'),
), ),
migrations.AddField( migrations.AddField(
model_name='registrovotacao', model_name='registrovotacao',
name='tipo_resultado_votacao', name='tipo_resultado_votacao',
field=models.ForeignKey(verbose_name='Resultado da Vota\xe7\xe3o', to='sessao.TipoResultadoVotacao'), field=models.ForeignKey(to='sessao.TipoResultadoVotacao', verbose_name='Resultado da Votação'),
), ),
migrations.AddField( migrations.AddField(
model_name='presencaordemdia', model_name='presencaordemdia',

Loading…
Cancel
Save