22 lines
314 B
Python
22 lines
314 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
|