anas-ahmed's picture
Implement phase 2 foundational backend and auth components
5a4a8e8
Raw History Blame Contribute Delete
484 Bytes
from sqlmodel import SQLModel, Field
from typing import Optional
import uuid
from datetime import datetime
class User(SQLModel, table=True):
id: uuid.UUID = Field(default_factory=uuid.uuid4, primary_key=True)
email: str = Field(unique=True, index=True)
name: Optional[str] = None
hashed_password: Optional[str] = None # Managed by Better Auth / Backend sync if needed
image: Optional[str] = None
created_at: datetime = Field(default_factory=datetime.utcnow)