changed hashing

This commit is contained in:
2026-04-26 16:55:55 -06:00
parent 34317aa142
commit 9e3cc3a03f

View File

@@ -10,7 +10,7 @@ class UserModel(Base):
nombre = Column(String(100), nullable=False, index=True) nombre = Column(String(100), nullable=False, index=True)
apellido = Column(String(100), nullable=False, index=True) apellido = Column(String(100), nullable=False, index=True)
email = Column(String(255), unique=True, nullable=False, index=True) email = Column(String(255), unique=True, nullable=False, index=True)
contraseña_hash = Column(String(255), nullable=False, default="$2b$12$R9h7cIPz0gi.URNNX3kh2OPST9/PgBkqquzi.Ee3GzxQ2n8/N7kDi") # Hash de "passwd123" contraseña_hash = Column(String(500), nullable=False) # Argon2 hashes can be up to ~200 chars
fecha_nacimiento = Column(DateTime, nullable=False) fecha_nacimiento = Column(DateTime, nullable=False)
fecha_creacion = Column(DateTime, default=datetime.utcnow, nullable=False) fecha_creacion = Column(DateTime, default=datetime.utcnow, nullable=False)
calificacion = Column(Float, default=50.0, nullable=False) # 0-100 calificacion = Column(Float, default=50.0, nullable=False) # 0-100