@bash-app/bash-common 29.19.16 → 29.19.18

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": "@bash-app/bash-common",
3
- "version": "29.19.16",
3
+ "version": "29.19.18",
4
4
  "description": "Common data and scripts to use on the frontend and backend",
5
5
  "type": "module",
6
6
  "main": "src/index.ts",
@@ -51,7 +51,7 @@ enum ClubAdminRole {
51
51
  enum ClubMemberStatus {
52
52
  Active
53
53
  Inactive
54
- Cancelled
54
+ Canceled
55
55
  Paused
56
56
  Removed
57
57
  }
@@ -1005,7 +1005,7 @@ model Service {
1005
1005
  // hoursOfOperation Json? @default("{}")
1006
1006
 
1007
1007
  stripeAccountId String?
1008
- stripeAccount StripeAccount? @relation(fields: [stripeAccountId], references: [id], onDelete: Cascade)
1008
+ stripeAccount StripeAccount? @relation(fields: [stripeAccountId], references: [id], onDelete: Restrict)
1009
1009
 
1010
1010
  targetAudienceId String? @unique
1011
1011
  targetAudience TargetAudience? @relation(fields: [targetAudienceId], references: [id], onDelete: Cascade)
@@ -1163,9 +1163,26 @@ model Venue {
1163
1163
  vibe String?
1164
1164
  dress String?
1165
1165
 
1166
+ pricingPlan PricingPlan? @default(Percentage)
1167
+ percentageRate Float? @default(0.15)
1168
+ subscriptionStatus SubscriptionStatus?
1169
+ subscriptionStartDate DateTime?
1170
+
1166
1171
  bashEvents BashEvent[]
1167
1172
  }
1168
1173
 
1174
+ enum PricingPlan {
1175
+ Percentage
1176
+ Subscription
1177
+ }
1178
+
1179
+ enum SubscriptionStatus {
1180
+ Active
1181
+ Canceled
1182
+ Suspended
1183
+ Expired
1184
+ }
1185
+
1169
1186
  model Organization {
1170
1187
  id String @id @default(cuid())
1171
1188
  serviceId String @unique