Society-In-Shadow / ExpressedRealms

0 stars 0 forks source link

Add "Active" Badge to the Character #82

Open noremacskich opened 2 months ago

noremacskich commented 2 months ago

Users can only have one active character at a time.


Add a boolean value to the character table, add a constraint to only allow one per player.

Add/Update API endpoint to update the value - Will set all other characters to false, then set the new character to true.

Add Endpoint that will return if the other characters have it enabled.

Update Edit Load endpoint to pass through value

Update Load Characters endpoint to pass through the value

Update Edit Character to show toggle for value If enabling the option, check if they have any other characters enabled. If so, reprompt them to reconsider.

This will not be on the character create page.