@bash-app/bash-common 30.170.0 → 30.171.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bash-app/bash-common",
3
- "version": "30.170.0",
3
+ "version": "30.171.0",
4
4
  "description": "Common data and scripts to use on the frontend and backend",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -2665,6 +2665,7 @@ model Organization {
2665
2665
  secondaryVenueTypes String[] @default([])
2666
2666
  baseMembershipPriceCents Int?
2667
2667
  premiumMembershipPriceCents Int?
2668
+ membershipBillingInterval String? // one_time | monthly | annual for recurring dues
2668
2669
  allowGuestsByDefault Boolean @default(false)
2669
2670
  defaultGuestLimit Int @default(0)
2670
2671
  visibility String @default("Public")
@@ -2720,6 +2721,7 @@ model OrganizationMember {
2720
2721
  lastActiveAt DateTime? // Last event attended
2721
2722
  totalEventsAttended Int @default(0)
2722
2723
  firstEventAttendedAt DateTime?
2724
+ stripeSubscriptionId String? @unique // Stripe subscription ID for recurring org membership dues
2723
2725
  organization Organization @relation(fields: [organizationId], references: [id], onDelete: Cascade)
2724
2726
  user User @relation("OrganizationMemberUser", fields: [userId], references: [id], onDelete: Cascade)
2725
2727
  eventRSVPs EventRSVP[]
@@ -2728,6 +2730,7 @@ model OrganizationMember {
2728
2730
  @@index([organizationId])
2729
2731
  @@index([userId])
2730
2732
  @@index([status])
2733
+ @@index([stripeSubscriptionId])
2731
2734
  }
2732
2735
 
2733
2736
  model Department {