Skip to content

Commit

Permalink
feat(essay): add columns for rate limit
Browse files Browse the repository at this point in the history
  • Loading branch information
seelengxd committed Oct 31, 2024
1 parent 330307f commit 3ecffb2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion backend/src/limits/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ class Usage(Base):
__tablename__ = "usage"

user_id: Mapped[int] = mapped_column(ForeignKey("user.id"), primary_key=True)
gp_question_asked: Mapped[int]
gp_question_asked: Mapped[int] = mapped_column(server_default="0")
essays: Mapped[int] = mapped_column(server_default="0")


class Tier(Base):
Expand All @@ -25,3 +26,4 @@ class Tier(Base):
tier_name: Mapped[TierNames]
label: Mapped[str]
gp_question_limit: Mapped[int]
essay_limit: Mapped[int] = mapped_column(server_default="0")

0 comments on commit 3ecffb2

Please sign in to comment.