import { type InferInsertModel, type InferSelectModel, sql } from "drizzle-orm"; import { pgTable, text, timestamp } from "drizzle-orm/pg-core"; const files = pgTable("files", { id: text("id").primaryKey().default(sql`xata_id()`), content: text("content").notNull(), createdAt: timestamp("created_at").defaultNow().notNull(), updatedAt: timestamp("updated_at").defaultNow().notNull(), }); export type SelectFile = InferSelectModel; export type InsertFile = InferInsertModel; export default files;