Add the rest of the project

This commit is contained in:
Andrew 2023-03-20 18:38:45 +07:00
parent 6a2109ce3d
commit 49f2d8e924
6 changed files with 1080 additions and 0 deletions

26
models.py Normal file
View file

@ -0,0 +1,26 @@
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]