Files
cht-lawfirm/back/app/entity/schemas.py

23 lines
331 B
Python

import uuid
from datetime import datetime
from pydantic import BaseModel
from .models import Entity, EntityType
from ..core.schemas import Writer
class EntityRead(Entity):
pass
class EntityCreate(Writer):
type: EntityType
name: str
address: str
class EntityUpdate(BaseModel):
name: str
address: str