covot/database/models.py

18 lines
616 B
Python

from sqlalchemy import Column
from sqlalchemy.types import Integer, String
from database import Base
class Users(Base):
__tablename__ = "users"
id = Column(Integer, primary_key=True, autoincrement=True)
primer_apellido = Column(String, nullable=False)
segundo_apellido = Column(String, nullable=False)
nombre = Column(String, nullable=False)
tipo_de_documento = Column(String, nullable=False)
numero_de_documento = Column(String, nullable=False, unique=True)
centro_academico = Column(String, nullable=False)
correo_institucional = Column(String, nullable=False, unique=True)