xync-schema 0.6.38.dev1__py3-none-any.whl → 0.6.39__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 +3 -5
- {xync_schema-0.6.38.dev1.dist-info → xync_schema-0.6.39.dist-info}/METADATA +1 -1
- xync_schema-0.6.39.dist-info/RECORD +8 -0
- xync_schema-0.6.38.dev1.dist-info/RECORD +0 -8
- {xync_schema-0.6.38.dev1.dist-info → xync_schema-0.6.39.dist-info}/WHEEL +0 -0
- {xync_schema-0.6.38.dev1.dist-info → xync_schema-0.6.39.dist-info}/top_level.txt +0 -0
xync_schema/models.py
CHANGED
|
@@ -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]
|
|
@@ -294,7 +292,7 @@ class Pmex(BaseModel): # existence pm in ex with no cur tie
|
|
|
294
292
|
exid: str = fields.CharField(31)
|
|
295
293
|
|
|
296
294
|
class Meta:
|
|
297
|
-
unique_together = (("
|
|
295
|
+
unique_together = (("ex_id", "exid"),)
|
|
298
296
|
|
|
299
297
|
|
|
300
298
|
class Pmcurex(BaseModel): # existence pm in ex for exact cur, with "blocked" flag
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
xync_schema/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
+
xync_schema/enums.py,sha256=oOpyfG2i1-UKD8Udh2sVBIMUHTIhKZMPIA6Rh7lqnDA,10013
|
|
3
|
+
xync_schema/models.py,sha256=aFEKN2KDr587qSCbOKtzf-0PKJBeVC4mxxSZG_gh4KU,20049
|
|
4
|
+
xync_schema/pydantic.py,sha256=cyviSX1P2Cj6fLFq_IsrYdWB6gBOYwR4adPXrAmlP7g,274
|
|
5
|
+
xync_schema-0.6.39.dist-info/METADATA,sha256=DFciGVAiMseMNplR8swvk-1FWBt043NQ4GACPIqeWUM,3988
|
|
6
|
+
xync_schema-0.6.39.dist-info/WHEEL,sha256=R06PA3UVYHThwHvxuRWMqaGcr-PuniXahwjmQRFMEkY,91
|
|
7
|
+
xync_schema-0.6.39.dist-info/top_level.txt,sha256=jN8IBDfVY8b85Byyk8v0Gyj_0yLB8FO56WV4EvcXWY4,12
|
|
8
|
+
xync_schema-0.6.39.dist-info/RECORD,,
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
xync_schema/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
-
xync_schema/enums.py,sha256=oOpyfG2i1-UKD8Udh2sVBIMUHTIhKZMPIA6Rh7lqnDA,10013
|
|
3
|
-
xync_schema/models.py,sha256=wUU0JQH_fdq18DZCvKAvhZAiWCoLlSsinmpto8MNN-k,20186
|
|
4
|
-
xync_schema/pydantic.py,sha256=cyviSX1P2Cj6fLFq_IsrYdWB6gBOYwR4adPXrAmlP7g,274
|
|
5
|
-
xync_schema-0.6.38.dev1.dist-info/METADATA,sha256=QsVXHqjfgx844CfNOYw5OAGGTFQrEgDCxoogRLYVOT0,3993
|
|
6
|
-
xync_schema-0.6.38.dev1.dist-info/WHEEL,sha256=R06PA3UVYHThwHvxuRWMqaGcr-PuniXahwjmQRFMEkY,91
|
|
7
|
-
xync_schema-0.6.38.dev1.dist-info/top_level.txt,sha256=jN8IBDfVY8b85Byyk8v0Gyj_0yLB8FO56WV4EvcXWY4,12
|
|
8
|
-
xync_schema-0.6.38.dev1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|