xn-auth 0.2.36__tar.gz → 0.2.37__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.
- {xn_auth-0.2.36/xn_auth.egg-info → xn_auth-0.2.37}/PKG-INFO +1 -1
- {xn_auth-0.2.36 → xn_auth-0.2.37}/x_auth/enums.py +8 -0
- {xn_auth-0.2.36 → xn_auth-0.2.37}/x_auth/models.py +2 -2
- {xn_auth-0.2.36 → xn_auth-0.2.37/xn_auth.egg-info}/PKG-INFO +1 -1
- {xn_auth-0.2.36 → xn_auth-0.2.37}/.env.dist +0 -0
- {xn_auth-0.2.36 → xn_auth-0.2.37}/.gitignore +0 -0
- {xn_auth-0.2.36 → xn_auth-0.2.37}/.pre-commit-config.yaml +0 -0
- {xn_auth-0.2.36 → xn_auth-0.2.37}/README.md +0 -0
- {xn_auth-0.2.36 → xn_auth-0.2.37}/makefile +0 -0
- {xn_auth-0.2.36 → xn_auth-0.2.37}/pyproject.toml +0 -0
- {xn_auth-0.2.36 → xn_auth-0.2.37}/setup.cfg +0 -0
- {xn_auth-0.2.36 → xn_auth-0.2.37}/x_auth/controller.py +0 -0
- {xn_auth-0.2.36 → xn_auth-0.2.37}/x_auth/exceptions.py +0 -0
- {xn_auth-0.2.36 → xn_auth-0.2.37}/x_auth/middleware.py +0 -0
- {xn_auth-0.2.36 → xn_auth-0.2.37}/x_auth/types.py +0 -0
- {xn_auth-0.2.36 → xn_auth-0.2.37}/xn_auth.egg-info/SOURCES.txt +0 -0
- {xn_auth-0.2.36 → xn_auth-0.2.37}/xn_auth.egg-info/dependency_links.txt +0 -0
- {xn_auth-0.2.36 → xn_auth-0.2.37}/xn_auth.egg-info/requires.txt +0 -0
- {xn_auth-0.2.36 → xn_auth-0.2.37}/xn_auth.egg-info/top_level.txt +0 -0
|
@@ -30,7 +30,7 @@ from x_model.models import Model, TsTrait
|
|
|
30
30
|
from tortoise import Model as TortModel
|
|
31
31
|
from x_model.types import BaseUpd
|
|
32
32
|
|
|
33
|
-
from x_auth.enums import Lang, Role
|
|
33
|
+
from x_auth.enums import Lang, Role, PeerType
|
|
34
34
|
from x_auth.types import AuthUser
|
|
35
35
|
|
|
36
36
|
|
|
@@ -226,7 +226,7 @@ class Peer(TortModel):
|
|
|
226
226
|
username_id: int
|
|
227
227
|
session: ForeignKeyRelation[Session] = ForeignKeyField("models.Session", "peers")
|
|
228
228
|
session_id: int
|
|
229
|
-
type =
|
|
229
|
+
type: PeerType = IntEnumField(PeerType)
|
|
230
230
|
phone_number = BigIntField(null=True) # todo: rm (already moved to Username.phone)
|
|
231
231
|
last_update_on: datetime | None = DatetimeSecField(auto_now=True)
|
|
232
232
|
|
|
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
|