|
@ -7,7 +7,7 @@ from parlamentares.models import Parlamentar, Partido |
|
|
class TipoMateriaLegislativa(models.Model): |
|
|
class TipoMateriaLegislativa(models.Model): |
|
|
sigla_tipo_materia = models.CharField(max_length=5) |
|
|
sigla_tipo_materia = models.CharField(max_length=5) |
|
|
descricao_tipo_materia = models.CharField(max_length=50) |
|
|
descricao_tipo_materia = models.CharField(max_length=50) |
|
|
ind_num_automatica = models.IntegerField() |
|
|
num_automatica = models.BooleanField() |
|
|
quorum_minimo_votacao = models.IntegerField() |
|
|
quorum_minimo_votacao = models.IntegerField() |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -37,10 +37,10 @@ class MateriaLegislativa(models.Model): |
|
|
nome_apelido = models.CharField(max_length=50, blank=True, null=True) |
|
|
nome_apelido = models.CharField(max_length=50, blank=True, null=True) |
|
|
numero_dias_prazo = models.IntegerField(blank=True, null=True) |
|
|
numero_dias_prazo = models.IntegerField(blank=True, null=True) |
|
|
data_fim_prazo = models.DateField(blank=True, null=True) |
|
|
data_fim_prazo = models.DateField(blank=True, null=True) |
|
|
ind_tramitacao = models.IntegerField() |
|
|
indicador_tramitacao = models.BooleanField() |
|
|
ind_polemica = models.IntegerField(blank=True, null=True) |
|
|
polemica = models.NullBooleanField(blank=True) |
|
|
descricao_objeto = models.CharField(max_length=150, blank=True, null=True) |
|
|
descricao_objeto = models.CharField(max_length=150, blank=True, null=True) |
|
|
ind_complementar = models.IntegerField(blank=True, null=True) |
|
|
complementar = models.NullBooleanField(blank=True) |
|
|
txt_ementa = models.TextField() |
|
|
txt_ementa = models.TextField() |
|
|
txt_indexacao = models.TextField(blank=True, null=True) |
|
|
txt_indexacao = models.TextField(blank=True, null=True) |
|
|
txt_observacao = models.TextField(blank=True, null=True) |
|
|
txt_observacao = models.TextField(blank=True, null=True) |
|
@ -86,7 +86,7 @@ class Autor(models.Model): |
|
|
class Autoria(models.Model): |
|
|
class Autoria(models.Model): |
|
|
autor = models.ForeignKey(Autor) |
|
|
autor = models.ForeignKey(Autor) |
|
|
materia = models.ForeignKey(MateriaLegislativa) |
|
|
materia = models.ForeignKey(MateriaLegislativa) |
|
|
ind_primeiro_autor = models.IntegerField() |
|
|
primeiro_autor = models.BooleanField() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class DespachoInicial(models.Model): |
|
|
class DespachoInicial(models.Model): |
|
@ -126,7 +126,7 @@ class Numeracao(models.Model): |
|
|
class Orgao(models.Model): |
|
|
class Orgao(models.Model): |
|
|
nome_orgao = models.CharField(max_length=60) |
|
|
nome_orgao = models.CharField(max_length=60) |
|
|
sigla_orgao = models.CharField(max_length=10) |
|
|
sigla_orgao = models.CharField(max_length=10) |
|
|
ind_unid_deliberativa = models.IntegerField() |
|
|
unid_deliberativa = models.BooleanField() |
|
|
endereco_orgao = models.CharField(max_length=100, blank=True, null=True) |
|
|
endereco_orgao = models.CharField(max_length=100, blank=True, null=True) |
|
|
numero_tel_orgao = models.CharField(max_length=50, blank=True, null=True) |
|
|
numero_tel_orgao = models.CharField(max_length=50, blank=True, null=True) |
|
|
|
|
|
|
|
@ -154,7 +154,7 @@ class Parecer(models.Model): |
|
|
|
|
|
|
|
|
class TipoProposicao(models.Model): |
|
|
class TipoProposicao(models.Model): |
|
|
descricao_tipo_proposicao = models.CharField(max_length=50) |
|
|
descricao_tipo_proposicao = models.CharField(max_length=50) |
|
|
ind_mat_ou_doc = models.CharField(max_length=1) |
|
|
mat_ou_doc = models.BooleanField() |
|
|
tipo_mat_ou_doc = models.IntegerField() |
|
|
tipo_mat_ou_doc = models.IntegerField() |
|
|
nome_modelo = models.CharField(max_length=50) |
|
|
nome_modelo = models.CharField(max_length=50) |
|
|
|
|
|
|
|
@ -175,8 +175,8 @@ class Proposicao(models.Model): |
|
|
class StatusTramitacao(models.Model): |
|
|
class StatusTramitacao(models.Model): |
|
|
sigla_status = models.CharField(max_length=10) |
|
|
sigla_status = models.CharField(max_length=10) |
|
|
descricao_status = models.CharField(max_length=60) |
|
|
descricao_status = models.CharField(max_length=60) |
|
|
ind_fim_tramitacao = models.IntegerField() |
|
|
fim_tramitacao = models.BooleanField() |
|
|
ind_retorno_tramitacao = models.IntegerField() |
|
|
retorno_tramitacao = models.BooleanField() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class UnidadeTramitacao(models.Model): |
|
|
class UnidadeTramitacao(models.Model): |
|
@ -192,8 +192,8 @@ class Tramitacao(models.Model): |
|
|
unid_tram_local = models.ForeignKey(UnidadeTramitacao, blank=True, null=True, related_name='+') |
|
|
unid_tram_local = models.ForeignKey(UnidadeTramitacao, blank=True, null=True, related_name='+') |
|
|
data_encaminha = models.DateField(blank=True, null=True) |
|
|
data_encaminha = models.DateField(blank=True, null=True) |
|
|
unid_tram_dest = models.ForeignKey(UnidadeTramitacao, blank=True, null=True, related_name='+') |
|
|
unid_tram_dest = models.ForeignKey(UnidadeTramitacao, blank=True, null=True, related_name='+') |
|
|
ind_ult_tramitacao = models.IntegerField() |
|
|
ult_tramitacao = models.BooleanField() |
|
|
ind_urgencia = models.IntegerField() |
|
|
urgencia = models.BooleanField() |
|
|
sigla_turno = models.CharField(max_length=1, blank=True, null=True) |
|
|
sigla_turno = models.CharField(max_length=1, blank=True, null=True) |
|
|
txt_tramitacao = models.TextField(blank=True, null=True) |
|
|
txt_tramitacao = models.TextField(blank=True, null=True) |
|
|
data_fim_prazo = models.DateField(blank=True, null=True) |
|
|
data_fim_prazo = models.DateField(blank=True, null=True) |
|
|