@bash-app/bash-common 29.21.25 → 29.22.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 +10 -12
- package/src/definitions.ts +0 -2
- package/src/extendedSchemas.ts +5 -5
package/package.json
CHANGED
package/prisma/schema.prisma
CHANGED
|
@@ -948,7 +948,7 @@ model Service {
|
|
|
948
948
|
creatorId String?
|
|
949
949
|
creator User? @relation("CreatedService", fields: [creatorId], references: [id])
|
|
950
950
|
|
|
951
|
-
createdAt DateTime
|
|
951
|
+
createdAt DateTime @default(now())
|
|
952
952
|
updatedAt DateTime? @updatedAt
|
|
953
953
|
|
|
954
954
|
associatedBashesReferencingMe AssociatedBash[]
|
|
@@ -1024,8 +1024,8 @@ model StripeAccount {
|
|
|
1024
1024
|
|
|
1025
1025
|
stripeAccountId String
|
|
1026
1026
|
|
|
1027
|
-
logoId String?
|
|
1028
|
-
logo
|
|
1027
|
+
logoId String?
|
|
1028
|
+
logo Media? @relation(fields: [logoId], references: [id], onDelete: SetNull)
|
|
1029
1029
|
|
|
1030
1030
|
createdAt DateTime @default(now())
|
|
1031
1031
|
updatedAt DateTime @updatedAt
|
|
@@ -1368,6 +1368,7 @@ model ServiceRate {
|
|
|
1368
1368
|
@@index([rateType])
|
|
1369
1369
|
}
|
|
1370
1370
|
|
|
1371
|
+
// if isAvailable is false it is closed
|
|
1371
1372
|
model ServiceSpecialRates {
|
|
1372
1373
|
id String @id @default(cuid())
|
|
1373
1374
|
startDate DateTime @db.Date
|
|
@@ -1377,7 +1378,8 @@ model ServiceSpecialRates {
|
|
|
1377
1378
|
serviceRate ServiceRate? @relation(fields: [serviceRateId], references: [id], onDelete: Cascade)
|
|
1378
1379
|
isAvailable Boolean
|
|
1379
1380
|
|
|
1380
|
-
|
|
1381
|
+
serviceRatesAssociationId String
|
|
1382
|
+
serviceRatesAssociation ServiceRatesAssociation @relation(fields: [serviceRatesAssociationId], references: [id], onDelete: Cascade)
|
|
1381
1383
|
|
|
1382
1384
|
@@unique([serviceRateId])
|
|
1383
1385
|
}
|
|
@@ -1395,7 +1397,8 @@ model ServiceDailyRates {
|
|
|
1395
1397
|
serviceRateId String?
|
|
1396
1398
|
serviceRate ServiceRate? @relation(fields: [serviceRateId], references: [id], onDelete: Cascade)
|
|
1397
1399
|
|
|
1398
|
-
|
|
1400
|
+
serviceRatesAssociationId String
|
|
1401
|
+
serviceRatesAssociation ServiceRatesAssociation @relation(fields: [serviceRatesAssociationId], references: [id], onDelete: Cascade)
|
|
1399
1402
|
|
|
1400
1403
|
@@unique([serviceRateId])
|
|
1401
1404
|
}
|
|
@@ -1411,11 +1414,8 @@ model ServiceRatesAssociation {
|
|
|
1411
1414
|
serviceGeneralRatesId String?
|
|
1412
1415
|
serviceGeneralRates ServiceRate? @relation(fields: [serviceGeneralRatesId], references: [id], onDelete: Cascade)
|
|
1413
1416
|
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
serviceSpecialRatesId String?
|
|
1418
|
-
serviceSpecialRates ServiceSpecialRates? @relation(fields: [serviceSpecialRatesId], references: [id], onDelete: Cascade)
|
|
1417
|
+
serviceDailyRates ServiceDailyRates[]
|
|
1418
|
+
serviceSpecialRates ServiceSpecialRates[]
|
|
1419
1419
|
|
|
1420
1420
|
addons ServiceAddon[]
|
|
1421
1421
|
packages ServicePackage[]
|
|
@@ -1423,8 +1423,6 @@ model ServiceRatesAssociation {
|
|
|
1423
1423
|
@@unique([serviceId])
|
|
1424
1424
|
@@unique([volunteerServiceId])
|
|
1425
1425
|
@@unique([serviceGeneralRatesId])
|
|
1426
|
-
@@unique([serviceDailyRatesId])
|
|
1427
|
-
@@unique([serviceSpecialRatesId])
|
|
1428
1426
|
}
|
|
1429
1427
|
|
|
1430
1428
|
enum VisibilityPreference {
|
package/src/definitions.ts
CHANGED
|
@@ -79,8 +79,6 @@ export const PRISMA_USER_TTL_SECONDS = 60 * 7; // 7 hours
|
|
|
79
79
|
export const PRISMA_BASH_EVENT_TTL_SECONDS = 60 as const;
|
|
80
80
|
export const PRISMA_SERVICE_TTL_SECONDS = 60 as const;
|
|
81
81
|
|
|
82
|
-
export const MIN_PASSWORD_LENGTH = 8 as const;
|
|
83
|
-
|
|
84
82
|
export const DEBOUNCE_WAIT = 1000 as const;
|
|
85
83
|
|
|
86
84
|
export const ASSET_KEY_DELIM = '__' as const;
|
package/src/extendedSchemas.ts
CHANGED
|
@@ -305,12 +305,12 @@ export interface ServiceSpecialRatesExt extends ServiceSpecialRates {
|
|
|
305
305
|
}
|
|
306
306
|
|
|
307
307
|
export interface ServiceRatesAssociationExt extends ServiceRatesAssociation {
|
|
308
|
-
serviceGeneralRates?: ServiceRate;
|
|
309
|
-
serviceDailyRates?: ServiceDailyRates;
|
|
310
|
-
serviceSpecialRates?: ServiceSpecialRates;
|
|
308
|
+
serviceGeneralRates?: ServiceRate | null;
|
|
309
|
+
serviceDailyRates?: ServiceDailyRates[];
|
|
310
|
+
serviceSpecialRates?: ServiceSpecialRates[];
|
|
311
311
|
|
|
312
|
-
addons
|
|
313
|
-
packages
|
|
312
|
+
addons?: ServiceAddon[];
|
|
313
|
+
packages?: ServicePackageExt[];
|
|
314
314
|
}
|
|
315
315
|
|
|
316
316
|
|