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.
12345678910111213141516171819202122232425import type { InferInsertModel, InferSelectModel } from "drizzle-orm";import { sql } from "drizzle-orm";import { integer, pgTable, text, timestamp } from "drizzle-orm/pg-core";import users from "./users";
const feeds = pgTable("feeds", { id: text("xata_id").primaryKey().default(sql`xata_id()`), displayName: text("display_name").notNull(), description: text("description"), did: text("did").notNull(), uri: text("uri").notNull().unique(), avatar: text("avatar"), userId: text("user_id") .notNull() .references(() => users.id), xataVersion: integer("xata_version"), createdAt: timestamp("xata_createdat").defaultNow().notNull(), updatedAt: timestamp("xata_updatedat").defaultNow().notNull(),});
export type SelectFeed = InferSelectModel<typeof feeds>;export type InsertFeed = InferInsertModel<typeof feeds>;
export default feeds;