xync-schema 0.6.73.dev15__tar.gz → 0.6.73.dev17__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.6.73.dev15/xync_schema.egg-info → xync_schema-0.6.73.dev17}/PKG-INFO +4 -2
- {xync_schema-0.6.73.dev15 → xync_schema-0.6.73.dev17}/pyproject.toml +2 -1
- {xync_schema-0.6.73.dev15 → xync_schema-0.6.73.dev17}/xync_schema/models.py +4 -3
- {xync_schema-0.6.73.dev15 → xync_schema-0.6.73.dev17}/xync_schema/types.py +0 -5
- {xync_schema-0.6.73.dev15 → xync_schema-0.6.73.dev17/xync_schema.egg-info}/PKG-INFO +4 -2
- {xync_schema-0.6.73.dev15 → xync_schema-0.6.73.dev17}/xync_schema.egg-info/requires.txt +3 -1
- {xync_schema-0.6.73.dev15 → xync_schema-0.6.73.dev17}/.env.sample +0 -0
- {xync_schema-0.6.73.dev15 → xync_schema-0.6.73.dev17}/.gitignore +0 -0
- {xync_schema-0.6.73.dev15 → xync_schema-0.6.73.dev17}/.pre-commit-config.yaml +0 -0
- {xync_schema-0.6.73.dev15 → xync_schema-0.6.73.dev17}/README.md +0 -0
- {xync_schema-0.6.73.dev15 → xync_schema-0.6.73.dev17}/makefile +0 -0
- {xync_schema-0.6.73.dev15 → xync_schema-0.6.73.dev17}/setup.cfg +0 -0
- {xync_schema-0.6.73.dev15 → xync_schema-0.6.73.dev17}/tests/__init__.py +0 -0
- {xync_schema-0.6.73.dev15 → xync_schema-0.6.73.dev17}/tests/test_db.py +0 -0
- {xync_schema-0.6.73.dev15 → xync_schema-0.6.73.dev17}/xync_schema/__init__.py +0 -0
- {xync_schema-0.6.73.dev15 → xync_schema-0.6.73.dev17}/xync_schema/enums.py +0 -0
- {xync_schema-0.6.73.dev15 → xync_schema-0.6.73.dev17}/xync_schema.egg-info/SOURCES.txt +0 -0
- {xync_schema-0.6.73.dev15 → xync_schema-0.6.73.dev17}/xync_schema.egg-info/dependency_links.txt +0 -0
- {xync_schema-0.6.73.dev15 → xync_schema-0.6.73.dev17}/xync_schema.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: xync-schema
|
|
3
|
-
Version: 0.6.73.
|
|
3
|
+
Version: 0.6.73.dev17
|
|
4
4
|
Summary: XyncNet project database model schema
|
|
5
5
|
Author-email: Mike Artemiev <mixartemev@gmail.com>
|
|
6
6
|
License: EULA
|
|
@@ -8,9 +8,11 @@ Project-URL: Homepage, https://gitlab.com/xync/back/schema
|
|
|
8
8
|
Project-URL: Repository, https://gitlab.com/xync/back/schema
|
|
9
9
|
Requires-Python: >=3.11
|
|
10
10
|
Description-Content-Type: text/markdown
|
|
11
|
-
Requires-Dist:
|
|
11
|
+
Requires-Dist: xn-auth
|
|
12
|
+
Requires-Dist: python-dotenv
|
|
12
13
|
Provides-Extra: dev
|
|
13
14
|
Requires-Dist: build; extra == "dev"
|
|
15
|
+
Requires-Dist: pre-commit; extra == "dev"
|
|
14
16
|
Requires-Dist: pytest-asyncio; extra == "dev"
|
|
15
17
|
Requires-Dist: twine; extra == "dev"
|
|
16
18
|
|
|
@@ -9,11 +9,12 @@ readme = "README.md"
|
|
|
9
9
|
license = {text = "EULA"}
|
|
10
10
|
dynamic = ["version"]
|
|
11
11
|
|
|
12
|
-
dependencies = ["
|
|
12
|
+
dependencies = ["xn-auth", "python-dotenv"]
|
|
13
13
|
|
|
14
14
|
[project.optional-dependencies]
|
|
15
15
|
dev = [
|
|
16
16
|
"build",
|
|
17
|
+
"pre-commit",
|
|
17
18
|
"pytest-asyncio",
|
|
18
19
|
"twine",
|
|
19
20
|
]
|
|
@@ -102,7 +102,7 @@ class Ex(Model):
|
|
|
102
102
|
class Curex(BaseModel):
|
|
103
103
|
cur: fields.ForeignKeyRelation[Cur] = fields.ForeignKeyField("models.Cur")
|
|
104
104
|
ex: fields.ForeignKeyRelation[Ex] = fields.ForeignKeyField("models.Ex")
|
|
105
|
-
exid: str = fields.CharField(
|
|
105
|
+
exid: str = fields.CharField(32)
|
|
106
106
|
minimum: float = fields.FloatField(null=True)
|
|
107
107
|
rounding_scale: int = fields.SmallIntField(null=True)
|
|
108
108
|
countries: fields.ManyToManyRelation[Country] = fields.ManyToManyField(
|
|
@@ -119,7 +119,7 @@ class Coinex(BaseModel):
|
|
|
119
119
|
ex: fields.ForeignKeyRelation[Ex] = fields.ForeignKeyField("models.Ex")
|
|
120
120
|
minimum: float = fields.FloatField(null=True)
|
|
121
121
|
|
|
122
|
-
exid: str = fields.CharField(
|
|
122
|
+
exid: str = fields.CharField(32)
|
|
123
123
|
p2p: bool = fields.BooleanField(default=True)
|
|
124
124
|
|
|
125
125
|
class Meta:
|
|
@@ -195,6 +195,7 @@ class User(UserTg, TsTrait):
|
|
|
195
195
|
actors: fields.BackwardFKRelation["Actor"]
|
|
196
196
|
# fiats: fields.BackwardFKRelation["Fiat"]
|
|
197
197
|
limits: fields.BackwardFKRelation["Limit"]
|
|
198
|
+
msgs: fields.BackwardFKRelation["Msg"]
|
|
198
199
|
# vpn: fields.BackwardOneToOneRelation["Vpn"]
|
|
199
200
|
# invite_requests: fields.BackwardFKRelation["Invite"]
|
|
200
201
|
# invite_approvals: fields.BackwardFKRelation["Invite"]
|
|
@@ -588,7 +589,7 @@ class Msg(Model):
|
|
|
588
589
|
txt: str = fields.CharField(255)
|
|
589
590
|
read: bool = fields.BooleanField(default=False)
|
|
590
591
|
media: str | None = fields.CharField(255, null=True)
|
|
591
|
-
receiver: fields.ForeignKeyRelation[
|
|
592
|
+
receiver: fields.ForeignKeyRelation[User] = fields.ForeignKeyField("models.User", related_name="msgs")
|
|
592
593
|
order: fields.ForeignKeyRelation[Order] = fields.ForeignKeyField("models.Order", related_name="msgs")
|
|
593
594
|
|
|
594
595
|
class PydanticMeta(Model.PydanticMeta):
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: xync-schema
|
|
3
|
-
Version: 0.6.73.
|
|
3
|
+
Version: 0.6.73.dev17
|
|
4
4
|
Summary: XyncNet project database model schema
|
|
5
5
|
Author-email: Mike Artemiev <mixartemev@gmail.com>
|
|
6
6
|
License: EULA
|
|
@@ -8,9 +8,11 @@ Project-URL: Homepage, https://gitlab.com/xync/back/schema
|
|
|
8
8
|
Project-URL: Repository, https://gitlab.com/xync/back/schema
|
|
9
9
|
Requires-Python: >=3.11
|
|
10
10
|
Description-Content-Type: text/markdown
|
|
11
|
-
Requires-Dist:
|
|
11
|
+
Requires-Dist: xn-auth
|
|
12
|
+
Requires-Dist: python-dotenv
|
|
12
13
|
Provides-Extra: dev
|
|
13
14
|
Requires-Dist: build; extra == "dev"
|
|
15
|
+
Requires-Dist: pre-commit; extra == "dev"
|
|
14
16
|
Requires-Dist: pytest-asyncio; extra == "dev"
|
|
15
17
|
Requires-Dist: twine; extra == "dev"
|
|
16
18
|
|
|
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
|
{xync_schema-0.6.73.dev15 → xync_schema-0.6.73.dev17}/xync_schema.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|