Spaces:
Sleeping
Sleeping
File size: 342 Bytes
cdaf146 | 1 2 3 4 5 6 7 8 9 10 | from sqlmodel import SQLModel, Field
from typing import Optional
from datetime import datetime
class User(SQLModel, table=True):
id: Optional[str] = Field(default=None, primary_key=True)
email: str = Field(unique=True, index=True)
name: str
password_hash: str
created_at: datetime = Field(default_factory=datetime.utcnow) |