mirror of https://github.com/interlegis/sapl.git
Marcio Mazza
10 years ago
2 changed files with 47 additions and 6 deletions
@ -1,5 +1,21 @@ |
|||
from django.db import models |
|||
|
|||
|
|||
class Legislatura(models.Model): |
|||
data_inicio = models.DateField() |
|||
data_fim = models.DateField() |
|||
data_eleicao = models.DateField() |
|||
|
|||
|
|||
class SessaoLegislativa(models.Model): |
|||
legislatura = models.ForeignKey(Legislatura) |
|||
numero = models.IntegerField() |
|||
tipo = models.CharField(max_length=1) |
|||
data_inicio = models.DateField() |
|||
data_fim = models.DateField() |
|||
data_inicio_intervalo = models.DateField(blank=True, null=True) |
|||
data_fim_intervalo = models.DateField(blank=True, null=True) |
|||
|
|||
|
|||
class NivelInstrucao(models.Model): |
|||
nivel_instrucao = models.CharField(max_length=50) |
|||
|
Loading…
Reference in new issue