The best way to control Claude Code, Codex and more from any computer or phone

main
ts 11 lines 396 Bytes
Raw
1 import { sql } from "drizzle-orm";
2 import { integer, sqliteTable, text } from "drizzle-orm/sqlite-core";
3
4 export const Notes = sqliteTable("notes", {
5 id: integer("id").primaryKey({ autoIncrement: true }),
6 body: text("body").notNull(),
7 createdAt: integer("created_at", { mode: "timestamp" })
8 .notNull()
9 .default(sql`(unixepoch())`),
10 });
11 export type Note = typeof Notes.$inferSelect;