add trip image
This commit is contained in:
@@ -386,6 +386,7 @@ type FieldRefInputType<Model, FieldType> = Model extends never ? never : FieldRe
|
||||
export const ModelName = {
|
||||
User: 'User',
|
||||
Trip: 'Trip',
|
||||
TripImage: 'TripImage',
|
||||
TripParticipant: 'TripParticipant'
|
||||
} as const
|
||||
|
||||
@@ -402,7 +403,7 @@ export type TypeMap<ExtArgs extends runtime.Types.Extensions.InternalArgs = runt
|
||||
omit: GlobalOmitOptions
|
||||
}
|
||||
meta: {
|
||||
modelProps: "user" | "trip" | "tripParticipant"
|
||||
modelProps: "user" | "trip" | "tripImage" | "tripParticipant"
|
||||
txIsolationLevel: TransactionIsolationLevel
|
||||
}
|
||||
model: {
|
||||
@@ -554,6 +555,80 @@ export type TypeMap<ExtArgs extends runtime.Types.Extensions.InternalArgs = runt
|
||||
}
|
||||
}
|
||||
}
|
||||
TripImage: {
|
||||
payload: Prisma.$TripImagePayload<ExtArgs>
|
||||
fields: Prisma.TripImageFieldRefs
|
||||
operations: {
|
||||
findUnique: {
|
||||
args: Prisma.TripImageFindUniqueArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$TripImagePayload> | null
|
||||
}
|
||||
findUniqueOrThrow: {
|
||||
args: Prisma.TripImageFindUniqueOrThrowArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$TripImagePayload>
|
||||
}
|
||||
findFirst: {
|
||||
args: Prisma.TripImageFindFirstArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$TripImagePayload> | null
|
||||
}
|
||||
findFirstOrThrow: {
|
||||
args: Prisma.TripImageFindFirstOrThrowArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$TripImagePayload>
|
||||
}
|
||||
findMany: {
|
||||
args: Prisma.TripImageFindManyArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$TripImagePayload>[]
|
||||
}
|
||||
create: {
|
||||
args: Prisma.TripImageCreateArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$TripImagePayload>
|
||||
}
|
||||
createMany: {
|
||||
args: Prisma.TripImageCreateManyArgs<ExtArgs>
|
||||
result: BatchPayload
|
||||
}
|
||||
createManyAndReturn: {
|
||||
args: Prisma.TripImageCreateManyAndReturnArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$TripImagePayload>[]
|
||||
}
|
||||
delete: {
|
||||
args: Prisma.TripImageDeleteArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$TripImagePayload>
|
||||
}
|
||||
update: {
|
||||
args: Prisma.TripImageUpdateArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$TripImagePayload>
|
||||
}
|
||||
deleteMany: {
|
||||
args: Prisma.TripImageDeleteManyArgs<ExtArgs>
|
||||
result: BatchPayload
|
||||
}
|
||||
updateMany: {
|
||||
args: Prisma.TripImageUpdateManyArgs<ExtArgs>
|
||||
result: BatchPayload
|
||||
}
|
||||
updateManyAndReturn: {
|
||||
args: Prisma.TripImageUpdateManyAndReturnArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$TripImagePayload>[]
|
||||
}
|
||||
upsert: {
|
||||
args: Prisma.TripImageUpsertArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$TripImagePayload>
|
||||
}
|
||||
aggregate: {
|
||||
args: Prisma.TripImageAggregateArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.Optional<Prisma.AggregateTripImage>
|
||||
}
|
||||
groupBy: {
|
||||
args: Prisma.TripImageGroupByArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.Optional<Prisma.TripImageGroupByOutputType>[]
|
||||
}
|
||||
count: {
|
||||
args: Prisma.TripImageCountArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.Optional<Prisma.TripImageCountAggregateOutputType> | number
|
||||
}
|
||||
}
|
||||
}
|
||||
TripParticipant: {
|
||||
payload: Prisma.$TripParticipantPayload<ExtArgs>
|
||||
fields: Prisma.TripParticipantFieldRefs
|
||||
@@ -689,7 +764,6 @@ export const TripScalarFieldEnum = {
|
||||
date: 'date',
|
||||
maxParticipants: 'maxParticipants',
|
||||
price: 'price',
|
||||
image: 'image',
|
||||
status: 'status',
|
||||
createdAt: 'createdAt',
|
||||
updatedAt: 'updatedAt',
|
||||
@@ -699,6 +773,17 @@ export const TripScalarFieldEnum = {
|
||||
export type TripScalarFieldEnum = (typeof TripScalarFieldEnum)[keyof typeof TripScalarFieldEnum]
|
||||
|
||||
|
||||
export const TripImageScalarFieldEnum = {
|
||||
id: 'id',
|
||||
url: 'url',
|
||||
caption: 'caption',
|
||||
order: 'order',
|
||||
tripId: 'tripId'
|
||||
} as const
|
||||
|
||||
export type TripImageScalarFieldEnum = (typeof TripImageScalarFieldEnum)[keyof typeof TripImageScalarFieldEnum]
|
||||
|
||||
|
||||
export const TripParticipantScalarFieldEnum = {
|
||||
id: 'id',
|
||||
status: 'status',
|
||||
@@ -920,6 +1005,7 @@ export type PrismaClientOptions = ({
|
||||
export type GlobalOmitConfig = {
|
||||
user?: Prisma.UserOmit
|
||||
trip?: Prisma.TripOmit
|
||||
tripImage?: Prisma.TripImageOmit
|
||||
tripParticipant?: Prisma.TripParticipantOmit
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user