-
Notifications
You must be signed in to change notification settings - Fork 3
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
Character model #6
Comments
Just a bit of brain dump here: character: {
name: String,
# to reference back to a User
user_id: Int,
# I think `stats` and `abilities` are the same thing in this context, though we should
# settle on verbiage early on
stats: { ... },
# similar to `inventory` or `equipment`
inventory: []
} re: Abilities: I think re: Inventory: I feel that I like the idea that the |
Yeah, I can see that - we could have an inventory model and then maybe a bool for "currently equipped?" |
So that is the long and short: I guess I either see us splitting a lot of this stuff out from character into different tables linked on Character ID with a one to many relationship, or lumping them into a flat(ish) data structure that could be dealt with uniformly (the normalized option). I'm ok with either. |
I think this is really great and there's some long term thinking here that we might not be ready to cross just yet. What do you think we'll need / should nail down from the super early release perspective? I think for me it may be just: character: {
name: String,
role: String, default: 'fighter',
race: String, default: 'human',
user_id: Int,
stats: { ... }
} I'd be open to getting PS: |
PPS: |
Things that need to be persistent/universal I'm trying to include, things that aren't/don't I'm trying to leave to the frontend logic. There's some grays areas in that though so chime in.
We could have a trigger on character creation that would create those records from random values and insert them into the normalized table. Or, it could I guess be a frontend function to randomize abilities and just write to the db through a POST.
The alternative I guess to dumping them in normalized tables or one big normalized table would be just having smaller other tables for each of these things - abilities - equipment - etc and dealing with it through joins as it comes up. (Although may be six in one, half dozen in another - both kind of get at the same point).
A SECOND alternative mentioned is that abilities may be an exception - they are going to be pretty universal to characters so maybe including them as additional columns is fair game. But maybe not the other stuff
The text was updated successfully, but these errors were encountered: