Automated salvage commit — agent session ended (exit 124). Work in progress, may need continuation.
14 lines
440 B
SQL
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
|
|
);
|