feat: lexoranks for attr options

This commit is contained in:
2025-11-05 20:52:50 +04:00
parent 7defcbdbd4
commit eab801e41b
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,5 @@
from typing import Optional
from schemas.base import BaseSchema, BaseResponse
@ -7,15 +9,18 @@ from schemas.base import BaseSchema, BaseResponse
class AttrOptionSchema(BaseSchema):
id: int
name: str
lexorank: str
class CreateAttrOptionSchema(BaseSchema):
name: str
lexorank: str
select_id: int
class UpdateAttrOptionSchema(BaseSchema):
name: str
name: Optional[str] = None
lexorank: Optional[str] = None
# endregion