Files
copp/server/api-data-base/model_messege.py
2025-04-01 23:27:36 +05:00

43 lines
812 B
Python
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
from pydantic import BaseModel
from data_base.models.main_tables import users, Сollection_form_opk
from enum import Enum
class Message(BaseModel):
key: str
value: str
class Login(BaseModel):
login:str
password:str
class TableName(str,Enum):
users = "users"
Сollection_form_opk = "Сollection_form_opk"
class DataType(str,Enum):
String="String"
str="String"
Str="String"
Integer="Integer"
int="Integer"
Int="Integer"
class TableModel():
list={
"users":users
}
class column_table(BaseModel):
table_name:TableName
column_name:str
data_type:DataType
class Table(str, Enum):
Collection_form_opk = "Collection_form_opk"
class insert_table(BaseModel):
creation_time:str
inn:str
table_name:Table
data:dict