Spaces:
Sleeping
Sleeping
File size: 375 Bytes
438ec1c |
1 2 3 4 5 6 7 8 9 10 11 |
from sqlalchemy import Column, Integer, String, Boolean
from .database import Base
class User(Base):
__tablename__ = "users"
id = Column(Integer, primary_key=True, index=True)
username = Column(String, unique=True, index=True)
email = Column(String, unique=True, index=True)
hashed_password = Column(String)
is_active = Column(Boolean, default=True) |