Seed Refactor Group org data + jimrg-james relationship - #373
Conversation
Reuse the migration-created Refactor Group organization as the primary seed org (previously a separate Refactor Coaching org), add jim@refactorgroup.com as an admin coaching james.hodapp@gmail.com via the jimrg-james relationship with two sessions, and make Caleb an admin of Acme Corp. Split out of the docs-collab deployment work to keep that change focused.
Greptile SummaryThis PR updates the dev-only
Confidence Score: 5/5Safe to merge — all changes are confined to the dev-only seed function and introduce no production code paths. The change touches only No files require special attention. Important Files Changed
Entity Relationship Diagram%%{init: {'theme': 'neutral'}}%%
erDiagram
ORGANIZATIONS ||--o{ USER_ROLES : "org_id"
ORGANIZATIONS ||--o{ COACHING_RELATIONSHIPS : "org_id"
USERS ||--o{ USER_ROLES : "user_id"
USERS ||--o{ COACHING_RELATIONSHIPS : "coach_id"
USERS ||--o{ COACHING_RELATIONSHIPS : "coachee_id"
COACHING_RELATIONSHIPS ||--o{ COACHING_SESSIONS : "relationship_id"
ORGANIZATIONS {
uuid id
string name
string slug
}
USERS {
uuid id
string email
string first_name
string last_name
}
USER_ROLES {
uuid id
role role
uuid organization_id
uuid user_id
}
COACHING_RELATIONSHIPS {
uuid id
string slug
uuid coach_id
uuid coachee_id
uuid organization_id
}
COACHING_SESSIONS {
uuid id
uuid coaching_relationship_id
date date
}
Reviews (2): Last reviewed commit: "chore(seed): disambiguate Refactor Group..." | Re-trigger Greptile |
Give jim@refactorgroup.com a distinct last name so it no longer collides with james.hodapp@gmail.com (both were "Jim Hodapp") in first+last name views and logs, per PR review.
Description
Splits the seed-data changes out of the docs-collab deployment PR (#371) so that PR stays focused on deployment.
Changes
m20250509_164646_add_initial_user) as the primary seed org, instead of creating a separate "Refactor Coaching" org.jim@refactorgroup.comas an Admin of Refactor Group, coachingjames.hodapp@gmail.comvia the newjimrg-jamescoaching relationship, with two seeded sessions.Notes
seed_databasenow depends on the initial-admin migration having created the Refactor Group org (looked up by slug). This is consistent with the seed's existing dev-only, unwrap-heavy style (it always runs after migrations).collab_documentstable only exists there.