Files
BelgianBitcoinEmbassy/backend/prisma/migrations/20260405073517_add_board_tables/migration.sql
T
bbeandCursor 3bdd01dedf feat: user relay management, blog naddr sync, and OG image update
Add UserRelay API and dashboard relays tab with NIP-65 import, store post
naddr for Nostr articles, and ship Prisma migrations for board tables,
user relays, and post metadata.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-23 05:54:34 +02:00

30 lines
895 B
SQL

-- CreateTable
CREATE TABLE IF NOT EXISTS "BoardInvoicePending" (
"paymentHash" TEXT NOT NULL PRIMARY KEY,
"content" TEXT NOT NULL,
"guestName" TEXT,
"pubkey" TEXT,
"profilePic" TEXT,
"createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP
);
-- CreateTable
CREATE TABLE IF NOT EXISTS "BoardMessage" (
"id" TEXT NOT NULL PRIMARY KEY,
"paymentHash" TEXT NOT NULL,
"content" TEXT NOT NULL,
"authorName" TEXT NOT NULL,
"pubkey" TEXT,
"profilePic" TEXT,
"satsPaid" INTEGER NOT NULL,
"status" TEXT NOT NULL DEFAULT 'active',
"likeCount" INTEGER NOT NULL DEFAULT 0,
"createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP
);
-- CreateIndex
CREATE UNIQUE INDEX IF NOT EXISTS "BoardMessage_paymentHash_key" ON "BoardMessage"("paymentHash");
-- DropIndex (cleanup from organizer migration)
DROP INDEX IF EXISTS "Meetup_organizerId_idx";