Files
timmy-tower/lib/db/migrations/0009_zaps.sql
Alexander Whitestone 12a53092e9 WIP: Claude Code progress on #15
Automated salvage commit — agent session ended (exit 124).
Work in progress, may need continuation.
2026-03-23 16:30:20 -04:00

14 lines
440 B
SQL

-- Migration: Zap Timmy from the Workshop (#15)
-- Stores Lightning zap invoices and records when they are paid.
CREATE TABLE IF NOT EXISTS zaps (
id TEXT PRIMARY KEY,
payment_hash TEXT NOT NULL UNIQUE,
payment_request TEXT NOT NULL,
amount_sats INTEGER NOT NULL,
message TEXT,
paid BOOLEAN NOT NULL DEFAULT FALSE,
created_at TIMESTAMPTZ NOT NULL DEFAULT NOW(),
paid_at TIMESTAMPTZ
);