feat: add base class for all schemas and to camel case mapper
This commit is contained in:
@@ -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 Status(Enum):
|
||||
ACTIVE = "Active"
|
||||
@@ -11,7 +13,7 @@ class Status(Enum):
|
||||
DELETED = "Deleted"
|
||||
|
||||
|
||||
class ProcessSchema(BaseModel):
|
||||
class ProcessSchema(Base):
|
||||
id: int
|
||||
title: str = Field(..., max_length=100)
|
||||
description: str
|
||||
|
||||
Reference in New Issue
Block a user