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 27 lines 992 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 users from "./users"; 5 6const daytonaAuth = pgTable( 7 "daytona_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 apiKey: text("api_key").notNull(), 17 redactedApiKey: text("redacted_api_key").notNull(), 18 organizationId: text("organization_id").notNull(), 19 createdAt: timestamp("created_at").defaultNow().notNull(), 20 }, 21 (t) => [uniqueIndex("unique_daytona_auth").on(t.sandboxId, t.userId)], 22); 23 24export type SelectDaytonaAuth = InferSelectModel<typeof daytonaAuth>; 25export type InsertDaytonaAuth = InferInsertModel<typeof daytonaAuth>; 26 27export default daytonaAuth;