Sistema de Apoio ao Processo Legislativo
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

64 lines
2.9 KiB

from django.db import models
class CargoComissao(models.Model):
cod_cargo = models.AutoField(primary_key=True)
des_cargo = models.CharField(max_length=50)
ind_unico = models.IntegerField()
ind_excluido = models.IntegerField()
class Comissao(models.Model):
cod_comissao = models.AutoField(primary_key=True)
tip_comissao = models.IntegerField()
nom_comissao = models.CharField(max_length=60)
sgl_comissao = models.CharField(max_length=10)
dat_criacao = models.DateField()
dat_extincao = models.DateField(blank=True, null=True)
nom_apelido_temp = models.CharField(max_length=100, blank=True, null=True)
dat_instalacao_temp = models.DateField(blank=True, null=True)
dat_final_prevista_temp = models.DateField(blank=True, null=True)
dat_prorrogada_temp = models.DateField(blank=True, null=True)
dat_fim_comissao = models.DateField(blank=True, null=True)
nom_secretario = models.CharField(max_length=30, blank=True, null=True)
num_tel_reuniao = models.CharField(max_length=15, blank=True, null=True)
end_secretaria = models.CharField(max_length=100, blank=True, null=True)
num_tel_secretaria = models.CharField(max_length=15, blank=True, null=True)
num_fax_secretaria = models.CharField(max_length=15, blank=True, null=True)
des_agenda_reuniao = models.CharField(max_length=100, blank=True, null=True)
loc_reuniao = models.CharField(max_length=100, blank=True, null=True)
txt_finalidade = models.TextField(blank=True, null=True)
end_email = models.CharField(max_length=100, blank=True, null=True)
ind_unid_deliberativa = models.IntegerField()
ind_excluido = models.IntegerField()
class ComposicaoComissao(models.Model):
cod_comp_comissao = models.AutoField(primary_key=True)
cod_parlamentar = models.IntegerField()
cod_comissao = models.IntegerField()
cod_periodo_comp = models.IntegerField()
cod_cargo = models.IntegerField()
ind_titular = models.IntegerField()
dat_designacao = models.DateField()
dat_desligamento = models.DateField(blank=True, null=True)
des_motivo_desligamento = models.CharField(max_length=150, blank=True, null=True)
obs_composicao = models.CharField(max_length=150, blank=True, null=True)
ind_excluido = models.IntegerField()
class PeriodoCompComissao(models.Model):
cod_periodo_comp = models.AutoField(primary_key=True)
dat_inicio_periodo = models.DateField()
dat_fim_periodo = models.DateField(blank=True, null=True)
ind_excluido = models.IntegerField()
class TipoComissao(models.Model):
tip_comissao = models.AutoField(primary_key=True)
nom_tipo_comissao = models.CharField(max_length=50)
sgl_natureza_comissao = models.CharField(max_length=1)
sgl_tipo_comissao = models.CharField(max_length=10)
des_dispositivo_regimental = models.CharField(max_length=50, blank=True, null=True)
ind_excluido = models.IntegerField()