fix: database target writes to dedicated archive table
All checks were successful
check / check (push) Successful in 1m43s

The "database" target type now writes events to a separate
archived_events table instead of just marking the delivery as done.
This table persists independently of internal event retention/pruning,
allowing the data to be consumed by external systems or preserved
indefinitely.

New ArchivedEvent model copies the full event payload (method, headers,
body, content_type) along with webhook/entrypoint/event/target IDs.
This commit is contained in:
clawbot
2026-03-01 16:40:05 -08:00
parent 418d3da97e
commit 6c393ccb78
4 changed files with 57 additions and 12 deletions

View File

@@ -11,5 +11,6 @@ func (d *Database) Migrate() error {
&Event{},
&Delivery{},
&DeliveryResult{},
&ArchivedEvent{},
)
}