digitalization
This commit is contained in:
@@ -1,18 +1,18 @@
|
||||
from pydantic import BaseModel, Field, field_validator
|
||||
from pydantic_settings import BaseSettings, SettingsConfigDict
|
||||
class ExcelInfo(BaseModel):
|
||||
class ExcelDigitalization(BaseModel):
|
||||
arti:str = Field(..., min_length=5, max_length=12, description="arti of the clothes")
|
||||
counts:int = Field(..., gt=0, description="the quantity of the clothes")
|
||||
price:float = Field(..., gt=0, description="the price of the clothes")
|
||||
class ExcelInfo(ExcelDigitalization):
|
||||
counts:int = Field(..., gt=0, description="the quantity of the clothes")
|
||||
ref_key:str = Field(..., description="reffering key from db")
|
||||
class ExcelRealization(BaseModel):
|
||||
pass
|
||||
class ExcelReturning(BaseModel):
|
||||
pass
|
||||
class ExcelOut(BaseModel):
|
||||
pass
|
||||
class Settings(BaseSettings):
|
||||
DIR:str
|
||||
PRICES_DIR:str
|
||||
PATTERN: str
|
||||
TIMEFORMAT:str
|
||||
USERNAME: str
|
||||
|
||||
Reference in New Issue
Block a user