Something went wrong. Try again.
A decentralized music tracking and discovery platform built on AT Protocol 🎵 rocksky.app
spotify atproto lastfm musicbrainz scrobbling listenbrainz
Something went wrong. Try again.
12345678910111213141516171819202122import { type InferSelectModel, sql } from "drizzle-orm";import { boolean, pgTable, text, timestamp } from "drizzle-orm/pg-core";import users from "./users";
const webscrobblers = pgTable("webscrobblers", { id: text("xata_id").primaryKey().default(sql`xata_id()`), name: text("name").notNull(), uuid: text("uuid").notNull(), description: text("description"), enabled: boolean("enabled").default(true).notNull(), userId: text("user_id") .notNull() .references(() => users.id), createdAt: timestamp("xata_createdat").defaultNow().notNull(), updatedAt: timestamp("xata_updatedat").defaultNow().notNull(),});
export type SelectWebscrobblers = InferSelectModel<typeof webscrobblers>;export type InsertWebscrobblers = InferSelectModel<typeof webscrobblers>;
export default webscrobblers;