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.
12345678910111213141516171819import { type InferInsertModel, type InferSelectModel, sql } from "drizzle-orm";import { integer, sqliteTable, text } from "drizzle-orm/sqlite-core";
const authSessions = sqliteTable("auth_sessions", { key: text("key").primaryKey().notNull(), session: text("session").notNull(), createdAt: integer("created_at", { mode: "timestamp" }) .notNull() .default(sql`(unixepoch())`), updatedAt: integer("updated_at", { mode: "timestamp" }) .notNull() .default(sql`(unixepoch())`),});
export type SelectAuthSession = InferSelectModel<typeof authSessions>;export type InsertAuthSession = InferInsertModel<typeof authSessions>;
export default authSessions;