xync-schema 0.6.38.dev1__tar.gz → 0.6.40__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.38.dev1/xync_schema.egg-info → xync_schema-0.6.40}/PKG-INFO +1 -1
- {xync_schema-0.6.38.dev1 → xync_schema-0.6.40}/xync_schema/enums.py +1 -1
- {xync_schema-0.6.38.dev1 → xync_schema-0.6.40}/xync_schema/models.py +8 -6
- {xync_schema-0.6.38.dev1 → xync_schema-0.6.40/xync_schema.egg-info}/PKG-INFO +1 -1
- {xync_schema-0.6.38.dev1 → xync_schema-0.6.40}/.env.sample +0 -0
- {xync_schema-0.6.38.dev1 → xync_schema-0.6.40}/.gitignore +0 -0
- {xync_schema-0.6.38.dev1 → xync_schema-0.6.40}/.pre-commit-config.yaml +0 -0
- {xync_schema-0.6.38.dev1 → xync_schema-0.6.40}/README.md +0 -0
- {xync_schema-0.6.38.dev1 → xync_schema-0.6.40}/makefile +0 -0
- {xync_schema-0.6.38.dev1 → xync_schema-0.6.40}/pyproject.toml +0 -0
- {xync_schema-0.6.38.dev1 → xync_schema-0.6.40}/setup.cfg +0 -0
- {xync_schema-0.6.38.dev1 → xync_schema-0.6.40}/tests/__init__.py +0 -0
- {xync_schema-0.6.38.dev1 → xync_schema-0.6.40}/tests/test_db.py +0 -0
- {xync_schema-0.6.38.dev1 → xync_schema-0.6.40}/xync_schema/__init__.py +0 -0
- {xync_schema-0.6.38.dev1 → xync_schema-0.6.40}/xync_schema/pydantic.py +0 -0
- {xync_schema-0.6.38.dev1 → xync_schema-0.6.40}/xync_schema.egg-info/SOURCES.txt +0 -0
- {xync_schema-0.6.38.dev1 → xync_schema-0.6.40}/xync_schema.egg-info/dependency_links.txt +0 -0
- {xync_schema-0.6.38.dev1 → xync_schema-0.6.40}/xync_schema.egg-info/requires.txt +0 -0
- {xync_schema-0.6.38.dev1 → xync_schema-0.6.40}/xync_schema.egg-info/top_level.txt +0 -0
|
@@ -246,13 +246,11 @@ class Ad(Model, TsTrait):
|
|
|
246
246
|
|
|
247
247
|
|
|
248
248
|
class Pm(Model):
|
|
249
|
-
name: str = fields.CharField(63, unique=
|
|
250
|
-
identifier: str | None = fields.CharField(63, unique=
|
|
251
|
-
rank: int | None = fields.SmallIntField(default=0)
|
|
249
|
+
name: str = fields.CharField(63, unique=True)
|
|
250
|
+
identifier: str | None = fields.CharField(63, unique=True, null=True)
|
|
252
251
|
# type_: PmType | None = fields.IntEnumField(PmType, null=True)
|
|
253
252
|
type_: int | None = fields.SmallIntField(null=True)
|
|
254
253
|
logo: str | None = fields.CharField(127, null=True)
|
|
255
|
-
multiAllow: bool | None = fields.BooleanField(null=True)
|
|
256
254
|
|
|
257
255
|
ads: fields.ManyToManyRelation[Ad]
|
|
258
256
|
curs: fields.ManyToManyRelation[Cur]
|
|
@@ -291,10 +289,11 @@ class Pmex(BaseModel): # existence pm in ex with no cur tie
|
|
|
291
289
|
pm_id: int
|
|
292
290
|
ex: fields.ForeignKeyRelation[Ex] = fields.ForeignKeyField("models.Ex", "pmexs")
|
|
293
291
|
ex_id: int
|
|
294
|
-
exid: str = fields.
|
|
292
|
+
exid: str = fields.IntField()
|
|
293
|
+
name: str = fields.CharField(63)
|
|
295
294
|
|
|
296
295
|
class Meta:
|
|
297
|
-
unique_together = (("
|
|
296
|
+
unique_together = (("ex_id", "exid"),)
|
|
298
297
|
|
|
299
298
|
|
|
300
299
|
class Pmcurex(BaseModel): # existence pm in ex for exact cur, with "blocked" flag
|
|
@@ -481,6 +480,9 @@ class TestEx(Model):
|
|
|
481
480
|
table_description = "Test Exs"
|
|
482
481
|
unique_together = (("action", "ex"),)
|
|
483
482
|
|
|
483
|
+
class PydanticMeta(Model.PydanticMeta):
|
|
484
|
+
max_recursion: int = 2
|
|
485
|
+
|
|
484
486
|
|
|
485
487
|
# class Vpn(Model):
|
|
486
488
|
# user: fields.OneToOneRelation[User] = fields.OneToOneField("models.User", related_name="vpn")
|
|
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
|