Files
digital-psychology/apps/api/migrations/000057_ops_report_template_write.up.sql
T
jackyu66gitandCursor e0f605558b feat(ECR-048): ReportTemplate 写面闭环并 Closed
growth.write POST/PUT · migration 000057 · 无新 C 端 · Loop STOP

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-13 22:51:42 +08:00

8 lines
231 B
SQL

-- 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;