Scaffold and Phase 0-1
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
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])
|
||||
}
|
||||
Reference in New Issue
Block a user