INSERT INTO permissions (code, name, module, created_at)
SELECT 'reports.summary.view', 'Lihat Laporan Ringkasan', 'reports', NOW()
WHERE NOT EXISTS (
  SELECT 1 FROM permissions WHERE code = 'reports.summary.view'
);

INSERT INTO permissions (code, name, module, created_at)
SELECT 'reports.income.view', 'Lihat Laporan Pemasukan', 'reports', NOW()
WHERE NOT EXISTS (
  SELECT 1 FROM permissions WHERE code = 'reports.income.view'
);

INSERT INTO permissions (code, name, module, created_at)
SELECT 'reports.expense.view', 'Lihat Laporan Pengeluaran', 'reports', NOW()
WHERE NOT EXISTS (
  SELECT 1 FROM permissions WHERE code = 'reports.expense.view'
);

INSERT INTO permissions (code, name, module, created_at)
SELECT 'reports.warehouse.view', 'Lihat Laporan Gudang', 'reports', NOW()
WHERE NOT EXISTS (
  SELECT 1 FROM permissions WHERE code = 'reports.warehouse.view'
);
