schema.ts 405 B

1234567891011121314
  1. /**
  2. * briven schema. Edit this file to add tables; the CLI diffs against
  3. * the currently deployed schema and generates the migration when you
  4. * run `briven deploy`.
  5. */
  6. import { schema, table, text, timestamp } from '@briven/cli/schema';
  7. export default schema({
  8. notes: table({
  9. id: text().primaryKey(),
  10. body: text().notNull(),
  11. createdAt: timestamp().default('now()').notNull(),
  12. }),
  13. });