Update sqlalchemy models

This commit is contained in:
coolneng 2020-11-25 11:05:24 +01:00
parent 89ac99858a
commit 66ce3d6ff5
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
1 changed files with 7 additions and 1 deletions

View File

@ -1,5 +1,5 @@
from sqlalchemy import Column
from sqlalchemy.types import Integer, String
from sqlalchemy.types import Date, Integer, String, Text
from database import Base
@ -15,3 +15,9 @@ class Users(Base):
numero_de_documento = Column(String, nullable=False, unique=True)
centro_academico = Column(String, nullable=False)
correo_institucional = Column(String, nullable=False, unique=True)
tipo_alojamiento = Column(String)
tipo_caso = Column(String)
comienzo_aislamiento = Column(Date)
fin_aislamiento = Column(Date)
observaciones = Column(Text)
codigo = Column(String)