| 1 | import { boolean, pgSchema, text, timestamp, uuid } from "drizzle-orm/pg-core"; |
| 2 | |
| 3 | export const Todos = pgSchema("app").table("todos", { |
| 4 | id: uuid("id").primaryKey(), |
| 5 | text: text("text").notNull(), |
| 6 | done: boolean("done").notNull().default(false), |
| 7 | createdAt: timestamp("created_at", { withTimezone: true }) |
| 8 | .notNull() |
| 9 | .defaultNow(), |
| 10 | }); |