Add the rest of the project
This commit is contained in:
parent
6a2109ce3d
commit
49f2d8e924
6 changed files with 1080 additions and 0 deletions
26
models.py
Normal file
26
models.py
Normal 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]
|
||||
Loading…
Add table
Add a link
Reference in a new issue