feat(blog): add retention metadata to articles collection

Monthly purge schedule with 90-day post-deletion hard-delete window.
Part of compliance backfill (Story 05).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-18 19:08:04 +00:00
parent 2f1aa849e7
commit a6fc874f11

View File

@@ -3,6 +3,16 @@ import { slugifyIfMissing } from "@repo/core-shared/payload";
export const articles: CollectionConfig = {
slug: "articles",
custom: {
retention: {
purgeSchedule: "monthly",
postDeletion: {
duration: "P90D",
trigger: "after-deletion",
action: "hard-delete",
},
},
},
admin: {
useAsTitle: "title",
defaultColumns: ["title", "status", "author", "updatedAt"],