the universal sandbox runtime for agents and humans. pocketenv.io
sandbox openclaw agent claude-code vercel-sandbox deno-sandbox cloudflare-sandbox atproto sprites daytona
7
fork

Configure Feed

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

at 1241cd4e999bb3f48dca4cab7bcff14fe6f5d6ad 28 lines 1.0 kB view raw
1import { type InferInsertModel, type InferSelectModel, sql } from "drizzle-orm"; 2import { pgTable, text, timestamp, uniqueIndex } from "drizzle-orm/pg-core"; 3import sandboxes from "./sandboxes"; 4import users from "./users"; 5 6const modalAuth = pgTable( 7 "modal_auth", 8 { 9 id: text("id").primaryKey().default(sql`xata_id()`), 10 sandboxId: text("sandbox_id") 11 .notNull() 12 .references(() => sandboxes.id, { onDelete: "cascade" }), 13 userId: text("user_id") 14 .notNull() 15 .references(() => users.id), 16 tokenId: text("token_id").notNull(), 17 redactedTokenId: text("redacted_token_id").notNull(), 18 tokenSecret: text("token_secret").notNull(), 19 redactedTokenSecret: text("redacted_token_secret").notNull(), 20 createdAt: timestamp("created_at").defaultNow().notNull(), 21 }, 22 (t) => [uniqueIndex("unique_modal_auth").on(t.sandboxId, t.userId)], 23); 24 25export type SelectModalAuth = InferSelectModel<typeof modalAuth>; 26export type InsertModalAuth = InferInsertModel<typeof modalAuth>; 27 28export default modalAuth;