@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
package/prisma/schema.prisma
CHANGED
|
@@ -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
|
|
82
|
-
name
|
|
83
|
-
description
|
|
84
|
-
startDate
|
|
85
|
-
endDate
|
|
86
|
-
startTime
|
|
87
|
-
endTime
|
|
88
|
-
capacity
|
|
89
|
-
coverPicture
|
|
90
|
-
badge
|
|
91
|
-
tags
|
|
92
|
-
accessType
|
|
93
|
-
visibility
|
|
94
|
-
status
|
|
95
|
-
addressId
|
|
96
|
-
postedById
|
|
97
|
-
createdAt
|
|
98
|
-
updatedAt
|
|
99
|
-
chat
|
|
100
|
-
address
|
|
101
|
-
postedBy
|
|
102
|
-
prices
|
|
103
|
-
favorites
|
|
104
|
-
orders
|
|
105
|
-
categories
|
|
106
|
-
providers
|
|
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
|
+
}
|