Add family roles to member management
This commit is contained in:
@@ -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);
|
||||
`,
|
||||
},
|
||||
];
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user