-- 权限监督按钮及接口权限（DM8 专用）
-- 执行前请确认未占用 1068 主键

DELETE FROM system_menu WHERE id = 1068;

INSERT INTO system_menu (
    id,
    name,
    permission,
    type,
    sort,
    parent_id,
    path,
    icon,
    component,
    component_name,
    status,
    visible,
    keep_alive,
    always_show,
    creator,
    create_time,
    updater,
    update_time,
    deleted
)
SELECT
    1068,
    '权限监督',
    'system:permission:user-permission-supervision',
    3,
    9,
    101,
    '',
    '',
    '',
    NULL,
    0,
    '1',
    '1',
    '1',
    'admin',
    '2025-10-29 00:00:00',
    '',
    '2025-10-29 00:00:00',
    '0'
FROM dual
WHERE NOT EXISTS (
    SELECT 1
    FROM system_menu
    WHERE id = 1068
);
