You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The colors are represented by a stringified array of color codes, so like [1,2,3,4,5]. Another approach is to make the colors its own table and then create a proper link between user, puzzle, and color, but I figured the stringified array would be more efficient and it suits the purpose just fine.
Yet another approach, which would be the most efficient on the backend, would be to store the color schemes as a stringified JSON object in the user table, and there could be validation to ensure the object has been formatted properly, etc.
My proposal to support various puzzles would be that the colorscheme is a user-puzzle-colorscheme table where colorscheme is an array of colors.
The text was updated successfully, but these errors were encountered: