Spaces:
Running
Running
File size: 326 Bytes
e4f5d4a |
1 2 3 4 5 6 7 8 9 10 11 |
from sqlalchemy import Column, Integer, String
from database import Base
class User(Base):
"""SQLAlchemy model for storing users."""
__tablename__ = "users"
id = Column(Integer, primary_key=True, index=True)
username = Column(String, unique=True, index=True)
password = Column(String) # Hashed password
|