f3-data-models 0.5.16__tar.gz → 0.5.17__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.5.16 → f3_data_models-0.5.17}/PKG-INFO +1 -1
- {f3_data_models-0.5.16 → f3_data_models-0.5.17}/f3_data_models/models.py +4 -0
- {f3_data_models-0.5.16 → f3_data_models-0.5.17}/pyproject.toml +1 -1
- {f3_data_models-0.5.16 → f3_data_models-0.5.17}/README.md +0 -0
- {f3_data_models-0.5.16 → f3_data_models-0.5.17}/f3_data_models/__init__.py +0 -0
- {f3_data_models-0.5.16 → f3_data_models-0.5.17}/f3_data_models/testing.py +0 -0
- {f3_data_models-0.5.16 → f3_data_models-0.5.17}/f3_data_models/utils.py +0 -0
@@ -1113,6 +1113,8 @@ class Achievement_x_User(Base):
|
|
1113
1113
|
Attributes:
|
1114
1114
|
achievement_id (int): The ID of the associated achievement.
|
1115
1115
|
user_id (int): The ID of the associated user.
|
1116
|
+
award_year (int): The year the achievement was awarded. Default is -1 (used for lifetime achievements).
|
1117
|
+
award_period (int): The period (ie week, month) the achievement was awarded in. Default is -1 (used for lifetime achievements).
|
1116
1118
|
date_awarded (date): The date the achievement was awarded. Default is the current date.
|
1117
1119
|
""" # noqa: E501
|
1118
1120
|
|
@@ -1120,6 +1122,8 @@ class Achievement_x_User(Base):
|
|
1120
1122
|
|
1121
1123
|
achievement_id: Mapped[int] = mapped_column(ForeignKey("achievements.id"), primary_key=True)
|
1122
1124
|
user_id: Mapped[int] = mapped_column(ForeignKey("users.id"), primary_key=True)
|
1125
|
+
award_year: Mapped[int] = mapped_column(Integer, primary_key=True, server_default="-1")
|
1126
|
+
award_period: Mapped[int] = mapped_column(Integer, primary_key=True, server_default="-1")
|
1123
1127
|
date_awarded: Mapped[date] = mapped_column(DateTime, server_default=func.timezone("utc", func.now()))
|
1124
1128
|
|
1125
1129
|
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|