xync-schema 0.6.84.dev3__py3-none-any.whl → 0.6.84.dev4__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 +6 -0
- {xync_schema-0.6.84.dev3.dist-info → xync_schema-0.6.84.dev4.dist-info}/METADATA +1 -1
- xync_schema-0.6.84.dev4.dist-info/RECORD +8 -0
- xync_schema-0.6.84.dev3.dist-info/RECORD +0 -8
- {xync_schema-0.6.84.dev3.dist-info → xync_schema-0.6.84.dev4.dist-info}/WHEEL +0 -0
- {xync_schema-0.6.84.dev3.dist-info → xync_schema-0.6.84.dev4.dist-info}/top_level.txt +0 -0
xync_schema/models.py
CHANGED
|
@@ -551,14 +551,20 @@ class PayReq(Model, TsTrait):
|
|
|
551
551
|
asset: fields.ForeignKeyNullableRelation[Asset] = fields.ForeignKeyField("models.Asset", "pay_reqs", null=True)
|
|
552
552
|
fiat: fields.ForeignKeyNullableRelation[Fiat] = fields.ForeignKeyField("models.Fiat", "pay_reqs", null=True)
|
|
553
553
|
user: fields.ForeignKeyRelation[User] = fields.ForeignKeyField("models.User", "pay_reqs")
|
|
554
|
+
user_id: int
|
|
554
555
|
amount: float = fields.FloatField()
|
|
555
556
|
parts: int = fields.SmallIntField(default=1)
|
|
557
|
+
# todo: payed_at or status?
|
|
556
558
|
|
|
557
559
|
ads: fields.ReverseRelation["Ad"]
|
|
558
560
|
|
|
559
561
|
_icon = "pay"
|
|
560
562
|
_name = {"ad_id"}
|
|
561
563
|
|
|
564
|
+
class Meta:
|
|
565
|
+
table_description = "Payment request"
|
|
566
|
+
unique_together = (("user_id", "fiat_id", "asset_id"),)
|
|
567
|
+
|
|
562
568
|
|
|
563
569
|
class Order(Model):
|
|
564
570
|
exid: int = fields.BigIntField()
|
|
@@ -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=Zg_k9OgXrnv04OF5pCS6IiKjiBj0Ht9e8MaFlVWlLVw,28778
|
|
4
|
+
xync_schema/types.py,sha256=P9rcmrH4_mcRsXy6jh009A_XP6BpjtO5a04_2Pz2j6w,1649
|
|
5
|
+
xync_schema-0.6.84.dev4.dist-info/METADATA,sha256=hL62yxK5RKtIFbDlYt5KmC_D4O96q-OxPe3pkJBf1b0,4060
|
|
6
|
+
xync_schema-0.6.84.dev4.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
|
7
|
+
xync_schema-0.6.84.dev4.dist-info/top_level.txt,sha256=jN8IBDfVY8b85Byyk8v0Gyj_0yLB8FO56WV4EvcXWY4,12
|
|
8
|
+
xync_schema-0.6.84.dev4.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=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,,
|
|
File without changes
|
|
File without changes
|