@bash-app/bash-common 29.39.0 → 29.40.1
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 +6 -4
- package/src/definitions.ts +2 -0
package/package.json
CHANGED
package/prisma/schema.prisma
CHANGED
|
@@ -943,10 +943,11 @@ model ServiceSubscription {
|
|
|
943
943
|
}
|
|
944
944
|
|
|
945
945
|
model ServiceListingSubscription {
|
|
946
|
-
id String
|
|
946
|
+
id String @id @default(cuid())
|
|
947
947
|
stripeAccountId String
|
|
948
|
-
|
|
949
|
-
|
|
948
|
+
stripeAccount StripeAccount @relation(fields: [stripeAccountId], references: [id], onDelete: Restrict, onUpdate: Restrict)
|
|
949
|
+
stripeCheckoutSessionId String? @unique
|
|
950
|
+
stripeSubscriptionId String? @unique
|
|
950
951
|
|
|
951
952
|
subscriptionStatus ServiceSubscriptionStatus @default(None)
|
|
952
953
|
|
|
@@ -1059,7 +1060,8 @@ model StripeAccount {
|
|
|
1059
1060
|
createdAt DateTime @default(now())
|
|
1060
1061
|
updatedAt DateTime @updatedAt
|
|
1061
1062
|
|
|
1062
|
-
service
|
|
1063
|
+
service Service[]
|
|
1064
|
+
ServiceListingSubscription ServiceListingSubscription[]
|
|
1063
1065
|
|
|
1064
1066
|
@@index([ownerId])
|
|
1065
1067
|
}
|