add payment, trust badge, handle race condition, fix booking schema

This commit is contained in:
arifal
2026-04-20 23:57:31 +07:00
parent ba5f64ae0e
commit fcdca34460
33 changed files with 1781 additions and 138 deletions
@@ -823,6 +823,7 @@ export const UserScalarFieldEnum = {
email: 'email',
password: 'password',
image: 'image',
isVerified: 'isVerified',
createdAt: 'createdAt',
updatedAt: 'updatedAt'
} as const
@@ -836,6 +837,10 @@ export const TripScalarFieldEnum = {
description: 'description',
mountain: 'mountain',
location: 'location',
meetingPoint: 'meetingPoint',
itinerary: 'itinerary',
whatsIncluded: 'whatsIncluded',
whatsExcluded: 'whatsExcluded',
date: 'date',
endDate: 'endDate',
maxParticipants: 'maxParticipants',
@@ -877,6 +882,8 @@ export const TripParticipantScalarFieldEnum = {
id: 'id',
status: 'status',
createdAt: 'createdAt',
markedPaidAt: 'markedPaidAt',
paymentConfirmedAt: 'paymentConfirmedAt',
tripId: 'tripId',
userId: 'userId'
} as const
@@ -928,6 +935,13 @@ export type ListStringFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaMod
/**
* Reference to a field of type 'Boolean'
*/
export type BooleanFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'Boolean'>
/**
* Reference to a field of type 'DateTime'
*/