xync-schema 0.6.81__py3-none-any.whl → 0.6.84.dev1__py3-none-any.whl
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/models.py +17 -1
- {xync_schema-0.6.81.dist-info → xync_schema-0.6.84.dev1.dist-info}/METADATA +1 -1
- xync_schema-0.6.84.dev1.dist-info/RECORD +8 -0
- xync_schema-0.6.81.dist-info/RECORD +0 -8
- {xync_schema-0.6.81.dist-info → xync_schema-0.6.84.dev1.dist-info}/WHEEL +0 -0
- {xync_schema-0.6.81.dist-info → xync_schema-0.6.84.dev1.dist-info}/top_level.txt +0 -0
xync_schema/models.py
CHANGED
|
@@ -316,8 +316,9 @@ class Ad(Model, TsTrait):
|
|
|
316
316
|
exid: int = fields.BigIntField()
|
|
317
317
|
direction: fields.ForeignKeyRelation[Direction] = fields.ForeignKeyField("models.Direction", related_name="ads")
|
|
318
318
|
price: float = fields.FloatField()
|
|
319
|
+
amount: float = fields.FloatField()
|
|
319
320
|
min_fiat: float = fields.FloatField()
|
|
320
|
-
max_fiat: float = fields.FloatField()
|
|
321
|
+
max_fiat: float | None = fields.FloatField(null=True)
|
|
321
322
|
detail: str | None = fields.CharField(4095, null=True)
|
|
322
323
|
auto_msg: str | None = fields.CharField(255, null=True)
|
|
323
324
|
status: AdStatus = fields.IntEnumField(AdStatus, default=AdStatus.active)
|
|
@@ -327,6 +328,7 @@ class Ad(Model, TsTrait):
|
|
|
327
328
|
|
|
328
329
|
pms: fields.ManyToManyRelation["Pm"] = fields.ManyToManyField("models.Pm", through="adpm") # only root pms
|
|
329
330
|
creds: fields.ManyToManyRelation["Cred"] = fields.ManyToManyField("models.Cred", through="adcred")
|
|
331
|
+
pay_reqs: fields.ReverseRelation["PayReq"]
|
|
330
332
|
orders: fields.ReverseRelation["Order"]
|
|
331
333
|
|
|
332
334
|
_icon = "ad"
|
|
@@ -540,6 +542,20 @@ class Asset(Model):
|
|
|
540
542
|
return sys.modules[module_name].AssetEpyd
|
|
541
543
|
|
|
542
544
|
|
|
545
|
+
class PayReq(Model, TsTrait):
|
|
546
|
+
exid: int = fields.BigIntField()
|
|
547
|
+
pay_until: datetime = DatetimeSecField()
|
|
548
|
+
asset: fields.ForeignKeyRelation[Asset] = fields.ForeignKeyField("models.Asset", related_name="pay_reqs")
|
|
549
|
+
fiat: fields.ForeignKeyRelation[Fiat] = fields.ForeignKeyField("models.Fiat", related_name="pay_reqs")
|
|
550
|
+
amount: float = fields.FloatField()
|
|
551
|
+
parts: int = fields.SmallIntField(default=1)
|
|
552
|
+
|
|
553
|
+
ads: fields.ReverseRelation["Ad"]
|
|
554
|
+
|
|
555
|
+
_icon = "pay"
|
|
556
|
+
_name = {"ad_id"}
|
|
557
|
+
|
|
558
|
+
|
|
543
559
|
class Order(Model):
|
|
544
560
|
exid: int = fields.BigIntField()
|
|
545
561
|
ad: fields.ForeignKeyRelation[Ad] = fields.ForeignKeyField("models.Ad", related_name="ads")
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
xync_schema/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
+
xync_schema/enums.py,sha256=4ZNpPKY54SY34nz1APsg7wKzCIvpYWhG4sKsZ1uEmVU,12697
|
|
3
|
+
xync_schema/models.py,sha256=b9__Bt2wwc1y48HS8H-oLJ_oUS3UuX1bZltcnRTz4Ss,28367
|
|
4
|
+
xync_schema/types.py,sha256=P9rcmrH4_mcRsXy6jh009A_XP6BpjtO5a04_2Pz2j6w,1649
|
|
5
|
+
xync_schema-0.6.84.dev1.dist-info/METADATA,sha256=wCtwXvFj-iUg-lXEk7hxpP85XKEHJbBFaQkCRg7a9v8,4060
|
|
6
|
+
xync_schema-0.6.84.dev1.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
|
7
|
+
xync_schema-0.6.84.dev1.dist-info/top_level.txt,sha256=jN8IBDfVY8b85Byyk8v0Gyj_0yLB8FO56WV4EvcXWY4,12
|
|
8
|
+
xync_schema-0.6.84.dev1.dist-info/RECORD,,
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
xync_schema/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
-
xync_schema/enums.py,sha256=4ZNpPKY54SY34nz1APsg7wKzCIvpYWhG4sKsZ1uEmVU,12697
|
|
3
|
-
xync_schema/models.py,sha256=Xs83JS5SULIpikGhS8e1RSwfhFzV0i-UClhqttBwe8w,27764
|
|
4
|
-
xync_schema/types.py,sha256=P9rcmrH4_mcRsXy6jh009A_XP6BpjtO5a04_2Pz2j6w,1649
|
|
5
|
-
xync_schema-0.6.81.dist-info/METADATA,sha256=0FNmN46iJDBNBabv2miQFJPw5VcvOxAqtLGXJ4McuLk,4055
|
|
6
|
-
xync_schema-0.6.81.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
|
7
|
-
xync_schema-0.6.81.dist-info/top_level.txt,sha256=jN8IBDfVY8b85Byyk8v0Gyj_0yLB8FO56WV4EvcXWY4,12
|
|
8
|
-
xync_schema-0.6.81.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|