13 lines
326 B
Python
13 lines
326 B
Python
from pydantic import BaseModel, Field
|
|
from pydantic import ConfigDict
|
|
from typing import Optional
|
|
|
|
class StateDTO(BaseModel):
|
|
m3_key: str = Field(..., min_length=1, max_length=3)
|
|
description: str
|
|
mex_key: Optional[str] = None
|
|
ame_key: Optional[str] = None
|
|
|
|
model_config = ConfigDict(from_attributes=True)
|
|
|