maleo-identity 0.0.94__tar.gz → 0.0.95__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.
Potentially problematic release.
This version of maleo-identity might be problematic. Click here for more details.
- {maleo_identity-0.0.94 → maleo_identity-0.0.95}/PKG-INFO +1 -1
- {maleo_identity-0.0.94 → maleo_identity-0.0.95}/maleo_identity.egg-info/PKG-INFO +1 -1
- {maleo_identity-0.0.94 → maleo_identity-0.0.95}/pyproject.toml +1 -1
- {maleo_identity-0.0.94 → maleo_identity-0.0.95}/src/models.py +22 -0
- {maleo_identity-0.0.94 → maleo_identity-0.0.95}/LICENSE +0 -0
- {maleo_identity-0.0.94 → maleo_identity-0.0.95}/README.md +0 -0
- {maleo_identity-0.0.94 → maleo_identity-0.0.95}/maleo_identity.egg-info/SOURCES.txt +0 -0
- {maleo_identity-0.0.94 → maleo_identity-0.0.95}/maleo_identity.egg-info/dependency_links.txt +0 -0
- {maleo_identity-0.0.94 → maleo_identity-0.0.95}/maleo_identity.egg-info/requires.txt +0 -0
- {maleo_identity-0.0.94 → maleo_identity-0.0.95}/maleo_identity.egg-info/top_level.txt +0 -0
- {maleo_identity-0.0.94 → maleo_identity-0.0.95}/setup.cfg +0 -0
- {maleo_identity-0.0.94 → maleo_identity-0.0.95}/src/__init__.py +0 -0
- {maleo_identity-0.0.94 → maleo_identity-0.0.95}/src/constants/__init__.py +0 -0
- {maleo_identity-0.0.94 → maleo_identity-0.0.95}/src/constants/organization.py +0 -0
- {maleo_identity-0.0.94 → maleo_identity-0.0.95}/src/constants/organization_registration_code.py +0 -0
- {maleo_identity-0.0.94 → maleo_identity-0.0.95}/src/constants/user.py +0 -0
- {maleo_identity-0.0.94 → maleo_identity-0.0.95}/src/constants/user_profile.py +0 -0
- {maleo_identity-0.0.94 → maleo_identity-0.0.95}/src/enums/__init__.py +0 -0
- {maleo_identity-0.0.94 → maleo_identity-0.0.95}/src/enums/organization.py +0 -0
- {maleo_identity-0.0.94 → maleo_identity-0.0.95}/src/enums/organization_registration_code.py +0 -0
- {maleo_identity-0.0.94 → maleo_identity-0.0.95}/src/enums/user.py +0 -0
- {maleo_identity-0.0.94 → maleo_identity-0.0.95}/src/enums/user_profile.py +0 -0
- {maleo_identity-0.0.94 → maleo_identity-0.0.95}/src/mixins/__init__.py +0 -0
- {maleo_identity-0.0.94 → maleo_identity-0.0.95}/src/mixins/organization.py +0 -0
- {maleo_identity-0.0.94 → maleo_identity-0.0.95}/src/mixins/organization_registration_code.py +0 -0
- {maleo_identity-0.0.94 → maleo_identity-0.0.95}/src/mixins/user.py +0 -0
- {maleo_identity-0.0.94 → maleo_identity-0.0.95}/src/mixins/user_profile.py +0 -0
- {maleo_identity-0.0.94 → maleo_identity-0.0.95}/src/schemas/__init__.py +0 -0
- {maleo_identity-0.0.94 → maleo_identity-0.0.95}/src/schemas/common.py +0 -0
- {maleo_identity-0.0.94 → maleo_identity-0.0.95}/src/schemas/organization.py +0 -0
- {maleo_identity-0.0.94 → maleo_identity-0.0.95}/src/schemas/organization_registration_code.py +0 -0
- {maleo_identity-0.0.94 → maleo_identity-0.0.95}/src/schemas/user.py +0 -0
- {maleo_identity-0.0.94 → maleo_identity-0.0.95}/src/schemas/user_profile.py +0 -0
- {maleo_identity-0.0.94 → maleo_identity-0.0.95}/src/types/__init__.py +0 -0
- {maleo_identity-0.0.94 → maleo_identity-0.0.95}/src/types/organization.py +0 -0
- {maleo_identity-0.0.94 → maleo_identity-0.0.95}/src/types/organization_registration_code.py +0 -0
- {maleo_identity-0.0.94 → maleo_identity-0.0.95}/src/types/user.py +0 -0
- {maleo_identity-0.0.94 → maleo_identity-0.0.95}/src/types/user_profile.py +0 -0
|
@@ -206,6 +206,11 @@ class UserProfile(
|
|
|
206
206
|
name="avatar_name", type_=Text, nullable=False
|
|
207
207
|
)
|
|
208
208
|
|
|
209
|
+
# Relationships
|
|
210
|
+
@declared_attr
|
|
211
|
+
def user(cls) -> Mapped["User"]:
|
|
212
|
+
return relationship("User", back_populates="profile")
|
|
213
|
+
|
|
209
214
|
|
|
210
215
|
class UserSystemRole(
|
|
211
216
|
DataStatus,
|
|
@@ -229,6 +234,11 @@ class UserSystemRole(
|
|
|
229
234
|
UniqueConstraint("user_id", "system_role", name="uq_user_system_role"),
|
|
230
235
|
)
|
|
231
236
|
|
|
237
|
+
# Relationships
|
|
238
|
+
@declared_attr
|
|
239
|
+
def user(cls) -> Mapped["User"]:
|
|
240
|
+
return relationship("User", back_populates="system_roles")
|
|
241
|
+
|
|
232
242
|
|
|
233
243
|
class User(
|
|
234
244
|
DataStatus,
|
|
@@ -259,6 +269,18 @@ class User(
|
|
|
259
269
|
"UserOrganization", back_populates="user", cascade="all, delete-orphan"
|
|
260
270
|
)
|
|
261
271
|
|
|
272
|
+
@declared_attr
|
|
273
|
+
def profile(cls) -> Mapped["UserProfile | None"]:
|
|
274
|
+
return relationship(
|
|
275
|
+
"UserProfile", back_populates="user", cascade="all, delete-orphan"
|
|
276
|
+
)
|
|
277
|
+
|
|
278
|
+
@declared_attr
|
|
279
|
+
def system_roles(cls) -> Mapped["UserSystemRole | None"]:
|
|
280
|
+
return relationship(
|
|
281
|
+
"UserSystemRole", back_populates="user", cascade="all, delete-orphan"
|
|
282
|
+
)
|
|
283
|
+
|
|
262
284
|
|
|
263
285
|
class UserOrganization(
|
|
264
286
|
DataStatus,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{maleo_identity-0.0.94 → maleo_identity-0.0.95}/maleo_identity.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{maleo_identity-0.0.94 → maleo_identity-0.0.95}/src/constants/organization_registration_code.py
RENAMED
|
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
|
{maleo_identity-0.0.94 → maleo_identity-0.0.95}/src/mixins/organization_registration_code.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{maleo_identity-0.0.94 → maleo_identity-0.0.95}/src/schemas/organization_registration_code.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|