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

Schema Changes #9

Open
clxxiii opened this issue May 30, 2024 · 1 comment · May be fixed by #10
Open

Schema Changes #9

clxxiii opened this issue May 30, 2024 · 1 comment · May be fixed by #10
Assignees

Comments

@clxxiii
Copy link
Collaborator

clxxiii commented May 30, 2024

Here are the things that need to be considered:

Choose between one or more of the following database hosts:

  • Privately hosted server kono server
  • AWS Postgres server
  • Turso
  • Redis
  • Supabase
  • Neon

Choose between the two ORMs

  • Drizzle
  • Prisma

Other changes to the schema should be specified in replies.

@clxxiii
Copy link
Collaborator Author

clxxiii commented Jun 1, 2024

  • Remove Global table
  • Remove OsuBadge table
  • Remove UserTitle table
  • Edit Tournament table
    • Remove mod_multipliers property
  • Edit TournamentSettings table
    • Add mod_multipliers property
  • Remove DiscordAccount table
  • Remove TwitchAccount table
  • Remove DiscordOauth table
  • Remove TwitchOauth table
  • Remove UserSession table
  • Remove Guild table
  • Edit Round table
    • Remove is_qualifier property
  • Remove RoundSettings table
  • Edit Mappool table
    • Remove description property
  • Edit MapInPool table
    • Remove mod_priority property
    • Add optional tournament_settings property
  • Edit Map table
    • Remove diff_mapper_user_id property
    • Remove *_difficulty properties
    • Remove count_* properties
    • Remove hit_length
    • Remove all beatmapset attribute besides slim_cover_2x_url (renamed to cover_url), artist, and title
  • Edit Team table
    • Remove scrim property
  • Edit Match table
    • Remove message_id property
    • Remove channel_id property
    • Split state into current_section: Int and block_in_section: Int
  • Add BlockSection property
    • action_string: String
    • blocks: MatchBlock[]
  • Edit MapInMatch table
    • Rename to MatchBlock
    • Remove all (picked, protected, etc.)_by properties
    • Add acted_on_by?: Team property
  • Edit TeamInMatch table
    • Use primary autoincrementing key
    • Make team and foreign key properties optional
    • Remove pick_order property
    • Remove ban_order property
    • Remove warmed_up property
  • Add a MappoolInRound intermediary table
  • Remove QualifierMatch table
  • Remove TeamInQualifierMatch table

@clxxiii clxxiii changed the title Database Changes Schema Changes Jun 1, 2024
@clxxiii clxxiii linked a pull request Jun 1, 2024 that will close this issue
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 a pull request may close this issue.

3 participants