This commit is contained in:
admin
2026-09-03 22:02:52 +09:00
commit 659725de15
90 changed files with 2840 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
import { text, sqliteTable } from "drizzle-orm/sqlite-core";
import { orders } from "./orders";
export const auditEvents = sqliteTable("audit_events", {
id: text("id").primaryKey(),
orderId: text("order_id").notNull().references(() => orders.id),
actor: text("actor").notNull(),
type: text("type").notNull(),
message: text("message").notNull(),
createdAt: text("created_at").notNull()
});