f3-data-models 0.1.11__tar.gz → 0.1.12__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.1
2
2
  Name: f3-data-models
3
- Version: 0.1.11
3
+ Version: 0.1.12
4
4
  Summary: The data schema and models for F3 Nation applications.
5
5
  Home-page: https://github.com/F3-Nation/f3-data-models
6
6
  License: MIT
@@ -280,10 +280,12 @@ class Org(Base):
280
280
  created (datetime): The timestamp when the record was created.
281
281
  updated (datetime): The timestamp when the record was last updated.
282
282
 
283
+ locations (Optional[List[Location]]): The locations associated with the organization. Probably only relevant for regions.
283
284
  event_types (Optional[List[EventType]]): The event types associated with the organization. Used to control which event types are available for selection at the region level.
284
285
  event_tags (Optional[List[EventTag]]): The event tags associated with the organization. Used to control which event tags are available for selection at the region level.
285
286
  achievements (Optional[List[Achievement]]): The achievements available within the organization.
286
287
  parent_org (Optional[Org]): The parent organization.
288
+ event_tags_x_org (Optional[List[EventTag_x_Org]]): The association between event tags and organizations.
287
289
  """
288
290
 
289
291
  __tablename__ = "orgs"
@@ -306,6 +308,9 @@ class Org(Base):
306
308
  created: Mapped[dt_create]
307
309
  updated: Mapped[dt_update]
308
310
 
311
+ locations: Mapped[Optional[List["Location"]]] = relationship(
312
+ "Location", cascade="expunge"
313
+ )
309
314
  event_types: Mapped[Optional[List["EventType"]]] = relationship(
310
315
  "EventType", secondary="event_types_x_org", cascade="expunge"
311
316
  )
@@ -318,6 +323,9 @@ class Org(Base):
318
323
  parent_org: Mapped[Optional["Org"]] = relationship(
319
324
  "Org", remote_side=[id], cascade="expunge"
320
325
  )
326
+ event_tags_x_org: Mapped[Optional[List["EventTag_x_Org"]]] = relationship(
327
+ "EventTag_x_Org", cascade="expunge"
328
+ )
321
329
 
322
330
 
323
331
  class EventType(Base):
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "f3-data-models"
3
- version = "0.1.11"
3
+ version = "0.1.12"
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"