the universal sandbox runtime for agents and humans.
pocketenv.io
sandbox
openclaw
agent
claude-code
vercel-sandbox
deno-sandbox
cloudflare-sandbox
atproto
sprites
daytona
1import { type InferInsertModel, type InferSelectModel, sql } from "drizzle-orm";
2import { pgTable, text, timestamp } from "drizzle-orm/pg-core";
3import sandboxes from "./sandboxes";
4
5const authorizedKeys = pgTable("authorized_keys", {
6 id: text("id").primaryKey().default(sql`xata_id()`),
7 sandboxId: text("sandbox_id").references(() => sandboxes.id),
8 publicKey: text("public_key").notNull(),
9 createdAt: timestamp("created_at").defaultNow().notNull(),
10});
11
12export type SelectAuthorizedKey = InferSelectModel<typeof authorizedKeys>;
13export type InsertAuthorizedKey = InferInsertModel<typeof authorizedKeys>;
14
15export default authorizedKeys;