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";
3
4const files = pgTable("files", {
5 id: text("id").primaryKey().default(sql`xata_id()`),
6 content: text("content").notNull(),
7 createdAt: timestamp("created_at").defaultNow().notNull(),
8 updatedAt: timestamp("updated_at").defaultNow().notNull(),
9});
10
11export type SelectFile = InferSelectModel<typeof files>;
12export type InsertFile = InferInsertModel<typeof files>;
13
14export default files;