@optimatech88/titomeet-shared-lib 1.0.46 → 1.0.47

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@optimatech88/titomeet-shared-lib",
3
- "version": "1.0.46",
3
+ "version": "1.0.47",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {
@@ -33,6 +33,7 @@ model User {
33
33
 
34
34
  userInterests UserInterests?
35
35
  transactions Transaction[]
36
+ feedbacks Feedback[]
36
37
  }
37
38
 
38
39
  model Account {
@@ -424,3 +425,26 @@ model Transaction {
424
425
  createdAt DateTime @default(now())
425
426
  updatedAt DateTime @updatedAt
426
427
  }
428
+
429
+ model Feedback {
430
+ id String @id @default(cuid())
431
+ categoryId String
432
+ category FeedbackCategory @relation(fields: [categoryId], references: [id])
433
+ rating Int
434
+ comment String?
435
+ email String
436
+ userId String?
437
+ user User? @relation(fields: [userId], references: [id])
438
+
439
+ createdAt DateTime @default(now())
440
+ updatedAt DateTime @updatedAt
441
+ }
442
+
443
+ model FeedbackCategory {
444
+ id String @id @default(cuid())
445
+ name String @unique
446
+ icon String?
447
+ createdAt DateTime @default(now())
448
+ updatedAt DateTime @updatedAt
449
+ feedbacks Feedback[]
450
+ }