A decentralized music tracking and discovery platform built on AT Protocol 馃幍 rocksky.app
spotify atproto lastfm musicbrainz scrobbling listenbrainz
at main 16 lines 713 B view raw
1import { type InferInsertModel, type InferSelectModel, sql } from "drizzle-orm"; 2import { integer, pgTable, text, timestamp } from "drizzle-orm/pg-core"; 3 4const spotifyApps = pgTable("spotify_apps", { 5 id: text("xata_id").primaryKey().default(sql`xata_id()`), 6 xataVersion: integer("xata_version"), 7 spotifyAppId: text("spotify_app_id").unique().notNull(), 8 spotifySecret: text("spotify_secret").notNull(), 9 createdAt: timestamp("xata_createdat").defaultNow().notNull(), 10 updatedAt: timestamp("xata_updatedat").defaultNow().notNull(), 11}); 12 13export type SelectSpotifyApp = InferSelectModel<typeof spotifyApps>; 14export type InsertSpotifyApp = InferInsertModel<typeof spotifyApps>; 15 16export default spotifyApps;