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.
@@ -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.40
4
4
  Summary: XyncNet project database model schema
5
5
  Author-email: Mike Artemiev <mixartemev@gmail.com>
6
6
  License: EULA
@@ -131,7 +131,7 @@ exs = {
131
131
  ExType.main,
132
132
  "https://assets.coingecko.com/markets/images/52/large/binance.jpg",
133
133
  "binance.com",
134
- "binance.com",
134
+ "p2p.binance.com",
135
135
  "accounts.binance.com/login",
136
136
  ),
137
137
  "BingX": (
@@ -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]
@@ -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.CharField(31)
292
+ exid: str = fields.IntField()
293
+ name: str = fields.CharField(63)
295
294
 
296
295
  class Meta:
297
- unique_together = (("pm_id", "ex_id"), ("ex_id", "exid"))
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")
@@ -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.40
4
4
  Summary: XyncNet project database model schema
5
5
  Author-email: Mike Artemiev <mixartemev@gmail.com>
6
6
  License: EULA
File without changes