xync-schema 0.6.77__py3-none-any.whl → 0.6.78__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 CHANGED
@@ -270,7 +270,7 @@ class Agent(Model, TsTrait):
270
270
  module_name = f"xync_client.{self.actor.ex.name}.agent"
271
271
  __import__(module_name)
272
272
  client = sys.modules[module_name].AgentClient
273
- return client(self)
273
+ return client(self, headers=self.auth.get("headers"), cookies=self.auth.get("cookies"))
274
274
 
275
275
  # def in_client(self) -> "BaseInAgentClient":
276
276
  # import sys
@@ -359,7 +359,6 @@ class Pm(Model):
359
359
  bank: bool | None = fields.BooleanField(null=True)
360
360
 
361
361
  typ: PmType | None = fields.IntEnumField(PmType, null=True)
362
- logo: fields.ForeignKeyNullableRelation["File"] = fields.ForeignKeyField("models.File", "pm_logos", null=True)
363
362
 
364
363
  ads: fields.ManyToManyRelation[Ad]
365
364
  curs: fields.ManyToManyRelation[Cur]
@@ -406,17 +405,15 @@ class Pmex(BaseModel): # existence pm in ex with no cur tie
406
405
  ex_id: int
407
406
  pm: fields.ForeignKeyRelation[Pm] = fields.ForeignKeyField("models.Pm", "pmexs")
408
407
  pm_id: int
408
+ logo: fields.ForeignKeyNullableRelation["File"] = fields.ForeignKeyField("models.File", "pmex_logos", null=True)
409
+ logo_id: int
409
410
  exid: str = fields.CharField(63)
410
411
  name: str = fields.CharField(63)
411
- name_: str = fields.CharField(63, null=True)
412
412
 
413
413
  banks: fields.BackwardFKRelation["PmexBank"]
414
414
 
415
415
  class Meta:
416
- unique_together = (
417
- ("ex_id", "exid"),
418
- ("ex_id", "name_"),
419
- ) # , ("ex", "pm"), ("ex", "name") # todo: tmp removed for HTX duplicates
416
+ unique_together = (("ex_id", "exid"),) # , ("ex", "pm"), ("ex", "name") # todo: tmp removed for HTX duplicates
420
417
 
421
418
 
422
419
  class PmexBank(BaseModel): # banks for SBP
@@ -706,6 +703,8 @@ class File(Model):
706
703
  size: bytes = fields.IntField()
707
704
  created_at: datetime | None = DatetimeSecField(auto_now_add=True)
708
705
 
706
+ pmex_logos: fields.BackwardFKRelation[Pmex]
707
+
709
708
  _icon = "file"
710
709
  _name = {"name"}
711
710
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: xync-schema
3
- Version: 0.6.77
3
+ Version: 0.6.78
4
4
  Summary: XyncNet project database model schema
5
5
  Author-email: Mike Artemiev <mixartemev@gmail.com>
6
6
  License: EULA
@@ -0,0 +1,8 @@
1
+ xync_schema/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
+ xync_schema/enums.py,sha256=tE3xRj3hWOSJvFkYMv4X5bGfAkjR7OzNmVnqj1X47Go,12697
3
+ xync_schema/models.py,sha256=PgjTPzK8NNpe01KXRJTR0fzZ6Ui7Ira1TiSQgZkTJWU,27770
4
+ xync_schema/types.py,sha256=jubMlsGkaLpv1QZrInP0sEKW8SgWa6TyHENDz8OEvDM,1737
5
+ xync_schema-0.6.78.dist-info/METADATA,sha256=q31QayhpwlEnJA4FOLMCg_2fwbuCo2XDoYims4oN4fA,4055
6
+ xync_schema-0.6.78.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
7
+ xync_schema-0.6.78.dist-info/top_level.txt,sha256=jN8IBDfVY8b85Byyk8v0Gyj_0yLB8FO56WV4EvcXWY4,12
8
+ xync_schema-0.6.78.dist-info/RECORD,,
@@ -1,8 +0,0 @@
1
- xync_schema/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- xync_schema/enums.py,sha256=tE3xRj3hWOSJvFkYMv4X5bGfAkjR7OzNmVnqj1X47Go,12697
3
- xync_schema/models.py,sha256=LO3PLB7DcRaMyKrIE0w7eY5Jhbt3AX-IRuUSBY3ApG0,27737
4
- xync_schema/types.py,sha256=jubMlsGkaLpv1QZrInP0sEKW8SgWa6TyHENDz8OEvDM,1737
5
- xync_schema-0.6.77.dist-info/METADATA,sha256=PME5UTQ_MjyhCB-JQBuDcnXRAJ3P-LJ2pS1fR-5XSTE,4055
6
- xync_schema-0.6.77.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
7
- xync_schema-0.6.77.dist-info/top_level.txt,sha256=jN8IBDfVY8b85Byyk8v0Gyj_0yLB8FO56WV4EvcXWY4,12
8
- xync_schema-0.6.77.dist-info/RECORD,,