Skip to content
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

Update database models for new requirements #28

Draft
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

ChrisLovering
Copy link
Member

I have done nothing to make these models actually work, this PR is purely for sharing their current state.

@ChrisLovering ChrisLovering changed the base branch from main to update-deps March 21, 2023 23:50
@ChrisLovering ChrisLovering force-pushed the Update-database-models-for-new-requirements branch 2 times, most recently from 844d54d to 488f915 Compare March 21, 2023 23:56
Base automatically changed from update-deps to main March 22, 2023 20:27
@ChrisLovering ChrisLovering force-pushed the Update-database-models-for-new-requirements branch 4 times, most recently from 94639f6 to d660916 Compare March 25, 2023 22:36
@ChrisLovering ChrisLovering force-pushed the Update-database-models-for-new-requirements branch 2 times, most recently from 3b3a862 to 9f236be Compare June 10, 2023 22:07
@ChrisLovering ChrisLovering force-pushed the Update-database-models-for-new-requirements branch from 9f236be to bec6ede Compare June 11, 2023 12:05
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)
Copy link
Member

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.

Comment on lines +17 to +19
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)
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants