Add family roles to member management

This commit is contained in:
Rafael Foster
2026-04-27 07:53:43 -03:00
parent 08199495b6
commit b82a86c4b3
22 changed files with 296 additions and 21 deletions
+10
View File
@@ -717,6 +717,16 @@ const MIGRATIONS = [
CREATE INDEX IF NOT EXISTS idx_birthdays_calendar_ref ON birthdays(calendar_event_id);
`,
},
{
version: 19,
description: 'Separate family member role from system access role',
up: `
ALTER TABLE users ADD COLUMN family_role TEXT NOT NULL DEFAULT 'other'
CHECK(family_role IN ('dad', 'mom', 'parent', 'child', 'grandparent', 'relative', 'other'));
CREATE INDEX IF NOT EXISTS idx_users_family_role ON users(family_role);
`,
},
];
/**