feat(ECR-048): ReportTemplate 写面闭环并 Closed

growth.write POST/PUT · migration 000057 · 无新 C 端 · Loop STOP

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
jackyu66git
2026-08-13 22:51:42 +08:00
co-authored by Cursor
parent aa197b719b
commit e0f605558b
28 changed files with 915 additions and 11 deletions
@@ -0,0 +1,2 @@
-- ECR-048 rollback marker (permission shared with ECR-047 — do not revoke growth.write)
SELECT 1;
@@ -0,0 +1,7 @@
-- ECR-048 GrowthInsights ReportTemplate write (reuse admin.growth.write)
INSERT INTO admin_role_permissions(role_id, code)
SELECT r.id, 'admin.growth.write'
FROM admin_roles r
WHERE r.name = 'super_admin'
ON CONFLICT DO NOTHING;