Files
cht-lawfirm/back/app/entity/schemas.py
2023-01-09 13:03:16 +01:00

21 lines
283 B
Python

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