@bash-app/bash-common 27.5.5 → 27.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": "27.5.5",
3
+ "version": "27.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",
@@ -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 {
@@ -991,7 +993,7 @@ model EventService {
991
993
  serviceId String?
992
994
  serviceConnectionId String?
993
995
  serviceConnection String?
994
- eventServiceName String
996
+ name String?
995
997
  eventServiceTypes EventServiceType[]
996
998
  eventServiceSubType String?
997
999
  email String?
@@ -1036,7 +1038,7 @@ model EntertainmentService {
1036
1038
  serviceId String?
1037
1039
  serviceConnectionId String?
1038
1040
  serviceConnection String?
1039
- entertainmentServiceName String?
1041
+ name String?
1040
1042
  entertainmentServiceTypes EntertainmentServiceType[]
1041
1043
  entertainmentServiceSubType String?
1042
1044
  genre MusicGenreType?
@@ -1081,14 +1083,14 @@ model Vendor {
1081
1083
  serviceId String?
1082
1084
  serviceConnectionId String?
1083
1085
  serviceConnection String?
1084
- vendorName String
1085
- email String
1086
- street String
1087
- city String
1088
- state String
1089
- zipCode String
1090
- country String
1091
- phone String
1086
+ name String?
1087
+ email String?
1088
+ street String?
1089
+ city String?
1090
+ state String?
1091
+ zipCode String?
1092
+ country String?
1093
+ phone String?
1092
1094
  coverPhoto String?
1093
1095
  media Media[]
1094
1096
  visibility VisibilityPreference? @default(Public)
@@ -1124,7 +1126,7 @@ model Exhibitor {
1124
1126
  serviceId String?
1125
1127
  serviceConnectionId String?
1126
1128
  serviceConnection String?
1127
- exhibitorName String?
1129
+ name String?
1128
1130
  email String?
1129
1131
  street String?
1130
1132
  city String?
@@ -1166,7 +1168,7 @@ model Sponsor {
1166
1168
  serviceId String?
1167
1169
  serviceConnectionId String?
1168
1170
  serviceConnection String?
1169
- sponsorName String?
1171
+ name String?
1170
1172
  email String?
1171
1173
  street String?
1172
1174
  city String?
@@ -1203,12 +1205,14 @@ model Sponsor {
1203
1205
  model Venue {
1204
1206
  id String @id @default(cuid())
1205
1207
  creatorId String?
1206
- creator User? @relation(fields: [creatorId], references: [id], onDelete: Cascade)
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?
1211
- venueName String?
1213
+ ownerId String?
1214
+ owner User? @relation("VenueProfileOwner", fields: [ownerId], references: [id], onDelete: Cascade)
1215
+ name String?
1212
1216
  email String?
1213
1217
  place String?
1214
1218
  street 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 {
@@ -1258,7 +1263,7 @@ model Organization {
1258
1263
  serviceId String?
1259
1264
  serviceConnectionId String?
1260
1265
  serviceConnection String?
1261
- organizationName String?
1266
+ name String?
1262
1267
  organizationType OrganizationType[]
1263
1268
  email String?
1264
1269
  street String?