Spaces:
Running
Running
File size: 428 Bytes
7f18aa9 | 1 2 3 4 5 6 7 8 9 10 11 12 13 | from sqlalchemy import Column, Integer, String, Boolean
from app.database import Base
class User(Base):
__tablename__ = "users"
id = Column(Integer, primary_key=True, index=True)
email = Column(String, unique=True, index=True)
hashed_password = Column(String)
full_name = Column(String, nullable=True)
is_active = Column(Boolean, default=True)
is_admin = Column(Boolean, default=False)
|