45 lines
753 B
Plaintext
45 lines
753 B
Plaintext
generator client {
|
|
provider = "prisma-client-js"
|
|
}
|
|
|
|
datasource db {
|
|
provider = "postgresql"
|
|
url = env("DATABASE_URL")
|
|
}
|
|
|
|
model TrackerEvent {
|
|
id String @id @default(uuid())
|
|
createdAt DateTime @default(now())
|
|
|
|
event String
|
|
step String?
|
|
sessionId String?
|
|
|
|
studentId String?
|
|
|
|
data Json?
|
|
|
|
ip String?
|
|
userAgent String?
|
|
}
|
|
|
|
model RecordSubmission {
|
|
id String @id @default(uuid())
|
|
createdAt DateTime @default(now())
|
|
|
|
// what the client typed
|
|
raw Json
|
|
// derived values computed client-side (avgΔl, v, etc)
|
|
computed Json
|
|
// wiring/osc/signal context
|
|
context Json
|
|
|
|
notes String?
|
|
sessionId String?
|
|
|
|
studentId String?
|
|
|
|
ip String?
|
|
userAgent String?
|
|
}
|