xn-auth 0.2.30__tar.gz → 0.2.31__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.30/xn_auth.egg-info → xn_auth-0.2.31}/PKG-INFO +1 -1
- {xn_auth-0.2.30 → xn_auth-0.2.31}/x_auth/models.py +29 -1
- {xn_auth-0.2.30 → xn_auth-0.2.31/xn_auth.egg-info}/PKG-INFO +1 -1
- {xn_auth-0.2.30 → xn_auth-0.2.31}/.env.dist +0 -0
- {xn_auth-0.2.30 → xn_auth-0.2.31}/.gitignore +0 -0
- {xn_auth-0.2.30 → xn_auth-0.2.31}/.pre-commit-config.yaml +0 -0
- {xn_auth-0.2.30 → xn_auth-0.2.31}/README.md +0 -0
- {xn_auth-0.2.30 → xn_auth-0.2.31}/makefile +0 -0
- {xn_auth-0.2.30 → xn_auth-0.2.31}/pyproject.toml +0 -0
- {xn_auth-0.2.30 → xn_auth-0.2.31}/setup.cfg +0 -0
- {xn_auth-0.2.30 → xn_auth-0.2.31}/x_auth/controller.py +0 -0
- {xn_auth-0.2.30 → xn_auth-0.2.31}/x_auth/enums.py +0 -0
- {xn_auth-0.2.30 → xn_auth-0.2.31}/x_auth/exceptions.py +0 -0
- {xn_auth-0.2.30 → xn_auth-0.2.31}/x_auth/middleware.py +0 -0
- {xn_auth-0.2.30 → xn_auth-0.2.31}/x_auth/types.py +0 -0
- {xn_auth-0.2.30 → xn_auth-0.2.31}/xn_auth.egg-info/SOURCES.txt +0 -0
- {xn_auth-0.2.30 → xn_auth-0.2.31}/xn_auth.egg-info/dependency_links.txt +0 -0
- {xn_auth-0.2.30 → xn_auth-0.2.31}/xn_auth.egg-info/requires.txt +0 -0
- {xn_auth-0.2.30 → xn_auth-0.2.31}/xn_auth.egg-info/top_level.txt +0 -0
|
@@ -142,10 +142,38 @@ class Proxy(Model, TsTrait):
|
|
|
142
142
|
return reps
|
|
143
143
|
|
|
144
144
|
|
|
145
|
+
class Dc(TortModel):
|
|
146
|
+
id: int = SmallIntField(True)
|
|
147
|
+
ip = CharField(15, unique=True)
|
|
148
|
+
pub = CharField(495)
|
|
149
|
+
|
|
150
|
+
apps: BackwardFKRelation["App"]
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
class Fcm(TortModel):
|
|
154
|
+
id: int = SmallIntField(True)
|
|
155
|
+
json: dict = JSONField(default={})
|
|
156
|
+
|
|
157
|
+
apps: BackwardFKRelation["App"]
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
class App(TortModel):
|
|
161
|
+
hsh = CharField(32, unique=True)
|
|
162
|
+
dc: ForeignKeyRelation[Dc] = ForeignKeyField("models.Dc", "apps", default=2)
|
|
163
|
+
dc_id: int
|
|
164
|
+
title = CharField(127)
|
|
165
|
+
short = CharField(95)
|
|
166
|
+
fcm: ForeignKeyNullableRelation[Fcm] = ForeignKeyField("models.Fcm", "apps", null=True)
|
|
167
|
+
fcm_id: int
|
|
168
|
+
|
|
169
|
+
sessions: BackwardFKRelation["Session"]
|
|
170
|
+
|
|
171
|
+
|
|
145
172
|
class Session(TortModel):
|
|
146
173
|
id = CharField(127, primary_key=True)
|
|
147
174
|
dc_id = IntField(null=True)
|
|
148
|
-
|
|
175
|
+
api: ForeignKeyRelation[App] = ForeignKeyField("models.App", "sessions")
|
|
176
|
+
api_id: int
|
|
149
177
|
test_mode = BooleanField(default=False)
|
|
150
178
|
auth_key = BinaryField(null=True)
|
|
151
179
|
date = IntField(null=True) # todo: refact to datetime?
|
|
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
|
|
File without changes
|