mirror of
https://github.com/Mintplex-Labs/anything-llm.git
synced 2024-11-14 18:40:11 +01:00
12 lines
308 B
MySQL
12 lines
308 B
MySQL
|
-- CreateTable
|
||
|
CREATE TABLE "event_logs" (
|
||
|
"id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
|
||
|
"event" TEXT NOT NULL,
|
||
|
"metadata" TEXT,
|
||
|
"userId" INTEGER,
|
||
|
"occurredAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP
|
||
|
);
|
||
|
|
||
|
-- CreateIndex
|
||
|
CREATE INDEX "event_logs_event_idx" ON "event_logs"("event");
|