@bash-app/bash-common 23.8.0 → 24.0.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.8.0",
3
+ "version": "24.0.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",
@@ -927,8 +927,9 @@ model Business {
927
927
 
928
928
  model VolunteerService {
929
929
  id String @id @default(cuid())
930
- businessId String @unique
931
- business Business @relation(fields: [businessId], references: [id])
930
+ businessId String? @unique
931
+ business Business? @relation(fields: [businessId], references: [id])
932
+ userId String // User ID for individual volunteers
932
933
  serviceRangeId String?
933
934
  serviceRange ServiceRange? @relation(fields: [serviceRangeId], references: [id])
934
935
  media Media[] @relation("VolunteerServiceMedia")
@@ -267,9 +267,6 @@ export const BUSINESS_DATA_TO_INCLUDE = {
267
267
  select: FRONT_END_USER_DATA_TO_SELECT,
268
268
  },
269
269
  media: true,
270
- volunteerService: {
271
- include: VOLUNTEER_DATA_TO_INCLUDE,
272
- },
273
270
  targetAudience: true,
274
271
  serviceLinks: {
275
272
  include: SERVICE_LINK_DATA_TO_INCLUDE,