@bash-app/bash-common 24.0.0 → 24.2.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": "24.0.0",
3
+ "version": "24.2.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",
@@ -846,6 +846,7 @@ model User {
846
846
  bookingForMe Booking[]
847
847
  userSubscription UserSubscription?
848
848
  serviceSubcriptions ServiceSubscription[]
849
+ volunteerService VolunteerService[]
849
850
  }
850
851
 
851
852
  model Contact {
@@ -905,7 +906,8 @@ model Business {
905
906
  venues Venue[]
906
907
  targetAudienceId String? @unique
907
908
  targetAudience TargetAudience? @relation(fields: [targetAudienceId], references: [id])
908
- volunteerService VolunteerService?
909
+ // volunteerService VolunteerService?
910
+ volunteerServices VolunteerService[]
909
911
  eventServices EventService[]
910
912
  entertainmentServices EntertainmentService[]
911
913
  vendors Vendor[]
@@ -927,9 +929,10 @@ model Business {
927
929
 
928
930
  model VolunteerService {
929
931
  id String @id @default(cuid())
930
- businessId String? @unique
931
- business Business? @relation(fields: [businessId], references: [id])
932
- userId String // User ID for individual volunteers
932
+ businessId String?
933
+ business Business? @relation(fields: [businessId], references: [id])
934
+ userId String?
935
+ user User? @relation(fields: [userId], references: [id])
933
936
  serviceRangeId String?
934
937
  serviceRange ServiceRange? @relation(fields: [serviceRangeId], references: [id])
935
938
  media Media[] @relation("VolunteerServiceMedia")
@@ -939,6 +942,7 @@ model VolunteerService {
939
942
  address String?
940
943
  email String?
941
944
  phone String?
945
+ agreedToAgreement Boolean
942
946
  }
943
947
 
944
948
  model EventService {
@@ -242,6 +242,7 @@ export interface VolunteerServiceExt extends VolunteerService {
242
242
  address: string | null;
243
243
  email: string | null;
244
244
  phone: string | null;
245
+ agreedToAgreement: boolean;
245
246
  }
246
247
 
247
248