xync-schema 0.0.9.dev5__tar.gz → 0.0.9.dev6__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.
- {xync_schema-0.0.9.dev5/xync_schema.egg-info → xync_schema-0.0.9.dev6}/PKG-INFO +1 -1
- {xync_schema-0.0.9.dev5 → xync_schema-0.0.9.dev6}/xync_schema/enums.py +1 -1
- {xync_schema-0.0.9.dev5 → xync_schema-0.0.9.dev6}/xync_schema/models.py +19 -13
- {xync_schema-0.0.9.dev5 → xync_schema-0.0.9.dev6/xync_schema.egg-info}/PKG-INFO +1 -1
- {xync_schema-0.0.9.dev5 → xync_schema-0.0.9.dev6}/.env.sample +0 -0
- {xync_schema-0.0.9.dev5 → xync_schema-0.0.9.dev6}/.gitignore +0 -0
- {xync_schema-0.0.9.dev5 → xync_schema-0.0.9.dev6}/.pre-commit-config.yaml +0 -0
- {xync_schema-0.0.9.dev5 → xync_schema-0.0.9.dev6}/README.md +0 -0
- {xync_schema-0.0.9.dev5 → xync_schema-0.0.9.dev6}/makefile +0 -0
- {xync_schema-0.0.9.dev5 → xync_schema-0.0.9.dev6}/pyproject.toml +0 -0
- {xync_schema-0.0.9.dev5 → xync_schema-0.0.9.dev6}/setup.cfg +0 -0
- {xync_schema-0.0.9.dev5 → xync_schema-0.0.9.dev6}/tests/__init__.py +0 -0
- {xync_schema-0.0.9.dev5 → xync_schema-0.0.9.dev6}/tests/test_db.py +0 -0
- {xync_schema-0.0.9.dev5 → xync_schema-0.0.9.dev6}/xync_schema/__init__.py +0 -0
- {xync_schema-0.0.9.dev5 → xync_schema-0.0.9.dev6}/xync_schema/xtype.py +0 -0
- {xync_schema-0.0.9.dev5 → xync_schema-0.0.9.dev6}/xync_schema.egg-info/SOURCES.txt +0 -0
- {xync_schema-0.0.9.dev5 → xync_schema-0.0.9.dev6}/xync_schema.egg-info/dependency_links.txt +0 -0
- {xync_schema-0.0.9.dev5 → xync_schema-0.0.9.dev6}/xync_schema.egg-info/requires.txt +0 -0
- {xync_schema-0.0.9.dev5 → xync_schema-0.0.9.dev6}/xync_schema.egg-info/top_level.txt +0 -0
|
@@ -351,29 +351,35 @@ class Agent(Model, TsTrait):
|
|
|
351
351
|
|
|
352
352
|
|
|
353
353
|
class Cond(Model, TsTrait):
|
|
354
|
-
party: Party = IntEnumField(Party, null=True)
|
|
355
|
-
ppo: int = SmallIntField(null=True) # Payments per order
|
|
356
|
-
slip: Slip = IntEnumField(Slip, null=True)
|
|
357
|
-
abuser: bool = BooleanField(null=True) # рейт: жмет "Оплачено" сразу, "Отмена" по аппеляции
|
|
358
|
-
slavic: bool = BooleanField(null=True)
|
|
359
|
-
mtl_like: bool = BooleanField(null=True)
|
|
360
|
-
cred_in_chat: bool = BooleanField(null=True)
|
|
361
|
-
scale: int = SmallIntField(null=True)
|
|
362
354
|
raw_txt: str = CharField(4095, unique=True)
|
|
363
|
-
parsed: bool = BooleanField(default=False)
|
|
364
355
|
last_ver: str = CharField(4095, null=True)
|
|
365
356
|
|
|
366
|
-
sim: BackwardOneToOneRelation["Cond"]
|
|
367
|
-
banks: BackwardFKRelation["CondPm"]
|
|
368
|
-
|
|
369
357
|
ads: BackwardFKRelation["Ad"]
|
|
358
|
+
banks: BackwardFKRelation["CondPm"]
|
|
359
|
+
parsed: BackwardOneToOneRelation["CondParsed"]
|
|
360
|
+
sim: BackwardOneToOneRelation["Cond"]
|
|
370
361
|
|
|
371
362
|
async def sims(self):
|
|
372
363
|
return {self.raw_txt: await self.sim.sims()} if await self.sim else self.raw_txt
|
|
373
364
|
|
|
374
365
|
|
|
366
|
+
class CondParsed(Model, TsTrait):
|
|
367
|
+
cond: OneToOneNullableRelation[Cond] = OneToOneField("models.Cond", "parsed", null=True)
|
|
368
|
+
cond_id: int # new
|
|
369
|
+
to_party: Party = IntEnumField(Party, null=True)
|
|
370
|
+
from_party: Party = IntEnumField(Party, null=True)
|
|
371
|
+
ppo: int = SmallIntField(null=True) # Payments per order
|
|
372
|
+
slip_req: Slip = IntEnumField(Slip, null=True)
|
|
373
|
+
slip_send: Slip = IntEnumField(Slip, null=True)
|
|
374
|
+
abuser: bool = BooleanField(null=True) # рейт: жмет "Оплачено" сразу, "Отмена" по аппеляции
|
|
375
|
+
slavic: bool = BooleanField(null=True)
|
|
376
|
+
mtl_like: bool = BooleanField(null=True)
|
|
377
|
+
cred_in_chat: bool = BooleanField(null=True)
|
|
378
|
+
scale: int = SmallIntField(null=True)
|
|
379
|
+
|
|
380
|
+
|
|
375
381
|
class CondSim(BaseModel):
|
|
376
|
-
cond:
|
|
382
|
+
cond: OneToOneRelation[Cond] = OneToOneField("models.Cond", "sim", primary_key=True)
|
|
377
383
|
cond_id: int # new
|
|
378
384
|
similarity: int = SmallIntField(db_index=True) # /1000
|
|
379
385
|
cond_rel: ForeignKeyRelation[Cond] = ForeignKeyField("models.Cond", "sims_rel")
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|