xync-schema 0.6.84.dev4__tar.gz → 0.6.85__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.84.dev4/xync_schema.egg-info → xync_schema-0.6.85}/PKG-INFO +1 -1
- {xync_schema-0.6.84.dev4 → xync_schema-0.6.85}/xync_schema/models.py +7 -4
- {xync_schema-0.6.84.dev4 → xync_schema-0.6.85}/xync_schema/types.py +1 -0
- {xync_schema-0.6.84.dev4 → xync_schema-0.6.85/xync_schema.egg-info}/PKG-INFO +1 -1
- {xync_schema-0.6.84.dev4 → xync_schema-0.6.85}/.env.sample +0 -0
- {xync_schema-0.6.84.dev4 → xync_schema-0.6.85}/.gitignore +0 -0
- {xync_schema-0.6.84.dev4 → xync_schema-0.6.85}/.pre-commit-config.yaml +0 -0
- {xync_schema-0.6.84.dev4 → xync_schema-0.6.85}/README.md +0 -0
- {xync_schema-0.6.84.dev4 → xync_schema-0.6.85}/makefile +0 -0
- {xync_schema-0.6.84.dev4 → xync_schema-0.6.85}/pyproject.toml +0 -0
- {xync_schema-0.6.84.dev4 → xync_schema-0.6.85}/setup.cfg +0 -0
- {xync_schema-0.6.84.dev4 → xync_schema-0.6.85}/tests/__init__.py +0 -0
- {xync_schema-0.6.84.dev4 → xync_schema-0.6.85}/tests/test_db.py +0 -0
- {xync_schema-0.6.84.dev4 → xync_schema-0.6.85}/xync_schema/__init__.py +0 -0
- {xync_schema-0.6.84.dev4 → xync_schema-0.6.85}/xync_schema/enums.py +0 -0
- {xync_schema-0.6.84.dev4 → xync_schema-0.6.85}/xync_schema.egg-info/SOURCES.txt +0 -0
- {xync_schema-0.6.84.dev4 → xync_schema-0.6.85}/xync_schema.egg-info/dependency_links.txt +0 -0
- {xync_schema-0.6.84.dev4 → xync_schema-0.6.85}/xync_schema.egg-info/requires.txt +0 -0
- {xync_schema-0.6.84.dev4 → xync_schema-0.6.85}/xync_schema.egg-info/top_level.txt +0 -0
|
@@ -327,8 +327,10 @@ class Ad(Model, TsTrait):
|
|
|
327
327
|
maker_id: int
|
|
328
328
|
pay_req: fields.ForeignKeyNullableRelation["PayReq"] = fields.ForeignKeyField("models.PayReq", "ads", null=True)
|
|
329
329
|
|
|
330
|
-
|
|
331
|
-
|
|
330
|
+
pmexs: fields.ManyToManyRelation["Pmex"] = fields.ManyToManyField("models.Pm", "adpmex", related_name="ads")
|
|
331
|
+
credexs: fields.ManyToManyRelation["CredEx"] = fields.ManyToManyField(
|
|
332
|
+
"models.CredEx", through="adcredex", related_name="ads"
|
|
333
|
+
)
|
|
332
334
|
orders: fields.ReverseRelation["Order"]
|
|
333
335
|
|
|
334
336
|
_icon = "ad"
|
|
@@ -362,7 +364,6 @@ class Pm(Model):
|
|
|
362
364
|
|
|
363
365
|
typ: PmType | None = fields.IntEnumField(PmType, null=True)
|
|
364
366
|
|
|
365
|
-
ads: fields.ManyToManyRelation[Ad]
|
|
366
367
|
curs: fields.ManyToManyRelation[Cur]
|
|
367
368
|
exs: fields.ManyToManyRelation[Ex] = fields.ManyToManyField("models.Ex", "pmex") # no need. use pmexs[.exid]
|
|
368
369
|
orders: fields.ReverseRelation["Order"]
|
|
@@ -412,6 +413,7 @@ class Pmex(BaseModel): # existence pm in ex with no cur tie
|
|
|
412
413
|
exid: str = fields.CharField(63)
|
|
413
414
|
name: str = fields.CharField(63)
|
|
414
415
|
|
|
416
|
+
ads: fields.ManyToManyRelation[Ad]
|
|
415
417
|
banks: fields.BackwardFKRelation["PmexBank"]
|
|
416
418
|
|
|
417
419
|
class Meta:
|
|
@@ -452,7 +454,6 @@ class Cred(Model):
|
|
|
452
454
|
banks: fields.ManyToManyRelation[PmexBank] = fields.ManyToManyField("models.PmexBank", related_name="creds")
|
|
453
455
|
|
|
454
456
|
fiat: fields.BackwardOneToOneRelation["Fiat"]
|
|
455
|
-
ads: fields.ManyToManyRelation[Ad]
|
|
456
457
|
credexs: fields.BackwardFKRelation["CredEx"]
|
|
457
458
|
orders: fields.BackwardFKRelation["Order"]
|
|
458
459
|
|
|
@@ -470,6 +471,8 @@ class CredEx(Model):
|
|
|
470
471
|
ex: fields.ForeignKeyRelation[Ex] = fields.ForeignKeyField("models.Ex", "credexs")
|
|
471
472
|
ex_id: int
|
|
472
473
|
|
|
474
|
+
ads: fields.ManyToManyRelation[Ad]
|
|
475
|
+
|
|
473
476
|
_name = {"exid"}
|
|
474
477
|
|
|
475
478
|
class Meta:
|
|
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
|