@bash-app/bash-common 27.5.4 → 27.5.6

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": "27.5.4",
3
+ "version": "27.5.6",
4
4
  "description": "Common data and scripts to use on the frontend and backend",
5
5
  "type": "module",
6
6
  "main": "src/index.ts",
@@ -862,6 +862,8 @@ model User {
862
862
  sponsor Sponsor[]
863
863
  venue Venue[]
864
864
  organization Organization[]
865
+ venueCreator Venue[] @relation("VenueProfileOwner")
866
+ venueOwner Venue[] @relation("VenueProfileCreator")
865
867
  }
866
868
 
867
869
  model Contact {
@@ -1202,12 +1204,14 @@ model Sponsor {
1202
1204
 
1203
1205
  model Venue {
1204
1206
  id String @id @default(cuid())
1205
- creatorId String
1206
- creator User @relation(fields: [creatorId], references: [id], onDelete: Cascade)
1207
+ creatorId String?
1208
+ creator User? @relation("VenueProfileCreator", fields: [creatorId], references: [id], onDelete: Cascade)
1207
1209
  service Service? @relation(fields: [serviceId], references: [id], onDelete: Cascade)
1208
1210
  serviceId String?
1209
1211
  serviceConnectionId String?
1210
1212
  serviceConnection String?
1213
+ ownerId String?
1214
+ owner User? @relation("VenueProfileOwner", fields: [ownerId], references: [id], onDelete: Cascade)
1211
1215
  venueName String?
1212
1216
  email String?
1213
1217
  place String?
@@ -1248,6 +1252,7 @@ model Venue {
1248
1252
  amountOfGuestsId String? @unique
1249
1253
  trademark Boolean?
1250
1254
  manager Boolean?
1255
+ user User[]
1251
1256
  }
1252
1257
 
1253
1258
  model Organization {