f3-data-models 0.4.0__tar.gz → 0.4.1__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: f3-data-models
3
- Version: 0.4.0
3
+ Version: 0.4.1
4
4
  Summary: The data schema and models for F3 Nation applications.
5
5
  License: MIT
6
6
  Author: Evan Petzoldt
@@ -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(UUID(as_uuid=True), primary_key=True)
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]
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "f3-data-models"
3
- version = "0.4.0"
3
+ version = "0.4.1"
4
4
  description = "The data schema and models for F3 Nation applications."
5
5
  authors = ["Evan Petzoldt <evan.petzoldt@protonmail.com>"]
6
6
  readme = "README.md"
File without changes