@bash-app/bash-common 29.5.0 → 29.6.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": "29.5.0",
3
+ "version": "29.6.0",
4
4
  "description": "Common data and scripts to use on the frontend and backend",
5
5
  "type": "module",
6
6
  "main": "src/index.ts",
@@ -235,10 +235,18 @@ model BashEvent {
235
235
  subtitle String?
236
236
  isFeatured Boolean?
237
237
  isTrending Boolean?
238
- coordinates Float?
238
+ coordinates Coordinates[] // A BashEvent can have multiple sets of coordinates
239
239
  // stripeAccount StripeAccount[]
240
240
  }
241
241
 
242
+ model Coordinates {
243
+ id Int @id @default(autoincrement())
244
+ lat Float?
245
+ lng Float?
246
+ bashEventId String? // Foreign key to BashEvent, now of type String
247
+ bashEvent BashEvent? @relation(fields: [bashEventId], references: [id])
248
+ }
249
+
242
250
  model Checkout {
243
251
  id String @id @default(cuid())
244
252
  ownerId String