satupeta-main/app/schemas/map_projection_system_schema.py

21 lines
439 B
Python
Raw Normal View History

2026-01-27 02:11:58 +00:00
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)