-- 修正 ID=17 「公司資料維護」功能代碼
-- 日期: 2026-02-23
-- 說明: 僅修正 code 和 module_code 為 company-info,與前端路徑保持一致

-- 1. 查看當前設定
SELECT id, code, module_code, name FROM system_functions WHERE id = 17;

-- 2. 修正為 company-info
UPDATE system_functions
SET
    code = 'company-info',
    module_code = 'company-info',
    module_functions = '["View", "Update"]'::jsonb,
    edit_by = 1
WHERE id = 17;

-- 3. 確認修正結果
SELECT id, code, module_code, name, module_functions FROM system_functions WHERE id = 17;
