feat(db): A5 审计表分区、append-only 与种子
audit_logs 按月 RANGE 分区、复合主键与 6 组索引;ensure_partitions 幂等建分区;UPDATE/DELETE/TRUNCATE 触发器与 lingxi_app 最小权限;audit_export_jobs;种子新增 3 项配置与 6 条演示审计。
This commit is contained in:
1 parent
408dc5e81b
commit
6215f204ce
6 files changed
+441
-4
No files matched your search
@@ -8,6 +8,8 @@ NODE_ENV=development
|
||||
LOG_LEVEL=debug
|
||||
|
||||
# ---------- 数据库(PostgreSQL 18) ----------
|
||||
# 本地开发沿用 postgres 账号;生产 DATABASE_URL 应使用 A5 迁移创建的 NOLOGIN 角色 lingxi_app
|
||||
# (审计表仅 SELECT / INSERT,append-only 由 DB 触发器兜底;其他业务表的授权见运维 Runbook)。
|
||||
DATABASE_URL=postgresql://postgres:postgres@127.0.0.1:5432/lingxi?schema=public
|
||||
|
||||
# ---------- Redis(7.4) ----------
|
||||
|
||||
Reference in new issue
Block a user