maleo-foundation 0.3.48__py3-none-any.whl → 0.3.49__py3-none-any.whl
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.
- maleo_foundation/models/table.py +4 -14
- {maleo_foundation-0.3.48.dist-info → maleo_foundation-0.3.49.dist-info}/METADATA +1 -1
- {maleo_foundation-0.3.48.dist-info → maleo_foundation-0.3.49.dist-info}/RECORD +5 -5
- {maleo_foundation-0.3.48.dist-info → maleo_foundation-0.3.49.dist-info}/WHEEL +0 -0
- {maleo_foundation-0.3.48.dist-info → maleo_foundation-0.3.49.dist-info}/top_level.txt +0 -0
maleo_foundation/models/table.py
CHANGED
@@ -1,26 +1,16 @@
|
|
1
1
|
from sqlalchemy import Column, Integer, UUID, TIMESTAMP, Enum, func
|
2
|
-
from sqlalchemy.orm import declared_attr
|
2
|
+
from sqlalchemy.orm import declared_attr
|
3
3
|
from uuid import uuid4
|
4
4
|
from maleo_foundation.enums import BaseEnums
|
5
5
|
from maleo_foundation.utils.formatter.case import CaseFormatter
|
6
6
|
|
7
7
|
|
8
|
-
class
|
9
|
-
"""Base class for all SQLAlchemy models in the application.
|
10
|
-
|
11
|
-
This class provides a common base for all models, including
|
12
|
-
automatic table name generation and common data fields.
|
13
|
-
"""
|
14
|
-
|
15
|
-
pass
|
16
|
-
|
17
|
-
|
18
|
-
class BaseTable(Base):
|
8
|
+
class BaseTable:
|
19
9
|
__abstract__ = True
|
20
10
|
|
21
|
-
@declared_attr
|
11
|
+
@declared_attr # type: ignore
|
22
12
|
def __tablename__(cls) -> str:
|
23
|
-
return CaseFormatter.to_snake_case(cls.__name__)
|
13
|
+
return CaseFormatter.to_snake_case(cls.__name__) # type: ignore
|
24
14
|
|
25
15
|
|
26
16
|
class DataMixin:
|
@@ -51,7 +51,7 @@ maleo_foundation/middlewares/base.py,sha256=ZXMJTiuDBa6sIbgD_g1MhhlMkszsYkt3Ocl4
|
|
51
51
|
maleo_foundation/middlewares/cors.py,sha256=1QgRXOcURuEhBYMerclqbECgtAE4CFo0EhB4gJXu8Yg,2294
|
52
52
|
maleo_foundation/models/__init__.py,sha256=OlZXaeOhGXz_FppPm87jIOItnr-r179QhIcOWDOORyQ,248
|
53
53
|
maleo_foundation/models/responses.py,sha256=4uIrW8y6gyBQJ5DZRMWKAJcNdamDMCpgCzizwcBHGhw,6081
|
54
|
-
maleo_foundation/models/table.py,sha256=
|
54
|
+
maleo_foundation/models/table.py,sha256=k0-OtahF2KRmvFUL8TborT6PoIhGsyoVrPJBKGg1QbU,1855
|
55
55
|
maleo_foundation/models/schemas/__init__.py,sha256=tmjBCyG4uMRjiTbnbhIjZaR8q7zk0_J_CqnRzsSfoBQ,279
|
56
56
|
maleo_foundation/models/schemas/encryption.py,sha256=S86FGlcBhyGxxZ5ObNSHTjSDwBUlUtLOMoCAKd5wE34,687
|
57
57
|
maleo_foundation/models/schemas/general.py,sha256=jxzBsVGsdKKEiM14MfV47dDiAZalUK4RnTlq8S36Qus,4060
|
@@ -131,7 +131,7 @@ maleo_foundation/utils/loaders/credential/__init__.py,sha256=g-cAxkTE2EtHaG8Tv52
|
|
131
131
|
maleo_foundation/utils/loaders/credential/google.py,sha256=GCJl-bsKSSxoE_ERAkIzRrRNIbIEeqYOhHwzFuBr0mk,6576
|
132
132
|
maleo_foundation/utils/loaders/key/__init__.py,sha256=RfqIbUxkdlx1xrbzJZPD_JHiRFNFLRuQs8JoUPCGCv4,108
|
133
133
|
maleo_foundation/utils/loaders/key/rsa.py,sha256=UXcP0rr4QVacTsHLNQuU05wcow5CHWz-JW-zsVxlbPs,4121
|
134
|
-
maleo_foundation-0.3.
|
135
|
-
maleo_foundation-0.3.
|
136
|
-
maleo_foundation-0.3.
|
137
|
-
maleo_foundation-0.3.
|
134
|
+
maleo_foundation-0.3.49.dist-info/METADATA,sha256=Oxg-D_aE6n8Ng8nOzhVJ_EZfTRvFsDxfGCztLKABDCk,4150
|
135
|
+
maleo_foundation-0.3.49.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
136
|
+
maleo_foundation-0.3.49.dist-info/top_level.txt,sha256=_iBos3F_bhEOdjOnzeiEYSrCucasc810xXtLBXI8cQc,17
|
137
|
+
maleo_foundation-0.3.49.dist-info/RECORD,,
|
File without changes
|
File without changes
|