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 main 26 lines 966 B 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 secrets from "./secrets"; 5 6const sandboxSecrets = pgTable( 7 "sandbox_secrets", 8 { 9 id: text("id").primaryKey().default(sql`xata_id()`), 10 sandboxId: text("sandbox_id") 11 .notNull() 12 .references(() => sandboxes.id, { onDelete: "cascade" }), 13 secretId: text("secret_id") 14 .notNull() 15 .references(() => secrets.id), 16 name: text("name"), 17 createdAt: timestamp("created_at").defaultNow().notNull(), 18 updatedAt: timestamp("updated_at").defaultNow().notNull(), 19 }, 20 (t) => [uniqueIndex("unique_sandbox_secret_by_name").on(t.sandboxId, t.name)], 21); 22 23export type SelectSandboxSecret = InferSelectModel<typeof sandboxSecrets>; 24export type InsertSandboxSecret = InferInsertModel<typeof sandboxSecrets>; 25 26export default sandboxSecrets;