@bash-app/bash-common 7.0.1 → 8.0.0
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 +8 -7
- package/src/extendedSchemas.ts +2 -1
package/package.json
CHANGED
package/prisma/schema.prisma
CHANGED
|
@@ -244,13 +244,14 @@ model BashEvent {
|
|
|
244
244
|
}
|
|
245
245
|
|
|
246
246
|
model Checkout {
|
|
247
|
-
id
|
|
248
|
-
ownerId
|
|
249
|
-
owner
|
|
250
|
-
bashEventId
|
|
251
|
-
bashEvent
|
|
252
|
-
|
|
253
|
-
|
|
247
|
+
id String @id @default(cuid())
|
|
248
|
+
ownerId String
|
|
249
|
+
owner User @relation(fields: [ownerId], references: [id], onDelete: Cascade)
|
|
250
|
+
bashEventId String
|
|
251
|
+
bashEvent BashEvent @relation(fields: [bashEventId], references: [id], onDelete: Cascade)
|
|
252
|
+
checkoutDateTime DateTime @default(now())
|
|
253
|
+
tickets Ticket[]
|
|
254
|
+
stripeCheckoutSessionId String? @unique
|
|
254
255
|
|
|
255
256
|
@@index(bashEventId)
|
|
256
257
|
}
|
package/src/extendedSchemas.ts
CHANGED
|
@@ -167,6 +167,7 @@ export interface TicketTierExt extends TicketTier {
|
|
|
167
167
|
export interface TicketExt extends Ticket {
|
|
168
168
|
owner: User;
|
|
169
169
|
forUser: User;
|
|
170
|
+
checkout?: Checkout;
|
|
170
171
|
}
|
|
171
172
|
|
|
172
173
|
export interface CheckoutExt extends Checkout {
|
|
@@ -201,7 +202,7 @@ export interface UserExt extends User {
|
|
|
201
202
|
associatedBashes?: AssociatedBash[]
|
|
202
203
|
reviews?: ReviewExt[];
|
|
203
204
|
contacts?: Contact[];
|
|
204
|
-
ticketsIOwn?:
|
|
205
|
+
ticketsIOwn?: TicketExt[];
|
|
205
206
|
}
|
|
206
207
|
|
|
207
208
|
export const USER_DATA_SELECT_REVIEWS_COMMENTS = {
|