open, interoperable sandbox platform for agents and humans 📦 ✨
pocketenv.io
claude-code
atproto
sandbox
openclaw
agent
1import { type InferInsertModel, type InferSelectModel, sql } from "drizzle-orm";
2import { pgTable, text, timestamp } from "drizzle-orm/pg-core";
3
4const users = pgTable("users", {
5 id: text("id").primaryKey().default(sql`xata_id()`),
6 did: text("did").unique().notNull(),
7 displayName: text("display_name"),
8 handle: text("handle").unique().notNull(),
9 avatar: text("avatar"),
10 createdAt: timestamp("created_at").defaultNow().notNull(),
11 updatedAt: timestamp("updated_at").defaultNow().notNull(),
12});
13
14export type SelectUser = InferSelectModel<typeof users>;
15export type InsertUser = InferInsertModel<typeof users>;
16
17export default users;