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

feat: add board section and word models #11

Merged
merged 2 commits into from
Feb 28, 2024
Merged

Conversation

jsgalarraga
Copy link
Member

Description

Added the models to store the crossword board in the database:

  • BoardSection model
  • Word model

The sizes of the board sections are not yet determined and will be adjusted to have a good balance between

  1. having a lot of sections with a few words which might be better for rendering since you only get the words that are going to be shown
  2. having less sections with more words, which optimizes db reads. With this alternative, all the words fetched might not be rendered and the client will have to decide which does it render

Type of Change

  • ✨ New feature (non-breaking change which adds functionality)
  • 🛠️ Bug fix (non-breaking change which fixes an issue)
  • ❌ Breaking change (fix or feature that would cause existing functionality to change)
  • 🧹 Code refactor
  • ✅ Build configuration change
  • 📝 Documentation
  • 🗑️ Chore

@jsgalarraga jsgalarraga merged commit 9fccd83 into main Feb 28, 2024
5 checks passed
@jsgalarraga jsgalarraga deleted the feat/database-models branch February 28, 2024 20:57
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.

3 participants