schema.ts 329 B

1234567891011
  1. import { boolean, schema, table, text, timestamp } from '@briven/cli/schema';
  2. export default schema({
  3. todos: table({
  4. id: text().primaryKey(),
  5. body: text().notNull(),
  6. done: boolean().default(false).notNull(),
  7. createdAt: timestamp().default('now()').notNull(),
  8. completedAt: timestamp().nullable(),
  9. }),
  10. });