-- Permissões para integração com Google Calendar (SQLite)
 INSERT OR IGNORE INTO permissions (name) VALUES
  ('integrations.googlecalendar.read'),
  ('integrations.googlecalendar.manage');

-- Vincular ao papel admin
 INSERT OR IGNORE INTO role_permissions (role_id, permission_id)
 SELECT r.id, p.id
 FROM roles r, permissions p
 WHERE r.name = 'admin' AND p.name = 'integrations.googlecalendar.read';

 INSERT OR IGNORE INTO role_permissions (role_id, permission_id)
 SELECT r.id, p.id
 FROM roles r, permissions p
 WHERE r.name = 'admin' AND p.name = 'integrations.googlecalendar.manage';