import { pgTable } from "drizzle-orm/pg-core"; import { text, timestamp, uuid } from "drizzle-orm/pg-core"; export const auditLog = pgTable("audit_log", { id: uuid("id").defaultRandom().primaryKey(), userId: uuid("user_id"), familyId: uuid("family_id"), action: text("action").notNull(), metadata: text("metadata"), // JSON string ipAddress: text("ip_address"), userAgent: text("user_agent"), createdAt: timestamp("created_at").defaultNow().notNull(), });