xync-schema 0.6.89__tar.gz → 0.6.90__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.4
2
2
  Name: xync-schema
3
- Version: 0.6.89
3
+ Version: 0.6.90
4
4
  Summary: XyncNet project database model schema
5
5
  Author-email: Mike Artemiev <mixartemev@gmail.com>
6
6
  License: EULA
@@ -182,6 +182,7 @@ class Person(Model, TsTrait):
182
182
 
183
183
  class User(UserTg, TsTrait):
184
184
  status: UserStatus = fields.IntEnumField(UserStatus, default=UserStatus.SLEEP)
185
+ gmail_auth: dict = fields.JSONField(default={})
185
186
 
186
187
  person: fields.OneToOneRelation[Person] = fields.OneToOneField("models.Person", related_name="user")
187
188
  person_id: int
@@ -276,7 +277,7 @@ class Actor(Model):
276
277
 
277
278
 
278
279
  class Agent(Model, TsTrait):
279
- auth: dict[str, str] = fields.JSONField(default={})
280
+ auth: dict = fields.JSONField(default={})
280
281
  actor: fields.OneToOneRelation[Actor] = fields.OneToOneField("models.Actor", "agent")
281
282
  actor_id: int
282
283
 
@@ -357,7 +358,8 @@ class Pm(Model):
357
358
  # name: str = fields.CharField(63) # mv to pmex cause it diffs on each ex
358
359
  norm: str | None = fields.CharField(63)
359
360
  acronym: str | None = fields.CharField(7, null=True)
360
- country: fields.ForeignKeyRelation[Country] = fields.ForeignKeyField("models.Country", "pms", null=True)
361
+ country: fields.ForeignKeyNullableRelation[Country] = fields.ForeignKeyField("models.Country", "pms", null=True)
362
+ df_cur: fields.ForeignKeyNullableRelation[Cur] = fields.ForeignKeyField("models.Cur", "df_pms", null=True)
361
363
  alias: str | None = fields.CharField(63, null=True)
362
364
  extra: str | None = fields.CharField(63, null=True)
363
365
  ok: bool = fields.BooleanField(default=True)
@@ -388,11 +390,12 @@ class Pm(Model):
388
390
 
389
391
  class PmAgent(Model):
390
392
  pm: fields.ForeignKeyRelation[Pm] = fields.ForeignKeyField("models.Pm", related_name="agents")
391
- person: fields.ForeignKeyRelation[Person] = fields.ForeignKeyField("models.Person", related_name="pm_agents")
392
- auth: dict[str, str] = fields.JSONField(default={})
393
+ user: fields.ForeignKeyRelation[User] = fields.ForeignKeyField("models.User", related_name="pm_agents")
394
+ user_id: int
395
+ auth: dict = fields.JSONField(default={})
393
396
 
394
397
  class Meta:
395
- unique_together = (("pm_id", "person_id"),)
398
+ unique_together = (("pm_id", "user_id"),)
396
399
 
397
400
 
398
401
  class Pmcur(Model): # for fiat with no exs tie
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: xync-schema
3
- Version: 0.6.89
3
+ Version: 0.6.90
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