@optimatech88/titomeet-shared-lib 1.0.45 → 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.45",
3
+ "version": "1.0.47",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {
@@ -0,0 +1,2 @@
1
+ -- AlterTable
2
+ ALTER TABLE "public"."Event" ADD COLUMN "remainingSeats" INTEGER NOT NULL DEFAULT 0;
@@ -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 {
@@ -78,32 +79,33 @@ model EventCategory {
78
79
  }
79
80
 
80
81
  model Event {
81
- id String @id @default(cuid())
82
- name String
83
- description String
84
- startDate DateTime
85
- endDate DateTime
86
- startTime String
87
- endTime String
88
- capacity Int
89
- coverPicture String
90
- badge String
91
- tags String[]
92
- accessType EventAccess @default(FREE)
93
- visibility EventVisibility @default(PUBLIC)
94
- status EventStatus @default(DRAFT)
95
- addressId String
96
- postedById String
97
- createdAt DateTime @default(now())
98
- updatedAt DateTime @updatedAt
99
- chat Chat?
100
- address Address @relation(fields: [addressId], references: [id])
101
- postedBy User @relation(fields: [postedById], references: [id])
102
- prices EventPrice[]
103
- favorites Favorite[]
104
- orders Order[]
105
- categories EventCategory[] @relation("EventToEventCategory")
106
- providers ProviderOnEvent[]
82
+ id String @id @default(cuid())
83
+ name String
84
+ description String
85
+ startDate DateTime
86
+ endDate DateTime
87
+ startTime String
88
+ endTime String
89
+ capacity Int
90
+ coverPicture String
91
+ badge String
92
+ tags String[]
93
+ accessType EventAccess @default(FREE)
94
+ visibility EventVisibility @default(PUBLIC)
95
+ status EventStatus @default(DRAFT)
96
+ addressId String
97
+ postedById String
98
+ createdAt DateTime @default(now())
99
+ updatedAt DateTime @updatedAt
100
+ chat Chat?
101
+ address Address @relation(fields: [addressId], references: [id])
102
+ postedBy User @relation(fields: [postedById], references: [id])
103
+ prices EventPrice[]
104
+ favorites Favorite[]
105
+ orders Order[]
106
+ categories EventCategory[] @relation("EventToEventCategory")
107
+ providers ProviderOnEvent[]
108
+ remainingSeats Int @default(0)
107
109
  }
108
110
 
109
111
  model EventPrice {
@@ -423,3 +425,26 @@ model Transaction {
423
425
  createdAt DateTime @default(now())
424
426
  updatedAt DateTime @updatedAt
425
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
+ }