Spaces:
Runtime error
Runtime error
File size: 299 Bytes
21f81f9 | 1 2 3 4 5 6 7 8 9 10 | from sqlalchemy import Column, Integer, String
from .database import Base
class User(Base):
__tablename__ = "users"
id = Column(Integer, primary_key=True, index=True)
username = Column(String, unique=True, index=True, nullable=False)
password_hash = Column(String, nullable=False)
|