mirror of https://github.com/interlegis/sapl.git
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.
33 lines
1.1 KiB
33 lines
1.1 KiB
from django.db import models
|
|
|
|
|
|
class Cronometro(models.Model):
|
|
CRONOMETRO_TYPES = (
|
|
('A', 'Aparte'),
|
|
('D', 'Discurso'),
|
|
('O', 'Ordem do dia')
|
|
)
|
|
|
|
start = models.PositiveIntegerField(verbose_name='Iniciar cronômetro')
|
|
reset = models.PositiveIntegerField(verbose_name='Reiniciar cronômetro')
|
|
stop = models.PositiveIntegerField(verbose_name='Parar cronômetro')
|
|
data = models.DateField(verbose_name='Data cronômetro')
|
|
tipo = models.CharField(
|
|
max_length=1, choices=CRONOMETRO_TYPES, verbose_name='Tipo Cronômetro')
|
|
|
|
|
|
class Painel(models.Model):
|
|
PAINEL_TYPES = (
|
|
('C', 'Completo'),
|
|
('P', 'Parlamentares'),
|
|
('V', 'Votação'),
|
|
('M', 'Mensagem'),
|
|
)
|
|
|
|
abrir = models.PositiveIntegerField(verbose_name='Abrir painel', default=0)
|
|
fechar = models.PositiveIntegerField(
|
|
verbose_name='Fechar painel', default=1)
|
|
data_painel = models.DateField(verbose_name='Data painel')
|
|
mostrar = models.CharField(max_length=1,
|
|
choices=PAINEL_TYPES,
|
|
default='C')
|
|
|