satupeta-main/app/schemas/map_projection_system_schema.py
2026-02-23 12:20:42 +07:00

21 lines
439 B
Python
Executable File

from typing import Optional
from pydantic import Field
from app.core.data_types import UUID7Field
from .base import BaseSchema
class MapProjectionSystemSchema(BaseSchema):
id: UUID7Field
name: str
class MapProjectionSystemCreateSchema(BaseSchema):
name: str = Field(..., min_length=1, max_length=50)
class MapProjectionSystemUpdateSchema(BaseSchema):
name: Optional[str] = Field(None, min_length=1, max_length=50)