The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 21, 06:00 UTC
| 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; |