xync-schema 0.6.32.dev1__tar.gz → 0.6.33__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.32.dev1/xync_schema.egg-info → xync_schema-0.6.33}/PKG-INFO +1 -1
- {xync_schema-0.6.32.dev1 → xync_schema-0.6.33}/xync_schema/models.py +17 -17
- {xync_schema-0.6.32.dev1 → xync_schema-0.6.33/xync_schema.egg-info}/PKG-INFO +1 -1
- {xync_schema-0.6.32.dev1 → xync_schema-0.6.33}/.env.sample +0 -0
- {xync_schema-0.6.32.dev1 → xync_schema-0.6.33}/.gitignore +0 -0
- {xync_schema-0.6.32.dev1 → xync_schema-0.6.33}/.pre-commit-config.yaml +0 -0
- {xync_schema-0.6.32.dev1 → xync_schema-0.6.33}/README.md +0 -0
- {xync_schema-0.6.32.dev1 → xync_schema-0.6.33}/makefile +0 -0
- {xync_schema-0.6.32.dev1 → xync_schema-0.6.33}/pyproject.toml +0 -0
- {xync_schema-0.6.32.dev1 → xync_schema-0.6.33}/setup.cfg +0 -0
- {xync_schema-0.6.32.dev1 → xync_schema-0.6.33}/tests/__init__.py +0 -0
- {xync_schema-0.6.32.dev1 → xync_schema-0.6.33}/tests/test_db.py +0 -0
- {xync_schema-0.6.32.dev1 → xync_schema-0.6.33}/xync_schema/__init__.py +0 -0
- {xync_schema-0.6.32.dev1 → xync_schema-0.6.33}/xync_schema/pydantic.py +0 -0
- {xync_schema-0.6.32.dev1 → xync_schema-0.6.33}/xync_schema.egg-info/SOURCES.txt +0 -0
- {xync_schema-0.6.32.dev1 → xync_schema-0.6.33}/xync_schema.egg-info/dependency_links.txt +0 -0
- {xync_schema-0.6.32.dev1 → xync_schema-0.6.33}/xync_schema.egg-info/requires.txt +0 -0
- {xync_schema-0.6.32.dev1 → xync_schema-0.6.33}/xync_schema.egg-info/top_level.txt +0 -0
|
@@ -224,7 +224,7 @@ class Direction(Model):
|
|
|
224
224
|
|
|
225
225
|
class User(Model, TsTrait):
|
|
226
226
|
id: int = fields.BigIntField(True)
|
|
227
|
-
role: Role = fields.IntEnumField(Role)
|
|
227
|
+
role: Role = fields.IntEnumField(Role, default=Role.READER)
|
|
228
228
|
status: UserStatus = fields.IntEnumField(UserStatus, default=UserStatus.RESTRICTED)
|
|
229
229
|
username: str | None = fields.CharField(95, unique=True, null=True)
|
|
230
230
|
ref: fields.ForeignKeyNullableRelation["User"] = fields.ForeignKeyField(
|
|
@@ -578,22 +578,22 @@ class Order(Model, TsTrait):
|
|
|
578
578
|
# table_description = "Investments"
|
|
579
579
|
|
|
580
580
|
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
#
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
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):
|
|
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
|