File size: 548 Bytes
5ef6e9d
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import { pgTable, serial, text, timestamp, boolean } from "drizzle-orm/pg-core";

export const geminiAccountsTable = pgTable("geminigen_accounts", {
  id: serial("id").primaryKey(),
  label: text("label").notNull().default(""),
  bearerToken: text("bearer_token").notNull(),
  refreshToken: text("refresh_token"),
  isActive: boolean("is_active").notNull().default(true),
  lastUsedAt: timestamp("last_used_at"),
  createdAt: timestamp("created_at").defaultNow().notNull(),
});

export type GeminiAccount = typeof geminiAccountsTable.$inferSelect;