@bash-app/bash-common 29.20.22 → 29.21.22
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 +4 -4
- package/src/extendedSchemas.ts +5 -0
package/package.json
CHANGED
package/prisma/schema.prisma
CHANGED
|
@@ -1382,10 +1382,10 @@ model ServiceSpecialRates {
|
|
|
1382
1382
|
// can have special rates on different days of the year (single or range)
|
|
1383
1383
|
// free trial period with promo code (1 or 2 months of listing for free)
|
|
1384
1384
|
model ServiceDailyRates {
|
|
1385
|
-
id
|
|
1386
|
-
dayOfWeek
|
|
1387
|
-
|
|
1388
|
-
|
|
1385
|
+
id String @id @default(cuid())
|
|
1386
|
+
dayOfWeek Int
|
|
1387
|
+
startTime DateTime @db.Time
|
|
1388
|
+
endTime DateTime @db.Time
|
|
1389
1389
|
|
|
1390
1390
|
serviceRateId String?
|
|
1391
1391
|
serviceRate ServiceRate? @relation(fields: [serviceRateId], references: [id], onDelete: Cascade)
|
package/src/extendedSchemas.ts
CHANGED
|
@@ -252,6 +252,8 @@ export interface ServiceExt extends Service {
|
|
|
252
252
|
venue?: Venue;
|
|
253
253
|
organization?: Organization;
|
|
254
254
|
|
|
255
|
+
serviceRatesAssociation?: ServiceRatesAssociationExt;
|
|
256
|
+
|
|
255
257
|
// googleReviews: GoogleReview[];
|
|
256
258
|
}
|
|
257
259
|
export interface ServicePackageExt extends ServiceDailyRates {
|
|
@@ -269,6 +271,9 @@ export interface ServiceRatesAssociationExt extends ServiceRatesAssociation {
|
|
|
269
271
|
serviceGeneralRates?: ServiceRate;
|
|
270
272
|
serviceDailyRates?: ServiceDailyRates;
|
|
271
273
|
serviceSpecialRates?: ServiceSpecialRates;
|
|
274
|
+
|
|
275
|
+
packages?: ServicePackageExt;
|
|
276
|
+
addons: ServiceAddon[];
|
|
272
277
|
}
|
|
273
278
|
|
|
274
279
|
|