add payment and integration with midtrans

This commit is contained in:
2026-05-08 21:44:34 +07:00
parent ecd4dc2ef4
commit 68ffaf2f69
14 changed files with 886 additions and 36 deletions
+7 -1
View File
@@ -278,6 +278,7 @@ export type BookingOrderByWithRelationInput = {
export type BookingWhereUniqueInput = Prisma.AtLeast<{
id?: string
participantId?: string
tripId_userId?: Prisma.BookingTripIdUserIdCompoundUniqueInput
AND?: Prisma.BookingWhereInput | Prisma.BookingWhereInput[]
OR?: Prisma.BookingWhereInput[]
NOT?: Prisma.BookingWhereInput | Prisma.BookingWhereInput[]
@@ -292,7 +293,7 @@ export type BookingWhereUniqueInput = Prisma.AtLeast<{
user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
participant?: Prisma.XOR<Prisma.TripParticipantScalarRelationFilter, Prisma.TripParticipantWhereInput>
payments?: Prisma.PaymentListRelationFilter
}, "id" | "participantId">
}, "id" | "participantId" | "tripId_userId">
export type BookingOrderByWithAggregationInput = {
id?: Prisma.SortOrder
@@ -426,6 +427,11 @@ export type BookingNullableScalarRelationFilter = {
isNot?: Prisma.BookingWhereInput | null
}
export type BookingTripIdUserIdCompoundUniqueInput = {
tripId: string
userId: string
}
export type BookingCountOrderByAggregateInput = {
id?: Prisma.SortOrder
tripId?: Prisma.SortOrder