xync-schema 0.6.86__tar.gz → 0.6.87__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.86/xync_schema.egg-info → xync_schema-0.6.87}/PKG-INFO +1 -1
- {xync_schema-0.6.86 → xync_schema-0.6.87}/xync_schema/models.py +6 -7
- {xync_schema-0.6.86 → xync_schema-0.6.87/xync_schema.egg-info}/PKG-INFO +1 -1
- {xync_schema-0.6.86 → xync_schema-0.6.87}/.env.sample +0 -0
- {xync_schema-0.6.86 → xync_schema-0.6.87}/.gitignore +0 -0
- {xync_schema-0.6.86 → xync_schema-0.6.87}/.pre-commit-config.yaml +0 -0
- {xync_schema-0.6.86 → xync_schema-0.6.87}/README.md +0 -0
- {xync_schema-0.6.86 → xync_schema-0.6.87}/makefile +0 -0
- {xync_schema-0.6.86 → xync_schema-0.6.87}/pyproject.toml +0 -0
- {xync_schema-0.6.86 → xync_schema-0.6.87}/setup.cfg +0 -0
- {xync_schema-0.6.86 → xync_schema-0.6.87}/tests/__init__.py +0 -0
- {xync_schema-0.6.86 → xync_schema-0.6.87}/tests/test_db.py +0 -0
- {xync_schema-0.6.86 → xync_schema-0.6.87}/xync_schema/__init__.py +0 -0
- {xync_schema-0.6.86 → xync_schema-0.6.87}/xync_schema/enums.py +0 -0
- {xync_schema-0.6.86 → xync_schema-0.6.87}/xync_schema/types.py +0 -0
- {xync_schema-0.6.86 → xync_schema-0.6.87}/xync_schema.egg-info/SOURCES.txt +0 -0
- {xync_schema-0.6.86 → xync_schema-0.6.87}/xync_schema.egg-info/dependency_links.txt +0 -0
- {xync_schema-0.6.86 → xync_schema-0.6.87}/xync_schema.egg-info/requires.txt +0 -0
- {xync_schema-0.6.86 → xync_schema-0.6.87}/xync_schema.egg-info/top_level.txt +0 -0
|
@@ -456,6 +456,7 @@ class Cred(Model):
|
|
|
456
456
|
fiat: fields.BackwardOneToOneRelation["Fiat"]
|
|
457
457
|
credexs: fields.BackwardFKRelation["CredEx"]
|
|
458
458
|
orders: fields.BackwardFKRelation["Order"]
|
|
459
|
+
pay_reqs: fields.ReverseRelation["PayReq"]
|
|
459
460
|
|
|
460
461
|
_name = {"detail"}
|
|
461
462
|
|
|
@@ -486,8 +487,6 @@ class Fiat(Model):
|
|
|
486
487
|
amount: float | None = fields.FloatField(default=0)
|
|
487
488
|
target: float = fields.FloatField(default=0)
|
|
488
489
|
|
|
489
|
-
pay_reqs: fields.ReverseRelation["PayReq"]
|
|
490
|
-
|
|
491
490
|
class Meta:
|
|
492
491
|
table_description = "Currency balances"
|
|
493
492
|
|
|
@@ -562,13 +561,13 @@ class Asset(Model):
|
|
|
562
561
|
|
|
563
562
|
class PayReq(Model, TsTrait):
|
|
564
563
|
pay_until: datetime = DatetimeSecField()
|
|
565
|
-
|
|
566
|
-
|
|
564
|
+
addr: fields.ForeignKeyNullableRelation[Addr] = fields.ForeignKeyField("models.Addr", "pay_reqs", null=True)
|
|
565
|
+
cred: fields.ForeignKeyNullableRelation[Cred] = fields.ForeignKeyField("models.Cred", "pay_reqs", null=True)
|
|
567
566
|
user: fields.ForeignKeyRelation[User] = fields.ForeignKeyField("models.User", "pay_reqs")
|
|
568
567
|
user_id: int
|
|
569
568
|
amount: float = fields.FloatField()
|
|
570
|
-
|
|
571
|
-
|
|
569
|
+
min_amount: int = fields.IntField()
|
|
570
|
+
payed_at: datetime | None = DatetimeSecField(default=None)
|
|
572
571
|
|
|
573
572
|
ads: fields.ReverseRelation["Ad"]
|
|
574
573
|
|
|
@@ -577,7 +576,7 @@ class PayReq(Model, TsTrait):
|
|
|
577
576
|
|
|
578
577
|
class Meta:
|
|
579
578
|
table_description = "Payment request"
|
|
580
|
-
unique_together = (("user_id", "
|
|
579
|
+
unique_together = (("user_id", "cred_id", "addr_id"),)
|
|
581
580
|
|
|
582
581
|
|
|
583
582
|
class Order(Model):
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|