A decentralized music tracking and discovery platform built on AT Protocol 馃幍 rocksky.app
spotify atproto lastfm musicbrainz scrobbling listenbrainz
96
fork

Configure Feed

Select the types of activity you want to include in your feed.

at feat/pgpull 22 lines 778 B view raw
1import type { InferInsertModel, InferSelectModel } from "drizzle-orm"; 2import { pgTable, text, timestamp } from "drizzle-orm/pg-core"; 3import dropboxTokens from "./dropbox-tokens"; 4import users from "./users"; 5 6const dropbox = pgTable("dropbox", { 7 id: text("xata_id").primaryKey(), 8 userId: text("user_id") 9 .notNull() 10 .references(() => users.id), 11 dropboxTokenId: text("dropbox_token_id") 12 .notNull() 13 .references(() => dropboxTokens.id), 14 xataVersion: text("xata_version"), 15 createdAt: timestamp("xata_createdat").defaultNow().notNull(), 16 updatedAt: timestamp("xata_updatedat").defaultNow().notNull(), 17}); 18 19export type SelectDropbox = InferSelectModel<typeof dropbox>; 20export type InsertDropbox = InferInsertModel<typeof dropbox>; 21 22export default dropbox;