xync-schema 0.6.84.dev1__py3-none-any.whl → 0.6.84.dev3__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 +8 -4
- {xync_schema-0.6.84.dev1.dist-info → xync_schema-0.6.84.dev3.dist-info}/METADATA +1 -1
- xync_schema-0.6.84.dev3.dist-info/RECORD +8 -0
- xync_schema-0.6.84.dev1.dist-info/RECORD +0 -8
- {xync_schema-0.6.84.dev1.dist-info → xync_schema-0.6.84.dev3.dist-info}/WHEEL +0 -0
- {xync_schema-0.6.84.dev1.dist-info → xync_schema-0.6.84.dev3.dist-info}/top_level.txt +0 -0
xync_schema/models.py
CHANGED
|
@@ -325,10 +325,10 @@ class Ad(Model, TsTrait):
|
|
|
325
325
|
|
|
326
326
|
maker: fields.ForeignKeyRelation[Actor] = fields.ForeignKeyField("models.Actor", "my_ads")
|
|
327
327
|
maker_id: int
|
|
328
|
+
pay_req: fields.ForeignKeyNullableRelation["PayReq"] = fields.ForeignKeyField("models.PayReq", "ads", null=True)
|
|
328
329
|
|
|
329
330
|
pms: fields.ManyToManyRelation["Pm"] = fields.ManyToManyField("models.Pm", through="adpm") # only root pms
|
|
330
331
|
creds: fields.ManyToManyRelation["Cred"] = fields.ManyToManyField("models.Cred", through="adcred")
|
|
331
|
-
pay_reqs: fields.ReverseRelation["PayReq"]
|
|
332
332
|
orders: fields.ReverseRelation["Order"]
|
|
333
333
|
|
|
334
334
|
_icon = "ad"
|
|
@@ -483,6 +483,8 @@ class Fiat(Model):
|
|
|
483
483
|
amount: float | None = fields.FloatField(default=0)
|
|
484
484
|
target: float = fields.FloatField(default=0)
|
|
485
485
|
|
|
486
|
+
pay_reqs: fields.ReverseRelation["PayReq"]
|
|
487
|
+
|
|
486
488
|
class Meta:
|
|
487
489
|
table_description = "Currency balances"
|
|
488
490
|
|
|
@@ -527,6 +529,8 @@ class Asset(Model):
|
|
|
527
529
|
lock: float | None = fields.FloatField(default=0)
|
|
528
530
|
target: float | None = fields.FloatField(default=0, null=True)
|
|
529
531
|
|
|
532
|
+
pay_reqs: fields.ReverseRelation["PayReq"]
|
|
533
|
+
|
|
530
534
|
_name = {"coin__ticker", "free"}
|
|
531
535
|
|
|
532
536
|
class Meta:
|
|
@@ -543,10 +547,10 @@ class Asset(Model):
|
|
|
543
547
|
|
|
544
548
|
|
|
545
549
|
class PayReq(Model, TsTrait):
|
|
546
|
-
exid: int = fields.BigIntField()
|
|
547
550
|
pay_until: datetime = DatetimeSecField()
|
|
548
|
-
asset: fields.
|
|
549
|
-
fiat: fields.
|
|
551
|
+
asset: fields.ForeignKeyNullableRelation[Asset] = fields.ForeignKeyField("models.Asset", "pay_reqs", null=True)
|
|
552
|
+
fiat: fields.ForeignKeyNullableRelation[Fiat] = fields.ForeignKeyField("models.Fiat", "pay_reqs", null=True)
|
|
553
|
+
user: fields.ForeignKeyRelation[User] = fields.ForeignKeyField("models.User", "pay_reqs")
|
|
550
554
|
amount: float = fields.FloatField()
|
|
551
555
|
parts: int = fields.SmallIntField(default=1)
|
|
552
556
|
|
|
@@ -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=iaG1nR_mbbBVGnsjTr29hfgL0UI5BP4FjWOI8alTrYs,28602
|
|
4
|
+
xync_schema/types.py,sha256=P9rcmrH4_mcRsXy6jh009A_XP6BpjtO5a04_2Pz2j6w,1649
|
|
5
|
+
xync_schema-0.6.84.dev3.dist-info/METADATA,sha256=X33Xf9niXLEls5409BxMQbz5YB4_-VvTr3CCbI1il9w,4060
|
|
6
|
+
xync_schema-0.6.84.dev3.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
|
7
|
+
xync_schema-0.6.84.dev3.dist-info/top_level.txt,sha256=jN8IBDfVY8b85Byyk8v0Gyj_0yLB8FO56WV4EvcXWY4,12
|
|
8
|
+
xync_schema-0.6.84.dev3.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=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,,
|
|
File without changes
|
|
File without changes
|