[
  {
    "type": "insert",
    "description": "Add uri_events permission - View event dashboard and details (Manager, Staff, Super Admin)",
    "database": "kiosk_users",
    "check_query": "SELECT id FROM uf_authorize_group WHERE hook = 'uri_events' LIMIT 1",
    "sql": "INSERT INTO `uf_authorize_group` (`group_id`, `hook`, `conditions`) VALUES\n(1, 'uri_events', 'always()'),\n(2, 'uri_events', 'always()'),\n(7, 'uri_events', 'always()'),\n(8, 'uri_events', 'always()'),\n(9, 'uri_events', 'always()')"
  },
  {
    "type": "insert",
    "description": "Add uri_events_manage permission - Create, edit, delete events (Manager, Super Admin)",
    "database": "kiosk_users",
    "check_query": "SELECT id FROM uf_authorize_group WHERE hook = 'uri_events_manage' LIMIT 1",
    "sql": "INSERT INTO `uf_authorize_group` (`group_id`, `hook`, `conditions`) VALUES\n(2, 'uri_events_manage', 'always()'),\n(7, 'uri_events_manage', 'always()'),\n(9, 'uri_events_manage', 'always()')"
  },
  {
    "type": "insert",
    "description": "Add uri_events_templates permission - Create and edit store-specific templates (Manager, Super Admin)",
    "database": "kiosk_users",
    "check_query": "SELECT id FROM uf_authorize_group WHERE hook = 'uri_events_templates' LIMIT 1",
    "sql": "INSERT INTO `uf_authorize_group` (`group_id`, `hook`, `conditions`) VALUES\n(2, 'uri_events_templates', 'always()'),\n(7, 'uri_events_templates', 'always()'),\n(9, 'uri_events_templates', 'always()')"
  },
  {
    "type": "insert",
    "description": "Add uri_events_templates_global permission - Create and edit global templates (Site Admin, Super Admin only)",
    "database": "kiosk_users",
    "check_query": "SELECT id FROM uf_authorize_group WHERE hook = 'uri_events_templates_global' LIMIT 1",
    "sql": "INSERT INTO `uf_authorize_group` (`group_id`, `hook`, `conditions`) VALUES\n(2, 'uri_events_templates_global', 'always()'),\n(9, 'uri_events_templates_global', 'always()')"
  },
  {
    "type": "insert",
    "description": "Add uri_events_reports permission - View event performance reports (Manager, Super Admin)",
    "database": "kiosk_users",
    "check_query": "SELECT id FROM uf_authorize_group WHERE hook = 'uri_events_reports' LIMIT 1",
    "sql": "INSERT INTO `uf_authorize_group` (`group_id`, `hook`, `conditions`) VALUES\n(2, 'uri_events_reports', 'always()'),\n(7, 'uri_events_reports', 'always()'),\n(9, 'uri_events_reports', 'always()')"
  }
]
