A decentralized music tracking and discovery platform built on AT Protocol 馃幍
at fix/spotify 24 lines 853 B view raw
1import type { InferInsertModel, InferSelectModel } from "drizzle-orm"; 2import { boolean, pgTable, text, timestamp } from "drizzle-orm/pg-core"; 3import users from "./users"; 4 5const googleDriveAccounts = pgTable("google_drive_accounts", { 6 id: text("xata_id").primaryKey(), 7 email: text("email").unique().notNull(), 8 isBetaUser: boolean("is_beta_user").default(false).notNull(), 9 userId: text("user_id") 10 .notNull() 11 .references(() => users.id), 12 xataVersion: text("xata_version").notNull(), 13 createdAt: timestamp("xata_createdat").defaultNow().notNull(), 14 updatedAt: timestamp("xata_updatedat").defaultNow().notNull(), 15}); 16 17export type SelectGoogleDriveAccounts = InferSelectModel< 18 typeof googleDriveAccounts 19>; 20export type InsertGoogleDriveAccounts = InferInsertModel< 21 typeof googleDriveAccounts 22>; 23 24export default googleDriveAccounts;