import { pgTable, text, integer, timestamp } from "drizzle-orm/pg-core";

export const timmyNostrEvents = pgTable("timmy_nostr_events", {
  id: text("id").primaryKey(),

  kind: integer("kind").notNull(),

  recipientPubkey: text("recipient_pubkey"),

  eventJson: text("event_json").notNull(),

  amountSats: integer("amount_sats"),

  relayUrl: text("relay_url"),

  createdAt: timestamp("created_at", { withTimezone: true }).defaultNow().notNull(),
});

export type TimmyNostrEvent = typeof timmyNostrEvents.$inferSelect;
