add contributor level

- if you are not hiding giveaways above your level then this could be a problem so this checks you can in fact enter a game
This commit is contained in:
mcinj 2022-05-06 10:56:57 -04:00
parent 985be444d6
commit 405dd11a9b
3 changed files with 21 additions and 0 deletions

View file

@ -35,6 +35,7 @@ class TableGiveaway(Base):
giveaway_ended_at = Column(DateTime(timezone=True), nullable=False)
cost = Column(Integer(), nullable=False)
copies = Column(Integer(), nullable=False)
contributor_level = Column(Integer(), nullable=False)
entered = Column(Boolean(), nullable=False)
game_entries = Column(Integer(), nullable=False)
created_at = Column(DateTime(timezone=True), server_default=func.now())