cloudairambo / admin /models.py
rihancloud's picture
Deploy clean FastAPI backend without node_modules
99fdb5f
Raw History Blame Contribute Delete
345 Bytes
# admin/models.py
from sqlmodel import SQLModel, Field
from datetime import datetime
class AdminUser(SQLModel, table=True):
id: int = Field(default=None, primary_key=True)
username: str = Field(index=True, unique=True)
password_hash: str
is_active: bool = True
created_at: datetime = Field(default_factory=datetime.utcnow)