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