@optimatech88/titomeet-shared-lib 1.0.14 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@optimatech88/titomeet-shared-lib",
3
- "version": "1.0.14",
3
+ "version": "1.0.15",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {
@@ -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 {
@@ -134,6 +136,8 @@ model Event {
134
136
 
135
137
  createdAt DateTime @default(now())
136
138
  updatedAt DateTime @updatedAt
139
+
140
+ favorites Favorite[]
137
141
  }
138
142
 
139
143
  model EventPrice {
@@ -266,4 +270,15 @@ model Review {
266
270
 
267
271
  createdAt DateTime @default(now())
268
272
  updatedAt DateTime @updatedAt
269
- }
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
+ }