xync-schema 0.6.82__py3-none-any.whl → 0.6.84.dev2__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 +15 -2
- {xync_schema-0.6.82.dist-info → xync_schema-0.6.84.dev2.dist-info}/METADATA +1 -1
- xync_schema-0.6.84.dev2.dist-info/RECORD +8 -0
- xync_schema-0.6.82.dist-info/RECORD +0 -8
- {xync_schema-0.6.82.dist-info → xync_schema-0.6.84.dev2.dist-info}/WHEEL +0 -0
- {xync_schema-0.6.82.dist-info → xync_schema-0.6.84.dev2.dist-info}/top_level.txt +0 -0
xync_schema/models.py
CHANGED
|
@@ -316,19 +316,19 @@ 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
|
-
min_fiat: float = fields.FloatField()
|
|
320
319
|
amount: float = fields.FloatField()
|
|
320
|
+
min_fiat: float = fields.FloatField()
|
|
321
321
|
max_fiat: float | None = fields.FloatField(null=True)
|
|
322
322
|
detail: str | None = fields.CharField(4095, null=True)
|
|
323
323
|
auto_msg: str | None = fields.CharField(255, null=True)
|
|
324
324
|
status: AdStatus = fields.IntEnumField(AdStatus, default=AdStatus.active)
|
|
325
|
-
is_payment: bool | None = fields.BooleanField(default=False)
|
|
326
325
|
|
|
327
326
|
maker: fields.ForeignKeyRelation[Actor] = fields.ForeignKeyField("models.Actor", "my_ads")
|
|
328
327
|
maker_id: int
|
|
329
328
|
|
|
330
329
|
pms: fields.ManyToManyRelation["Pm"] = fields.ManyToManyField("models.Pm", through="adpm") # only root pms
|
|
331
330
|
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"
|
|
@@ -542,6 +542,19 @@ class Asset(Model):
|
|
|
542
542
|
return sys.modules[module_name].AssetEpyd
|
|
543
543
|
|
|
544
544
|
|
|
545
|
+
class PayReq(Model, TsTrait):
|
|
546
|
+
pay_until: datetime = DatetimeSecField()
|
|
547
|
+
asset: fields.ForeignKeyRelation[Asset] = fields.ForeignKeyField("models.Asset", related_name="pay_reqs")
|
|
548
|
+
fiat: fields.ForeignKeyRelation[Fiat] = fields.ForeignKeyField("models.Fiat", related_name="pay_reqs")
|
|
549
|
+
amount: float = fields.FloatField()
|
|
550
|
+
parts: int = fields.SmallIntField(default=1)
|
|
551
|
+
|
|
552
|
+
ads: fields.ReverseRelation["Ad"]
|
|
553
|
+
|
|
554
|
+
_icon = "pay"
|
|
555
|
+
_name = {"ad_id"}
|
|
556
|
+
|
|
557
|
+
|
|
545
558
|
class Order(Model):
|
|
546
559
|
exid: int = fields.BigIntField()
|
|
547
560
|
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=YCh1rMiWjSfgRX7owQcu4lSkBv7tiWptgZrtxBkgFbU,28330
|
|
4
|
+
xync_schema/types.py,sha256=P9rcmrH4_mcRsXy6jh009A_XP6BpjtO5a04_2Pz2j6w,1649
|
|
5
|
+
xync_schema-0.6.84.dev2.dist-info/METADATA,sha256=4QrUkSbub0v6GAsDIXTxmuIQADn6vFGBPowQO7Qp5Ug,4060
|
|
6
|
+
xync_schema-0.6.84.dev2.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
|
7
|
+
xync_schema-0.6.84.dev2.dist-info/top_level.txt,sha256=jN8IBDfVY8b85Byyk8v0Gyj_0yLB8FO56WV4EvcXWY4,12
|
|
8
|
+
xync_schema-0.6.84.dev2.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=lOVO56cqAeW-oFkeEVBRsB3QY8ukH7ETJJGgOGo8XQs,27885
|
|
4
|
-
xync_schema/types.py,sha256=P9rcmrH4_mcRsXy6jh009A_XP6BpjtO5a04_2Pz2j6w,1649
|
|
5
|
-
xync_schema-0.6.82.dist-info/METADATA,sha256=VJzI0CJSIu2-txRRwwHoQwgOmtmZSOvpekbauQZJtS8,4055
|
|
6
|
-
xync_schema-0.6.82.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
|
7
|
-
xync_schema-0.6.82.dist-info/top_level.txt,sha256=jN8IBDfVY8b85Byyk8v0Gyj_0yLB8FO56WV4EvcXWY4,12
|
|
8
|
-
xync_schema-0.6.82.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|