xync-schema 0.6.41__tar.gz → 0.6.43__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.41
3
+ Version: 0.6.43
4
4
  Summary: XyncNet project database model schema
5
5
  Author-email: Mike Artemiev <mixartemev@gmail.com>
6
6
  License: EULA
@@ -54,6 +54,7 @@ class PmType(IntEnum):
54
54
  cash = 2
55
55
  gift_card = 3
56
56
  credit_card = 4
57
+ IFSC = 5
57
58
 
58
59
 
59
60
  class TaskType(IntEnum):
@@ -187,7 +187,7 @@ class Agent(Model, TsTrait):
187
187
  ex: fields.ForeignKeyRelation[Ex] = fields.ForeignKeyField("models.Ex", related_name="agents")
188
188
  auth: dict[str, str] = fields.JSONField(null=True)
189
189
  user: fields.ForeignKeyRelation[User] = fields.ForeignKeyField("models.User", related_name="agents")
190
- # user_id: int
190
+ user_id: int
191
191
  assets: fields.ReverseRelation["Asset"]
192
192
  orders: fields.ReverseRelation["Order"]
193
193
  ads: fields.ReverseRelation["Ad"]
@@ -233,8 +233,8 @@ class Ad(Model, TsTrait):
233
233
  pms: fields.ManyToManyRelation["Pm"] = fields.ManyToManyField("models.Pm", through="adpm") # only root pms
234
234
  maxFiat: float = fields.FloatField()
235
235
  minFiat: float = fields.FloatField()
236
- detail: str = fields.CharField(4095, null=True)
237
- autoMsg: str = fields.CharField(255, null=True)
236
+ detail: str | None = fields.CharField(4095, null=True)
237
+ autoMsg: str | None = fields.CharField(255, null=True)
238
238
  agent: fields.ForeignKeyRelation[Agent] = fields.ForeignKeyField("models.Agent", "ads")
239
239
  status: AdStatus = fields.IntEnumField(AdStatus)
240
240
 
@@ -409,6 +409,9 @@ class Order(Model, TsTrait):
409
409
  class Meta:
410
410
  table_description = "P2P Orders"
411
411
 
412
+ class PydanticMeta(Model.PydanticMeta):
413
+ exclude = ("taker",)
414
+
412
415
 
413
416
  # class Dep(Model, TsTrait):
414
417
  # pid: str = fields.CharField(31) # product_id
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: xync-schema
3
- Version: 0.6.41
3
+ Version: 0.6.43
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