@optimatech88/titomeet-shared-lib 1.0.13 → 1.0.15
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 +1 -1
- package/prisma/schema.prisma +35 -1
package/package.json
CHANGED
package/prisma/schema.prisma
CHANGED
|
@@ -42,6 +42,8 @@ model User {
|
|
|
42
42
|
notificationsSent Notification[] @relation("NotificationSender")
|
|
43
43
|
providers Provider[]
|
|
44
44
|
reviews Review[]
|
|
45
|
+
|
|
46
|
+
favorites Favorite[]
|
|
45
47
|
}
|
|
46
48
|
|
|
47
49
|
model Account {
|
|
@@ -69,6 +71,8 @@ model Address {
|
|
|
69
71
|
events Event[]
|
|
70
72
|
createdAt DateTime @default(now())
|
|
71
73
|
updatedAt DateTime @updatedAt
|
|
74
|
+
|
|
75
|
+
Provider Provider[]
|
|
72
76
|
}
|
|
73
77
|
|
|
74
78
|
enum EventAccess {
|
|
@@ -132,6 +136,8 @@ model Event {
|
|
|
132
136
|
|
|
133
137
|
createdAt DateTime @default(now())
|
|
134
138
|
updatedAt DateTime @updatedAt
|
|
139
|
+
|
|
140
|
+
favorites Favorite[]
|
|
135
141
|
}
|
|
136
142
|
|
|
137
143
|
model EventPrice {
|
|
@@ -210,6 +216,16 @@ model Notification {
|
|
|
210
216
|
updatedAt DateTime @updatedAt
|
|
211
217
|
}
|
|
212
218
|
|
|
219
|
+
model ProviderCategory {
|
|
220
|
+
id String @id @default(cuid())
|
|
221
|
+
name String @unique
|
|
222
|
+
description String?
|
|
223
|
+
providers Provider[]
|
|
224
|
+
|
|
225
|
+
createdAt DateTime @default(now())
|
|
226
|
+
updatedAt DateTime @updatedAt
|
|
227
|
+
}
|
|
228
|
+
|
|
213
229
|
enum ProviderStatus {
|
|
214
230
|
PENDING
|
|
215
231
|
APPROVED
|
|
@@ -222,6 +238,13 @@ model Provider {
|
|
|
222
238
|
description String?
|
|
223
239
|
image String?
|
|
224
240
|
rating Float?
|
|
241
|
+
|
|
242
|
+
address Address? @relation(fields: [addressId], references: [id])
|
|
243
|
+
addressId String?
|
|
244
|
+
|
|
245
|
+
category ProviderCategory @relation(fields: [categoryId], references: [id])
|
|
246
|
+
categoryId String
|
|
247
|
+
|
|
225
248
|
reviews Review[]
|
|
226
249
|
|
|
227
250
|
user User @relation(fields: [userId], references: [id])
|
|
@@ -247,4 +270,15 @@ model Review {
|
|
|
247
270
|
|
|
248
271
|
createdAt DateTime @default(now())
|
|
249
272
|
updatedAt DateTime @updatedAt
|
|
250
|
-
}
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
model Favorite {
|
|
276
|
+
id String @id @default(cuid())
|
|
277
|
+
user User @relation(fields: [userId], references: [id])
|
|
278
|
+
userId String
|
|
279
|
+
event Event @relation(fields: [eventId], references: [id])
|
|
280
|
+
eventId String
|
|
281
|
+
|
|
282
|
+
createdAt DateTime @default(now())
|
|
283
|
+
updatedAt DateTime @updatedAt
|
|
284
|
+
}
|