@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 +1 -1
- package/prisma/schema.prisma +39 -30
package/package.json
CHANGED
package/prisma/schema.prisma
CHANGED
|
@@ -673,16 +673,15 @@ enum InvestmentType {
|
|
|
673
673
|
}
|
|
674
674
|
|
|
675
675
|
model Link {
|
|
676
|
-
id
|
|
677
|
-
url
|
|
678
|
-
type
|
|
679
|
-
icon
|
|
680
|
-
eventLinks
|
|
681
|
-
userLinks
|
|
682
|
-
serviceLinks
|
|
683
|
-
|
|
684
|
-
volunteerService
|
|
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
|
|
710
|
-
volunteerService
|
|
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
|
|
932
|
-
businessId
|
|
933
|
-
business
|
|
934
|
-
|
|
935
|
-
serviceRange
|
|
936
|
-
media
|
|
937
|
-
links
|
|
938
|
-
availableDateTimes
|
|
939
|
-
fullName
|
|
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
|
|
1296
|
-
min
|
|
1297
|
-
max
|
|
1298
|
-
volunteerServices
|
|
1299
|
-
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
|
-
|
|
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
|
+
}
|