giga_tcg/app/schemas/base.py
2025-02-07 20:29:39 -05:00

11 lines
278 B
Python

from pydantic import BaseModel
from datetime import datetime
# Base schemas with shared attributes
class BaseSchema(BaseModel):
date_created: datetime
date_modified: datetime
class Config:
from_attributes = True # Allows conversion from SQLAlchemy models