f3-data-models 0.4.0__py3-none-any.whl → 0.4.1__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.
f3_data_models/models.py
CHANGED
@@ -100,6 +100,13 @@ class Event_Category(enum.Enum):
|
|
100
100
|
third_f = 3
|
101
101
|
|
102
102
|
|
103
|
+
class Request_Type(enum.Enum):
|
104
|
+
create_location = 1
|
105
|
+
create_event = 2
|
106
|
+
edit = 3
|
107
|
+
delete_event = 4
|
108
|
+
|
109
|
+
|
103
110
|
class Base(DeclarativeBase):
|
104
111
|
"""
|
105
112
|
Base class for all models, providing common methods.
|
@@ -1120,13 +1127,16 @@ class UpdateRequest(Base):
|
|
1120
1127
|
reviewed_at (Optional[datetime]): The timestamp when the request was reviewed.
|
1121
1128
|
status (Update_Request_Status): The status of the request. Default is 'pending'.
|
1122
1129
|
meta (Optional[Dict[str, Any]]): Additional metadata for the request.
|
1130
|
+
request_type (Request_Type): The type of the request.
|
1123
1131
|
created (datetime): The timestamp when the record was created.
|
1124
1132
|
updated (datetime): The timestamp when the record was last updated.
|
1125
1133
|
"""
|
1126
1134
|
|
1127
1135
|
__tablename__ = "update_requests"
|
1128
1136
|
|
1129
|
-
id: Mapped[Uuid] = mapped_column(
|
1137
|
+
id: Mapped[Uuid] = mapped_column(
|
1138
|
+
UUID(as_uuid=True), primary_key=True, server_default=func.gen_random_uuid()
|
1139
|
+
)
|
1130
1140
|
token: Mapped[Uuid] = mapped_column(
|
1131
1141
|
UUID(as_uuid=True), server_default=func.gen_random_uuid()
|
1132
1142
|
)
|
@@ -1178,6 +1188,6 @@ class UpdateRequest(Base):
|
|
1178
1188
|
Enum(Update_Request_Status), default=Update_Request_Status.pending
|
1179
1189
|
)
|
1180
1190
|
meta: Mapped[Optional[Dict[str, Any]]]
|
1181
|
-
|
1191
|
+
request_type: Mapped[Request_Type]
|
1182
1192
|
created: Mapped[dt_create]
|
1183
1193
|
updated: Mapped[dt_update]
|
@@ -0,0 +1,7 @@
|
|
1
|
+
f3_data_models/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
2
|
+
f3_data_models/models.py,sha256=GolkaBfXhiEjil6lHcJ7xjKp4uEj2AlgjmD9_B7JtBk,45724
|
3
|
+
f3_data_models/testing.py,sha256=KmTjMe345-NZCdHNaNnOyL33J8D5oVdqdIhYIKbM8XM,968
|
4
|
+
f3_data_models/utils.py,sha256=UpNx1E_kmt8_1vN4fdFSy55yPCoDA2algzof_5EAJ2k,13835
|
5
|
+
f3_data_models-0.4.1.dist-info/METADATA,sha256=9O544jx116V5N8qwqbNw0i4CPxciJprXv6LwpeSLfMw,2716
|
6
|
+
f3_data_models-0.4.1.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
|
7
|
+
f3_data_models-0.4.1.dist-info/RECORD,,
|
@@ -1,7 +0,0 @@
|
|
1
|
-
f3_data_models/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
2
|
-
f3_data_models/models.py,sha256=nYYWcuJl7w_NnTRN28Tt3auKAtjKSIO7QPa0SiFCkHE,45459
|
3
|
-
f3_data_models/testing.py,sha256=KmTjMe345-NZCdHNaNnOyL33J8D5oVdqdIhYIKbM8XM,968
|
4
|
-
f3_data_models/utils.py,sha256=UpNx1E_kmt8_1vN4fdFSy55yPCoDA2algzof_5EAJ2k,13835
|
5
|
-
f3_data_models-0.4.0.dist-info/METADATA,sha256=XoY3AL0bgZbM-Iib_D6mFfeIEXxAqmP9o68ZNYxE0N8,2716
|
6
|
-
f3_data_models-0.4.0.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
|
7
|
-
f3_data_models-0.4.0.dist-info/RECORD,,
|
File without changes
|