@optimatech88/titomeet-shared-lib 1.0.9 → 1.0.11
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 +32 -10
- 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 {
|
|
@@ -55,10 +56,15 @@ model Address {
|
|
|
55
56
|
id String @id @default(uuid())
|
|
56
57
|
name String
|
|
57
58
|
line2 String?
|
|
58
|
-
city String
|
|
59
|
-
state String
|
|
59
|
+
city String?
|
|
60
|
+
state String?
|
|
60
61
|
country String
|
|
61
|
-
|
|
62
|
+
countryCode String?
|
|
63
|
+
postalCode String?
|
|
64
|
+
type String @default("suburb")
|
|
65
|
+
|
|
66
|
+
latitude Float?
|
|
67
|
+
longitude Float?
|
|
62
68
|
|
|
63
69
|
events Event[]
|
|
64
70
|
createdAt DateTime @default(now())
|
|
@@ -75,13 +81,6 @@ enum EventVisibility {
|
|
|
75
81
|
PRIVATE
|
|
76
82
|
}
|
|
77
83
|
|
|
78
|
-
enum EventStatus {
|
|
79
|
-
DRAFT
|
|
80
|
-
PENDING
|
|
81
|
-
PUBLISHED
|
|
82
|
-
CANCELLED
|
|
83
|
-
}
|
|
84
|
-
|
|
85
84
|
model EventCategory {
|
|
86
85
|
id String @id @default(cuid())
|
|
87
86
|
name String @unique
|
|
@@ -92,6 +91,13 @@ model EventCategory {
|
|
|
92
91
|
updatedAt DateTime @updatedAt
|
|
93
92
|
}
|
|
94
93
|
|
|
94
|
+
enum EventStatus {
|
|
95
|
+
DRAFT
|
|
96
|
+
PENDING
|
|
97
|
+
PUBLISHED
|
|
98
|
+
CANCELLED
|
|
99
|
+
}
|
|
100
|
+
|
|
95
101
|
model Event {
|
|
96
102
|
id String @id @default(cuid())
|
|
97
103
|
name String
|
|
@@ -215,6 +221,8 @@ model Provider {
|
|
|
215
221
|
name String
|
|
216
222
|
description String?
|
|
217
223
|
image String?
|
|
224
|
+
rating Float?
|
|
225
|
+
reviews Review[]
|
|
218
226
|
|
|
219
227
|
user User @relation(fields: [userId], references: [id])
|
|
220
228
|
userId String
|
|
@@ -225,4 +233,18 @@ model Provider {
|
|
|
225
233
|
|
|
226
234
|
createdAt DateTime @default(now())
|
|
227
235
|
updatedAt DateTime @updatedAt
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
model Review {
|
|
239
|
+
id String @id @default(cuid())
|
|
240
|
+
rating Float
|
|
241
|
+
comment String?
|
|
242
|
+
provider Provider @relation(fields: [providerId], references: [id])
|
|
243
|
+
providerId String
|
|
244
|
+
|
|
245
|
+
user User @relation(fields: [userId], references: [id])
|
|
246
|
+
userId String
|
|
247
|
+
|
|
248
|
+
createdAt DateTime @default(now())
|
|
249
|
+
updatedAt DateTime @updatedAt
|
|
228
250
|
}
|