xync-schema 0.6.32__py3-none-any.whl → 0.6.33__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
@@ -578,22 +578,22 @@ class Order(Model, TsTrait):
578
578
  # table_description = "Investments"
579
579
 
580
580
 
581
- # class TestEx(Model):
582
- # ex: fields.ForeignKeyRelation[Ex] = fields.ForeignKeyField("models.Ex", related_name="tests")
583
- # # ex_id: int
584
- # action: ExAction = fields.IntEnumField(ExAction)
585
- # ok: bool | None = fields.BooleanField(default=False, null=True)
586
- # updated_at: datetime | None = DatetimeSecField(auto_now=True)
587
- #
588
- # _icon = "test-pipe"
589
- # _name = {"ex__name", "action", "ok"}
590
- #
591
- # def repr(self, *args):
592
- # return f"{self.ex.name} {self.action.name} {self.ok}"
593
- #
594
- # class Meta:
595
- # table_description = "Test Exs"
596
- # unique_together = (("action", "ex"),)
581
+ class TestEx(Model):
582
+ ex: fields.ForeignKeyRelation[Ex] = fields.ForeignKeyField("models.Ex", related_name="tests")
583
+ # ex_id: int
584
+ action: ExAction = fields.IntEnumField(ExAction)
585
+ ok: bool | None = fields.BooleanField(default=False, null=True)
586
+ updated_at: datetime | None = DatetimeSecField(auto_now=True)
587
+
588
+ _icon = "test-pipe"
589
+ _name = {"ex__name", "action", "ok"}
590
+
591
+ def repr(self, *args):
592
+ return f"{self.ex.name} {self.action.name} {self.ok}"
593
+
594
+ class Meta:
595
+ table_description = "Test Exs"
596
+ unique_together = (("action", "ex"),)
597
597
 
598
598
 
599
599
  # class Vpn(Model):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: xync-schema
3
- Version: 0.6.32
3
+ Version: 0.6.33
4
4
  Summary: XyncNet project database model schema
5
5
  Author-email: Mike Artemiev <mixartemev@gmail.com>
6
6
  License: EULA
@@ -0,0 +1,7 @@
1
+ xync_schema/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
+ xync_schema/models.py,sha256=aXFo8MaKp_LcrjXJSzmN8KQQLC9luXOgB8ZNQt8cxkk,24470
3
+ xync_schema/pydantic.py,sha256=lVYku7YiV1vYnFbZSUTRu3d-_RPU8VShSQxhmCz3dXM,291
4
+ xync_schema-0.6.33.dist-info/METADATA,sha256=uncG4E4kBAGXnPdNXCnmBe3wfhTp1LauitFh93nFkIs,1094
5
+ xync_schema-0.6.33.dist-info/WHEEL,sha256=P9jw-gEje8ByB7_hXoICnHtVCrEwMQh-630tKvQWehc,91
6
+ xync_schema-0.6.33.dist-info/top_level.txt,sha256=jN8IBDfVY8b85Byyk8v0Gyj_0yLB8FO56WV4EvcXWY4,12
7
+ xync_schema-0.6.33.dist-info/RECORD,,
@@ -1,7 +0,0 @@
1
- xync_schema/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- xync_schema/models.py,sha256=l_APVdeZbSqL54B68RwWxzhCO032np7yU2WLoWV4elA,24499
3
- xync_schema/pydantic.py,sha256=lVYku7YiV1vYnFbZSUTRu3d-_RPU8VShSQxhmCz3dXM,291
4
- xync_schema-0.6.32.dist-info/METADATA,sha256=z6DcX4Oiqq2WfGulR9f8iOUToJuDsT5POvj0oWve4Aw,1094
5
- xync_schema-0.6.32.dist-info/WHEEL,sha256=P9jw-gEje8ByB7_hXoICnHtVCrEwMQh-630tKvQWehc,91
6
- xync_schema-0.6.32.dist-info/top_level.txt,sha256=jN8IBDfVY8b85Byyk8v0Gyj_0yLB8FO56WV4EvcXWY4,12
7
- xync_schema-0.6.32.dist-info/RECORD,,