@optimatech88/titomeet-shared-lib 1.0.56 → 1.1.1
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/.env +2 -0
- package/dist/auth/admin.middleware.d.ts +1 -1
- package/dist/auth/admin.middleware.d.ts.map +1 -1
- package/dist/auth/admin.middleware.js +7 -11
- package/dist/auth/admin.middleware.js.map +1 -1
- package/dist/auth/auth.guard.d.ts.map +1 -1
- package/dist/auth/auth.guard.js +46 -41
- package/dist/auth/auth.guard.js.map +1 -1
- package/dist/auth/auth.module.d.ts +1 -1
- package/dist/auth/auth.module.d.ts.map +1 -1
- package/dist/auth/auth.module.js +8 -11
- package/dist/auth/auth.module.js.map +1 -1
- package/dist/cache/cache.module.js +12 -18
- package/dist/cache/cache.module.js.map +1 -1
- package/dist/cache/cache.service.js +8 -10
- package/dist/cache/cache.service.js.map +1 -1
- package/dist/generated/prisma/client.d.ts +33 -0
- package/dist/generated/prisma/client.d.ts.map +1 -0
- package/dist/generated/prisma/client.js +10 -0
- package/dist/generated/prisma/client.js.map +1 -0
- package/dist/generated/prisma/commonInputTypes.d.ts +966 -0
- package/dist/generated/prisma/commonInputTypes.d.ts.map +1 -0
- package/dist/generated/prisma/commonInputTypes.js +2 -0
- package/dist/generated/prisma/commonInputTypes.js.map +1 -0
- package/dist/generated/prisma/enums.d.ts +111 -0
- package/dist/generated/prisma/enums.d.ts.map +1 -0
- package/dist/generated/prisma/enums.js +93 -0
- package/dist/generated/prisma/enums.js.map +1 -0
- package/dist/generated/prisma/internal/class.d.ts +105 -0
- package/dist/generated/prisma/internal/class.d.ts.map +1 -0
- package/dist/generated/prisma/internal/class.js +39 -0
- package/dist/generated/prisma/internal/class.js.map +1 -0
- package/dist/generated/prisma/internal/prismaNamespace.d.ts +2426 -0
- package/dist/generated/prisma/internal/prismaNamespace.d.ts.map +1 -0
- package/dist/generated/prisma/internal/prismaNamespace.js +338 -0
- package/dist/generated/prisma/internal/prismaNamespace.js.map +1 -0
- package/dist/generated/prisma/models/Account.d.ts +582 -0
- package/dist/generated/prisma/models/Account.d.ts.map +1 -0
- package/dist/generated/prisma/models/Account.js +2 -0
- package/dist/generated/prisma/models/Account.js.map +1 -0
- package/dist/generated/prisma/models/Address.d.ts +930 -0
- package/dist/generated/prisma/models/Address.d.ts.map +1 -0
- package/dist/generated/prisma/models/Address.js +2 -0
- package/dist/generated/prisma/models/Address.js.map +1 -0
- package/dist/generated/prisma/models/Chat.d.ts +788 -0
- package/dist/generated/prisma/models/Chat.d.ts.map +1 -0
- package/dist/generated/prisma/models/Chat.js +2 -0
- package/dist/generated/prisma/models/Chat.js.map +1 -0
- package/dist/generated/prisma/models/ChatUser.d.ts +648 -0
- package/dist/generated/prisma/models/ChatUser.d.ts.map +1 -0
- package/dist/generated/prisma/models/ChatUser.js +2 -0
- package/dist/generated/prisma/models/ChatUser.js.map +1 -0
- package/dist/generated/prisma/models/Country.d.ts +543 -0
- package/dist/generated/prisma/models/Country.d.ts.map +1 -0
- package/dist/generated/prisma/models/Country.js +2 -0
- package/dist/generated/prisma/models/Country.js.map +1 -0
- package/dist/generated/prisma/models/Event.d.ts +3206 -0
- package/dist/generated/prisma/models/Event.d.ts.map +1 -0
- package/dist/generated/prisma/models/Event.js +2 -0
- package/dist/generated/prisma/models/Event.js.map +1 -0
- package/dist/generated/prisma/models/EventCategory.d.ts +1004 -0
- package/dist/generated/prisma/models/EventCategory.d.ts.map +1 -0
- package/dist/generated/prisma/models/EventCategory.js +2 -0
- package/dist/generated/prisma/models/EventCategory.js.map +1 -0
- package/dist/generated/prisma/models/EventPrice.d.ts +798 -0
- package/dist/generated/prisma/models/EventPrice.d.ts.map +1 -0
- package/dist/generated/prisma/models/EventPrice.js +2 -0
- package/dist/generated/prisma/models/EventPrice.js.map +1 -0
- package/dist/generated/prisma/models/Favorite.d.ts +648 -0
- package/dist/generated/prisma/models/Favorite.d.ts.map +1 -0
- package/dist/generated/prisma/models/Favorite.js +2 -0
- package/dist/generated/prisma/models/Favorite.js.map +1 -0
- package/dist/generated/prisma/models/Feedback.d.ts +682 -0
- package/dist/generated/prisma/models/Feedback.d.ts.map +1 -0
- package/dist/generated/prisma/models/Feedback.js +2 -0
- package/dist/generated/prisma/models/Feedback.js.map +1 -0
- package/dist/generated/prisma/models/Message.d.ts +724 -0
- package/dist/generated/prisma/models/Message.d.ts.map +1 -0
- package/dist/generated/prisma/models/Message.js +2 -0
- package/dist/generated/prisma/models/Message.js.map +1 -0
- package/dist/generated/prisma/models/Newsletter.d.ts +404 -0
- package/dist/generated/prisma/models/Newsletter.d.ts.map +1 -0
- package/dist/generated/prisma/models/Newsletter.js +2 -0
- package/dist/generated/prisma/models/Newsletter.js.map +1 -0
- package/dist/generated/prisma/models/Notification.d.ts +775 -0
- package/dist/generated/prisma/models/Notification.d.ts.map +1 -0
- package/dist/generated/prisma/models/Notification.js +2 -0
- package/dist/generated/prisma/models/Notification.js.map +1 -0
- package/dist/generated/prisma/models/Order.d.ts +1009 -0
- package/dist/generated/prisma/models/Order.d.ts.map +1 -0
- package/dist/generated/prisma/models/Order.js +2 -0
- package/dist/generated/prisma/models/Order.js.map +1 -0
- package/dist/generated/prisma/models/OrderItem.d.ts +806 -0
- package/dist/generated/prisma/models/OrderItem.d.ts.map +1 -0
- package/dist/generated/prisma/models/OrderItem.js +2 -0
- package/dist/generated/prisma/models/OrderItem.js.map +1 -0
- package/dist/generated/prisma/models/Pricing.d.ts +739 -0
- package/dist/generated/prisma/models/Pricing.d.ts.map +1 -0
- package/dist/generated/prisma/models/Pricing.js +2 -0
- package/dist/generated/prisma/models/Pricing.js.map +1 -0
- package/dist/generated/prisma/models/Provider.d.ts +1650 -0
- package/dist/generated/prisma/models/Provider.d.ts.map +1 -0
- package/dist/generated/prisma/models/Provider.js +2 -0
- package/dist/generated/prisma/models/Provider.js.map +1 -0
- package/dist/generated/prisma/models/ProviderCategory.d.ts +830 -0
- package/dist/generated/prisma/models/ProviderCategory.d.ts.map +1 -0
- package/dist/generated/prisma/models/ProviderCategory.js +2 -0
- package/dist/generated/prisma/models/ProviderCategory.js.map +1 -0
- package/dist/generated/prisma/models/ProviderOnEvent.d.ts +693 -0
- package/dist/generated/prisma/models/ProviderOnEvent.d.ts.map +1 -0
- package/dist/generated/prisma/models/ProviderOnEvent.js +2 -0
- package/dist/generated/prisma/models/ProviderOnEvent.js.map +1 -0
- package/dist/generated/prisma/models/Report.d.ts +689 -0
- package/dist/generated/prisma/models/Report.d.ts.map +1 -0
- package/dist/generated/prisma/models/Report.js +2 -0
- package/dist/generated/prisma/models/Report.js.map +1 -0
- package/dist/generated/prisma/models/Review.d.ts +758 -0
- package/dist/generated/prisma/models/Review.d.ts.map +1 -0
- package/dist/generated/prisma/models/Review.js +2 -0
- package/dist/generated/prisma/models/Review.js.map +1 -0
- package/dist/generated/prisma/models/Transaction.d.ts +894 -0
- package/dist/generated/prisma/models/Transaction.d.ts.map +1 -0
- package/dist/generated/prisma/models/Transaction.js +2 -0
- package/dist/generated/prisma/models/Transaction.js.map +1 -0
- package/dist/generated/prisma/models/User.d.ts +2966 -0
- package/dist/generated/prisma/models/User.d.ts.map +1 -0
- package/dist/generated/prisma/models/User.js +2 -0
- package/dist/generated/prisma/models/User.js.map +1 -0
- package/dist/generated/prisma/models/UserInterests.d.ts +605 -0
- package/dist/generated/prisma/models/UserInterests.d.ts.map +1 -0
- package/dist/generated/prisma/models/UserInterests.js +2 -0
- package/dist/generated/prisma/models/UserInterests.js.map +1 -0
- package/dist/generated/prisma/models.d.ts +26 -0
- package/dist/generated/prisma/models.d.ts.map +1 -0
- package/dist/generated/prisma/models.js +2 -0
- package/dist/generated/prisma/models.js.map +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +15 -51
- package/dist/index.js.map +1 -1
- package/dist/prisma/prisma.module.js +8 -11
- package/dist/prisma/prisma.module.js.map +1 -1
- package/dist/prisma/prisma.service.d.ts +2 -1
- package/dist/prisma/prisma.service.d.ts.map +1 -1
- package/dist/prisma/prisma.service.js +17 -9
- package/dist/prisma/prisma.service.js.map +1 -1
- package/dist/prisma/seed.js +6 -4
- package/dist/prisma/seed.js.map +1 -1
- package/dist/src/auth/admin.middleware.d.ts +11 -0
- package/dist/src/auth/admin.middleware.d.ts.map +1 -0
- package/dist/src/auth/admin.middleware.js +22 -0
- package/dist/src/auth/admin.middleware.js.map +1 -0
- package/dist/src/auth/auth.guard.d.ts +25 -0
- package/dist/src/auth/auth.guard.d.ts.map +1 -0
- package/dist/src/auth/auth.guard.js +137 -0
- package/dist/src/auth/auth.guard.js.map +1 -0
- package/dist/src/auth/auth.module.d.ts +9 -0
- package/dist/src/auth/auth.module.d.ts.map +1 -0
- package/dist/src/auth/auth.module.js +30 -0
- package/dist/src/auth/auth.module.js.map +1 -0
- package/dist/src/cache/cache.module.d.ts +5 -0
- package/dist/src/cache/cache.module.d.ts.map +1 -0
- package/dist/src/cache/cache.module.js +35 -0
- package/dist/src/cache/cache.module.js.map +1 -0
- package/dist/src/cache/cache.service.d.ts +9 -0
- package/dist/src/cache/cache.service.d.ts.map +1 -0
- package/dist/src/cache/cache.service.js +36 -0
- package/dist/src/cache/cache.service.js.map +1 -0
- package/dist/src/index.d.ts +16 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/index.js +16 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/prisma/prisma.module.d.ts +3 -0
- package/dist/src/prisma/prisma.module.d.ts.map +1 -0
- package/dist/src/prisma/prisma.module.js +19 -0
- package/dist/src/prisma/prisma.module.js.map +1 -0
- package/dist/src/prisma/prisma.service.d.ts +8 -0
- package/dist/src/prisma/prisma.service.d.ts.map +1 -0
- package/dist/src/prisma/prisma.service.js +32 -0
- package/dist/src/prisma/prisma.service.js.map +1 -0
- package/dist/src/prisma/seed.d.ts +2 -0
- package/dist/src/prisma/seed.d.ts.map +1 -0
- package/dist/src/prisma/seed.js +75 -0
- package/dist/src/prisma/seed.js.map +1 -0
- package/dist/src/types/index.d.ts +12 -0
- package/dist/src/types/index.d.ts.map +1 -0
- package/dist/src/types/index.js +2 -0
- package/dist/src/types/index.js.map +1 -0
- package/dist/src/utils/api/endpoints.d.ts +7 -0
- package/dist/src/utils/api/endpoints.d.ts.map +1 -0
- package/dist/src/utils/api/endpoints.js +7 -0
- package/dist/src/utils/api/endpoints.js.map +1 -0
- package/dist/src/utils/constants.d.ts +3 -0
- package/dist/src/utils/constants.d.ts.map +1 -0
- package/dist/src/utils/constants.js +12 -0
- package/dist/src/utils/constants.js.map +1 -0
- package/dist/src/utils/events.d.ts +7 -0
- package/dist/src/utils/events.d.ts.map +1 -0
- package/dist/src/utils/events.js +7 -0
- package/dist/src/utils/events.js.map +1 -0
- package/dist/src/utils/index.d.ts +8 -0
- package/dist/src/utils/index.d.ts.map +1 -0
- package/dist/src/utils/index.js +9 -0
- package/dist/src/utils/index.js.map +1 -0
- package/dist/types/index.js +1 -2
- package/dist/utils/api/endpoints.js +3 -6
- package/dist/utils/api/endpoints.js.map +1 -1
- package/dist/utils/constants.js +2 -5
- package/dist/utils/constants.js.map +1 -1
- package/dist/utils/events.js +1 -4
- package/dist/utils/events.js.map +1 -1
- package/dist/utils/index.js +2 -7
- package/dist/utils/index.js.map +1 -1
- package/package.json +25 -20
- package/prisma/schema.prisma +3 -2
- package/prisma.config.ts +13 -0
- package/src/auth/admin.middleware.ts +2 -1
- package/src/auth/auth.guard.ts +11 -4
- package/src/auth/auth.module.ts +1 -1
- package/src/generated/prisma/browser.ts +139 -0
- package/src/generated/prisma/client.ts +163 -0
- package/src/generated/prisma/commonInputTypes.ts +1102 -0
- package/src/generated/prisma/enums.ts +173 -0
- package/src/generated/prisma/internal/class.ts +434 -0
- package/src/generated/prisma/internal/prismaNamespace.ts +3141 -0
- package/src/generated/prisma/internal/prismaNamespaceBrowser.ts +489 -0
- package/src/generated/prisma/models/Account.ts +1384 -0
- package/src/generated/prisma/models/Address.ts +1791 -0
- package/src/generated/prisma/models/Chat.ts +1676 -0
- package/src/generated/prisma/models/ChatUser.ts +1465 -0
- package/src/generated/prisma/models/Country.ts +1361 -0
- package/src/generated/prisma/models/Event.ts +4258 -0
- package/src/generated/prisma/models/EventCategory.ts +1919 -0
- package/src/generated/prisma/models/EventPrice.ts +1657 -0
- package/src/generated/prisma/models/Favorite.ts +1465 -0
- package/src/generated/prisma/models/Feedback.ts +1513 -0
- package/src/generated/prisma/models/Message.ts +1541 -0
- package/src/generated/prisma/models/Newsletter.ts +1153 -0
- package/src/generated/prisma/models/Notification.ts +1605 -0
- package/src/generated/prisma/models/Order.ts +1883 -0
- package/src/generated/prisma/models/OrderItem.ts +1641 -0
- package/src/generated/prisma/models/Pricing.ts +1576 -0
- package/src/generated/prisma/models/Provider.ts +2577 -0
- package/src/generated/prisma/models/ProviderCategory.ts +1712 -0
- package/src/generated/prisma/models/ProviderOnEvent.ts +1510 -0
- package/src/generated/prisma/models/Report.ts +1506 -0
- package/src/generated/prisma/models/Review.ts +1591 -0
- package/src/generated/prisma/models/Transaction.ts +1741 -0
- package/src/generated/prisma/models/User.ts +4124 -0
- package/src/generated/prisma/models/UserInterests.ts +1447 -0
- package/src/generated/prisma/models.ts +35 -0
- package/src/index.ts +1 -1
- package/src/prisma/prisma.service.ts +10 -1
- package/src/prisma/seed.ts +8 -3
- package/tsconfig.json +13 -7
|
@@ -0,0 +1,1465 @@
|
|
|
1
|
+
|
|
2
|
+
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// biome-ignore-all lint: generated file
|
|
5
|
+
// @ts-nocheck
|
|
6
|
+
/*
|
|
7
|
+
* This file exports the `Favorite` model and its related types.
|
|
8
|
+
*
|
|
9
|
+
* 🟢 You can import this file directly.
|
|
10
|
+
*/
|
|
11
|
+
import type * as runtime from "@prisma/client/runtime/client"
|
|
12
|
+
import type * as $Enums from "../enums"
|
|
13
|
+
import type * as Prisma from "../internal/prismaNamespace"
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Model Favorite
|
|
17
|
+
*
|
|
18
|
+
*/
|
|
19
|
+
export type FavoriteModel = runtime.Types.Result.DefaultSelection<Prisma.$FavoritePayload>
|
|
20
|
+
|
|
21
|
+
export type AggregateFavorite = {
|
|
22
|
+
_count: FavoriteCountAggregateOutputType | null
|
|
23
|
+
_min: FavoriteMinAggregateOutputType | null
|
|
24
|
+
_max: FavoriteMaxAggregateOutputType | null
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export type FavoriteMinAggregateOutputType = {
|
|
28
|
+
id: string | null
|
|
29
|
+
userId: string | null
|
|
30
|
+
eventId: string | null
|
|
31
|
+
createdAt: Date | null
|
|
32
|
+
updatedAt: Date | null
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export type FavoriteMaxAggregateOutputType = {
|
|
36
|
+
id: string | null
|
|
37
|
+
userId: string | null
|
|
38
|
+
eventId: string | null
|
|
39
|
+
createdAt: Date | null
|
|
40
|
+
updatedAt: Date | null
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export type FavoriteCountAggregateOutputType = {
|
|
44
|
+
id: number
|
|
45
|
+
userId: number
|
|
46
|
+
eventId: number
|
|
47
|
+
createdAt: number
|
|
48
|
+
updatedAt: number
|
|
49
|
+
_all: number
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
export type FavoriteMinAggregateInputType = {
|
|
54
|
+
id?: true
|
|
55
|
+
userId?: true
|
|
56
|
+
eventId?: true
|
|
57
|
+
createdAt?: true
|
|
58
|
+
updatedAt?: true
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export type FavoriteMaxAggregateInputType = {
|
|
62
|
+
id?: true
|
|
63
|
+
userId?: true
|
|
64
|
+
eventId?: true
|
|
65
|
+
createdAt?: true
|
|
66
|
+
updatedAt?: true
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export type FavoriteCountAggregateInputType = {
|
|
70
|
+
id?: true
|
|
71
|
+
userId?: true
|
|
72
|
+
eventId?: true
|
|
73
|
+
createdAt?: true
|
|
74
|
+
updatedAt?: true
|
|
75
|
+
_all?: true
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export type FavoriteAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
79
|
+
/**
|
|
80
|
+
* Filter which Favorite to aggregate.
|
|
81
|
+
*/
|
|
82
|
+
where?: Prisma.FavoriteWhereInput
|
|
83
|
+
/**
|
|
84
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
85
|
+
*
|
|
86
|
+
* Determine the order of Favorites to fetch.
|
|
87
|
+
*/
|
|
88
|
+
orderBy?: Prisma.FavoriteOrderByWithRelationInput | Prisma.FavoriteOrderByWithRelationInput[]
|
|
89
|
+
/**
|
|
90
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
91
|
+
*
|
|
92
|
+
* Sets the start position
|
|
93
|
+
*/
|
|
94
|
+
cursor?: Prisma.FavoriteWhereUniqueInput
|
|
95
|
+
/**
|
|
96
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
97
|
+
*
|
|
98
|
+
* Take `±n` Favorites from the position of the cursor.
|
|
99
|
+
*/
|
|
100
|
+
take?: number
|
|
101
|
+
/**
|
|
102
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
103
|
+
*
|
|
104
|
+
* Skip the first `n` Favorites.
|
|
105
|
+
*/
|
|
106
|
+
skip?: number
|
|
107
|
+
/**
|
|
108
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
109
|
+
*
|
|
110
|
+
* Count returned Favorites
|
|
111
|
+
**/
|
|
112
|
+
_count?: true | FavoriteCountAggregateInputType
|
|
113
|
+
/**
|
|
114
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
115
|
+
*
|
|
116
|
+
* Select which fields to find the minimum value
|
|
117
|
+
**/
|
|
118
|
+
_min?: FavoriteMinAggregateInputType
|
|
119
|
+
/**
|
|
120
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
121
|
+
*
|
|
122
|
+
* Select which fields to find the maximum value
|
|
123
|
+
**/
|
|
124
|
+
_max?: FavoriteMaxAggregateInputType
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
export type GetFavoriteAggregateType<T extends FavoriteAggregateArgs> = {
|
|
128
|
+
[P in keyof T & keyof AggregateFavorite]: P extends '_count' | 'count'
|
|
129
|
+
? T[P] extends true
|
|
130
|
+
? number
|
|
131
|
+
: Prisma.GetScalarType<T[P], AggregateFavorite[P]>
|
|
132
|
+
: Prisma.GetScalarType<T[P], AggregateFavorite[P]>
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
export type FavoriteGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
139
|
+
where?: Prisma.FavoriteWhereInput
|
|
140
|
+
orderBy?: Prisma.FavoriteOrderByWithAggregationInput | Prisma.FavoriteOrderByWithAggregationInput[]
|
|
141
|
+
by: Prisma.FavoriteScalarFieldEnum[] | Prisma.FavoriteScalarFieldEnum
|
|
142
|
+
having?: Prisma.FavoriteScalarWhereWithAggregatesInput
|
|
143
|
+
take?: number
|
|
144
|
+
skip?: number
|
|
145
|
+
_count?: FavoriteCountAggregateInputType | true
|
|
146
|
+
_min?: FavoriteMinAggregateInputType
|
|
147
|
+
_max?: FavoriteMaxAggregateInputType
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
export type FavoriteGroupByOutputType = {
|
|
151
|
+
id: string
|
|
152
|
+
userId: string
|
|
153
|
+
eventId: string
|
|
154
|
+
createdAt: Date
|
|
155
|
+
updatedAt: Date
|
|
156
|
+
_count: FavoriteCountAggregateOutputType | null
|
|
157
|
+
_min: FavoriteMinAggregateOutputType | null
|
|
158
|
+
_max: FavoriteMaxAggregateOutputType | null
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
export type GetFavoriteGroupByPayload<T extends FavoriteGroupByArgs> = Prisma.PrismaPromise<
|
|
162
|
+
Array<
|
|
163
|
+
Prisma.PickEnumerable<FavoriteGroupByOutputType, T['by']> &
|
|
164
|
+
{
|
|
165
|
+
[P in ((keyof T) & (keyof FavoriteGroupByOutputType))]: P extends '_count'
|
|
166
|
+
? T[P] extends boolean
|
|
167
|
+
? number
|
|
168
|
+
: Prisma.GetScalarType<T[P], FavoriteGroupByOutputType[P]>
|
|
169
|
+
: Prisma.GetScalarType<T[P], FavoriteGroupByOutputType[P]>
|
|
170
|
+
}
|
|
171
|
+
>
|
|
172
|
+
>
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
export type FavoriteWhereInput = {
|
|
177
|
+
AND?: Prisma.FavoriteWhereInput | Prisma.FavoriteWhereInput[]
|
|
178
|
+
OR?: Prisma.FavoriteWhereInput[]
|
|
179
|
+
NOT?: Prisma.FavoriteWhereInput | Prisma.FavoriteWhereInput[]
|
|
180
|
+
id?: Prisma.StringFilter<"Favorite"> | string
|
|
181
|
+
userId?: Prisma.StringFilter<"Favorite"> | string
|
|
182
|
+
eventId?: Prisma.StringFilter<"Favorite"> | string
|
|
183
|
+
createdAt?: Prisma.DateTimeFilter<"Favorite"> | Date | string
|
|
184
|
+
updatedAt?: Prisma.DateTimeFilter<"Favorite"> | Date | string
|
|
185
|
+
event?: Prisma.XOR<Prisma.EventScalarRelationFilter, Prisma.EventWhereInput>
|
|
186
|
+
user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
export type FavoriteOrderByWithRelationInput = {
|
|
190
|
+
id?: Prisma.SortOrder
|
|
191
|
+
userId?: Prisma.SortOrder
|
|
192
|
+
eventId?: Prisma.SortOrder
|
|
193
|
+
createdAt?: Prisma.SortOrder
|
|
194
|
+
updatedAt?: Prisma.SortOrder
|
|
195
|
+
event?: Prisma.EventOrderByWithRelationInput
|
|
196
|
+
user?: Prisma.UserOrderByWithRelationInput
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
export type FavoriteWhereUniqueInput = Prisma.AtLeast<{
|
|
200
|
+
id?: string
|
|
201
|
+
AND?: Prisma.FavoriteWhereInput | Prisma.FavoriteWhereInput[]
|
|
202
|
+
OR?: Prisma.FavoriteWhereInput[]
|
|
203
|
+
NOT?: Prisma.FavoriteWhereInput | Prisma.FavoriteWhereInput[]
|
|
204
|
+
userId?: Prisma.StringFilter<"Favorite"> | string
|
|
205
|
+
eventId?: Prisma.StringFilter<"Favorite"> | string
|
|
206
|
+
createdAt?: Prisma.DateTimeFilter<"Favorite"> | Date | string
|
|
207
|
+
updatedAt?: Prisma.DateTimeFilter<"Favorite"> | Date | string
|
|
208
|
+
event?: Prisma.XOR<Prisma.EventScalarRelationFilter, Prisma.EventWhereInput>
|
|
209
|
+
user?: Prisma.XOR<Prisma.UserScalarRelationFilter, Prisma.UserWhereInput>
|
|
210
|
+
}, "id">
|
|
211
|
+
|
|
212
|
+
export type FavoriteOrderByWithAggregationInput = {
|
|
213
|
+
id?: Prisma.SortOrder
|
|
214
|
+
userId?: Prisma.SortOrder
|
|
215
|
+
eventId?: Prisma.SortOrder
|
|
216
|
+
createdAt?: Prisma.SortOrder
|
|
217
|
+
updatedAt?: Prisma.SortOrder
|
|
218
|
+
_count?: Prisma.FavoriteCountOrderByAggregateInput
|
|
219
|
+
_max?: Prisma.FavoriteMaxOrderByAggregateInput
|
|
220
|
+
_min?: Prisma.FavoriteMinOrderByAggregateInput
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
export type FavoriteScalarWhereWithAggregatesInput = {
|
|
224
|
+
AND?: Prisma.FavoriteScalarWhereWithAggregatesInput | Prisma.FavoriteScalarWhereWithAggregatesInput[]
|
|
225
|
+
OR?: Prisma.FavoriteScalarWhereWithAggregatesInput[]
|
|
226
|
+
NOT?: Prisma.FavoriteScalarWhereWithAggregatesInput | Prisma.FavoriteScalarWhereWithAggregatesInput[]
|
|
227
|
+
id?: Prisma.StringWithAggregatesFilter<"Favorite"> | string
|
|
228
|
+
userId?: Prisma.StringWithAggregatesFilter<"Favorite"> | string
|
|
229
|
+
eventId?: Prisma.StringWithAggregatesFilter<"Favorite"> | string
|
|
230
|
+
createdAt?: Prisma.DateTimeWithAggregatesFilter<"Favorite"> | Date | string
|
|
231
|
+
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Favorite"> | Date | string
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
export type FavoriteCreateInput = {
|
|
235
|
+
id?: string
|
|
236
|
+
createdAt?: Date | string
|
|
237
|
+
updatedAt?: Date | string
|
|
238
|
+
event: Prisma.EventCreateNestedOneWithoutFavoritesInput
|
|
239
|
+
user: Prisma.UserCreateNestedOneWithoutFavoritesInput
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
export type FavoriteUncheckedCreateInput = {
|
|
243
|
+
id?: string
|
|
244
|
+
userId: string
|
|
245
|
+
eventId: string
|
|
246
|
+
createdAt?: Date | string
|
|
247
|
+
updatedAt?: Date | string
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
export type FavoriteUpdateInput = {
|
|
251
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
252
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
253
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
254
|
+
event?: Prisma.EventUpdateOneRequiredWithoutFavoritesNestedInput
|
|
255
|
+
user?: Prisma.UserUpdateOneRequiredWithoutFavoritesNestedInput
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
export type FavoriteUncheckedUpdateInput = {
|
|
259
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
260
|
+
userId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
261
|
+
eventId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
262
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
263
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
export type FavoriteCreateManyInput = {
|
|
267
|
+
id?: string
|
|
268
|
+
userId: string
|
|
269
|
+
eventId: string
|
|
270
|
+
createdAt?: Date | string
|
|
271
|
+
updatedAt?: Date | string
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
export type FavoriteUpdateManyMutationInput = {
|
|
275
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
276
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
277
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
export type FavoriteUncheckedUpdateManyInput = {
|
|
281
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
282
|
+
userId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
283
|
+
eventId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
284
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
285
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
export type FavoriteListRelationFilter = {
|
|
289
|
+
every?: Prisma.FavoriteWhereInput
|
|
290
|
+
some?: Prisma.FavoriteWhereInput
|
|
291
|
+
none?: Prisma.FavoriteWhereInput
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
export type FavoriteOrderByRelationAggregateInput = {
|
|
295
|
+
_count?: Prisma.SortOrder
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
export type FavoriteCountOrderByAggregateInput = {
|
|
299
|
+
id?: Prisma.SortOrder
|
|
300
|
+
userId?: Prisma.SortOrder
|
|
301
|
+
eventId?: Prisma.SortOrder
|
|
302
|
+
createdAt?: Prisma.SortOrder
|
|
303
|
+
updatedAt?: Prisma.SortOrder
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
export type FavoriteMaxOrderByAggregateInput = {
|
|
307
|
+
id?: Prisma.SortOrder
|
|
308
|
+
userId?: Prisma.SortOrder
|
|
309
|
+
eventId?: Prisma.SortOrder
|
|
310
|
+
createdAt?: Prisma.SortOrder
|
|
311
|
+
updatedAt?: Prisma.SortOrder
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
export type FavoriteMinOrderByAggregateInput = {
|
|
315
|
+
id?: Prisma.SortOrder
|
|
316
|
+
userId?: Prisma.SortOrder
|
|
317
|
+
eventId?: Prisma.SortOrder
|
|
318
|
+
createdAt?: Prisma.SortOrder
|
|
319
|
+
updatedAt?: Prisma.SortOrder
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
export type FavoriteCreateNestedManyWithoutUserInput = {
|
|
323
|
+
create?: Prisma.XOR<Prisma.FavoriteCreateWithoutUserInput, Prisma.FavoriteUncheckedCreateWithoutUserInput> | Prisma.FavoriteCreateWithoutUserInput[] | Prisma.FavoriteUncheckedCreateWithoutUserInput[]
|
|
324
|
+
connectOrCreate?: Prisma.FavoriteCreateOrConnectWithoutUserInput | Prisma.FavoriteCreateOrConnectWithoutUserInput[]
|
|
325
|
+
createMany?: Prisma.FavoriteCreateManyUserInputEnvelope
|
|
326
|
+
connect?: Prisma.FavoriteWhereUniqueInput | Prisma.FavoriteWhereUniqueInput[]
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
export type FavoriteUncheckedCreateNestedManyWithoutUserInput = {
|
|
330
|
+
create?: Prisma.XOR<Prisma.FavoriteCreateWithoutUserInput, Prisma.FavoriteUncheckedCreateWithoutUserInput> | Prisma.FavoriteCreateWithoutUserInput[] | Prisma.FavoriteUncheckedCreateWithoutUserInput[]
|
|
331
|
+
connectOrCreate?: Prisma.FavoriteCreateOrConnectWithoutUserInput | Prisma.FavoriteCreateOrConnectWithoutUserInput[]
|
|
332
|
+
createMany?: Prisma.FavoriteCreateManyUserInputEnvelope
|
|
333
|
+
connect?: Prisma.FavoriteWhereUniqueInput | Prisma.FavoriteWhereUniqueInput[]
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
export type FavoriteUpdateManyWithoutUserNestedInput = {
|
|
337
|
+
create?: Prisma.XOR<Prisma.FavoriteCreateWithoutUserInput, Prisma.FavoriteUncheckedCreateWithoutUserInput> | Prisma.FavoriteCreateWithoutUserInput[] | Prisma.FavoriteUncheckedCreateWithoutUserInput[]
|
|
338
|
+
connectOrCreate?: Prisma.FavoriteCreateOrConnectWithoutUserInput | Prisma.FavoriteCreateOrConnectWithoutUserInput[]
|
|
339
|
+
upsert?: Prisma.FavoriteUpsertWithWhereUniqueWithoutUserInput | Prisma.FavoriteUpsertWithWhereUniqueWithoutUserInput[]
|
|
340
|
+
createMany?: Prisma.FavoriteCreateManyUserInputEnvelope
|
|
341
|
+
set?: Prisma.FavoriteWhereUniqueInput | Prisma.FavoriteWhereUniqueInput[]
|
|
342
|
+
disconnect?: Prisma.FavoriteWhereUniqueInput | Prisma.FavoriteWhereUniqueInput[]
|
|
343
|
+
delete?: Prisma.FavoriteWhereUniqueInput | Prisma.FavoriteWhereUniqueInput[]
|
|
344
|
+
connect?: Prisma.FavoriteWhereUniqueInput | Prisma.FavoriteWhereUniqueInput[]
|
|
345
|
+
update?: Prisma.FavoriteUpdateWithWhereUniqueWithoutUserInput | Prisma.FavoriteUpdateWithWhereUniqueWithoutUserInput[]
|
|
346
|
+
updateMany?: Prisma.FavoriteUpdateManyWithWhereWithoutUserInput | Prisma.FavoriteUpdateManyWithWhereWithoutUserInput[]
|
|
347
|
+
deleteMany?: Prisma.FavoriteScalarWhereInput | Prisma.FavoriteScalarWhereInput[]
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
export type FavoriteUncheckedUpdateManyWithoutUserNestedInput = {
|
|
351
|
+
create?: Prisma.XOR<Prisma.FavoriteCreateWithoutUserInput, Prisma.FavoriteUncheckedCreateWithoutUserInput> | Prisma.FavoriteCreateWithoutUserInput[] | Prisma.FavoriteUncheckedCreateWithoutUserInput[]
|
|
352
|
+
connectOrCreate?: Prisma.FavoriteCreateOrConnectWithoutUserInput | Prisma.FavoriteCreateOrConnectWithoutUserInput[]
|
|
353
|
+
upsert?: Prisma.FavoriteUpsertWithWhereUniqueWithoutUserInput | Prisma.FavoriteUpsertWithWhereUniqueWithoutUserInput[]
|
|
354
|
+
createMany?: Prisma.FavoriteCreateManyUserInputEnvelope
|
|
355
|
+
set?: Prisma.FavoriteWhereUniqueInput | Prisma.FavoriteWhereUniqueInput[]
|
|
356
|
+
disconnect?: Prisma.FavoriteWhereUniqueInput | Prisma.FavoriteWhereUniqueInput[]
|
|
357
|
+
delete?: Prisma.FavoriteWhereUniqueInput | Prisma.FavoriteWhereUniqueInput[]
|
|
358
|
+
connect?: Prisma.FavoriteWhereUniqueInput | Prisma.FavoriteWhereUniqueInput[]
|
|
359
|
+
update?: Prisma.FavoriteUpdateWithWhereUniqueWithoutUserInput | Prisma.FavoriteUpdateWithWhereUniqueWithoutUserInput[]
|
|
360
|
+
updateMany?: Prisma.FavoriteUpdateManyWithWhereWithoutUserInput | Prisma.FavoriteUpdateManyWithWhereWithoutUserInput[]
|
|
361
|
+
deleteMany?: Prisma.FavoriteScalarWhereInput | Prisma.FavoriteScalarWhereInput[]
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
export type FavoriteCreateNestedManyWithoutEventInput = {
|
|
365
|
+
create?: Prisma.XOR<Prisma.FavoriteCreateWithoutEventInput, Prisma.FavoriteUncheckedCreateWithoutEventInput> | Prisma.FavoriteCreateWithoutEventInput[] | Prisma.FavoriteUncheckedCreateWithoutEventInput[]
|
|
366
|
+
connectOrCreate?: Prisma.FavoriteCreateOrConnectWithoutEventInput | Prisma.FavoriteCreateOrConnectWithoutEventInput[]
|
|
367
|
+
createMany?: Prisma.FavoriteCreateManyEventInputEnvelope
|
|
368
|
+
connect?: Prisma.FavoriteWhereUniqueInput | Prisma.FavoriteWhereUniqueInput[]
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
export type FavoriteUncheckedCreateNestedManyWithoutEventInput = {
|
|
372
|
+
create?: Prisma.XOR<Prisma.FavoriteCreateWithoutEventInput, Prisma.FavoriteUncheckedCreateWithoutEventInput> | Prisma.FavoriteCreateWithoutEventInput[] | Prisma.FavoriteUncheckedCreateWithoutEventInput[]
|
|
373
|
+
connectOrCreate?: Prisma.FavoriteCreateOrConnectWithoutEventInput | Prisma.FavoriteCreateOrConnectWithoutEventInput[]
|
|
374
|
+
createMany?: Prisma.FavoriteCreateManyEventInputEnvelope
|
|
375
|
+
connect?: Prisma.FavoriteWhereUniqueInput | Prisma.FavoriteWhereUniqueInput[]
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
export type FavoriteUpdateManyWithoutEventNestedInput = {
|
|
379
|
+
create?: Prisma.XOR<Prisma.FavoriteCreateWithoutEventInput, Prisma.FavoriteUncheckedCreateWithoutEventInput> | Prisma.FavoriteCreateWithoutEventInput[] | Prisma.FavoriteUncheckedCreateWithoutEventInput[]
|
|
380
|
+
connectOrCreate?: Prisma.FavoriteCreateOrConnectWithoutEventInput | Prisma.FavoriteCreateOrConnectWithoutEventInput[]
|
|
381
|
+
upsert?: Prisma.FavoriteUpsertWithWhereUniqueWithoutEventInput | Prisma.FavoriteUpsertWithWhereUniqueWithoutEventInput[]
|
|
382
|
+
createMany?: Prisma.FavoriteCreateManyEventInputEnvelope
|
|
383
|
+
set?: Prisma.FavoriteWhereUniqueInput | Prisma.FavoriteWhereUniqueInput[]
|
|
384
|
+
disconnect?: Prisma.FavoriteWhereUniqueInput | Prisma.FavoriteWhereUniqueInput[]
|
|
385
|
+
delete?: Prisma.FavoriteWhereUniqueInput | Prisma.FavoriteWhereUniqueInput[]
|
|
386
|
+
connect?: Prisma.FavoriteWhereUniqueInput | Prisma.FavoriteWhereUniqueInput[]
|
|
387
|
+
update?: Prisma.FavoriteUpdateWithWhereUniqueWithoutEventInput | Prisma.FavoriteUpdateWithWhereUniqueWithoutEventInput[]
|
|
388
|
+
updateMany?: Prisma.FavoriteUpdateManyWithWhereWithoutEventInput | Prisma.FavoriteUpdateManyWithWhereWithoutEventInput[]
|
|
389
|
+
deleteMany?: Prisma.FavoriteScalarWhereInput | Prisma.FavoriteScalarWhereInput[]
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
export type FavoriteUncheckedUpdateManyWithoutEventNestedInput = {
|
|
393
|
+
create?: Prisma.XOR<Prisma.FavoriteCreateWithoutEventInput, Prisma.FavoriteUncheckedCreateWithoutEventInput> | Prisma.FavoriteCreateWithoutEventInput[] | Prisma.FavoriteUncheckedCreateWithoutEventInput[]
|
|
394
|
+
connectOrCreate?: Prisma.FavoriteCreateOrConnectWithoutEventInput | Prisma.FavoriteCreateOrConnectWithoutEventInput[]
|
|
395
|
+
upsert?: Prisma.FavoriteUpsertWithWhereUniqueWithoutEventInput | Prisma.FavoriteUpsertWithWhereUniqueWithoutEventInput[]
|
|
396
|
+
createMany?: Prisma.FavoriteCreateManyEventInputEnvelope
|
|
397
|
+
set?: Prisma.FavoriteWhereUniqueInput | Prisma.FavoriteWhereUniqueInput[]
|
|
398
|
+
disconnect?: Prisma.FavoriteWhereUniqueInput | Prisma.FavoriteWhereUniqueInput[]
|
|
399
|
+
delete?: Prisma.FavoriteWhereUniqueInput | Prisma.FavoriteWhereUniqueInput[]
|
|
400
|
+
connect?: Prisma.FavoriteWhereUniqueInput | Prisma.FavoriteWhereUniqueInput[]
|
|
401
|
+
update?: Prisma.FavoriteUpdateWithWhereUniqueWithoutEventInput | Prisma.FavoriteUpdateWithWhereUniqueWithoutEventInput[]
|
|
402
|
+
updateMany?: Prisma.FavoriteUpdateManyWithWhereWithoutEventInput | Prisma.FavoriteUpdateManyWithWhereWithoutEventInput[]
|
|
403
|
+
deleteMany?: Prisma.FavoriteScalarWhereInput | Prisma.FavoriteScalarWhereInput[]
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
export type FavoriteCreateWithoutUserInput = {
|
|
407
|
+
id?: string
|
|
408
|
+
createdAt?: Date | string
|
|
409
|
+
updatedAt?: Date | string
|
|
410
|
+
event: Prisma.EventCreateNestedOneWithoutFavoritesInput
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
export type FavoriteUncheckedCreateWithoutUserInput = {
|
|
414
|
+
id?: string
|
|
415
|
+
eventId: string
|
|
416
|
+
createdAt?: Date | string
|
|
417
|
+
updatedAt?: Date | string
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
export type FavoriteCreateOrConnectWithoutUserInput = {
|
|
421
|
+
where: Prisma.FavoriteWhereUniqueInput
|
|
422
|
+
create: Prisma.XOR<Prisma.FavoriteCreateWithoutUserInput, Prisma.FavoriteUncheckedCreateWithoutUserInput>
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
export type FavoriteCreateManyUserInputEnvelope = {
|
|
426
|
+
data: Prisma.FavoriteCreateManyUserInput | Prisma.FavoriteCreateManyUserInput[]
|
|
427
|
+
skipDuplicates?: boolean
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
export type FavoriteUpsertWithWhereUniqueWithoutUserInput = {
|
|
431
|
+
where: Prisma.FavoriteWhereUniqueInput
|
|
432
|
+
update: Prisma.XOR<Prisma.FavoriteUpdateWithoutUserInput, Prisma.FavoriteUncheckedUpdateWithoutUserInput>
|
|
433
|
+
create: Prisma.XOR<Prisma.FavoriteCreateWithoutUserInput, Prisma.FavoriteUncheckedCreateWithoutUserInput>
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
export type FavoriteUpdateWithWhereUniqueWithoutUserInput = {
|
|
437
|
+
where: Prisma.FavoriteWhereUniqueInput
|
|
438
|
+
data: Prisma.XOR<Prisma.FavoriteUpdateWithoutUserInput, Prisma.FavoriteUncheckedUpdateWithoutUserInput>
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
export type FavoriteUpdateManyWithWhereWithoutUserInput = {
|
|
442
|
+
where: Prisma.FavoriteScalarWhereInput
|
|
443
|
+
data: Prisma.XOR<Prisma.FavoriteUpdateManyMutationInput, Prisma.FavoriteUncheckedUpdateManyWithoutUserInput>
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
export type FavoriteScalarWhereInput = {
|
|
447
|
+
AND?: Prisma.FavoriteScalarWhereInput | Prisma.FavoriteScalarWhereInput[]
|
|
448
|
+
OR?: Prisma.FavoriteScalarWhereInput[]
|
|
449
|
+
NOT?: Prisma.FavoriteScalarWhereInput | Prisma.FavoriteScalarWhereInput[]
|
|
450
|
+
id?: Prisma.StringFilter<"Favorite"> | string
|
|
451
|
+
userId?: Prisma.StringFilter<"Favorite"> | string
|
|
452
|
+
eventId?: Prisma.StringFilter<"Favorite"> | string
|
|
453
|
+
createdAt?: Prisma.DateTimeFilter<"Favorite"> | Date | string
|
|
454
|
+
updatedAt?: Prisma.DateTimeFilter<"Favorite"> | Date | string
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
export type FavoriteCreateWithoutEventInput = {
|
|
458
|
+
id?: string
|
|
459
|
+
createdAt?: Date | string
|
|
460
|
+
updatedAt?: Date | string
|
|
461
|
+
user: Prisma.UserCreateNestedOneWithoutFavoritesInput
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
export type FavoriteUncheckedCreateWithoutEventInput = {
|
|
465
|
+
id?: string
|
|
466
|
+
userId: string
|
|
467
|
+
createdAt?: Date | string
|
|
468
|
+
updatedAt?: Date | string
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
export type FavoriteCreateOrConnectWithoutEventInput = {
|
|
472
|
+
where: Prisma.FavoriteWhereUniqueInput
|
|
473
|
+
create: Prisma.XOR<Prisma.FavoriteCreateWithoutEventInput, Prisma.FavoriteUncheckedCreateWithoutEventInput>
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
export type FavoriteCreateManyEventInputEnvelope = {
|
|
477
|
+
data: Prisma.FavoriteCreateManyEventInput | Prisma.FavoriteCreateManyEventInput[]
|
|
478
|
+
skipDuplicates?: boolean
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
export type FavoriteUpsertWithWhereUniqueWithoutEventInput = {
|
|
482
|
+
where: Prisma.FavoriteWhereUniqueInput
|
|
483
|
+
update: Prisma.XOR<Prisma.FavoriteUpdateWithoutEventInput, Prisma.FavoriteUncheckedUpdateWithoutEventInput>
|
|
484
|
+
create: Prisma.XOR<Prisma.FavoriteCreateWithoutEventInput, Prisma.FavoriteUncheckedCreateWithoutEventInput>
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
export type FavoriteUpdateWithWhereUniqueWithoutEventInput = {
|
|
488
|
+
where: Prisma.FavoriteWhereUniqueInput
|
|
489
|
+
data: Prisma.XOR<Prisma.FavoriteUpdateWithoutEventInput, Prisma.FavoriteUncheckedUpdateWithoutEventInput>
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
export type FavoriteUpdateManyWithWhereWithoutEventInput = {
|
|
493
|
+
where: Prisma.FavoriteScalarWhereInput
|
|
494
|
+
data: Prisma.XOR<Prisma.FavoriteUpdateManyMutationInput, Prisma.FavoriteUncheckedUpdateManyWithoutEventInput>
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
export type FavoriteCreateManyUserInput = {
|
|
498
|
+
id?: string
|
|
499
|
+
eventId: string
|
|
500
|
+
createdAt?: Date | string
|
|
501
|
+
updatedAt?: Date | string
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
export type FavoriteUpdateWithoutUserInput = {
|
|
505
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
506
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
507
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
508
|
+
event?: Prisma.EventUpdateOneRequiredWithoutFavoritesNestedInput
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
export type FavoriteUncheckedUpdateWithoutUserInput = {
|
|
512
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
513
|
+
eventId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
514
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
515
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
516
|
+
}
|
|
517
|
+
|
|
518
|
+
export type FavoriteUncheckedUpdateManyWithoutUserInput = {
|
|
519
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
520
|
+
eventId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
521
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
522
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
export type FavoriteCreateManyEventInput = {
|
|
526
|
+
id?: string
|
|
527
|
+
userId: string
|
|
528
|
+
createdAt?: Date | string
|
|
529
|
+
updatedAt?: Date | string
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
export type FavoriteUpdateWithoutEventInput = {
|
|
533
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
534
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
535
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
536
|
+
user?: Prisma.UserUpdateOneRequiredWithoutFavoritesNestedInput
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
export type FavoriteUncheckedUpdateWithoutEventInput = {
|
|
540
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
541
|
+
userId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
542
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
543
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
544
|
+
}
|
|
545
|
+
|
|
546
|
+
export type FavoriteUncheckedUpdateManyWithoutEventInput = {
|
|
547
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
548
|
+
userId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
549
|
+
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
550
|
+
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
|
|
554
|
+
|
|
555
|
+
export type FavoriteSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
556
|
+
id?: boolean
|
|
557
|
+
userId?: boolean
|
|
558
|
+
eventId?: boolean
|
|
559
|
+
createdAt?: boolean
|
|
560
|
+
updatedAt?: boolean
|
|
561
|
+
event?: boolean | Prisma.EventDefaultArgs<ExtArgs>
|
|
562
|
+
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
|
|
563
|
+
}, ExtArgs["result"]["favorite"]>
|
|
564
|
+
|
|
565
|
+
export type FavoriteSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
566
|
+
id?: boolean
|
|
567
|
+
userId?: boolean
|
|
568
|
+
eventId?: boolean
|
|
569
|
+
createdAt?: boolean
|
|
570
|
+
updatedAt?: boolean
|
|
571
|
+
event?: boolean | Prisma.EventDefaultArgs<ExtArgs>
|
|
572
|
+
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
|
|
573
|
+
}, ExtArgs["result"]["favorite"]>
|
|
574
|
+
|
|
575
|
+
export type FavoriteSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
576
|
+
id?: boolean
|
|
577
|
+
userId?: boolean
|
|
578
|
+
eventId?: boolean
|
|
579
|
+
createdAt?: boolean
|
|
580
|
+
updatedAt?: boolean
|
|
581
|
+
event?: boolean | Prisma.EventDefaultArgs<ExtArgs>
|
|
582
|
+
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
|
|
583
|
+
}, ExtArgs["result"]["favorite"]>
|
|
584
|
+
|
|
585
|
+
export type FavoriteSelectScalar = {
|
|
586
|
+
id?: boolean
|
|
587
|
+
userId?: boolean
|
|
588
|
+
eventId?: boolean
|
|
589
|
+
createdAt?: boolean
|
|
590
|
+
updatedAt?: boolean
|
|
591
|
+
}
|
|
592
|
+
|
|
593
|
+
export type FavoriteOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "userId" | "eventId" | "createdAt" | "updatedAt", ExtArgs["result"]["favorite"]>
|
|
594
|
+
export type FavoriteInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
595
|
+
event?: boolean | Prisma.EventDefaultArgs<ExtArgs>
|
|
596
|
+
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
|
|
597
|
+
}
|
|
598
|
+
export type FavoriteIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
599
|
+
event?: boolean | Prisma.EventDefaultArgs<ExtArgs>
|
|
600
|
+
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
|
|
601
|
+
}
|
|
602
|
+
export type FavoriteIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
603
|
+
event?: boolean | Prisma.EventDefaultArgs<ExtArgs>
|
|
604
|
+
user?: boolean | Prisma.UserDefaultArgs<ExtArgs>
|
|
605
|
+
}
|
|
606
|
+
|
|
607
|
+
export type $FavoritePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
608
|
+
name: "Favorite"
|
|
609
|
+
objects: {
|
|
610
|
+
event: Prisma.$EventPayload<ExtArgs>
|
|
611
|
+
user: Prisma.$UserPayload<ExtArgs>
|
|
612
|
+
}
|
|
613
|
+
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
614
|
+
id: string
|
|
615
|
+
userId: string
|
|
616
|
+
eventId: string
|
|
617
|
+
createdAt: Date
|
|
618
|
+
updatedAt: Date
|
|
619
|
+
}, ExtArgs["result"]["favorite"]>
|
|
620
|
+
composites: {}
|
|
621
|
+
}
|
|
622
|
+
|
|
623
|
+
export type FavoriteGetPayload<S extends boolean | null | undefined | FavoriteDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$FavoritePayload, S>
|
|
624
|
+
|
|
625
|
+
export type FavoriteCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
626
|
+
Omit<FavoriteFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
627
|
+
select?: FavoriteCountAggregateInputType | true
|
|
628
|
+
}
|
|
629
|
+
|
|
630
|
+
export interface FavoriteDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
631
|
+
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Favorite'], meta: { name: 'Favorite' } }
|
|
632
|
+
/**
|
|
633
|
+
* Find zero or one Favorite that matches the filter.
|
|
634
|
+
* @param {FavoriteFindUniqueArgs} args - Arguments to find a Favorite
|
|
635
|
+
* @example
|
|
636
|
+
* // Get one Favorite
|
|
637
|
+
* const favorite = await prisma.favorite.findUnique({
|
|
638
|
+
* where: {
|
|
639
|
+
* // ... provide filter here
|
|
640
|
+
* }
|
|
641
|
+
* })
|
|
642
|
+
*/
|
|
643
|
+
findUnique<T extends FavoriteFindUniqueArgs>(args: Prisma.SelectSubset<T, FavoriteFindUniqueArgs<ExtArgs>>): Prisma.Prisma__FavoriteClient<runtime.Types.Result.GetResult<Prisma.$FavoritePayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
644
|
+
|
|
645
|
+
/**
|
|
646
|
+
* Find one Favorite that matches the filter or throw an error with `error.code='P2025'`
|
|
647
|
+
* if no matches were found.
|
|
648
|
+
* @param {FavoriteFindUniqueOrThrowArgs} args - Arguments to find a Favorite
|
|
649
|
+
* @example
|
|
650
|
+
* // Get one Favorite
|
|
651
|
+
* const favorite = await prisma.favorite.findUniqueOrThrow({
|
|
652
|
+
* where: {
|
|
653
|
+
* // ... provide filter here
|
|
654
|
+
* }
|
|
655
|
+
* })
|
|
656
|
+
*/
|
|
657
|
+
findUniqueOrThrow<T extends FavoriteFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, FavoriteFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__FavoriteClient<runtime.Types.Result.GetResult<Prisma.$FavoritePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
658
|
+
|
|
659
|
+
/**
|
|
660
|
+
* Find the first Favorite that matches the filter.
|
|
661
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
662
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
663
|
+
* @param {FavoriteFindFirstArgs} args - Arguments to find a Favorite
|
|
664
|
+
* @example
|
|
665
|
+
* // Get one Favorite
|
|
666
|
+
* const favorite = await prisma.favorite.findFirst({
|
|
667
|
+
* where: {
|
|
668
|
+
* // ... provide filter here
|
|
669
|
+
* }
|
|
670
|
+
* })
|
|
671
|
+
*/
|
|
672
|
+
findFirst<T extends FavoriteFindFirstArgs>(args?: Prisma.SelectSubset<T, FavoriteFindFirstArgs<ExtArgs>>): Prisma.Prisma__FavoriteClient<runtime.Types.Result.GetResult<Prisma.$FavoritePayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
673
|
+
|
|
674
|
+
/**
|
|
675
|
+
* Find the first Favorite that matches the filter or
|
|
676
|
+
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
677
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
678
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
679
|
+
* @param {FavoriteFindFirstOrThrowArgs} args - Arguments to find a Favorite
|
|
680
|
+
* @example
|
|
681
|
+
* // Get one Favorite
|
|
682
|
+
* const favorite = await prisma.favorite.findFirstOrThrow({
|
|
683
|
+
* where: {
|
|
684
|
+
* // ... provide filter here
|
|
685
|
+
* }
|
|
686
|
+
* })
|
|
687
|
+
*/
|
|
688
|
+
findFirstOrThrow<T extends FavoriteFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, FavoriteFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__FavoriteClient<runtime.Types.Result.GetResult<Prisma.$FavoritePayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
689
|
+
|
|
690
|
+
/**
|
|
691
|
+
* Find zero or more Favorites that matches the filter.
|
|
692
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
693
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
694
|
+
* @param {FavoriteFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
695
|
+
* @example
|
|
696
|
+
* // Get all Favorites
|
|
697
|
+
* const favorites = await prisma.favorite.findMany()
|
|
698
|
+
*
|
|
699
|
+
* // Get first 10 Favorites
|
|
700
|
+
* const favorites = await prisma.favorite.findMany({ take: 10 })
|
|
701
|
+
*
|
|
702
|
+
* // Only select the `id`
|
|
703
|
+
* const favoriteWithIdOnly = await prisma.favorite.findMany({ select: { id: true } })
|
|
704
|
+
*
|
|
705
|
+
*/
|
|
706
|
+
findMany<T extends FavoriteFindManyArgs>(args?: Prisma.SelectSubset<T, FavoriteFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$FavoritePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
707
|
+
|
|
708
|
+
/**
|
|
709
|
+
* Create a Favorite.
|
|
710
|
+
* @param {FavoriteCreateArgs} args - Arguments to create a Favorite.
|
|
711
|
+
* @example
|
|
712
|
+
* // Create one Favorite
|
|
713
|
+
* const Favorite = await prisma.favorite.create({
|
|
714
|
+
* data: {
|
|
715
|
+
* // ... data to create a Favorite
|
|
716
|
+
* }
|
|
717
|
+
* })
|
|
718
|
+
*
|
|
719
|
+
*/
|
|
720
|
+
create<T extends FavoriteCreateArgs>(args: Prisma.SelectSubset<T, FavoriteCreateArgs<ExtArgs>>): Prisma.Prisma__FavoriteClient<runtime.Types.Result.GetResult<Prisma.$FavoritePayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
721
|
+
|
|
722
|
+
/**
|
|
723
|
+
* Create many Favorites.
|
|
724
|
+
* @param {FavoriteCreateManyArgs} args - Arguments to create many Favorites.
|
|
725
|
+
* @example
|
|
726
|
+
* // Create many Favorites
|
|
727
|
+
* const favorite = await prisma.favorite.createMany({
|
|
728
|
+
* data: [
|
|
729
|
+
* // ... provide data here
|
|
730
|
+
* ]
|
|
731
|
+
* })
|
|
732
|
+
*
|
|
733
|
+
*/
|
|
734
|
+
createMany<T extends FavoriteCreateManyArgs>(args?: Prisma.SelectSubset<T, FavoriteCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
735
|
+
|
|
736
|
+
/**
|
|
737
|
+
* Create many Favorites and returns the data saved in the database.
|
|
738
|
+
* @param {FavoriteCreateManyAndReturnArgs} args - Arguments to create many Favorites.
|
|
739
|
+
* @example
|
|
740
|
+
* // Create many Favorites
|
|
741
|
+
* const favorite = await prisma.favorite.createManyAndReturn({
|
|
742
|
+
* data: [
|
|
743
|
+
* // ... provide data here
|
|
744
|
+
* ]
|
|
745
|
+
* })
|
|
746
|
+
*
|
|
747
|
+
* // Create many Favorites and only return the `id`
|
|
748
|
+
* const favoriteWithIdOnly = await prisma.favorite.createManyAndReturn({
|
|
749
|
+
* select: { id: true },
|
|
750
|
+
* data: [
|
|
751
|
+
* // ... provide data here
|
|
752
|
+
* ]
|
|
753
|
+
* })
|
|
754
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
755
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
756
|
+
*
|
|
757
|
+
*/
|
|
758
|
+
createManyAndReturn<T extends FavoriteCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, FavoriteCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$FavoritePayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
|
759
|
+
|
|
760
|
+
/**
|
|
761
|
+
* Delete a Favorite.
|
|
762
|
+
* @param {FavoriteDeleteArgs} args - Arguments to delete one Favorite.
|
|
763
|
+
* @example
|
|
764
|
+
* // Delete one Favorite
|
|
765
|
+
* const Favorite = await prisma.favorite.delete({
|
|
766
|
+
* where: {
|
|
767
|
+
* // ... filter to delete one Favorite
|
|
768
|
+
* }
|
|
769
|
+
* })
|
|
770
|
+
*
|
|
771
|
+
*/
|
|
772
|
+
delete<T extends FavoriteDeleteArgs>(args: Prisma.SelectSubset<T, FavoriteDeleteArgs<ExtArgs>>): Prisma.Prisma__FavoriteClient<runtime.Types.Result.GetResult<Prisma.$FavoritePayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
773
|
+
|
|
774
|
+
/**
|
|
775
|
+
* Update one Favorite.
|
|
776
|
+
* @param {FavoriteUpdateArgs} args - Arguments to update one Favorite.
|
|
777
|
+
* @example
|
|
778
|
+
* // Update one Favorite
|
|
779
|
+
* const favorite = await prisma.favorite.update({
|
|
780
|
+
* where: {
|
|
781
|
+
* // ... provide filter here
|
|
782
|
+
* },
|
|
783
|
+
* data: {
|
|
784
|
+
* // ... provide data here
|
|
785
|
+
* }
|
|
786
|
+
* })
|
|
787
|
+
*
|
|
788
|
+
*/
|
|
789
|
+
update<T extends FavoriteUpdateArgs>(args: Prisma.SelectSubset<T, FavoriteUpdateArgs<ExtArgs>>): Prisma.Prisma__FavoriteClient<runtime.Types.Result.GetResult<Prisma.$FavoritePayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
790
|
+
|
|
791
|
+
/**
|
|
792
|
+
* Delete zero or more Favorites.
|
|
793
|
+
* @param {FavoriteDeleteManyArgs} args - Arguments to filter Favorites to delete.
|
|
794
|
+
* @example
|
|
795
|
+
* // Delete a few Favorites
|
|
796
|
+
* const { count } = await prisma.favorite.deleteMany({
|
|
797
|
+
* where: {
|
|
798
|
+
* // ... provide filter here
|
|
799
|
+
* }
|
|
800
|
+
* })
|
|
801
|
+
*
|
|
802
|
+
*/
|
|
803
|
+
deleteMany<T extends FavoriteDeleteManyArgs>(args?: Prisma.SelectSubset<T, FavoriteDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
804
|
+
|
|
805
|
+
/**
|
|
806
|
+
* Update zero or more Favorites.
|
|
807
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
808
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
809
|
+
* @param {FavoriteUpdateManyArgs} args - Arguments to update one or more rows.
|
|
810
|
+
* @example
|
|
811
|
+
* // Update many Favorites
|
|
812
|
+
* const favorite = await prisma.favorite.updateMany({
|
|
813
|
+
* where: {
|
|
814
|
+
* // ... provide filter here
|
|
815
|
+
* },
|
|
816
|
+
* data: {
|
|
817
|
+
* // ... provide data here
|
|
818
|
+
* }
|
|
819
|
+
* })
|
|
820
|
+
*
|
|
821
|
+
*/
|
|
822
|
+
updateMany<T extends FavoriteUpdateManyArgs>(args: Prisma.SelectSubset<T, FavoriteUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
823
|
+
|
|
824
|
+
/**
|
|
825
|
+
* Update zero or more Favorites and returns the data updated in the database.
|
|
826
|
+
* @param {FavoriteUpdateManyAndReturnArgs} args - Arguments to update many Favorites.
|
|
827
|
+
* @example
|
|
828
|
+
* // Update many Favorites
|
|
829
|
+
* const favorite = await prisma.favorite.updateManyAndReturn({
|
|
830
|
+
* where: {
|
|
831
|
+
* // ... provide filter here
|
|
832
|
+
* },
|
|
833
|
+
* data: [
|
|
834
|
+
* // ... provide data here
|
|
835
|
+
* ]
|
|
836
|
+
* })
|
|
837
|
+
*
|
|
838
|
+
* // Update zero or more Favorites and only return the `id`
|
|
839
|
+
* const favoriteWithIdOnly = await prisma.favorite.updateManyAndReturn({
|
|
840
|
+
* select: { id: true },
|
|
841
|
+
* where: {
|
|
842
|
+
* // ... provide filter here
|
|
843
|
+
* },
|
|
844
|
+
* data: [
|
|
845
|
+
* // ... provide data here
|
|
846
|
+
* ]
|
|
847
|
+
* })
|
|
848
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
849
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
850
|
+
*
|
|
851
|
+
*/
|
|
852
|
+
updateManyAndReturn<T extends FavoriteUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, FavoriteUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$FavoritePayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
|
853
|
+
|
|
854
|
+
/**
|
|
855
|
+
* Create or update one Favorite.
|
|
856
|
+
* @param {FavoriteUpsertArgs} args - Arguments to update or create a Favorite.
|
|
857
|
+
* @example
|
|
858
|
+
* // Update or create a Favorite
|
|
859
|
+
* const favorite = await prisma.favorite.upsert({
|
|
860
|
+
* create: {
|
|
861
|
+
* // ... data to create a Favorite
|
|
862
|
+
* },
|
|
863
|
+
* update: {
|
|
864
|
+
* // ... in case it already exists, update
|
|
865
|
+
* },
|
|
866
|
+
* where: {
|
|
867
|
+
* // ... the filter for the Favorite we want to update
|
|
868
|
+
* }
|
|
869
|
+
* })
|
|
870
|
+
*/
|
|
871
|
+
upsert<T extends FavoriteUpsertArgs>(args: Prisma.SelectSubset<T, FavoriteUpsertArgs<ExtArgs>>): Prisma.Prisma__FavoriteClient<runtime.Types.Result.GetResult<Prisma.$FavoritePayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
872
|
+
|
|
873
|
+
|
|
874
|
+
/**
|
|
875
|
+
* Count the number of Favorites.
|
|
876
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
877
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
878
|
+
* @param {FavoriteCountArgs} args - Arguments to filter Favorites to count.
|
|
879
|
+
* @example
|
|
880
|
+
* // Count the number of Favorites
|
|
881
|
+
* const count = await prisma.favorite.count({
|
|
882
|
+
* where: {
|
|
883
|
+
* // ... the filter for the Favorites we want to count
|
|
884
|
+
* }
|
|
885
|
+
* })
|
|
886
|
+
**/
|
|
887
|
+
count<T extends FavoriteCountArgs>(
|
|
888
|
+
args?: Prisma.Subset<T, FavoriteCountArgs>,
|
|
889
|
+
): Prisma.PrismaPromise<
|
|
890
|
+
T extends runtime.Types.Utils.Record<'select', any>
|
|
891
|
+
? T['select'] extends true
|
|
892
|
+
? number
|
|
893
|
+
: Prisma.GetScalarType<T['select'], FavoriteCountAggregateOutputType>
|
|
894
|
+
: number
|
|
895
|
+
>
|
|
896
|
+
|
|
897
|
+
/**
|
|
898
|
+
* Allows you to perform aggregations operations on a Favorite.
|
|
899
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
900
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
901
|
+
* @param {FavoriteAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
902
|
+
* @example
|
|
903
|
+
* // Ordered by age ascending
|
|
904
|
+
* // Where email contains prisma.io
|
|
905
|
+
* // Limited to the 10 users
|
|
906
|
+
* const aggregations = await prisma.user.aggregate({
|
|
907
|
+
* _avg: {
|
|
908
|
+
* age: true,
|
|
909
|
+
* },
|
|
910
|
+
* where: {
|
|
911
|
+
* email: {
|
|
912
|
+
* contains: "prisma.io",
|
|
913
|
+
* },
|
|
914
|
+
* },
|
|
915
|
+
* orderBy: {
|
|
916
|
+
* age: "asc",
|
|
917
|
+
* },
|
|
918
|
+
* take: 10,
|
|
919
|
+
* })
|
|
920
|
+
**/
|
|
921
|
+
aggregate<T extends FavoriteAggregateArgs>(args: Prisma.Subset<T, FavoriteAggregateArgs>): Prisma.PrismaPromise<GetFavoriteAggregateType<T>>
|
|
922
|
+
|
|
923
|
+
/**
|
|
924
|
+
* Group by Favorite.
|
|
925
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
926
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
927
|
+
* @param {FavoriteGroupByArgs} args - Group by arguments.
|
|
928
|
+
* @example
|
|
929
|
+
* // Group by city, order by createdAt, get count
|
|
930
|
+
* const result = await prisma.user.groupBy({
|
|
931
|
+
* by: ['city', 'createdAt'],
|
|
932
|
+
* orderBy: {
|
|
933
|
+
* createdAt: true
|
|
934
|
+
* },
|
|
935
|
+
* _count: {
|
|
936
|
+
* _all: true
|
|
937
|
+
* },
|
|
938
|
+
* })
|
|
939
|
+
*
|
|
940
|
+
**/
|
|
941
|
+
groupBy<
|
|
942
|
+
T extends FavoriteGroupByArgs,
|
|
943
|
+
HasSelectOrTake extends Prisma.Or<
|
|
944
|
+
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
945
|
+
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
946
|
+
>,
|
|
947
|
+
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
948
|
+
? { orderBy: FavoriteGroupByArgs['orderBy'] }
|
|
949
|
+
: { orderBy?: FavoriteGroupByArgs['orderBy'] },
|
|
950
|
+
OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
|
|
951
|
+
ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
|
|
952
|
+
ByValid extends Prisma.Has<ByFields, OrderFields>,
|
|
953
|
+
HavingFields extends Prisma.GetHavingFields<T['having']>,
|
|
954
|
+
HavingValid extends Prisma.Has<ByFields, HavingFields>,
|
|
955
|
+
ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
|
|
956
|
+
InputErrors extends ByEmpty extends Prisma.True
|
|
957
|
+
? `Error: "by" must not be empty.`
|
|
958
|
+
: HavingValid extends Prisma.False
|
|
959
|
+
? {
|
|
960
|
+
[P in HavingFields]: P extends ByFields
|
|
961
|
+
? never
|
|
962
|
+
: P extends string
|
|
963
|
+
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
964
|
+
: [
|
|
965
|
+
Error,
|
|
966
|
+
'Field ',
|
|
967
|
+
P,
|
|
968
|
+
` in "having" needs to be provided in "by"`,
|
|
969
|
+
]
|
|
970
|
+
}[HavingFields]
|
|
971
|
+
: 'take' extends Prisma.Keys<T>
|
|
972
|
+
? 'orderBy' extends Prisma.Keys<T>
|
|
973
|
+
? ByValid extends Prisma.True
|
|
974
|
+
? {}
|
|
975
|
+
: {
|
|
976
|
+
[P in OrderFields]: P extends ByFields
|
|
977
|
+
? never
|
|
978
|
+
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
979
|
+
}[OrderFields]
|
|
980
|
+
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
981
|
+
: 'skip' extends Prisma.Keys<T>
|
|
982
|
+
? 'orderBy' extends Prisma.Keys<T>
|
|
983
|
+
? ByValid extends Prisma.True
|
|
984
|
+
? {}
|
|
985
|
+
: {
|
|
986
|
+
[P in OrderFields]: P extends ByFields
|
|
987
|
+
? never
|
|
988
|
+
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
989
|
+
}[OrderFields]
|
|
990
|
+
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
991
|
+
: ByValid extends Prisma.True
|
|
992
|
+
? {}
|
|
993
|
+
: {
|
|
994
|
+
[P in OrderFields]: P extends ByFields
|
|
995
|
+
? never
|
|
996
|
+
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
997
|
+
}[OrderFields]
|
|
998
|
+
>(args: Prisma.SubsetIntersection<T, FavoriteGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetFavoriteGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
999
|
+
/**
|
|
1000
|
+
* Fields of the Favorite model
|
|
1001
|
+
*/
|
|
1002
|
+
readonly fields: FavoriteFieldRefs;
|
|
1003
|
+
}
|
|
1004
|
+
|
|
1005
|
+
/**
|
|
1006
|
+
* The delegate class that acts as a "Promise-like" for Favorite.
|
|
1007
|
+
* Why is this prefixed with `Prisma__`?
|
|
1008
|
+
* Because we want to prevent naming conflicts as mentioned in
|
|
1009
|
+
* https://github.com/prisma/prisma-client-js/issues/707
|
|
1010
|
+
*/
|
|
1011
|
+
export interface Prisma__FavoriteClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
1012
|
+
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
1013
|
+
event<T extends Prisma.EventDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.EventDefaultArgs<ExtArgs>>): Prisma.Prisma__EventClient<runtime.Types.Result.GetResult<Prisma.$EventPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
|
1014
|
+
user<T extends Prisma.UserDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.UserDefaultArgs<ExtArgs>>): Prisma.Prisma__UserClient<runtime.Types.Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
|
1015
|
+
/**
|
|
1016
|
+
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
1017
|
+
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
1018
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
1019
|
+
* @returns A Promise for the completion of which ever callback is executed.
|
|
1020
|
+
*/
|
|
1021
|
+
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>
|
|
1022
|
+
/**
|
|
1023
|
+
* Attaches a callback for only the rejection of the Promise.
|
|
1024
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
1025
|
+
* @returns A Promise for the completion of the callback.
|
|
1026
|
+
*/
|
|
1027
|
+
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
|
|
1028
|
+
/**
|
|
1029
|
+
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
1030
|
+
* resolved value cannot be modified from the callback.
|
|
1031
|
+
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
1032
|
+
* @returns A Promise for the completion of the callback.
|
|
1033
|
+
*/
|
|
1034
|
+
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
|
|
1035
|
+
}
|
|
1036
|
+
|
|
1037
|
+
|
|
1038
|
+
|
|
1039
|
+
|
|
1040
|
+
/**
|
|
1041
|
+
* Fields of the Favorite model
|
|
1042
|
+
*/
|
|
1043
|
+
export interface FavoriteFieldRefs {
|
|
1044
|
+
readonly id: Prisma.FieldRef<"Favorite", 'String'>
|
|
1045
|
+
readonly userId: Prisma.FieldRef<"Favorite", 'String'>
|
|
1046
|
+
readonly eventId: Prisma.FieldRef<"Favorite", 'String'>
|
|
1047
|
+
readonly createdAt: Prisma.FieldRef<"Favorite", 'DateTime'>
|
|
1048
|
+
readonly updatedAt: Prisma.FieldRef<"Favorite", 'DateTime'>
|
|
1049
|
+
}
|
|
1050
|
+
|
|
1051
|
+
|
|
1052
|
+
// Custom InputTypes
|
|
1053
|
+
/**
|
|
1054
|
+
* Favorite findUnique
|
|
1055
|
+
*/
|
|
1056
|
+
export type FavoriteFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1057
|
+
/**
|
|
1058
|
+
* Select specific fields to fetch from the Favorite
|
|
1059
|
+
*/
|
|
1060
|
+
select?: Prisma.FavoriteSelect<ExtArgs> | null
|
|
1061
|
+
/**
|
|
1062
|
+
* Omit specific fields from the Favorite
|
|
1063
|
+
*/
|
|
1064
|
+
omit?: Prisma.FavoriteOmit<ExtArgs> | null
|
|
1065
|
+
/**
|
|
1066
|
+
* Choose, which related nodes to fetch as well
|
|
1067
|
+
*/
|
|
1068
|
+
include?: Prisma.FavoriteInclude<ExtArgs> | null
|
|
1069
|
+
/**
|
|
1070
|
+
* Filter, which Favorite to fetch.
|
|
1071
|
+
*/
|
|
1072
|
+
where: Prisma.FavoriteWhereUniqueInput
|
|
1073
|
+
}
|
|
1074
|
+
|
|
1075
|
+
/**
|
|
1076
|
+
* Favorite findUniqueOrThrow
|
|
1077
|
+
*/
|
|
1078
|
+
export type FavoriteFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1079
|
+
/**
|
|
1080
|
+
* Select specific fields to fetch from the Favorite
|
|
1081
|
+
*/
|
|
1082
|
+
select?: Prisma.FavoriteSelect<ExtArgs> | null
|
|
1083
|
+
/**
|
|
1084
|
+
* Omit specific fields from the Favorite
|
|
1085
|
+
*/
|
|
1086
|
+
omit?: Prisma.FavoriteOmit<ExtArgs> | null
|
|
1087
|
+
/**
|
|
1088
|
+
* Choose, which related nodes to fetch as well
|
|
1089
|
+
*/
|
|
1090
|
+
include?: Prisma.FavoriteInclude<ExtArgs> | null
|
|
1091
|
+
/**
|
|
1092
|
+
* Filter, which Favorite to fetch.
|
|
1093
|
+
*/
|
|
1094
|
+
where: Prisma.FavoriteWhereUniqueInput
|
|
1095
|
+
}
|
|
1096
|
+
|
|
1097
|
+
/**
|
|
1098
|
+
* Favorite findFirst
|
|
1099
|
+
*/
|
|
1100
|
+
export type FavoriteFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1101
|
+
/**
|
|
1102
|
+
* Select specific fields to fetch from the Favorite
|
|
1103
|
+
*/
|
|
1104
|
+
select?: Prisma.FavoriteSelect<ExtArgs> | null
|
|
1105
|
+
/**
|
|
1106
|
+
* Omit specific fields from the Favorite
|
|
1107
|
+
*/
|
|
1108
|
+
omit?: Prisma.FavoriteOmit<ExtArgs> | null
|
|
1109
|
+
/**
|
|
1110
|
+
* Choose, which related nodes to fetch as well
|
|
1111
|
+
*/
|
|
1112
|
+
include?: Prisma.FavoriteInclude<ExtArgs> | null
|
|
1113
|
+
/**
|
|
1114
|
+
* Filter, which Favorite to fetch.
|
|
1115
|
+
*/
|
|
1116
|
+
where?: Prisma.FavoriteWhereInput
|
|
1117
|
+
/**
|
|
1118
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1119
|
+
*
|
|
1120
|
+
* Determine the order of Favorites to fetch.
|
|
1121
|
+
*/
|
|
1122
|
+
orderBy?: Prisma.FavoriteOrderByWithRelationInput | Prisma.FavoriteOrderByWithRelationInput[]
|
|
1123
|
+
/**
|
|
1124
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1125
|
+
*
|
|
1126
|
+
* Sets the position for searching for Favorites.
|
|
1127
|
+
*/
|
|
1128
|
+
cursor?: Prisma.FavoriteWhereUniqueInput
|
|
1129
|
+
/**
|
|
1130
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1131
|
+
*
|
|
1132
|
+
* Take `±n` Favorites from the position of the cursor.
|
|
1133
|
+
*/
|
|
1134
|
+
take?: number
|
|
1135
|
+
/**
|
|
1136
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1137
|
+
*
|
|
1138
|
+
* Skip the first `n` Favorites.
|
|
1139
|
+
*/
|
|
1140
|
+
skip?: number
|
|
1141
|
+
/**
|
|
1142
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1143
|
+
*
|
|
1144
|
+
* Filter by unique combinations of Favorites.
|
|
1145
|
+
*/
|
|
1146
|
+
distinct?: Prisma.FavoriteScalarFieldEnum | Prisma.FavoriteScalarFieldEnum[]
|
|
1147
|
+
}
|
|
1148
|
+
|
|
1149
|
+
/**
|
|
1150
|
+
* Favorite findFirstOrThrow
|
|
1151
|
+
*/
|
|
1152
|
+
export type FavoriteFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1153
|
+
/**
|
|
1154
|
+
* Select specific fields to fetch from the Favorite
|
|
1155
|
+
*/
|
|
1156
|
+
select?: Prisma.FavoriteSelect<ExtArgs> | null
|
|
1157
|
+
/**
|
|
1158
|
+
* Omit specific fields from the Favorite
|
|
1159
|
+
*/
|
|
1160
|
+
omit?: Prisma.FavoriteOmit<ExtArgs> | null
|
|
1161
|
+
/**
|
|
1162
|
+
* Choose, which related nodes to fetch as well
|
|
1163
|
+
*/
|
|
1164
|
+
include?: Prisma.FavoriteInclude<ExtArgs> | null
|
|
1165
|
+
/**
|
|
1166
|
+
* Filter, which Favorite to fetch.
|
|
1167
|
+
*/
|
|
1168
|
+
where?: Prisma.FavoriteWhereInput
|
|
1169
|
+
/**
|
|
1170
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1171
|
+
*
|
|
1172
|
+
* Determine the order of Favorites to fetch.
|
|
1173
|
+
*/
|
|
1174
|
+
orderBy?: Prisma.FavoriteOrderByWithRelationInput | Prisma.FavoriteOrderByWithRelationInput[]
|
|
1175
|
+
/**
|
|
1176
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1177
|
+
*
|
|
1178
|
+
* Sets the position for searching for Favorites.
|
|
1179
|
+
*/
|
|
1180
|
+
cursor?: Prisma.FavoriteWhereUniqueInput
|
|
1181
|
+
/**
|
|
1182
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1183
|
+
*
|
|
1184
|
+
* Take `±n` Favorites from the position of the cursor.
|
|
1185
|
+
*/
|
|
1186
|
+
take?: number
|
|
1187
|
+
/**
|
|
1188
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1189
|
+
*
|
|
1190
|
+
* Skip the first `n` Favorites.
|
|
1191
|
+
*/
|
|
1192
|
+
skip?: number
|
|
1193
|
+
/**
|
|
1194
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1195
|
+
*
|
|
1196
|
+
* Filter by unique combinations of Favorites.
|
|
1197
|
+
*/
|
|
1198
|
+
distinct?: Prisma.FavoriteScalarFieldEnum | Prisma.FavoriteScalarFieldEnum[]
|
|
1199
|
+
}
|
|
1200
|
+
|
|
1201
|
+
/**
|
|
1202
|
+
* Favorite findMany
|
|
1203
|
+
*/
|
|
1204
|
+
export type FavoriteFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1205
|
+
/**
|
|
1206
|
+
* Select specific fields to fetch from the Favorite
|
|
1207
|
+
*/
|
|
1208
|
+
select?: Prisma.FavoriteSelect<ExtArgs> | null
|
|
1209
|
+
/**
|
|
1210
|
+
* Omit specific fields from the Favorite
|
|
1211
|
+
*/
|
|
1212
|
+
omit?: Prisma.FavoriteOmit<ExtArgs> | null
|
|
1213
|
+
/**
|
|
1214
|
+
* Choose, which related nodes to fetch as well
|
|
1215
|
+
*/
|
|
1216
|
+
include?: Prisma.FavoriteInclude<ExtArgs> | null
|
|
1217
|
+
/**
|
|
1218
|
+
* Filter, which Favorites to fetch.
|
|
1219
|
+
*/
|
|
1220
|
+
where?: Prisma.FavoriteWhereInput
|
|
1221
|
+
/**
|
|
1222
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
1223
|
+
*
|
|
1224
|
+
* Determine the order of Favorites to fetch.
|
|
1225
|
+
*/
|
|
1226
|
+
orderBy?: Prisma.FavoriteOrderByWithRelationInput | Prisma.FavoriteOrderByWithRelationInput[]
|
|
1227
|
+
/**
|
|
1228
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
1229
|
+
*
|
|
1230
|
+
* Sets the position for listing Favorites.
|
|
1231
|
+
*/
|
|
1232
|
+
cursor?: Prisma.FavoriteWhereUniqueInput
|
|
1233
|
+
/**
|
|
1234
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1235
|
+
*
|
|
1236
|
+
* Take `±n` Favorites from the position of the cursor.
|
|
1237
|
+
*/
|
|
1238
|
+
take?: number
|
|
1239
|
+
/**
|
|
1240
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
1241
|
+
*
|
|
1242
|
+
* Skip the first `n` Favorites.
|
|
1243
|
+
*/
|
|
1244
|
+
skip?: number
|
|
1245
|
+
/**
|
|
1246
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
1247
|
+
*
|
|
1248
|
+
* Filter by unique combinations of Favorites.
|
|
1249
|
+
*/
|
|
1250
|
+
distinct?: Prisma.FavoriteScalarFieldEnum | Prisma.FavoriteScalarFieldEnum[]
|
|
1251
|
+
}
|
|
1252
|
+
|
|
1253
|
+
/**
|
|
1254
|
+
* Favorite create
|
|
1255
|
+
*/
|
|
1256
|
+
export type FavoriteCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1257
|
+
/**
|
|
1258
|
+
* Select specific fields to fetch from the Favorite
|
|
1259
|
+
*/
|
|
1260
|
+
select?: Prisma.FavoriteSelect<ExtArgs> | null
|
|
1261
|
+
/**
|
|
1262
|
+
* Omit specific fields from the Favorite
|
|
1263
|
+
*/
|
|
1264
|
+
omit?: Prisma.FavoriteOmit<ExtArgs> | null
|
|
1265
|
+
/**
|
|
1266
|
+
* Choose, which related nodes to fetch as well
|
|
1267
|
+
*/
|
|
1268
|
+
include?: Prisma.FavoriteInclude<ExtArgs> | null
|
|
1269
|
+
/**
|
|
1270
|
+
* The data needed to create a Favorite.
|
|
1271
|
+
*/
|
|
1272
|
+
data: Prisma.XOR<Prisma.FavoriteCreateInput, Prisma.FavoriteUncheckedCreateInput>
|
|
1273
|
+
}
|
|
1274
|
+
|
|
1275
|
+
/**
|
|
1276
|
+
* Favorite createMany
|
|
1277
|
+
*/
|
|
1278
|
+
export type FavoriteCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1279
|
+
/**
|
|
1280
|
+
* The data used to create many Favorites.
|
|
1281
|
+
*/
|
|
1282
|
+
data: Prisma.FavoriteCreateManyInput | Prisma.FavoriteCreateManyInput[]
|
|
1283
|
+
skipDuplicates?: boolean
|
|
1284
|
+
}
|
|
1285
|
+
|
|
1286
|
+
/**
|
|
1287
|
+
* Favorite createManyAndReturn
|
|
1288
|
+
*/
|
|
1289
|
+
export type FavoriteCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1290
|
+
/**
|
|
1291
|
+
* Select specific fields to fetch from the Favorite
|
|
1292
|
+
*/
|
|
1293
|
+
select?: Prisma.FavoriteSelectCreateManyAndReturn<ExtArgs> | null
|
|
1294
|
+
/**
|
|
1295
|
+
* Omit specific fields from the Favorite
|
|
1296
|
+
*/
|
|
1297
|
+
omit?: Prisma.FavoriteOmit<ExtArgs> | null
|
|
1298
|
+
/**
|
|
1299
|
+
* The data used to create many Favorites.
|
|
1300
|
+
*/
|
|
1301
|
+
data: Prisma.FavoriteCreateManyInput | Prisma.FavoriteCreateManyInput[]
|
|
1302
|
+
skipDuplicates?: boolean
|
|
1303
|
+
/**
|
|
1304
|
+
* Choose, which related nodes to fetch as well
|
|
1305
|
+
*/
|
|
1306
|
+
include?: Prisma.FavoriteIncludeCreateManyAndReturn<ExtArgs> | null
|
|
1307
|
+
}
|
|
1308
|
+
|
|
1309
|
+
/**
|
|
1310
|
+
* Favorite update
|
|
1311
|
+
*/
|
|
1312
|
+
export type FavoriteUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1313
|
+
/**
|
|
1314
|
+
* Select specific fields to fetch from the Favorite
|
|
1315
|
+
*/
|
|
1316
|
+
select?: Prisma.FavoriteSelect<ExtArgs> | null
|
|
1317
|
+
/**
|
|
1318
|
+
* Omit specific fields from the Favorite
|
|
1319
|
+
*/
|
|
1320
|
+
omit?: Prisma.FavoriteOmit<ExtArgs> | null
|
|
1321
|
+
/**
|
|
1322
|
+
* Choose, which related nodes to fetch as well
|
|
1323
|
+
*/
|
|
1324
|
+
include?: Prisma.FavoriteInclude<ExtArgs> | null
|
|
1325
|
+
/**
|
|
1326
|
+
* The data needed to update a Favorite.
|
|
1327
|
+
*/
|
|
1328
|
+
data: Prisma.XOR<Prisma.FavoriteUpdateInput, Prisma.FavoriteUncheckedUpdateInput>
|
|
1329
|
+
/**
|
|
1330
|
+
* Choose, which Favorite to update.
|
|
1331
|
+
*/
|
|
1332
|
+
where: Prisma.FavoriteWhereUniqueInput
|
|
1333
|
+
}
|
|
1334
|
+
|
|
1335
|
+
/**
|
|
1336
|
+
* Favorite updateMany
|
|
1337
|
+
*/
|
|
1338
|
+
export type FavoriteUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1339
|
+
/**
|
|
1340
|
+
* The data used to update Favorites.
|
|
1341
|
+
*/
|
|
1342
|
+
data: Prisma.XOR<Prisma.FavoriteUpdateManyMutationInput, Prisma.FavoriteUncheckedUpdateManyInput>
|
|
1343
|
+
/**
|
|
1344
|
+
* Filter which Favorites to update
|
|
1345
|
+
*/
|
|
1346
|
+
where?: Prisma.FavoriteWhereInput
|
|
1347
|
+
/**
|
|
1348
|
+
* Limit how many Favorites to update.
|
|
1349
|
+
*/
|
|
1350
|
+
limit?: number
|
|
1351
|
+
}
|
|
1352
|
+
|
|
1353
|
+
/**
|
|
1354
|
+
* Favorite updateManyAndReturn
|
|
1355
|
+
*/
|
|
1356
|
+
export type FavoriteUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1357
|
+
/**
|
|
1358
|
+
* Select specific fields to fetch from the Favorite
|
|
1359
|
+
*/
|
|
1360
|
+
select?: Prisma.FavoriteSelectUpdateManyAndReturn<ExtArgs> | null
|
|
1361
|
+
/**
|
|
1362
|
+
* Omit specific fields from the Favorite
|
|
1363
|
+
*/
|
|
1364
|
+
omit?: Prisma.FavoriteOmit<ExtArgs> | null
|
|
1365
|
+
/**
|
|
1366
|
+
* The data used to update Favorites.
|
|
1367
|
+
*/
|
|
1368
|
+
data: Prisma.XOR<Prisma.FavoriteUpdateManyMutationInput, Prisma.FavoriteUncheckedUpdateManyInput>
|
|
1369
|
+
/**
|
|
1370
|
+
* Filter which Favorites to update
|
|
1371
|
+
*/
|
|
1372
|
+
where?: Prisma.FavoriteWhereInput
|
|
1373
|
+
/**
|
|
1374
|
+
* Limit how many Favorites to update.
|
|
1375
|
+
*/
|
|
1376
|
+
limit?: number
|
|
1377
|
+
/**
|
|
1378
|
+
* Choose, which related nodes to fetch as well
|
|
1379
|
+
*/
|
|
1380
|
+
include?: Prisma.FavoriteIncludeUpdateManyAndReturn<ExtArgs> | null
|
|
1381
|
+
}
|
|
1382
|
+
|
|
1383
|
+
/**
|
|
1384
|
+
* Favorite upsert
|
|
1385
|
+
*/
|
|
1386
|
+
export type FavoriteUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1387
|
+
/**
|
|
1388
|
+
* Select specific fields to fetch from the Favorite
|
|
1389
|
+
*/
|
|
1390
|
+
select?: Prisma.FavoriteSelect<ExtArgs> | null
|
|
1391
|
+
/**
|
|
1392
|
+
* Omit specific fields from the Favorite
|
|
1393
|
+
*/
|
|
1394
|
+
omit?: Prisma.FavoriteOmit<ExtArgs> | null
|
|
1395
|
+
/**
|
|
1396
|
+
* Choose, which related nodes to fetch as well
|
|
1397
|
+
*/
|
|
1398
|
+
include?: Prisma.FavoriteInclude<ExtArgs> | null
|
|
1399
|
+
/**
|
|
1400
|
+
* The filter to search for the Favorite to update in case it exists.
|
|
1401
|
+
*/
|
|
1402
|
+
where: Prisma.FavoriteWhereUniqueInput
|
|
1403
|
+
/**
|
|
1404
|
+
* In case the Favorite found by the `where` argument doesn't exist, create a new Favorite with this data.
|
|
1405
|
+
*/
|
|
1406
|
+
create: Prisma.XOR<Prisma.FavoriteCreateInput, Prisma.FavoriteUncheckedCreateInput>
|
|
1407
|
+
/**
|
|
1408
|
+
* In case the Favorite was found with the provided `where` argument, update it with this data.
|
|
1409
|
+
*/
|
|
1410
|
+
update: Prisma.XOR<Prisma.FavoriteUpdateInput, Prisma.FavoriteUncheckedUpdateInput>
|
|
1411
|
+
}
|
|
1412
|
+
|
|
1413
|
+
/**
|
|
1414
|
+
* Favorite delete
|
|
1415
|
+
*/
|
|
1416
|
+
export type FavoriteDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1417
|
+
/**
|
|
1418
|
+
* Select specific fields to fetch from the Favorite
|
|
1419
|
+
*/
|
|
1420
|
+
select?: Prisma.FavoriteSelect<ExtArgs> | null
|
|
1421
|
+
/**
|
|
1422
|
+
* Omit specific fields from the Favorite
|
|
1423
|
+
*/
|
|
1424
|
+
omit?: Prisma.FavoriteOmit<ExtArgs> | null
|
|
1425
|
+
/**
|
|
1426
|
+
* Choose, which related nodes to fetch as well
|
|
1427
|
+
*/
|
|
1428
|
+
include?: Prisma.FavoriteInclude<ExtArgs> | null
|
|
1429
|
+
/**
|
|
1430
|
+
* Filter which Favorite to delete.
|
|
1431
|
+
*/
|
|
1432
|
+
where: Prisma.FavoriteWhereUniqueInput
|
|
1433
|
+
}
|
|
1434
|
+
|
|
1435
|
+
/**
|
|
1436
|
+
* Favorite deleteMany
|
|
1437
|
+
*/
|
|
1438
|
+
export type FavoriteDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1439
|
+
/**
|
|
1440
|
+
* Filter which Favorites to delete
|
|
1441
|
+
*/
|
|
1442
|
+
where?: Prisma.FavoriteWhereInput
|
|
1443
|
+
/**
|
|
1444
|
+
* Limit how many Favorites to delete.
|
|
1445
|
+
*/
|
|
1446
|
+
limit?: number
|
|
1447
|
+
}
|
|
1448
|
+
|
|
1449
|
+
/**
|
|
1450
|
+
* Favorite without action
|
|
1451
|
+
*/
|
|
1452
|
+
export type FavoriteDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1453
|
+
/**
|
|
1454
|
+
* Select specific fields to fetch from the Favorite
|
|
1455
|
+
*/
|
|
1456
|
+
select?: Prisma.FavoriteSelect<ExtArgs> | null
|
|
1457
|
+
/**
|
|
1458
|
+
* Omit specific fields from the Favorite
|
|
1459
|
+
*/
|
|
1460
|
+
omit?: Prisma.FavoriteOmit<ExtArgs> | null
|
|
1461
|
+
/**
|
|
1462
|
+
* Choose, which related nodes to fetch as well
|
|
1463
|
+
*/
|
|
1464
|
+
include?: Prisma.FavoriteInclude<ExtArgs> | null
|
|
1465
|
+
}
|