f3-data-models 0.4.1__py3-none-any.whl → 0.4.2__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
@@ -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]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: f3-data-models
3
- Version: 0.4.1
3
+ Version: 0.4.2
4
4
  Summary: The data schema and models for F3 Nation applications.
5
5
  License: MIT
6
6
  Author: Evan Petzoldt
@@ -0,0 +1,7 @@
1
+ f3_data_models/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
+ f3_data_models/models.py,sha256=gz14Lybp1QpLUMdCMgXbO5tazx_dcTc6laoyvbPIFqE,46533
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.2.dist-info/METADATA,sha256=W8Ze7HlIc4UiZHQaYY4w1fbe_jHG8ISecN-QVk-4JRs,2716
6
+ f3_data_models-0.4.2.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
7
+ f3_data_models-0.4.2.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=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,,