@optimatech88/titomeet-shared-lib 1.0.9 → 1.0.10
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/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/prisma/schema.prisma +24 -7
- package/src/index.ts +3 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export * from './auth/auth.guard';
|
|
2
|
-
export { PrismaClient, User, Account, UserRole, Event, EventAccess, EventVisibility, EventStatus, EventPrice, Address, Participant, ParticipantStatus, Provider, ProviderStatus, EventCategory } from '@prisma/client';
|
|
2
|
+
export { PrismaClient, User, Account, UserRole, Event, EventAccess, EventVisibility, EventStatus, EventPrice, Address, Participant, ParticipantStatus, Provider, ProviderStatus, EventCategory, Review, } from '@prisma/client';
|
|
3
3
|
export * from './auth/auth.guard';
|
|
4
4
|
export * from './auth/auth.module';
|
|
5
5
|
export * from './cache/cache.module';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,OAAO,EACH,YAAY,EAAE,IAAI,EAAE,OAAO,EACvB,QAAQ,EAAE,KAAK,EAAE,WAAW,EAC5B,eAAe,EAAE,WAAW,EAC5B,UAAU,EAAE,OAAO,EAAE,WAAW,EAChC,iBAAiB,EACjB,QAAQ,EACR,cAAc,EACd,aAAa,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,OAAO,EACH,YAAY,EAAE,IAAI,EAAE,OAAO,EACvB,QAAQ,EAAE,KAAK,EAAE,WAAW,EAC5B,eAAe,EAAE,WAAW,EAC5B,UAAU,EAAE,OAAO,EAAE,WAAW,EAChC,iBAAiB,EACjB,QAAQ,EACR,cAAc,EACd,aAAa,EACb,MAAM,GAET,MAAM,gBAAgB,CAAC;AAG5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AAGnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AAGtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,uBAAuB,CAAC;AACtC,cAAc,gBAAgB,CAAC;AAE/B,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC"}
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,yCAW4B;AAVxB,sGAAA,YAAY,OAAA;AACR,kGAAA,QAAQ,OAAA;AAAS,qGAAA,WAAW,OAAA;AAC5B,yGAAA,eAAe,OAAA;AAAE,qGAAA,WAAW,OAAA;AAE5B,2GAAA,iBAAiB,OAAA;AAEjB,wGAAA,cAAc,OAAA;AAOtB,oDAAkC;AAClC,qDAAmC;AAGnC,uDAAqC;AACrC,wDAAsC;AAGtC,yDAAuC;AACvC,0DAAwC;AACxC,gDAA8B;AAC9B,0CAAwB;AACxB,0CAAwB;AACxB,wDAAsC;AACtC,iDAA+B;AAE/B,mCAAyC;AAAhC,iGAAA,UAAU,OAAA"}
|
package/package.json
CHANGED
package/prisma/schema.prisma
CHANGED
|
@@ -41,6 +41,7 @@ model User {
|
|
|
41
41
|
notificationsReceived Notification[] @relation("NotificationRecipient")
|
|
42
42
|
notificationsSent Notification[] @relation("NotificationSender")
|
|
43
43
|
providers Provider[]
|
|
44
|
+
reviews Review[]
|
|
44
45
|
}
|
|
45
46
|
|
|
46
47
|
model Account {
|
|
@@ -75,13 +76,6 @@ enum EventVisibility {
|
|
|
75
76
|
PRIVATE
|
|
76
77
|
}
|
|
77
78
|
|
|
78
|
-
enum EventStatus {
|
|
79
|
-
DRAFT
|
|
80
|
-
PENDING
|
|
81
|
-
PUBLISHED
|
|
82
|
-
CANCELLED
|
|
83
|
-
}
|
|
84
|
-
|
|
85
79
|
model EventCategory {
|
|
86
80
|
id String @id @default(cuid())
|
|
87
81
|
name String @unique
|
|
@@ -92,6 +86,13 @@ model EventCategory {
|
|
|
92
86
|
updatedAt DateTime @updatedAt
|
|
93
87
|
}
|
|
94
88
|
|
|
89
|
+
enum EventStatus {
|
|
90
|
+
DRAFT
|
|
91
|
+
PENDING
|
|
92
|
+
PUBLISHED
|
|
93
|
+
CANCELLED
|
|
94
|
+
}
|
|
95
|
+
|
|
95
96
|
model Event {
|
|
96
97
|
id String @id @default(cuid())
|
|
97
98
|
name String
|
|
@@ -215,6 +216,8 @@ model Provider {
|
|
|
215
216
|
name String
|
|
216
217
|
description String?
|
|
217
218
|
image String?
|
|
219
|
+
rating Float?
|
|
220
|
+
reviews Review[]
|
|
218
221
|
|
|
219
222
|
user User @relation(fields: [userId], references: [id])
|
|
220
223
|
userId String
|
|
@@ -225,4 +228,18 @@ model Provider {
|
|
|
225
228
|
|
|
226
229
|
createdAt DateTime @default(now())
|
|
227
230
|
updatedAt DateTime @updatedAt
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
model Review {
|
|
234
|
+
id String @id @default(cuid())
|
|
235
|
+
rating Float
|
|
236
|
+
comment String?
|
|
237
|
+
provider Provider @relation(fields: [providerId], references: [id])
|
|
238
|
+
providerId String
|
|
239
|
+
|
|
240
|
+
user User @relation(fields: [userId], references: [id])
|
|
241
|
+
userId String
|
|
242
|
+
|
|
243
|
+
createdAt DateTime @default(now())
|
|
244
|
+
updatedAt DateTime @updatedAt
|
|
228
245
|
}
|