When reviewing database schema changes or data structure modifications, ensure that field inclusion/exclusion decisions are explicitly justified and documented. Question ambiguous schema choices and require clear rationale for data organization patterns.
When reviewing database schema changes or data structure modifications, ensure that field inclusion/exclusion decisions are explicitly justified and documented. Question ambiguous schema choices and require clear rationale for data organization patterns.
Schema decisions should address:
Example from schema design:
-- Migration: Create person event occurrences table
-- Question: Is team_id necessary alongside person_id and event_name?
CREATE TABLE IF NOT EXISTS person_event_occurrences (
team_id INT, -- Rationale needed: Does this enable required queries?
person_id TEXT,
event_name TEXT
);
When data property references seem unclear or confusing (like choosing between $groups: { key: value }
vs $group_0
), document the reasoning behind the chosen approach and consider developer experience in accessing the data.
Enter the URL of a public GitHub repository