Problem Statement. AuditLog will grow unbounded. Postgres native partition-by-range
keeps old months detached for archival.
Technical Context. Postgres 11+ supports declarative partitioning.
Expected Outcome. Schema rewrite uses a partitioned table with one partition per
month. A Prisma view presents the table for safety.
Acceptance Criteria.
- Test asserts that AUDIT rows from prior months still query, with the same Prisma
client API.
Files or modules likely to be affected.
prisma/schema.prisma,
prisma/migrations/*,
docs/db/audit-partitioning.md.
Difficulty. Medium
Estimated effort. M
Backlog item #54 from `docs/maintainer-issue-backlog.md.
Problem Statement.
AuditLogwill grow unbounded. Postgres native partition-by-rangekeeps old months detached for archival.
Technical Context. Postgres 11+ supports declarative partitioning.
Expected Outcome. Schema rewrite uses a partitioned table with one partition per
month. A Prisma view presents the table for safety.
Acceptance Criteria.
client API.
Files or modules likely to be affected.
prisma/schema.prisma,prisma/migrations/*,docs/db/audit-partitioning.md.Difficulty. Medium
Estimated effort. M
Backlog item #54 from `docs/maintainer-issue-backlog.md.