-- Grant all permissions on roles and permissions to Super Admin (role_id = 1)

INSERT INTO `role_permissions` (`role_id`, `resource`, `action`) VALUES
  -- Roles
  (1, 'role', 'create'),
  (1, 'role', 'read'),
  (1, 'role', 'update'),
  (1, 'role', 'delete'),
  -- Permissions
  (1, 'permission', 'read'),
  (1, 'permission', 'update')
ON DUPLICATE KEY UPDATE `role_id` = `role_id`; -- Do nothing if the permission already exists