xync-schema 0.6.86__tar.gz → 0.6.88__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.88}/PKG-INFO +1 -1
- {xync_schema-0.6.86 → xync_schema-0.6.88}/xync_schema/models.py +12 -9
- {xync_schema-0.6.86 → xync_schema-0.6.88/xync_schema.egg-info}/PKG-INFO +1 -1
- {xync_schema-0.6.86 → xync_schema-0.6.88}/.env.sample +0 -0
- {xync_schema-0.6.86 → xync_schema-0.6.88}/.gitignore +0 -0
- {xync_schema-0.6.86 → xync_schema-0.6.88}/.pre-commit-config.yaml +0 -0
- {xync_schema-0.6.86 → xync_schema-0.6.88}/README.md +0 -0
- {xync_schema-0.6.86 → xync_schema-0.6.88}/makefile +0 -0
- {xync_schema-0.6.86 → xync_schema-0.6.88}/pyproject.toml +0 -0
- {xync_schema-0.6.86 → xync_schema-0.6.88}/setup.cfg +0 -0
- {xync_schema-0.6.86 → xync_schema-0.6.88}/tests/__init__.py +0 -0
- {xync_schema-0.6.86 → xync_schema-0.6.88}/tests/test_db.py +0 -0
- {xync_schema-0.6.86 → xync_schema-0.6.88}/xync_schema/__init__.py +0 -0
- {xync_schema-0.6.86 → xync_schema-0.6.88}/xync_schema/enums.py +0 -0
- {xync_schema-0.6.86 → xync_schema-0.6.88}/xync_schema/types.py +0 -0
- {xync_schema-0.6.86 → xync_schema-0.6.88}/xync_schema.egg-info/SOURCES.txt +0 -0
- {xync_schema-0.6.86 → xync_schema-0.6.88}/xync_schema.egg-info/dependency_links.txt +0 -0
- {xync_schema-0.6.86 → xync_schema-0.6.88}/xync_schema.egg-info/requires.txt +0 -0
- {xync_schema-0.6.86 → xync_schema-0.6.88}/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.BackwardFKRelation["PayReq"]
|
|
459
460
|
|
|
460
461
|
_name = {"detail"}
|
|
461
462
|
|
|
@@ -483,10 +484,9 @@ class CredEx(Model):
|
|
|
483
484
|
class Fiat(Model):
|
|
484
485
|
cred: fields.OneToOneRelation[Cred] = fields.OneToOneField("models.Cred", "fiat")
|
|
485
486
|
cred_id: int
|
|
486
|
-
amount: float
|
|
487
|
+
amount: float = fields.FloatField(default=0)
|
|
487
488
|
target: float = fields.FloatField(default=0)
|
|
488
|
-
|
|
489
|
-
pay_reqs: fields.ReverseRelation["PayReq"]
|
|
489
|
+
min_deposit: int = fields.IntField(null=True)
|
|
490
490
|
|
|
491
491
|
class Meta:
|
|
492
492
|
table_description = "Currency balances"
|
|
@@ -526,8 +526,9 @@ class Addr(Model):
|
|
|
526
526
|
coin_id: int
|
|
527
527
|
actor: fields.ForeignKeyRelation[Actor] = fields.ForeignKeyField("models.Actor", "addrs")
|
|
528
528
|
actor_id: int
|
|
529
|
+
val: str = fields.CharField(127)
|
|
529
530
|
|
|
530
|
-
pay_reqs: fields.
|
|
531
|
+
pay_reqs: fields.BackwardFKRelation["PayReq"]
|
|
531
532
|
|
|
532
533
|
_name = {"coin__ticker", "free"}
|
|
533
534
|
|
|
@@ -562,13 +563,15 @@ class Asset(Model):
|
|
|
562
563
|
|
|
563
564
|
class PayReq(Model, TsTrait):
|
|
564
565
|
pay_until: datetime = DatetimeSecField()
|
|
565
|
-
|
|
566
|
-
|
|
566
|
+
addr: fields.ForeignKeyNullableRelation[Addr] = fields.ForeignKeyField("models.Addr", "pay_reqs", null=True)
|
|
567
|
+
addr_id: int
|
|
568
|
+
cred: fields.ForeignKeyNullableRelation[Cred] = fields.ForeignKeyField("models.Cred", "pay_reqs", null=True)
|
|
569
|
+
cred_id: int
|
|
567
570
|
user: fields.ForeignKeyRelation[User] = fields.ForeignKeyField("models.User", "pay_reqs")
|
|
568
571
|
user_id: int
|
|
569
572
|
amount: float = fields.FloatField()
|
|
570
|
-
parts: int = fields.
|
|
571
|
-
|
|
573
|
+
parts: int = fields.IntField(default=1)
|
|
574
|
+
payed_at: datetime | None = DatetimeSecField(null=True)
|
|
572
575
|
|
|
573
576
|
ads: fields.ReverseRelation["Ad"]
|
|
574
577
|
|
|
@@ -577,7 +580,7 @@ class PayReq(Model, TsTrait):
|
|
|
577
580
|
|
|
578
581
|
class Meta:
|
|
579
582
|
table_description = "Payment request"
|
|
580
|
-
unique_together = (("user_id", "
|
|
583
|
+
unique_together = (("user_id", "cred_id", "addr_id"),)
|
|
581
584
|
|
|
582
585
|
|
|
583
586
|
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
|