Files
totalmcp/prisma/schema.prisma
T
2026-05-09 22:18:00 -05:00

27 lines
607 B
Plaintext

generator client {
provider = "prisma-client-js"
}
datasource db {
provider = "sqlite"
url = "file:../data/events.db"
}
// One row per tool invocation. Used for usage analytics, debugging, and
// rate-limit accounting. Phase 5 wires the writes; Phase 0 only ships the schema.
model EventLog {
id Int @id @default(autoincrement())
ts DateTime @default(now())
agent String
pluginName String
toolName String
inputHash String
durationMs Int
success Boolean
errorMsg String?
@@index([ts])
@@index([agent])
@@index([pluginName, toolName])
}