-
-
Notifications
You must be signed in to change notification settings - Fork 1
Update database models for new requirements #28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
844d54d
to
488f915
Compare
94639f6
to
d660916
Compare
3b3a862
to
9f236be
Compare
This is to indicate that they purely exist for backwards compatibility
This also updates isort config to tell it that alembic is a 3rd party dep.
9f236be
to
bec6ede
Compare
discord_channel_id: Mapped[int] = mapped_column(BigInteger) | ||
|
||
winner: Mapped[bool] = mapped_column(Boolean, nullable=True) | ||
first_place_winner: Mapped[bool] = mapped_column(Boolean, nullable=True) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've been meaning to point this out, but previously we were in a hurry, but perhaps, for statistics, it'd be more beneficial to store the placement rather than whether they were placed first or not.
jam_id: Mapped[int] = mapped_column(primary_key=True) | ||
name: Mapped[str] = mapped_column(String(), nullable=False) | ||
ongoing: Mapped[bool] = mapped_column(Boolean, nullable=False, default=False) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tiny addition, we'll need a form_id
field, which will be passed to the Discord command as an argument, when creating a new Jam.
I have done nothing to make these models actually work, this PR is purely for sharing their current state.