예제 #1
0
class ActionItemSchema(Model):
    title: str
    form: Form = Reference()
    submission: Submission = Reference()
    action: str
    handler: str
    method: str
    state: Literal['new', 'inprogress', 'complete', 'error'] = 'new'
    messages: List[Any] = []
    data: Dict = {}
예제 #2
0
class Notificacion(Model):
    fechaActivacion: datetime = datetime.now()
    contenido: str
    tipo_medicion: TipoMedicion
    establecimiento: EstablecimientoDB = Reference()
    leido: bool = False
    id_img:Optional[str]
예제 #3
0
class Action(Model):
    title: str
    name: str
    handler: List[str]
    method: List[str]
    condition: Dict = {}
    priority: int = 0
    settings: Dict = {}
    form: Form = Reference()
    deleted: Optional[int]
예제 #4
0
 class Base(Model):
     field: Referenced = Reference()
예제 #5
0
class Book(Model):
    title: str
    pages: int
    publisher: Publisher = Reference()
예제 #6
0
class NotificacionAdmin(Model):
    responsable: Administrador = Reference()
    gerente: Optional[str] 
    tipo:TipoNotificacion
    contenido: Optional[str]
    fecha: datetime = datetime.now()
예제 #7
0
class NotificacionRet(Model):
    fechaActivacion: datetime = datetime.now()
    contenido: str
    tipo_medicion: TipoMedicion
    establecimiento: EstablecimientoRet = Reference()
    leido: bool = False
예제 #8
0
class EstablecimientoDB(Model):
    descriptor: str
    direccion: str
    configuracion: ConfiguracionEstablecimiento
    gerente: Gerente = Reference()
    mediciones: List[Medicion] = []
예제 #9
0
class Incidencia(Model):
    cuerpo: str
    titulo: str
    gerente: Gerente = Reference()