xync-schema 0.6.38__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
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,8 +246,8 @@ 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)
249
+ name: str = fields.CharField(63, unique=True)
250
+ identifier: str | None = fields.CharField(63, unique=True, null=True)
251
251
  # type_: PmType | None = fields.IntEnumField(PmType, null=True)
252
252
  type_: int | None = fields.SmallIntField(null=True)
253
253
  logo: str | None = fields.CharField(127, null=True)
@@ -292,7 +292,7 @@ class Pmex(BaseModel): # existence pm in ex with no cur tie
292
292
  exid: str = fields.CharField(31)
293
293
 
294
294
  class Meta:
295
- unique_together = (("pm_id", "ex_id"), ("ex_id", "exid"))
295
+ unique_together = (("ex_id", "exid"),)
296
296
 
297
297
 
298
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
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
File without changes
File without changes
File without changes
File without changes