f3-data-models 0.4.1__tar.gz → 0.4.2__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.
- {f3_data_models-0.4.1 → f3_data_models-0.4.2}/PKG-INFO +1 -1
- {f3_data_models-0.4.1 → f3_data_models-0.4.2}/f3_data_models/models.py +25 -0
- {f3_data_models-0.4.1 → f3_data_models-0.4.2}/pyproject.toml +1 -1
- {f3_data_models-0.4.1 → f3_data_models-0.4.2}/README.md +0 -0
- {f3_data_models-0.4.1 → f3_data_models-0.4.2}/f3_data_models/__init__.py +0 -0
- {f3_data_models-0.4.1 → f3_data_models-0.4.2}/f3_data_models/testing.py +0 -0
- {f3_data_models-0.4.1 → f3_data_models-0.4.2}/f3_data_models/utils.py +0 -0
@@ -11,6 +11,7 @@ from sqlalchemy import (
|
|
11
11
|
DateTime,
|
12
12
|
Float,
|
13
13
|
ForeignKey,
|
14
|
+
Index,
|
14
15
|
Integer,
|
15
16
|
func,
|
16
17
|
UniqueConstraint,
|
@@ -356,6 +357,12 @@ class Org(Base):
|
|
356
357
|
created: Mapped[dt_create]
|
357
358
|
updated: Mapped[dt_update]
|
358
359
|
|
360
|
+
__table_args__ = (
|
361
|
+
Index("idx_orgs_parent_id", "parent_id"),
|
362
|
+
Index("idx_orgs_org_type", "org_type"),
|
363
|
+
Index("idx_orgs_is_active", "is_active"),
|
364
|
+
)
|
365
|
+
|
359
366
|
locations: Mapped[Optional[List["Location"]]] = relationship(
|
360
367
|
"Location", cascade="expunge"
|
361
368
|
)
|
@@ -428,6 +435,10 @@ class EventType_x_Event(Base):
|
|
428
435
|
event_type_id: Mapped[int] = mapped_column(
|
429
436
|
ForeignKey("event_types.id"), primary_key=True
|
430
437
|
)
|
438
|
+
__table_args__ = (
|
439
|
+
Index("idx_events_x_event_types_event_id", "event_id"),
|
440
|
+
Index("idx_events_x_event_types_event_type_id", "event_type_id"),
|
441
|
+
)
|
431
442
|
|
432
443
|
event: Mapped["Event"] = relationship(back_populates="event_x_event_types")
|
433
444
|
|
@@ -580,6 +591,12 @@ class Location(Base):
|
|
580
591
|
created: Mapped[dt_create]
|
581
592
|
updated: Mapped[dt_update]
|
582
593
|
|
594
|
+
__table_args__ = (
|
595
|
+
Index("idx_locations_org_id", "org_id"),
|
596
|
+
Index("idx_locations_name", "name"),
|
597
|
+
Index("idx_locations_is_active", "is_active"),
|
598
|
+
)
|
599
|
+
|
583
600
|
|
584
601
|
class Event(Base):
|
585
602
|
"""
|
@@ -656,6 +673,12 @@ class Event(Base):
|
|
656
673
|
created: Mapped[dt_create]
|
657
674
|
updated: Mapped[dt_update]
|
658
675
|
|
676
|
+
__table_args__ = (
|
677
|
+
Index("idx_events_org_id", "org_id"),
|
678
|
+
Index("idx_events_location_id", "location_id"),
|
679
|
+
Index("idx_events_is_active", "is_active"),
|
680
|
+
)
|
681
|
+
|
659
682
|
org: Mapped[Org] = relationship(innerjoin=True, cascade="expunge", viewonly=True)
|
660
683
|
location: Mapped[Location] = relationship(
|
661
684
|
innerjoin=True, cascade="expunge", viewonly=True
|
@@ -1120,6 +1143,7 @@ class UpdateRequest(Base):
|
|
1120
1143
|
location_lng (Optional[float]): The longitude of the location.
|
1121
1144
|
location_id (Optional[int]): The ID of the location.
|
1122
1145
|
location_contact_email (Optional[str]): The contact email of the location.
|
1146
|
+
ao_name (Optional[text]): The name of the AO.
|
1123
1147
|
ao_logo (Optional[text]): The URL of the AO logo.
|
1124
1148
|
submitted_by (str): The user who submitted the request.
|
1125
1149
|
submitter_validated (Optional[bool]): Whether the submitter has validated the request. Default is False.
|
@@ -1178,6 +1202,7 @@ class UpdateRequest(Base):
|
|
1178
1202
|
location_id: Mapped[Optional[int]] = mapped_column(ForeignKey("locations.id"))
|
1179
1203
|
location_contact_email: Mapped[Optional[str]]
|
1180
1204
|
|
1205
|
+
ao_name: Mapped[Optional[text]]
|
1181
1206
|
ao_logo: Mapped[Optional[text]]
|
1182
1207
|
|
1183
1208
|
submitted_by: Mapped[text]
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|