26 lines
457 B
Python
26 lines
457 B
Python
from typing import Any
|
|
from pydantic import BaseModel
|
|
|
|
|
|
class ItemsFieldSelectorList(BaseModel):
|
|
fields: list[str] = []
|
|
|
|
|
|
class ColumnsDefinitionList(BaseModel):
|
|
columns: list[str]
|
|
|
|
|
|
class UserDefinition(BaseModel):
|
|
username: str
|
|
password: str
|
|
|
|
|
|
class ColumnDefinition(BaseModel):
|
|
name: str
|
|
value: Any
|
|
isString: bool = False
|
|
isLike: bool = True
|
|
|
|
|
|
class ItemDeletionDefinitionList(BaseModel):
|
|
defs: list[ColumnDefinition]
|