@devries-cameron20 / t3code Mirror · read-only
Fork 0

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, 04:45 UTC

main
ts 12 lines 488 Bytes
Raw
1 import { defineRelations } from "drizzle-orm";
2 import { boolean, pgTable, serial, text, timestamp } from "drizzle-orm/pg-core";
3
4 export const Todos = pgTable("todos", {
5 id: serial("id").primaryKey(),
6 text: text("text").notNull(),
7 done: boolean("done").notNull().default(false),
8 createdAt: timestamp("created_at", { withTimezone: true }).notNull().defaultNow(),
9 });
10 export type TodoRow = typeof Todos.$inferSelect;
11
12 export const relations = defineRelations({ Todos }, () => ({}));