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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: f3-data-models
3
- Version: 0.5.16
3
+ Version: 0.5.17
4
4
  Summary: The data schema and models for F3 Nation applications.
5
5
  License: MIT
6
6
  Author: Evan Petzoldt
@@ -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
 
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "f3-data-models"
3
- version = "0.5.16"
3
+ version = "0.5.17"
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"