-- Migration: Add admin permission
-- Purpose: Ensure admin permission exists for full system access
-- Date: 2025-01-11

INSERT INTO permissions (name, module, description, created_at, updated_at)
VALUES ('admin', 'System', 'Full system administration access - bypasses all permission checks', NOW(), NOW())
ON DUPLICATE KEY UPDATE name = name;

-- Verify
SELECT * FROM permissions WHERE name = 'admin';
