user_model.py 295 B

12345678910
  1. from sqlalchemy import Column, Integer, String
  2. from app.models.base_model import Base
  3. class UserModel(Base):
  4. __tablename__ = "user"
  5. id = Column(Integer, primary_key=True, index=True)
  6. username = Column(String(255), unique=True, index=True)
  7. hashed_password = Column(String(255))