f3-data-models 0.1.3__tar.gz → 0.1.4__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.1.3 → f3_data_models-0.1.4}/PKG-INFO +2 -1
- {f3_data_models-0.1.3 → f3_data_models-0.1.4}/f3_data_models/models.py +10 -0
- {f3_data_models-0.1.3 → f3_data_models-0.1.4}/pyproject.toml +2 -1
- {f3_data_models-0.1.3 → f3_data_models-0.1.4}/README.md +0 -0
- {f3_data_models-0.1.3 → f3_data_models-0.1.4}/f3_data_models/__init__.py +0 -0
- {f3_data_models-0.1.3 → f3_data_models-0.1.4}/f3_data_models/utils.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: f3-data-models
|
3
|
-
Version: 0.1.
|
3
|
+
Version: 0.1.4
|
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
|
@@ -22,6 +22,7 @@ Requires-Dist: sphinx-multiversion (>=0.2.4,<0.3.0)
|
|
22
22
|
Requires-Dist: sphinx-rtd-theme (>=3.0.2,<4.0.0)
|
23
23
|
Requires-Dist: sqlalchemy (>=2.0.36,<3.0.0)
|
24
24
|
Requires-Dist: sqlalchemy-schemadisplay (>=2.0,<3.0)
|
25
|
+
Requires-Dist: sqlmodel (>=0.0.22,<0.0.23)
|
25
26
|
Project-URL: Documentation, https://github.io/F3-Nation/f3-data-models
|
26
27
|
Project-URL: Repository, https://github.com/F3-Nation/f3-data-models
|
27
28
|
Description-Content-Type: text/markdown
|
@@ -279,6 +279,9 @@ class Org(Base):
|
|
279
279
|
parent_org (Optional[Org]): The parent organization.
|
280
280
|
child_orgs (List[Org]): The child organizations.
|
281
281
|
locations (List[Location]): The locations associated with the organization.
|
282
|
+
event_tags (List[EventTag]): The event tags associated with the organization.
|
283
|
+
event_types (List[EventType]): The event types associated with the organization.
|
284
|
+
events (List[Event]): The events associated with the organization.
|
282
285
|
"""
|
283
286
|
|
284
287
|
__tablename__ = "orgs"
|
@@ -307,6 +310,13 @@ class Org(Base):
|
|
307
310
|
locations: Mapped[List["Location"]] = relationship(
|
308
311
|
back_populates="org", lazy="joined"
|
309
312
|
)
|
313
|
+
event_tags: Mapped[List["EventTag"]] = relationship(
|
314
|
+
back_populates="org", secondary="event_tags_x_org", lazy="joined"
|
315
|
+
)
|
316
|
+
event_types: Mapped[List["EventType"]] = relationship(
|
317
|
+
back_populates="org", secondary="event_types_x_org", lazy="joined"
|
318
|
+
)
|
319
|
+
events: Mapped[List["Event"]] = relationship(back_populates="org", lazy="joined")
|
310
320
|
|
311
321
|
|
312
322
|
class EventType(Base):
|
@@ -1,6 +1,6 @@
|
|
1
1
|
[tool.poetry]
|
2
2
|
name = "f3-data-models"
|
3
|
-
version = "0.1.
|
3
|
+
version = "0.1.4"
|
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"
|
@@ -23,6 +23,7 @@ sphinx-autodoc-typehints = "^2.5.0"
|
|
23
23
|
sphinx-rtd-theme = "^3.0.2"
|
24
24
|
sphinx-multiversion = "^0.2.4"
|
25
25
|
psycopg2-binary = "^2.9.10"
|
26
|
+
sqlmodel = "^0.0.22"
|
26
27
|
|
27
28
|
|
28
29
|
[build-system]
|
File without changes
|
File without changes
|
File without changes
|