Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improvements/code cleanup #37

Open
wants to merge 3 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
"argon2": "^0.31.1",
"axios": "^1.4.0",
"cache-manager": "^4.1.0",
"cache-manager-redis-store": "^2.0.0",
"class-transformer": "^0.5.1",
"class-validator": "^0.14.0",
"codecov": "^3.8.3",
Expand All @@ -69,6 +70,7 @@
"posthog-node": "^2.6.0",
"prom-client": "^14.2.0",
"prompt-engine": "^0.0.31",
"redis": "^4.6.7",
"reflect-metadata": "^0.1.13",
"rxjs": "^7.2.0",
"winston": "^3.8.2",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/*
Warnings:

- You are about to drop the `telemetry_logs` table. If the table is not empty, all the data it contains will be lost.

*/
-- DropTable
DROP TABLE "telemetry_logs";
34 changes: 0 additions & 34 deletions prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -52,40 +52,6 @@ model Metrics {
value String
}

model telemetry_logs {
eid String @db.Uuid @default(uuid())
createdAt DateTime @default(now())
eventType String
eventName String
producer Json
platform String
// producerChannel String
// producerDeviceID String?
// producerProducerID String @db.Uuid
// producerPlatform String
context Json
sessionId String @db.Uuid
// contextUserID String @db.Uuid
// contextConversationID String? @db.Uuid
// contextPageID String?
// contextRollup Json?
eventData Json
// eventDataTimestamp DateTime @default(now())
// eventDataDuration String?
// eventDataAudioURL String?
// eventDataQuestionGenerated String?
// eventDataQuestionSubmitted String?
// eventDataComparisonScore Int?
// eventDataAnswer String?
// eventDataFeedbackScore Int @default(0) @db.SmallInt
// eventDataLogData Json?
// eventDataErrorData Json?
errorType String?
tags Json?

@@unique([eid,createdAt])
}

model feedback {
id Int @id @default(autoincrement())
conversation conversation? @relation(fields: [conversationId], references: [id])
Expand Down
Loading