A decentralized music tracking and discovery platform built on AT Protocol 馃幍
2
fork

Configure Feed

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

at feat/feed-generator 24 lines 877 B view raw
1import { type InferInsertModel, type InferSelectModel, sql } 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().default(sql`xata_id()`), 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"), 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;