Schedule automatic content for publishing

This commit is contained in:
Loma Bot Ops
2026-11-28 19:54:22 +07:00
parent 279c6eb956
commit a6e3d47b7c
13 changed files with 139 additions and 33 deletions
+4 -3
View File
@@ -552,7 +552,8 @@ enum ContentScheduleMode {
RANDOM
}
// Durable creation queue. The output is always a draft and never a published post.
// Durable creation queue. Manual jobs output drafts; auto jobs bypass approval
// and are handed to the normal publishing workflow at their configured slot.
model PostGenerationJob {
id String @id @default(cuid())
pageId String
@@ -563,8 +564,8 @@ model PostGenerationJob {
topic String
targets Platform[]
plannedAt DateTime?
// Automatic drafts stay in the draft tray until this time. Once due, the
// worker copies plannedAt to Post.plannedAt and records boardPlacedAt.
// Legacy review-board placement fields retained for queued jobs created
// before auto-content began scheduling posts directly.
placeOnBoardAt DateTime?
boardPlacedAt DateTime?
profileSnapshot Json