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.

Files changed (38) hide show
  1. {maleo_identity-0.0.94 → maleo_identity-0.0.95}/PKG-INFO +1 -1
  2. {maleo_identity-0.0.94 → maleo_identity-0.0.95}/maleo_identity.egg-info/PKG-INFO +1 -1
  3. {maleo_identity-0.0.94 → maleo_identity-0.0.95}/pyproject.toml +1 -1
  4. {maleo_identity-0.0.94 → maleo_identity-0.0.95}/src/models.py +22 -0
  5. {maleo_identity-0.0.94 → maleo_identity-0.0.95}/LICENSE +0 -0
  6. {maleo_identity-0.0.94 → maleo_identity-0.0.95}/README.md +0 -0
  7. {maleo_identity-0.0.94 → maleo_identity-0.0.95}/maleo_identity.egg-info/SOURCES.txt +0 -0
  8. {maleo_identity-0.0.94 → maleo_identity-0.0.95}/maleo_identity.egg-info/dependency_links.txt +0 -0
  9. {maleo_identity-0.0.94 → maleo_identity-0.0.95}/maleo_identity.egg-info/requires.txt +0 -0
  10. {maleo_identity-0.0.94 → maleo_identity-0.0.95}/maleo_identity.egg-info/top_level.txt +0 -0
  11. {maleo_identity-0.0.94 → maleo_identity-0.0.95}/setup.cfg +0 -0
  12. {maleo_identity-0.0.94 → maleo_identity-0.0.95}/src/__init__.py +0 -0
  13. {maleo_identity-0.0.94 → maleo_identity-0.0.95}/src/constants/__init__.py +0 -0
  14. {maleo_identity-0.0.94 → maleo_identity-0.0.95}/src/constants/organization.py +0 -0
  15. {maleo_identity-0.0.94 → maleo_identity-0.0.95}/src/constants/organization_registration_code.py +0 -0
  16. {maleo_identity-0.0.94 → maleo_identity-0.0.95}/src/constants/user.py +0 -0
  17. {maleo_identity-0.0.94 → maleo_identity-0.0.95}/src/constants/user_profile.py +0 -0
  18. {maleo_identity-0.0.94 → maleo_identity-0.0.95}/src/enums/__init__.py +0 -0
  19. {maleo_identity-0.0.94 → maleo_identity-0.0.95}/src/enums/organization.py +0 -0
  20. {maleo_identity-0.0.94 → maleo_identity-0.0.95}/src/enums/organization_registration_code.py +0 -0
  21. {maleo_identity-0.0.94 → maleo_identity-0.0.95}/src/enums/user.py +0 -0
  22. {maleo_identity-0.0.94 → maleo_identity-0.0.95}/src/enums/user_profile.py +0 -0
  23. {maleo_identity-0.0.94 → maleo_identity-0.0.95}/src/mixins/__init__.py +0 -0
  24. {maleo_identity-0.0.94 → maleo_identity-0.0.95}/src/mixins/organization.py +0 -0
  25. {maleo_identity-0.0.94 → maleo_identity-0.0.95}/src/mixins/organization_registration_code.py +0 -0
  26. {maleo_identity-0.0.94 → maleo_identity-0.0.95}/src/mixins/user.py +0 -0
  27. {maleo_identity-0.0.94 → maleo_identity-0.0.95}/src/mixins/user_profile.py +0 -0
  28. {maleo_identity-0.0.94 → maleo_identity-0.0.95}/src/schemas/__init__.py +0 -0
  29. {maleo_identity-0.0.94 → maleo_identity-0.0.95}/src/schemas/common.py +0 -0
  30. {maleo_identity-0.0.94 → maleo_identity-0.0.95}/src/schemas/organization.py +0 -0
  31. {maleo_identity-0.0.94 → maleo_identity-0.0.95}/src/schemas/organization_registration_code.py +0 -0
  32. {maleo_identity-0.0.94 → maleo_identity-0.0.95}/src/schemas/user.py +0 -0
  33. {maleo_identity-0.0.94 → maleo_identity-0.0.95}/src/schemas/user_profile.py +0 -0
  34. {maleo_identity-0.0.94 → maleo_identity-0.0.95}/src/types/__init__.py +0 -0
  35. {maleo_identity-0.0.94 → maleo_identity-0.0.95}/src/types/organization.py +0 -0
  36. {maleo_identity-0.0.94 → maleo_identity-0.0.95}/src/types/organization_registration_code.py +0 -0
  37. {maleo_identity-0.0.94 → maleo_identity-0.0.95}/src/types/user.py +0 -0
  38. {maleo_identity-0.0.94 → maleo_identity-0.0.95}/src/types/user_profile.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: maleo-identity
3
- Version: 0.0.94
3
+ Version: 0.0.95
4
4
  Summary: MaleoIdentity service package
5
5
  Author-email: Agra Bima Yuda <agra@nexmedis.com>
6
6
  License: Proprietary
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: maleo-identity
3
- Version: 0.0.94
3
+ Version: 0.0.95
4
4
  Summary: MaleoIdentity service package
5
5
  Author-email: Agra Bima Yuda <agra@nexmedis.com>
6
6
  License: Proprietary
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "maleo-identity" # PyPI package name
7
- version = "0.0.94"
7
+ version = "0.0.95"
8
8
  description = "MaleoIdentity service package"
9
9
  authors = [
10
10
  { name = "Agra Bima Yuda", email = "agra@nexmedis.com" }
@@ -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