feat: add base class for all schemas and to camel case mapper

This commit is contained in:
2025-05-21 12:44:28 +05:00
parent f97d419467
commit fe91bb7103
14 changed files with 65 additions and 36 deletions

View File

@@ -1,8 +1,10 @@
from pydantic import BaseModel, Field
from pydantic import Field
from typing import Dict, Any
from datetime import datetime
from enum import Enum
from api.schemas.base import Base
class State(Enum):
AUTO = "Auto"
@@ -15,7 +17,7 @@ class Status(Enum):
DELETED = "Deleted"
class ListEvent(BaseModel):
class ListEvent(Base):
id: int
name: str = Field(..., max_length=40)
title: str = Field(..., max_length=64)