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