xync-schema 0.6.79__tar.gz → 0.6.80__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.79
3
+ Version: 0.6.80
4
4
  Summary: XyncNet project database model schema
5
5
  Author-email: Mike Artemiev <mixartemev@gmail.com>
6
6
  License: EULA
@@ -93,11 +93,11 @@ class Ex(Model):
93
93
  class PydanticMeta(Model.PydanticMeta):
94
94
  include = "name", "logo"
95
95
 
96
- def client(self):
96
+ def client(self, actor: "Actor" = None):
97
97
  module_name = f"xync_client.{self.name}.ex"
98
98
  __import__(module_name)
99
99
  client = sys.modules[module_name].ExClient
100
- return client(self)
100
+ return client(self, actor)
101
101
 
102
102
 
103
103
  class Curex(BaseModel):
@@ -246,7 +246,7 @@ class Actor(Model):
246
246
  person_id: int
247
247
 
248
248
  agent: fields.BackwardOneToOneRelation["Agent"]
249
- ads: fields.BackwardFKRelation["Ad"]
249
+ my_ads: fields.BackwardFKRelation["Ad"]
250
250
  taken_orders: fields.BackwardFKRelation["Order"]
251
251
 
252
252
  def client(self):
@@ -61,10 +61,6 @@ class AdSaleIn(BaseAdIn):
61
61
  creds_: list[models.Cred]
62
62
 
63
63
 
64
- class BaseOrder(BaseModel):
65
- id: int | None = None
66
-
67
-
68
64
  class OrderIn(BaseModel):
69
65
  exid: int
70
66
  amount: float
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: xync-schema
3
- Version: 0.6.79
3
+ Version: 0.6.80
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