xync-schema 0.6.38.dev1__tar.gz → 0.6.39__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: xync-schema
3
- Version: 0.6.38.dev1
3
+ Version: 0.6.39
4
4
  Summary: XyncNet project database model schema
5
5
  Author-email: Mike Artemiev <mixartemev@gmail.com>
6
6
  License: EULA
@@ -246,13 +246,11 @@ class Ad(Model, TsTrait):
246
246
 
247
247
 
248
248
  class Pm(Model):
249
- name: str = fields.CharField(63, unique=False)
250
- identifier: str | None = fields.CharField(63, unique=False, null=True)
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 = (("pm_id", "ex_id"), ("ex_id", "exid"))
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
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: xync-schema
3
- Version: 0.6.38.dev1
3
+ Version: 0.6.39
4
4
  Summary: XyncNet project database model schema
5
5
  Author-email: Mike Artemiev <mixartemev@gmail.com>
6
6
  License: EULA
File without changes