10 lines
324 B
TypeScript
10 lines
324 B
TypeScript
import { text, integer, pgTable, json, timestamp } from "drizzle-orm/pg-core";
|
|
|
|
export const entryTable = pgTable("entries", {
|
|
id: integer().primaryKey().generatedAlwaysAsIdentity(),
|
|
date: timestamp({ mode: 'date', withTimezone: true }).notNull().defaultNow(),
|
|
location: json(),
|
|
content: json(),
|
|
image: text()
|
|
});
|