Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The composite primary keys are multi-column primary keys. This is the conventional way to do it but we could append the columns that compose a composite key together into a single value in a new column and use that single column as a primary key. This would make FK references "cleaner" since they only need to reference a single column, but would require more data duplication (e.g. in state_cids we have the
header_id
andstate_path
columns, and here we make a composite primary key out of those two columns, but we could create a new column calledstate_id
that isheader_id + state_path
but then we need three columnsheader_id
,state_path
andstate_id
).