xync-schema 0.6.73.dev8__tar.gz → 0.6.73.dev9__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {xync_schema-0.6.73.dev8/xync_schema.egg-info → xync_schema-0.6.73.dev9}/PKG-INFO +1 -1
- {xync_schema-0.6.73.dev8 → xync_schema-0.6.73.dev9}/xync_schema/types.py +4 -5
- {xync_schema-0.6.73.dev8 → xync_schema-0.6.73.dev9/xync_schema.egg-info}/PKG-INFO +1 -1
- {xync_schema-0.6.73.dev8 → xync_schema-0.6.73.dev9}/.env.sample +0 -0
- {xync_schema-0.6.73.dev8 → xync_schema-0.6.73.dev9}/.gitignore +0 -0
- {xync_schema-0.6.73.dev8 → xync_schema-0.6.73.dev9}/.pre-commit-config.yaml +0 -0
- {xync_schema-0.6.73.dev8 → xync_schema-0.6.73.dev9}/README.md +0 -0
- {xync_schema-0.6.73.dev8 → xync_schema-0.6.73.dev9}/makefile +0 -0
- {xync_schema-0.6.73.dev8 → xync_schema-0.6.73.dev9}/pyproject.toml +0 -0
- {xync_schema-0.6.73.dev8 → xync_schema-0.6.73.dev9}/setup.cfg +0 -0
- {xync_schema-0.6.73.dev8 → xync_schema-0.6.73.dev9}/tests/__init__.py +0 -0
- {xync_schema-0.6.73.dev8 → xync_schema-0.6.73.dev9}/tests/test_db.py +0 -0
- {xync_schema-0.6.73.dev8 → xync_schema-0.6.73.dev9}/xync_schema/__init__.py +0 -0
- {xync_schema-0.6.73.dev8 → xync_schema-0.6.73.dev9}/xync_schema/enums.py +0 -0
- {xync_schema-0.6.73.dev8 → xync_schema-0.6.73.dev9}/xync_schema/models.py +0 -0
- {xync_schema-0.6.73.dev8 → xync_schema-0.6.73.dev9}/xync_schema.egg-info/SOURCES.txt +0 -0
- {xync_schema-0.6.73.dev8 → xync_schema-0.6.73.dev9}/xync_schema.egg-info/dependency_links.txt +0 -0
- {xync_schema-0.6.73.dev8 → xync_schema-0.6.73.dev9}/xync_schema.egg-info/requires.txt +0 -0
- {xync_schema-0.6.73.dev8 → xync_schema-0.6.73.dev9}/xync_schema.egg-info/top_level.txt +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
from datetime import datetime
|
|
2
|
-
from pydantic import BaseModel
|
|
2
|
+
from pydantic import BaseModel, Field
|
|
3
3
|
from x_model.types import New
|
|
4
4
|
|
|
5
5
|
from xync_schema.enums import AdStatus, OrderStatus
|
|
@@ -62,11 +62,10 @@ class FiatIn(New):
|
|
|
62
62
|
|
|
63
63
|
class BaseAd(BaseModel):
|
|
64
64
|
price: float
|
|
65
|
-
|
|
65
|
+
exid: int | None = Field(alias="id")
|
|
66
66
|
|
|
67
67
|
|
|
68
|
-
class BaseAdIn(New):
|
|
69
|
-
exid: int
|
|
68
|
+
class BaseAdIn(BaseAd, New):
|
|
70
69
|
min_fiat: float
|
|
71
70
|
max_fiat: float
|
|
72
71
|
direction: models.Direction
|
|
@@ -74,7 +73,7 @@ class BaseAdIn(New):
|
|
|
74
73
|
auto_msg: str | None = None
|
|
75
74
|
status: AdStatus = AdStatus.active
|
|
76
75
|
maker: models.Actor = None
|
|
77
|
-
_unq = "
|
|
76
|
+
_unq = "exid", "maker", "direction"
|
|
78
77
|
|
|
79
78
|
class Config:
|
|
80
79
|
arbitrary_types_allowed = True
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{xync_schema-0.6.73.dev8 → xync_schema-0.6.73.dev9}/xync_schema.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|