@bash-app/bash-common 23.3.0 → 23.5.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": "23.3.0",
3
+ "version": "23.5.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",
@@ -673,16 +673,15 @@ enum InvestmentType {
673
673
  }
674
674
 
675
675
  model Link {
676
- id String @id @default(cuid())
677
- url String
678
- type String?
679
- icon String?
680
- eventLinks EventLink[]
681
- userLinks UserLink[]
682
- serviceLinks ServiceLink[]
683
- volunteerServiceId String?
684
- volunteerService VolunteerService? @relation("VolunteerServiceLinks", fields: [volunteerServiceId], references: [id])
685
-
676
+ id String @id @default(cuid())
677
+ url String
678
+ type String?
679
+ icon String?
680
+ eventLinks EventLink[]
681
+ userLinks UserLink[]
682
+ serviceLinks ServiceLink[]
683
+ volunteerServiceId String?
684
+ volunteerService VolunteerService? @relation("VolunteerServiceLinks", fields: [volunteerServiceId], references: [id])
686
685
  }
687
686
 
688
687
  model Media {
@@ -706,9 +705,8 @@ model Media {
706
705
  sponsorId String?
707
706
  organization Organization? @relation(fields: [organizationId], references: [id])
708
707
  organizationId String?
709
- volunteerServiceId String?
710
- volunteerService VolunteerService? @relation("VolunteerServiceMedia", fields: [volunteerServiceId], references: [id])
711
-
708
+ volunteerServiceId String?
709
+ volunteerService VolunteerService? @relation("VolunteerServiceMedia", fields: [volunteerServiceId], references: [id])
712
710
  }
713
711
 
714
712
  enum MediaType {
@@ -928,18 +926,18 @@ model Business {
928
926
  }
929
927
 
930
928
  model VolunteerService {
931
- id String @id @default(cuid())
932
- businessId String @unique
933
- business Business @relation(fields: [businessId], references: [id])
934
- serviceRangeId String?
935
- serviceRange ServiceRange? @relation(fields: [serviceRangeId], references: [id])
936
- media Media[] @relation("VolunteerServiceMedia")
937
- links Link[] @relation("VolunteerServiceLinks")
938
- availableDateTimes Availability[] @relation("AvailableDateTimes")
939
- fullName String?
929
+ id String @id @default(cuid())
930
+ businessId String @unique
931
+ business Business @relation(fields: [businessId], references: [id])
932
+ serviceRangeId String?
933
+ serviceRange ServiceRange? @relation(fields: [serviceRangeId], references: [id])
934
+ media Media[] @relation("VolunteerServiceMedia")
935
+ links Link[] @relation("VolunteerServiceLinks")
936
+ availableDateTimes Availability[] @relation("AvailableDateTimes")
937
+ fullName String?
940
938
  address String?
941
- email String?
942
- phone String?
939
+ email String?
940
+ phone String?
943
941
  }
944
942
 
945
943
  model EventService {
@@ -1292,11 +1290,11 @@ enum YearsOfExperience {
1292
1290
  }
1293
1291
 
1294
1292
  model ServiceRange {
1295
- id String @id @default(cuid())
1296
- min Int @default(0)
1297
- max Int @default(50)
1298
- volunteerServices VolunteerService[]
1299
- venue Venue?
1293
+ id String @id @default(cuid())
1294
+ min Int @default(0)
1295
+ max Int @default(50)
1296
+ volunteerServices VolunteerService[]
1297
+ venue Venue?
1300
1298
  }
1301
1299
 
1302
1300
  model Availability {
@@ -1317,7 +1315,7 @@ model Availability {
1317
1315
  sponsor Sponsor? @relation("AvailableDateTimes", fields: [sponsorId], references: [id])
1318
1316
  organizationId String?
1319
1317
  organization Organization? @relation("AvailableDateTimes", fields: [organizationId], references: [id])
1320
- volunteerServiceId String?
1318
+ volunteerServiceId String?
1321
1319
  volunteerService VolunteerService? @relation("AvailableDateTimes", fields: [volunteerServiceId], references: [id])
1322
1320
  }
1323
1321
 
@@ -1412,3 +1410,14 @@ model ServiceLink {
1412
1410
 
1413
1411
  @@index([businessId])
1414
1412
  }
1413
+
1414
+ enum ServiceType {
1415
+ Volunteer
1416
+ EventService
1417
+ EntertainmentService
1418
+ Vendor
1419
+ Exhibitor
1420
+ Sponsor
1421
+ Venue
1422
+ Organization
1423
+ }