boring.tools-poc/packages/database/src/schema/_basic.ts

8 lines
250 B
TypeScript

import { timestamp, uuid } from 'drizzle-orm/pg-core'
export const _basic_schema = {
id: uuid().primaryKey().defaultRandom(),
createdAt: timestamp({ withTimezone: true }).defaultNow().notNull(),
updatedAt: timestamp({ withTimezone: true }),
}