feat: add Nostr event tracking columns to events table

Migration m009 adds nostr_event_id and nostr_event_created_at to
track published NIP-52 calendar events. Enables correlation between
LNbits events and their Nostr representations.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Padreug 2026-04-27 17:13:36 +02:00
commit f76e21e960
2 changed files with 14 additions and 0 deletions

View file

@ -202,3 +202,15 @@ async def m008_add_event_status(db):
await db.execute(
"ALTER TABLE events.events ADD COLUMN status TEXT NOT NULL DEFAULT 'approved';"
)
async def m009_add_nostr_columns(db):
"""
Add columns to track published NIP-52 Nostr calendar events.
"""
await db.execute(
"ALTER TABLE events.events ADD COLUMN nostr_event_id TEXT;"
)
await db.execute(
"ALTER TABLE events.events ADD COLUMN nostr_event_created_at INTEGER;"
)