lapeh 2.3.6 → 2.3.8
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/bin/index.js +39 -56
- package/dist/generated/prisma/browser.d.ts +80 -0
- package/dist/generated/prisma/browser.d.ts.map +1 -0
- package/dist/generated/prisma/browser.js +56 -0
- package/dist/generated/prisma/client.d.ts +97 -0
- package/dist/generated/prisma/client.d.ts.map +1 -0
- package/dist/generated/prisma/client.js +68 -0
- package/dist/generated/prisma/commonInputTypes.d.ts +486 -0
- package/dist/generated/prisma/commonInputTypes.d.ts.map +1 -0
- package/dist/generated/prisma/commonInputTypes.js +11 -0
- package/dist/generated/prisma/enums.d.ts +2 -0
- package/dist/generated/prisma/enums.d.ts.map +1 -0
- package/dist/generated/prisma/enums.js +11 -0
- package/dist/generated/prisma/internal/class.d.ts +281 -0
- package/dist/generated/prisma/internal/class.d.ts.map +1 -0
- package/dist/generated/prisma/internal/class.js +76 -0
- package/dist/generated/prisma/internal/prismaNamespace.d.ts +1734 -0
- package/dist/generated/prisma/internal/prismaNamespace.d.ts.map +1 -0
- package/dist/generated/prisma/internal/prismaNamespace.js +260 -0
- package/dist/generated/prisma/internal/prismaNamespaceBrowser.d.ts +200 -0
- package/dist/generated/prisma/internal/prismaNamespaceBrowser.d.ts.map +1 -0
- package/dist/generated/prisma/internal/prismaNamespaceBrowser.js +231 -0
- package/dist/generated/prisma/models/cache.d.ts +986 -0
- package/dist/generated/prisma/models/cache.d.ts.map +1 -0
- package/dist/generated/prisma/models/cache.js +2 -0
- package/dist/generated/prisma/models/cache_locks.d.ts +976 -0
- package/dist/generated/prisma/models/cache_locks.d.ts.map +1 -0
- package/dist/generated/prisma/models/cache_locks.js +2 -0
- package/dist/generated/prisma/models/failed_jobs.d.ts +1098 -0
- package/dist/generated/prisma/models/failed_jobs.d.ts.map +1 -0
- package/dist/generated/prisma/models/failed_jobs.js +2 -0
- package/dist/generated/prisma/models/job_batches.d.ts +1212 -0
- package/dist/generated/prisma/models/job_batches.d.ts.map +1 -0
- package/dist/generated/prisma/models/job_batches.js +2 -0
- package/dist/generated/prisma/models/jobs.d.ts +1112 -0
- package/dist/generated/prisma/models/jobs.d.ts.map +1 -0
- package/dist/generated/prisma/models/jobs.js +2 -0
- package/dist/generated/prisma/models/migrations.d.ts +979 -0
- package/dist/generated/prisma/models/migrations.d.ts.map +1 -0
- package/dist/generated/prisma/models/migrations.js +2 -0
- package/dist/generated/prisma/models/password_reset_tokens.d.ts +941 -0
- package/dist/generated/prisma/models/password_reset_tokens.d.ts.map +1 -0
- package/dist/generated/prisma/models/password_reset_tokens.js +2 -0
- package/dist/generated/prisma/models/permissions.d.ts +1333 -0
- package/dist/generated/prisma/models/permissions.d.ts.map +1 -0
- package/dist/generated/prisma/models/permissions.js +2 -0
- package/dist/generated/prisma/models/personal_access_tokens.d.ts +1178 -0
- package/dist/generated/prisma/models/personal_access_tokens.d.ts.map +1 -0
- package/dist/generated/prisma/models/personal_access_tokens.js +2 -0
- package/dist/generated/prisma/models/role_permissions.d.ts +1291 -0
- package/dist/generated/prisma/models/role_permissions.d.ts.map +1 -0
- package/dist/generated/prisma/models/role_permissions.js +2 -0
- package/dist/generated/prisma/models/roles.d.ts +1333 -0
- package/dist/generated/prisma/models/roles.d.ts.map +1 -0
- package/dist/generated/prisma/models/roles.js +2 -0
- package/dist/generated/prisma/models/sessions.d.ts +1073 -0
- package/dist/generated/prisma/models/sessions.d.ts.map +1 -0
- package/dist/generated/prisma/models/sessions.js +2 -0
- package/dist/generated/prisma/models/user_permissions.d.ts +1291 -0
- package/dist/generated/prisma/models/user_permissions.d.ts.map +1 -0
- package/dist/generated/prisma/models/user_permissions.js +2 -0
- package/dist/generated/prisma/models/user_roles.d.ts +1291 -0
- package/dist/generated/prisma/models/user_roles.d.ts.map +1 -0
- package/dist/generated/prisma/models/user_roles.js +2 -0
- package/dist/generated/prisma/models/users.d.ts +1513 -0
- package/dist/generated/prisma/models/users.d.ts.map +1 -0
- package/dist/generated/prisma/models/users.js +2 -0
- package/dist/generated/prisma/models.d.ts +17 -0
- package/dist/generated/prisma/models.d.ts.map +1 -0
- package/dist/generated/prisma/models.js +2 -0
- package/dist/lib/bootstrap.d.ts +2 -0
- package/dist/lib/bootstrap.d.ts.map +1 -0
- package/dist/lib/bootstrap.js +133 -0
- package/dist/lib/core/database.d.ts +3 -0
- package/dist/lib/core/database.d.ts.map +1 -0
- package/dist/lib/core/database.js +34 -0
- package/dist/lib/core/realtime.d.ts +3 -0
- package/dist/lib/core/realtime.d.ts.map +1 -0
- package/dist/lib/core/realtime.js +36 -0
- package/dist/lib/core/redis.d.ts +8 -0
- package/dist/lib/core/redis.d.ts.map +1 -0
- package/dist/lib/core/redis.js +123 -0
- package/dist/lib/core/serializer.d.ts +43 -0
- package/dist/lib/core/serializer.d.ts.map +1 -0
- package/dist/lib/core/serializer.js +66 -0
- package/dist/lib/core/server.d.ts +2 -0
- package/dist/lib/core/server.d.ts.map +1 -0
- package/dist/lib/core/server.js +60 -0
- package/dist/lib/middleware/auth.d.ts +4 -0
- package/dist/lib/middleware/auth.d.ts.map +1 -0
- package/dist/lib/middleware/auth.js +55 -0
- package/dist/lib/middleware/error.d.ts +3 -0
- package/dist/lib/middleware/error.d.ts.map +1 -0
- package/dist/lib/middleware/error.js +60 -0
- package/dist/lib/middleware/multipart.d.ts +4 -0
- package/dist/lib/middleware/multipart.d.ts.map +1 -0
- package/dist/lib/middleware/multipart.js +17 -0
- package/dist/lib/middleware/rateLimit.d.ts +2 -0
- package/dist/lib/middleware/rateLimit.d.ts.map +1 -0
- package/dist/lib/middleware/rateLimit.js +19 -0
- package/dist/lib/middleware/requestLogger.d.ts +3 -0
- package/dist/lib/middleware/requestLogger.d.ts.map +1 -0
- package/dist/lib/middleware/requestLogger.js +22 -0
- package/dist/lib/middleware/visitor.d.ts +3 -0
- package/dist/lib/middleware/visitor.d.ts.map +1 -0
- package/dist/lib/middleware/visitor.js +144 -0
- package/dist/lib/utils/logger.d.ts +11 -0
- package/dist/lib/utils/logger.d.ts.map +1 -0
- package/dist/lib/utils/logger.js +81 -0
- package/dist/lib/utils/pagination.d.ts +19 -0
- package/dist/lib/utils/pagination.d.ts.map +1 -0
- package/dist/lib/utils/pagination.js +34 -0
- package/dist/lib/utils/response.d.ts +11 -0
- package/dist/lib/utils/response.d.ts.map +1 -0
- package/dist/lib/utils/response.js +57 -0
- package/dist/lib/utils/validator.d.ts +38 -0
- package/dist/lib/utils/validator.d.ts.map +1 -0
- package/dist/lib/utils/validator.js +369 -0
- package/dist/prisma/seed.d.ts +2 -0
- package/dist/prisma/seed.d.ts.map +1 -0
- package/dist/prisma/seed.js +381 -0
- package/dist/src/controllers/authController.d.ts +11 -0
- package/dist/src/controllers/authController.d.ts.map +1 -0
- package/dist/src/controllers/authController.js +414 -0
- package/dist/src/controllers/petController.d.ts +7 -0
- package/dist/src/controllers/petController.d.ts.map +1 -0
- package/dist/src/controllers/petController.js +163 -0
- package/dist/src/controllers/rbacController.d.ts +16 -0
- package/dist/src/controllers/rbacController.d.ts.map +1 -0
- package/dist/src/controllers/rbacController.js +437 -0
- package/dist/src/core/database.d.ts +3 -0
- package/dist/src/core/database.d.ts.map +1 -0
- package/dist/src/core/database.js +34 -0
- package/dist/src/core/realtime.d.ts +3 -0
- package/dist/src/core/realtime.d.ts.map +1 -0
- package/dist/src/core/realtime.js +36 -0
- package/dist/src/core/redis.d.ts +8 -0
- package/dist/src/core/redis.d.ts.map +1 -0
- package/dist/src/core/redis.js +123 -0
- package/dist/src/core/serializer.d.ts +43 -0
- package/dist/src/core/serializer.d.ts.map +1 -0
- package/dist/src/core/serializer.js +66 -0
- package/dist/src/core/server.d.ts +2 -0
- package/dist/src/core/server.d.ts.map +1 -0
- package/dist/src/core/server.js +60 -0
- package/dist/src/index.d.ts +2 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/index.js +98 -0
- package/dist/src/middleware/auth.d.ts +4 -0
- package/dist/src/middleware/auth.d.ts.map +1 -0
- package/dist/src/middleware/auth.js +48 -0
- package/dist/src/middleware/error.d.ts +3 -0
- package/dist/src/middleware/error.d.ts.map +1 -0
- package/dist/src/middleware/error.js +60 -0
- package/dist/src/middleware/multipart.d.ts +4 -0
- package/dist/src/middleware/multipart.d.ts.map +1 -0
- package/dist/src/middleware/multipart.js +17 -0
- package/dist/src/middleware/rateLimit.d.ts +2 -0
- package/dist/src/middleware/rateLimit.d.ts.map +1 -0
- package/dist/src/middleware/rateLimit.js +19 -0
- package/dist/src/middleware/requestLogger.d.ts +3 -0
- package/dist/src/middleware/requestLogger.d.ts.map +1 -0
- package/dist/src/middleware/requestLogger.js +22 -0
- package/dist/src/middleware/visitor.d.ts +3 -0
- package/dist/src/middleware/visitor.d.ts.map +1 -0
- package/dist/src/middleware/visitor.js +144 -0
- package/dist/src/prisma.d.ts +3 -0
- package/dist/src/prisma.d.ts.map +1 -0
- package/dist/src/prisma.js +34 -0
- package/dist/src/realtime.d.ts +3 -0
- package/dist/src/realtime.d.ts.map +1 -0
- package/dist/src/realtime.js +36 -0
- package/dist/src/redis.d.ts +8 -0
- package/dist/src/redis.d.ts.map +1 -0
- package/dist/src/redis.js +122 -0
- package/dist/src/routes/auth.d.ts +2 -0
- package/dist/src/routes/auth.d.ts.map +1 -0
- package/dist/src/routes/auth.js +45 -0
- package/dist/src/routes/index.d.ts +2 -0
- package/dist/src/routes/index.d.ts.map +1 -0
- package/dist/src/routes/index.js +14 -0
- package/dist/src/routes/pets.d.ts +3 -0
- package/dist/src/routes/pets.d.ts.map +1 -0
- package/dist/src/routes/pets.js +45 -0
- package/dist/src/routes/rbac.d.ts +2 -0
- package/dist/src/routes/rbac.d.ts.map +1 -0
- package/dist/src/routes/rbac.js +23 -0
- package/dist/src/schema/auth-schema.d.ts +76 -0
- package/dist/src/schema/auth-schema.d.ts.map +1 -0
- package/dist/src/schema/auth-schema.js +63 -0
- package/dist/src/schema/pet-schema.d.ts +28 -0
- package/dist/src/schema/pet-schema.d.ts.map +1 -0
- package/dist/src/schema/pet-schema.js +14 -0
- package/dist/src/server.d.ts +2 -0
- package/dist/src/server.d.ts.map +1 -0
- package/dist/src/server.js +31 -0
- package/dist/src/utils/logger.d.ts +11 -0
- package/dist/src/utils/logger.d.ts.map +1 -0
- package/dist/src/utils/logger.js +81 -0
- package/dist/src/utils/pagination.d.ts +19 -0
- package/dist/src/utils/pagination.d.ts.map +1 -0
- package/dist/src/utils/pagination.js +34 -0
- package/dist/src/utils/response.d.ts +11 -0
- package/dist/src/utils/response.d.ts.map +1 -0
- package/dist/src/utils/response.js +57 -0
- package/dist/src/utils/validator.d.ts +38 -0
- package/dist/src/utils/validator.d.ts.map +1 -0
- package/dist/src/utils/validator.js +369 -0
- package/lib/bootstrap.ts +6 -0
- package/package.json +26 -14
- package/.env.example +0 -19
- package/doc/ARCHITECTURE_GUIDE.md +0 -73
- package/doc/CHANGELOG.md +0 -77
- package/doc/CHEATSHEET.md +0 -94
- package/doc/CLI.md +0 -139
- package/doc/CONTRIBUTING.md +0 -105
- package/doc/DEPLOYMENT.md +0 -122
- package/doc/FAQ.md +0 -81
- package/doc/FEATURES.md +0 -165
- package/doc/GETTING_STARTED.md +0 -108
- package/doc/INTRODUCTION.md +0 -60
- package/doc/PACKAGES.md +0 -66
- package/doc/PERFORMANCE.md +0 -91
- package/doc/ROADMAP.md +0 -93
- package/doc/SECURITY.md +0 -93
- package/doc/STRUCTURE.md +0 -90
- package/doc/TUTORIAL.md +0 -192
- package/docker-compose.yml +0 -24
- package/eslint.config.mjs +0 -26
- package/framework.md +0 -168
- package/nodemon.json +0 -6
- package/prisma.config.ts +0 -15
- package/src/controllers/authController.ts +0 -469
- package/src/controllers/petController.ts +0 -194
- package/src/controllers/rbacController.ts +0 -478
- package/src/models/core.prisma +0 -163
- package/src/models/pets.prisma +0 -9
- package/src/routes/auth.ts +0 -74
- package/src/routes/index.ts +0 -10
- package/src/routes/pets.ts +0 -13
- package/src/routes/rbac.ts +0 -42
- package/storage/logs/.gitkeep +0 -0
- package/tsconfig.json +0 -30
|
@@ -0,0 +1,1073 @@
|
|
|
1
|
+
import type * as runtime from "@prisma/client/runtime/client";
|
|
2
|
+
import type * as Prisma from "../internal/prismaNamespace";
|
|
3
|
+
/**
|
|
4
|
+
* Model sessions
|
|
5
|
+
*
|
|
6
|
+
*/
|
|
7
|
+
export type sessionsModel = runtime.Types.Result.DefaultSelection<Prisma.$sessionsPayload>;
|
|
8
|
+
export type AggregateSessions = {
|
|
9
|
+
_count: SessionsCountAggregateOutputType | null;
|
|
10
|
+
_avg: SessionsAvgAggregateOutputType | null;
|
|
11
|
+
_sum: SessionsSumAggregateOutputType | null;
|
|
12
|
+
_min: SessionsMinAggregateOutputType | null;
|
|
13
|
+
_max: SessionsMaxAggregateOutputType | null;
|
|
14
|
+
};
|
|
15
|
+
export type SessionsAvgAggregateOutputType = {
|
|
16
|
+
user_id: number | null;
|
|
17
|
+
last_activity: number | null;
|
|
18
|
+
};
|
|
19
|
+
export type SessionsSumAggregateOutputType = {
|
|
20
|
+
user_id: bigint | null;
|
|
21
|
+
last_activity: number | null;
|
|
22
|
+
};
|
|
23
|
+
export type SessionsMinAggregateOutputType = {
|
|
24
|
+
id: string | null;
|
|
25
|
+
user_id: bigint | null;
|
|
26
|
+
ip_address: string | null;
|
|
27
|
+
user_agent: string | null;
|
|
28
|
+
payload: string | null;
|
|
29
|
+
last_activity: number | null;
|
|
30
|
+
};
|
|
31
|
+
export type SessionsMaxAggregateOutputType = {
|
|
32
|
+
id: string | null;
|
|
33
|
+
user_id: bigint | null;
|
|
34
|
+
ip_address: string | null;
|
|
35
|
+
user_agent: string | null;
|
|
36
|
+
payload: string | null;
|
|
37
|
+
last_activity: number | null;
|
|
38
|
+
};
|
|
39
|
+
export type SessionsCountAggregateOutputType = {
|
|
40
|
+
id: number;
|
|
41
|
+
user_id: number;
|
|
42
|
+
ip_address: number;
|
|
43
|
+
user_agent: number;
|
|
44
|
+
payload: number;
|
|
45
|
+
last_activity: number;
|
|
46
|
+
_all: number;
|
|
47
|
+
};
|
|
48
|
+
export type SessionsAvgAggregateInputType = {
|
|
49
|
+
user_id?: true;
|
|
50
|
+
last_activity?: true;
|
|
51
|
+
};
|
|
52
|
+
export type SessionsSumAggregateInputType = {
|
|
53
|
+
user_id?: true;
|
|
54
|
+
last_activity?: true;
|
|
55
|
+
};
|
|
56
|
+
export type SessionsMinAggregateInputType = {
|
|
57
|
+
id?: true;
|
|
58
|
+
user_id?: true;
|
|
59
|
+
ip_address?: true;
|
|
60
|
+
user_agent?: true;
|
|
61
|
+
payload?: true;
|
|
62
|
+
last_activity?: true;
|
|
63
|
+
};
|
|
64
|
+
export type SessionsMaxAggregateInputType = {
|
|
65
|
+
id?: true;
|
|
66
|
+
user_id?: true;
|
|
67
|
+
ip_address?: true;
|
|
68
|
+
user_agent?: true;
|
|
69
|
+
payload?: true;
|
|
70
|
+
last_activity?: true;
|
|
71
|
+
};
|
|
72
|
+
export type SessionsCountAggregateInputType = {
|
|
73
|
+
id?: true;
|
|
74
|
+
user_id?: true;
|
|
75
|
+
ip_address?: true;
|
|
76
|
+
user_agent?: true;
|
|
77
|
+
payload?: true;
|
|
78
|
+
last_activity?: true;
|
|
79
|
+
_all?: true;
|
|
80
|
+
};
|
|
81
|
+
export type SessionsAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
82
|
+
/**
|
|
83
|
+
* Filter which sessions to aggregate.
|
|
84
|
+
*/
|
|
85
|
+
where?: Prisma.sessionsWhereInput;
|
|
86
|
+
/**
|
|
87
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
88
|
+
*
|
|
89
|
+
* Determine the order of sessions to fetch.
|
|
90
|
+
*/
|
|
91
|
+
orderBy?: Prisma.sessionsOrderByWithRelationInput | Prisma.sessionsOrderByWithRelationInput[];
|
|
92
|
+
/**
|
|
93
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
94
|
+
*
|
|
95
|
+
* Sets the start position
|
|
96
|
+
*/
|
|
97
|
+
cursor?: Prisma.sessionsWhereUniqueInput;
|
|
98
|
+
/**
|
|
99
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
100
|
+
*
|
|
101
|
+
* Take `±n` sessions from the position of the cursor.
|
|
102
|
+
*/
|
|
103
|
+
take?: number;
|
|
104
|
+
/**
|
|
105
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
106
|
+
*
|
|
107
|
+
* Skip the first `n` sessions.
|
|
108
|
+
*/
|
|
109
|
+
skip?: number;
|
|
110
|
+
/**
|
|
111
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
112
|
+
*
|
|
113
|
+
* Count returned sessions
|
|
114
|
+
**/
|
|
115
|
+
_count?: true | SessionsCountAggregateInputType;
|
|
116
|
+
/**
|
|
117
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
118
|
+
*
|
|
119
|
+
* Select which fields to average
|
|
120
|
+
**/
|
|
121
|
+
_avg?: SessionsAvgAggregateInputType;
|
|
122
|
+
/**
|
|
123
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
124
|
+
*
|
|
125
|
+
* Select which fields to sum
|
|
126
|
+
**/
|
|
127
|
+
_sum?: SessionsSumAggregateInputType;
|
|
128
|
+
/**
|
|
129
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
130
|
+
*
|
|
131
|
+
* Select which fields to find the minimum value
|
|
132
|
+
**/
|
|
133
|
+
_min?: SessionsMinAggregateInputType;
|
|
134
|
+
/**
|
|
135
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
136
|
+
*
|
|
137
|
+
* Select which fields to find the maximum value
|
|
138
|
+
**/
|
|
139
|
+
_max?: SessionsMaxAggregateInputType;
|
|
140
|
+
};
|
|
141
|
+
export type GetSessionsAggregateType<T extends SessionsAggregateArgs> = {
|
|
142
|
+
[P in keyof T & keyof AggregateSessions]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType<T[P], AggregateSessions[P]> : Prisma.GetScalarType<T[P], AggregateSessions[P]>;
|
|
143
|
+
};
|
|
144
|
+
export type sessionsGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
145
|
+
where?: Prisma.sessionsWhereInput;
|
|
146
|
+
orderBy?: Prisma.sessionsOrderByWithAggregationInput | Prisma.sessionsOrderByWithAggregationInput[];
|
|
147
|
+
by: Prisma.SessionsScalarFieldEnum[] | Prisma.SessionsScalarFieldEnum;
|
|
148
|
+
having?: Prisma.sessionsScalarWhereWithAggregatesInput;
|
|
149
|
+
take?: number;
|
|
150
|
+
skip?: number;
|
|
151
|
+
_count?: SessionsCountAggregateInputType | true;
|
|
152
|
+
_avg?: SessionsAvgAggregateInputType;
|
|
153
|
+
_sum?: SessionsSumAggregateInputType;
|
|
154
|
+
_min?: SessionsMinAggregateInputType;
|
|
155
|
+
_max?: SessionsMaxAggregateInputType;
|
|
156
|
+
};
|
|
157
|
+
export type SessionsGroupByOutputType = {
|
|
158
|
+
id: string;
|
|
159
|
+
user_id: bigint | null;
|
|
160
|
+
ip_address: string | null;
|
|
161
|
+
user_agent: string | null;
|
|
162
|
+
payload: string;
|
|
163
|
+
last_activity: number;
|
|
164
|
+
_count: SessionsCountAggregateOutputType | null;
|
|
165
|
+
_avg: SessionsAvgAggregateOutputType | null;
|
|
166
|
+
_sum: SessionsSumAggregateOutputType | null;
|
|
167
|
+
_min: SessionsMinAggregateOutputType | null;
|
|
168
|
+
_max: SessionsMaxAggregateOutputType | null;
|
|
169
|
+
};
|
|
170
|
+
type GetSessionsGroupByPayload<T extends sessionsGroupByArgs> = Prisma.PrismaPromise<Array<Prisma.PickEnumerable<SessionsGroupByOutputType, T['by']> & {
|
|
171
|
+
[P in ((keyof T) & (keyof SessionsGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType<T[P], SessionsGroupByOutputType[P]> : Prisma.GetScalarType<T[P], SessionsGroupByOutputType[P]>;
|
|
172
|
+
}>>;
|
|
173
|
+
export type sessionsWhereInput = {
|
|
174
|
+
AND?: Prisma.sessionsWhereInput | Prisma.sessionsWhereInput[];
|
|
175
|
+
OR?: Prisma.sessionsWhereInput[];
|
|
176
|
+
NOT?: Prisma.sessionsWhereInput | Prisma.sessionsWhereInput[];
|
|
177
|
+
id?: Prisma.StringFilter<"sessions"> | string;
|
|
178
|
+
user_id?: Prisma.BigIntNullableFilter<"sessions"> | bigint | number | null;
|
|
179
|
+
ip_address?: Prisma.StringNullableFilter<"sessions"> | string | null;
|
|
180
|
+
user_agent?: Prisma.StringNullableFilter<"sessions"> | string | null;
|
|
181
|
+
payload?: Prisma.StringFilter<"sessions"> | string;
|
|
182
|
+
last_activity?: Prisma.IntFilter<"sessions"> | number;
|
|
183
|
+
};
|
|
184
|
+
export type sessionsOrderByWithRelationInput = {
|
|
185
|
+
id?: Prisma.SortOrder;
|
|
186
|
+
user_id?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
187
|
+
ip_address?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
188
|
+
user_agent?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
189
|
+
payload?: Prisma.SortOrder;
|
|
190
|
+
last_activity?: Prisma.SortOrder;
|
|
191
|
+
};
|
|
192
|
+
export type sessionsWhereUniqueInput = Prisma.AtLeast<{
|
|
193
|
+
id?: string;
|
|
194
|
+
AND?: Prisma.sessionsWhereInput | Prisma.sessionsWhereInput[];
|
|
195
|
+
OR?: Prisma.sessionsWhereInput[];
|
|
196
|
+
NOT?: Prisma.sessionsWhereInput | Prisma.sessionsWhereInput[];
|
|
197
|
+
user_id?: Prisma.BigIntNullableFilter<"sessions"> | bigint | number | null;
|
|
198
|
+
ip_address?: Prisma.StringNullableFilter<"sessions"> | string | null;
|
|
199
|
+
user_agent?: Prisma.StringNullableFilter<"sessions"> | string | null;
|
|
200
|
+
payload?: Prisma.StringFilter<"sessions"> | string;
|
|
201
|
+
last_activity?: Prisma.IntFilter<"sessions"> | number;
|
|
202
|
+
}, "id">;
|
|
203
|
+
export type sessionsOrderByWithAggregationInput = {
|
|
204
|
+
id?: Prisma.SortOrder;
|
|
205
|
+
user_id?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
206
|
+
ip_address?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
207
|
+
user_agent?: Prisma.SortOrderInput | Prisma.SortOrder;
|
|
208
|
+
payload?: Prisma.SortOrder;
|
|
209
|
+
last_activity?: Prisma.SortOrder;
|
|
210
|
+
_count?: Prisma.sessionsCountOrderByAggregateInput;
|
|
211
|
+
_avg?: Prisma.sessionsAvgOrderByAggregateInput;
|
|
212
|
+
_max?: Prisma.sessionsMaxOrderByAggregateInput;
|
|
213
|
+
_min?: Prisma.sessionsMinOrderByAggregateInput;
|
|
214
|
+
_sum?: Prisma.sessionsSumOrderByAggregateInput;
|
|
215
|
+
};
|
|
216
|
+
export type sessionsScalarWhereWithAggregatesInput = {
|
|
217
|
+
AND?: Prisma.sessionsScalarWhereWithAggregatesInput | Prisma.sessionsScalarWhereWithAggregatesInput[];
|
|
218
|
+
OR?: Prisma.sessionsScalarWhereWithAggregatesInput[];
|
|
219
|
+
NOT?: Prisma.sessionsScalarWhereWithAggregatesInput | Prisma.sessionsScalarWhereWithAggregatesInput[];
|
|
220
|
+
id?: Prisma.StringWithAggregatesFilter<"sessions"> | string;
|
|
221
|
+
user_id?: Prisma.BigIntNullableWithAggregatesFilter<"sessions"> | bigint | number | null;
|
|
222
|
+
ip_address?: Prisma.StringNullableWithAggregatesFilter<"sessions"> | string | null;
|
|
223
|
+
user_agent?: Prisma.StringNullableWithAggregatesFilter<"sessions"> | string | null;
|
|
224
|
+
payload?: Prisma.StringWithAggregatesFilter<"sessions"> | string;
|
|
225
|
+
last_activity?: Prisma.IntWithAggregatesFilter<"sessions"> | number;
|
|
226
|
+
};
|
|
227
|
+
export type sessionsCreateInput = {
|
|
228
|
+
id: string;
|
|
229
|
+
user_id?: bigint | number | null;
|
|
230
|
+
ip_address?: string | null;
|
|
231
|
+
user_agent?: string | null;
|
|
232
|
+
payload: string;
|
|
233
|
+
last_activity: number;
|
|
234
|
+
};
|
|
235
|
+
export type sessionsUncheckedCreateInput = {
|
|
236
|
+
id: string;
|
|
237
|
+
user_id?: bigint | number | null;
|
|
238
|
+
ip_address?: string | null;
|
|
239
|
+
user_agent?: string | null;
|
|
240
|
+
payload: string;
|
|
241
|
+
last_activity: number;
|
|
242
|
+
};
|
|
243
|
+
export type sessionsUpdateInput = {
|
|
244
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
245
|
+
user_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null;
|
|
246
|
+
ip_address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
247
|
+
user_agent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
248
|
+
payload?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
249
|
+
last_activity?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
250
|
+
};
|
|
251
|
+
export type sessionsUncheckedUpdateInput = {
|
|
252
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
253
|
+
user_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null;
|
|
254
|
+
ip_address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
255
|
+
user_agent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
256
|
+
payload?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
257
|
+
last_activity?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
258
|
+
};
|
|
259
|
+
export type sessionsCreateManyInput = {
|
|
260
|
+
id: string;
|
|
261
|
+
user_id?: bigint | number | null;
|
|
262
|
+
ip_address?: string | null;
|
|
263
|
+
user_agent?: string | null;
|
|
264
|
+
payload: string;
|
|
265
|
+
last_activity: number;
|
|
266
|
+
};
|
|
267
|
+
export type sessionsUpdateManyMutationInput = {
|
|
268
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
269
|
+
user_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null;
|
|
270
|
+
ip_address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
271
|
+
user_agent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
272
|
+
payload?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
273
|
+
last_activity?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
274
|
+
};
|
|
275
|
+
export type sessionsUncheckedUpdateManyInput = {
|
|
276
|
+
id?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
277
|
+
user_id?: Prisma.NullableBigIntFieldUpdateOperationsInput | bigint | number | null;
|
|
278
|
+
ip_address?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
279
|
+
user_agent?: Prisma.NullableStringFieldUpdateOperationsInput | string | null;
|
|
280
|
+
payload?: Prisma.StringFieldUpdateOperationsInput | string;
|
|
281
|
+
last_activity?: Prisma.IntFieldUpdateOperationsInput | number;
|
|
282
|
+
};
|
|
283
|
+
export type sessionsCountOrderByAggregateInput = {
|
|
284
|
+
id?: Prisma.SortOrder;
|
|
285
|
+
user_id?: Prisma.SortOrder;
|
|
286
|
+
ip_address?: Prisma.SortOrder;
|
|
287
|
+
user_agent?: Prisma.SortOrder;
|
|
288
|
+
payload?: Prisma.SortOrder;
|
|
289
|
+
last_activity?: Prisma.SortOrder;
|
|
290
|
+
};
|
|
291
|
+
export type sessionsAvgOrderByAggregateInput = {
|
|
292
|
+
user_id?: Prisma.SortOrder;
|
|
293
|
+
last_activity?: Prisma.SortOrder;
|
|
294
|
+
};
|
|
295
|
+
export type sessionsMaxOrderByAggregateInput = {
|
|
296
|
+
id?: Prisma.SortOrder;
|
|
297
|
+
user_id?: Prisma.SortOrder;
|
|
298
|
+
ip_address?: Prisma.SortOrder;
|
|
299
|
+
user_agent?: Prisma.SortOrder;
|
|
300
|
+
payload?: Prisma.SortOrder;
|
|
301
|
+
last_activity?: Prisma.SortOrder;
|
|
302
|
+
};
|
|
303
|
+
export type sessionsMinOrderByAggregateInput = {
|
|
304
|
+
id?: Prisma.SortOrder;
|
|
305
|
+
user_id?: Prisma.SortOrder;
|
|
306
|
+
ip_address?: Prisma.SortOrder;
|
|
307
|
+
user_agent?: Prisma.SortOrder;
|
|
308
|
+
payload?: Prisma.SortOrder;
|
|
309
|
+
last_activity?: Prisma.SortOrder;
|
|
310
|
+
};
|
|
311
|
+
export type sessionsSumOrderByAggregateInput = {
|
|
312
|
+
user_id?: Prisma.SortOrder;
|
|
313
|
+
last_activity?: Prisma.SortOrder;
|
|
314
|
+
};
|
|
315
|
+
export type NullableBigIntFieldUpdateOperationsInput = {
|
|
316
|
+
set?: bigint | number | null;
|
|
317
|
+
increment?: bigint | number;
|
|
318
|
+
decrement?: bigint | number;
|
|
319
|
+
multiply?: bigint | number;
|
|
320
|
+
divide?: bigint | number;
|
|
321
|
+
};
|
|
322
|
+
export type sessionsSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
323
|
+
id?: boolean;
|
|
324
|
+
user_id?: boolean;
|
|
325
|
+
ip_address?: boolean;
|
|
326
|
+
user_agent?: boolean;
|
|
327
|
+
payload?: boolean;
|
|
328
|
+
last_activity?: boolean;
|
|
329
|
+
}, ExtArgs["result"]["sessions"]>;
|
|
330
|
+
export type sessionsSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
331
|
+
id?: boolean;
|
|
332
|
+
user_id?: boolean;
|
|
333
|
+
ip_address?: boolean;
|
|
334
|
+
user_agent?: boolean;
|
|
335
|
+
payload?: boolean;
|
|
336
|
+
last_activity?: boolean;
|
|
337
|
+
}, ExtArgs["result"]["sessions"]>;
|
|
338
|
+
export type sessionsSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
339
|
+
id?: boolean;
|
|
340
|
+
user_id?: boolean;
|
|
341
|
+
ip_address?: boolean;
|
|
342
|
+
user_agent?: boolean;
|
|
343
|
+
payload?: boolean;
|
|
344
|
+
last_activity?: boolean;
|
|
345
|
+
}, ExtArgs["result"]["sessions"]>;
|
|
346
|
+
export type sessionsSelectScalar = {
|
|
347
|
+
id?: boolean;
|
|
348
|
+
user_id?: boolean;
|
|
349
|
+
ip_address?: boolean;
|
|
350
|
+
user_agent?: boolean;
|
|
351
|
+
payload?: boolean;
|
|
352
|
+
last_activity?: boolean;
|
|
353
|
+
};
|
|
354
|
+
export type sessionsOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "user_id" | "ip_address" | "user_agent" | "payload" | "last_activity", ExtArgs["result"]["sessions"]>;
|
|
355
|
+
export type $sessionsPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
356
|
+
name: "sessions";
|
|
357
|
+
objects: {};
|
|
358
|
+
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
359
|
+
id: string;
|
|
360
|
+
user_id: bigint | null;
|
|
361
|
+
ip_address: string | null;
|
|
362
|
+
user_agent: string | null;
|
|
363
|
+
payload: string;
|
|
364
|
+
last_activity: number;
|
|
365
|
+
}, ExtArgs["result"]["sessions"]>;
|
|
366
|
+
composites: {};
|
|
367
|
+
};
|
|
368
|
+
export type sessionsGetPayload<S extends boolean | null | undefined | sessionsDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$sessionsPayload, S>;
|
|
369
|
+
export type sessionsCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = Omit<sessionsFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
370
|
+
select?: SessionsCountAggregateInputType | true;
|
|
371
|
+
};
|
|
372
|
+
export interface sessionsDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
373
|
+
[K: symbol]: {
|
|
374
|
+
types: Prisma.TypeMap<ExtArgs>['model']['sessions'];
|
|
375
|
+
meta: {
|
|
376
|
+
name: 'sessions';
|
|
377
|
+
};
|
|
378
|
+
};
|
|
379
|
+
/**
|
|
380
|
+
* Find zero or one Sessions that matches the filter.
|
|
381
|
+
* @param {sessionsFindUniqueArgs} args - Arguments to find a Sessions
|
|
382
|
+
* @example
|
|
383
|
+
* // Get one Sessions
|
|
384
|
+
* const sessions = await prisma.sessions.findUnique({
|
|
385
|
+
* where: {
|
|
386
|
+
* // ... provide filter here
|
|
387
|
+
* }
|
|
388
|
+
* })
|
|
389
|
+
*/
|
|
390
|
+
findUnique<T extends sessionsFindUniqueArgs>(args: Prisma.SelectSubset<T, sessionsFindUniqueArgs<ExtArgs>>): Prisma.Prisma__sessionsClient<runtime.Types.Result.GetResult<Prisma.$sessionsPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
391
|
+
/**
|
|
392
|
+
* Find one Sessions that matches the filter or throw an error with `error.code='P2025'`
|
|
393
|
+
* if no matches were found.
|
|
394
|
+
* @param {sessionsFindUniqueOrThrowArgs} args - Arguments to find a Sessions
|
|
395
|
+
* @example
|
|
396
|
+
* // Get one Sessions
|
|
397
|
+
* const sessions = await prisma.sessions.findUniqueOrThrow({
|
|
398
|
+
* where: {
|
|
399
|
+
* // ... provide filter here
|
|
400
|
+
* }
|
|
401
|
+
* })
|
|
402
|
+
*/
|
|
403
|
+
findUniqueOrThrow<T extends sessionsFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, sessionsFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__sessionsClient<runtime.Types.Result.GetResult<Prisma.$sessionsPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
404
|
+
/**
|
|
405
|
+
* Find the first Sessions that matches the filter.
|
|
406
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
407
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
408
|
+
* @param {sessionsFindFirstArgs} args - Arguments to find a Sessions
|
|
409
|
+
* @example
|
|
410
|
+
* // Get one Sessions
|
|
411
|
+
* const sessions = await prisma.sessions.findFirst({
|
|
412
|
+
* where: {
|
|
413
|
+
* // ... provide filter here
|
|
414
|
+
* }
|
|
415
|
+
* })
|
|
416
|
+
*/
|
|
417
|
+
findFirst<T extends sessionsFindFirstArgs>(args?: Prisma.SelectSubset<T, sessionsFindFirstArgs<ExtArgs>>): Prisma.Prisma__sessionsClient<runtime.Types.Result.GetResult<Prisma.$sessionsPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>;
|
|
418
|
+
/**
|
|
419
|
+
* Find the first Sessions that matches the filter or
|
|
420
|
+
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
421
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
422
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
423
|
+
* @param {sessionsFindFirstOrThrowArgs} args - Arguments to find a Sessions
|
|
424
|
+
* @example
|
|
425
|
+
* // Get one Sessions
|
|
426
|
+
* const sessions = await prisma.sessions.findFirstOrThrow({
|
|
427
|
+
* where: {
|
|
428
|
+
* // ... provide filter here
|
|
429
|
+
* }
|
|
430
|
+
* })
|
|
431
|
+
*/
|
|
432
|
+
findFirstOrThrow<T extends sessionsFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, sessionsFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__sessionsClient<runtime.Types.Result.GetResult<Prisma.$sessionsPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
433
|
+
/**
|
|
434
|
+
* Find zero or more Sessions that matches the filter.
|
|
435
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
436
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
437
|
+
* @param {sessionsFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
438
|
+
* @example
|
|
439
|
+
* // Get all Sessions
|
|
440
|
+
* const sessions = await prisma.sessions.findMany()
|
|
441
|
+
*
|
|
442
|
+
* // Get first 10 Sessions
|
|
443
|
+
* const sessions = await prisma.sessions.findMany({ take: 10 })
|
|
444
|
+
*
|
|
445
|
+
* // Only select the `id`
|
|
446
|
+
* const sessionsWithIdOnly = await prisma.sessions.findMany({ select: { id: true } })
|
|
447
|
+
*
|
|
448
|
+
*/
|
|
449
|
+
findMany<T extends sessionsFindManyArgs>(args?: Prisma.SelectSubset<T, sessionsFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$sessionsPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>;
|
|
450
|
+
/**
|
|
451
|
+
* Create a Sessions.
|
|
452
|
+
* @param {sessionsCreateArgs} args - Arguments to create a Sessions.
|
|
453
|
+
* @example
|
|
454
|
+
* // Create one Sessions
|
|
455
|
+
* const Sessions = await prisma.sessions.create({
|
|
456
|
+
* data: {
|
|
457
|
+
* // ... data to create a Sessions
|
|
458
|
+
* }
|
|
459
|
+
* })
|
|
460
|
+
*
|
|
461
|
+
*/
|
|
462
|
+
create<T extends sessionsCreateArgs>(args: Prisma.SelectSubset<T, sessionsCreateArgs<ExtArgs>>): Prisma.Prisma__sessionsClient<runtime.Types.Result.GetResult<Prisma.$sessionsPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
463
|
+
/**
|
|
464
|
+
* Create many Sessions.
|
|
465
|
+
* @param {sessionsCreateManyArgs} args - Arguments to create many Sessions.
|
|
466
|
+
* @example
|
|
467
|
+
* // Create many Sessions
|
|
468
|
+
* const sessions = await prisma.sessions.createMany({
|
|
469
|
+
* data: [
|
|
470
|
+
* // ... provide data here
|
|
471
|
+
* ]
|
|
472
|
+
* })
|
|
473
|
+
*
|
|
474
|
+
*/
|
|
475
|
+
createMany<T extends sessionsCreateManyArgs>(args?: Prisma.SelectSubset<T, sessionsCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
476
|
+
/**
|
|
477
|
+
* Create many Sessions and returns the data saved in the database.
|
|
478
|
+
* @param {sessionsCreateManyAndReturnArgs} args - Arguments to create many Sessions.
|
|
479
|
+
* @example
|
|
480
|
+
* // Create many Sessions
|
|
481
|
+
* const sessions = await prisma.sessions.createManyAndReturn({
|
|
482
|
+
* data: [
|
|
483
|
+
* // ... provide data here
|
|
484
|
+
* ]
|
|
485
|
+
* })
|
|
486
|
+
*
|
|
487
|
+
* // Create many Sessions and only return the `id`
|
|
488
|
+
* const sessionsWithIdOnly = await prisma.sessions.createManyAndReturn({
|
|
489
|
+
* select: { id: true },
|
|
490
|
+
* data: [
|
|
491
|
+
* // ... provide data here
|
|
492
|
+
* ]
|
|
493
|
+
* })
|
|
494
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
495
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
496
|
+
*
|
|
497
|
+
*/
|
|
498
|
+
createManyAndReturn<T extends sessionsCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, sessionsCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$sessionsPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>;
|
|
499
|
+
/**
|
|
500
|
+
* Delete a Sessions.
|
|
501
|
+
* @param {sessionsDeleteArgs} args - Arguments to delete one Sessions.
|
|
502
|
+
* @example
|
|
503
|
+
* // Delete one Sessions
|
|
504
|
+
* const Sessions = await prisma.sessions.delete({
|
|
505
|
+
* where: {
|
|
506
|
+
* // ... filter to delete one Sessions
|
|
507
|
+
* }
|
|
508
|
+
* })
|
|
509
|
+
*
|
|
510
|
+
*/
|
|
511
|
+
delete<T extends sessionsDeleteArgs>(args: Prisma.SelectSubset<T, sessionsDeleteArgs<ExtArgs>>): Prisma.Prisma__sessionsClient<runtime.Types.Result.GetResult<Prisma.$sessionsPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
512
|
+
/**
|
|
513
|
+
* Update one Sessions.
|
|
514
|
+
* @param {sessionsUpdateArgs} args - Arguments to update one Sessions.
|
|
515
|
+
* @example
|
|
516
|
+
* // Update one Sessions
|
|
517
|
+
* const sessions = await prisma.sessions.update({
|
|
518
|
+
* where: {
|
|
519
|
+
* // ... provide filter here
|
|
520
|
+
* },
|
|
521
|
+
* data: {
|
|
522
|
+
* // ... provide data here
|
|
523
|
+
* }
|
|
524
|
+
* })
|
|
525
|
+
*
|
|
526
|
+
*/
|
|
527
|
+
update<T extends sessionsUpdateArgs>(args: Prisma.SelectSubset<T, sessionsUpdateArgs<ExtArgs>>): Prisma.Prisma__sessionsClient<runtime.Types.Result.GetResult<Prisma.$sessionsPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
528
|
+
/**
|
|
529
|
+
* Delete zero or more Sessions.
|
|
530
|
+
* @param {sessionsDeleteManyArgs} args - Arguments to filter Sessions to delete.
|
|
531
|
+
* @example
|
|
532
|
+
* // Delete a few Sessions
|
|
533
|
+
* const { count } = await prisma.sessions.deleteMany({
|
|
534
|
+
* where: {
|
|
535
|
+
* // ... provide filter here
|
|
536
|
+
* }
|
|
537
|
+
* })
|
|
538
|
+
*
|
|
539
|
+
*/
|
|
540
|
+
deleteMany<T extends sessionsDeleteManyArgs>(args?: Prisma.SelectSubset<T, sessionsDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
541
|
+
/**
|
|
542
|
+
* Update zero or more Sessions.
|
|
543
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
544
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
545
|
+
* @param {sessionsUpdateManyArgs} args - Arguments to update one or more rows.
|
|
546
|
+
* @example
|
|
547
|
+
* // Update many Sessions
|
|
548
|
+
* const sessions = await prisma.sessions.updateMany({
|
|
549
|
+
* where: {
|
|
550
|
+
* // ... provide filter here
|
|
551
|
+
* },
|
|
552
|
+
* data: {
|
|
553
|
+
* // ... provide data here
|
|
554
|
+
* }
|
|
555
|
+
* })
|
|
556
|
+
*
|
|
557
|
+
*/
|
|
558
|
+
updateMany<T extends sessionsUpdateManyArgs>(args: Prisma.SelectSubset<T, sessionsUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>;
|
|
559
|
+
/**
|
|
560
|
+
* Update zero or more Sessions and returns the data updated in the database.
|
|
561
|
+
* @param {sessionsUpdateManyAndReturnArgs} args - Arguments to update many Sessions.
|
|
562
|
+
* @example
|
|
563
|
+
* // Update many Sessions
|
|
564
|
+
* const sessions = await prisma.sessions.updateManyAndReturn({
|
|
565
|
+
* where: {
|
|
566
|
+
* // ... provide filter here
|
|
567
|
+
* },
|
|
568
|
+
* data: [
|
|
569
|
+
* // ... provide data here
|
|
570
|
+
* ]
|
|
571
|
+
* })
|
|
572
|
+
*
|
|
573
|
+
* // Update zero or more Sessions and only return the `id`
|
|
574
|
+
* const sessionsWithIdOnly = await prisma.sessions.updateManyAndReturn({
|
|
575
|
+
* select: { id: true },
|
|
576
|
+
* where: {
|
|
577
|
+
* // ... provide filter here
|
|
578
|
+
* },
|
|
579
|
+
* data: [
|
|
580
|
+
* // ... provide data here
|
|
581
|
+
* ]
|
|
582
|
+
* })
|
|
583
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
584
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
585
|
+
*
|
|
586
|
+
*/
|
|
587
|
+
updateManyAndReturn<T extends sessionsUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, sessionsUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$sessionsPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>;
|
|
588
|
+
/**
|
|
589
|
+
* Create or update one Sessions.
|
|
590
|
+
* @param {sessionsUpsertArgs} args - Arguments to update or create a Sessions.
|
|
591
|
+
* @example
|
|
592
|
+
* // Update or create a Sessions
|
|
593
|
+
* const sessions = await prisma.sessions.upsert({
|
|
594
|
+
* create: {
|
|
595
|
+
* // ... data to create a Sessions
|
|
596
|
+
* },
|
|
597
|
+
* update: {
|
|
598
|
+
* // ... in case it already exists, update
|
|
599
|
+
* },
|
|
600
|
+
* where: {
|
|
601
|
+
* // ... the filter for the Sessions we want to update
|
|
602
|
+
* }
|
|
603
|
+
* })
|
|
604
|
+
*/
|
|
605
|
+
upsert<T extends sessionsUpsertArgs>(args: Prisma.SelectSubset<T, sessionsUpsertArgs<ExtArgs>>): Prisma.Prisma__sessionsClient<runtime.Types.Result.GetResult<Prisma.$sessionsPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>;
|
|
606
|
+
/**
|
|
607
|
+
* Count the number of Sessions.
|
|
608
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
609
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
610
|
+
* @param {sessionsCountArgs} args - Arguments to filter Sessions to count.
|
|
611
|
+
* @example
|
|
612
|
+
* // Count the number of Sessions
|
|
613
|
+
* const count = await prisma.sessions.count({
|
|
614
|
+
* where: {
|
|
615
|
+
* // ... the filter for the Sessions we want to count
|
|
616
|
+
* }
|
|
617
|
+
* })
|
|
618
|
+
**/
|
|
619
|
+
count<T extends sessionsCountArgs>(args?: Prisma.Subset<T, sessionsCountArgs>): Prisma.PrismaPromise<T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType<T['select'], SessionsCountAggregateOutputType> : number>;
|
|
620
|
+
/**
|
|
621
|
+
* Allows you to perform aggregations operations on a Sessions.
|
|
622
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
623
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
624
|
+
* @param {SessionsAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
625
|
+
* @example
|
|
626
|
+
* // Ordered by age ascending
|
|
627
|
+
* // Where email contains prisma.io
|
|
628
|
+
* // Limited to the 10 users
|
|
629
|
+
* const aggregations = await prisma.user.aggregate({
|
|
630
|
+
* _avg: {
|
|
631
|
+
* age: true,
|
|
632
|
+
* },
|
|
633
|
+
* where: {
|
|
634
|
+
* email: {
|
|
635
|
+
* contains: "prisma.io",
|
|
636
|
+
* },
|
|
637
|
+
* },
|
|
638
|
+
* orderBy: {
|
|
639
|
+
* age: "asc",
|
|
640
|
+
* },
|
|
641
|
+
* take: 10,
|
|
642
|
+
* })
|
|
643
|
+
**/
|
|
644
|
+
aggregate<T extends SessionsAggregateArgs>(args: Prisma.Subset<T, SessionsAggregateArgs>): Prisma.PrismaPromise<GetSessionsAggregateType<T>>;
|
|
645
|
+
/**
|
|
646
|
+
* Group by Sessions.
|
|
647
|
+
* Note, that providing `undefined` is treated as the value not being there.
|
|
648
|
+
* Read more here: https://pris.ly/d/null-undefined
|
|
649
|
+
* @param {sessionsGroupByArgs} args - Group by arguments.
|
|
650
|
+
* @example
|
|
651
|
+
* // Group by city, order by createdAt, get count
|
|
652
|
+
* const result = await prisma.user.groupBy({
|
|
653
|
+
* by: ['city', 'createdAt'],
|
|
654
|
+
* orderBy: {
|
|
655
|
+
* createdAt: true
|
|
656
|
+
* },
|
|
657
|
+
* _count: {
|
|
658
|
+
* _all: true
|
|
659
|
+
* },
|
|
660
|
+
* })
|
|
661
|
+
*
|
|
662
|
+
**/
|
|
663
|
+
groupBy<T extends sessionsGroupByArgs, HasSelectOrTake extends Prisma.Or<Prisma.Extends<'skip', Prisma.Keys<T>>, Prisma.Extends<'take', Prisma.Keys<T>>>, OrderByArg extends Prisma.True extends HasSelectOrTake ? {
|
|
664
|
+
orderBy: sessionsGroupByArgs['orderBy'];
|
|
665
|
+
} : {
|
|
666
|
+
orderBy?: sessionsGroupByArgs['orderBy'];
|
|
667
|
+
}, OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>, ByFields extends Prisma.MaybeTupleToUnion<T['by']>, ByValid extends Prisma.Has<ByFields, OrderFields>, HavingFields extends Prisma.GetHavingFields<T['having']>, HavingValid extends Prisma.Has<ByFields, HavingFields>, ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, InputErrors extends ByEmpty extends Prisma.True ? `Error: "by" must not be empty.` : HavingValid extends Prisma.False ? {
|
|
668
|
+
[P in HavingFields]: P extends ByFields ? never : P extends string ? `Error: Field "${P}" used in "having" needs to be provided in "by".` : [
|
|
669
|
+
Error,
|
|
670
|
+
'Field ',
|
|
671
|
+
P,
|
|
672
|
+
` in "having" needs to be provided in "by"`
|
|
673
|
+
];
|
|
674
|
+
}[HavingFields] : 'take' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
|
|
675
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
676
|
+
}[OrderFields] : 'Error: If you provide "take", you also need to provide "orderBy"' : 'skip' extends Prisma.Keys<T> ? 'orderBy' extends Prisma.Keys<T> ? ByValid extends Prisma.True ? {} : {
|
|
677
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
678
|
+
}[OrderFields] : 'Error: If you provide "skip", you also need to provide "orderBy"' : ByValid extends Prisma.True ? {} : {
|
|
679
|
+
[P in OrderFields]: P extends ByFields ? never : `Error: Field "${P}" in "orderBy" needs to be provided in "by"`;
|
|
680
|
+
}[OrderFields]>(args: Prisma.SubsetIntersection<T, sessionsGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetSessionsGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>;
|
|
681
|
+
/**
|
|
682
|
+
* Fields of the sessions model
|
|
683
|
+
*/
|
|
684
|
+
readonly fields: sessionsFieldRefs;
|
|
685
|
+
}
|
|
686
|
+
/**
|
|
687
|
+
* The delegate class that acts as a "Promise-like" for sessions.
|
|
688
|
+
* Why is this prefixed with `Prisma__`?
|
|
689
|
+
* Because we want to prevent naming conflicts as mentioned in
|
|
690
|
+
* https://github.com/prisma/prisma-client-js/issues/707
|
|
691
|
+
*/
|
|
692
|
+
export interface Prisma__sessionsClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
693
|
+
readonly [Symbol.toStringTag]: "PrismaPromise";
|
|
694
|
+
/**
|
|
695
|
+
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
696
|
+
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
697
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
698
|
+
* @returns A Promise for the completion of which ever callback is executed.
|
|
699
|
+
*/
|
|
700
|
+
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>;
|
|
701
|
+
/**
|
|
702
|
+
* Attaches a callback for only the rejection of the Promise.
|
|
703
|
+
* @param onrejected The callback to execute when the Promise is rejected.
|
|
704
|
+
* @returns A Promise for the completion of the callback.
|
|
705
|
+
*/
|
|
706
|
+
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>;
|
|
707
|
+
/**
|
|
708
|
+
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
709
|
+
* resolved value cannot be modified from the callback.
|
|
710
|
+
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
711
|
+
* @returns A Promise for the completion of the callback.
|
|
712
|
+
*/
|
|
713
|
+
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>;
|
|
714
|
+
}
|
|
715
|
+
/**
|
|
716
|
+
* Fields of the sessions model
|
|
717
|
+
*/
|
|
718
|
+
export interface sessionsFieldRefs {
|
|
719
|
+
readonly id: Prisma.FieldRef<"sessions", 'String'>;
|
|
720
|
+
readonly user_id: Prisma.FieldRef<"sessions", 'BigInt'>;
|
|
721
|
+
readonly ip_address: Prisma.FieldRef<"sessions", 'String'>;
|
|
722
|
+
readonly user_agent: Prisma.FieldRef<"sessions", 'String'>;
|
|
723
|
+
readonly payload: Prisma.FieldRef<"sessions", 'String'>;
|
|
724
|
+
readonly last_activity: Prisma.FieldRef<"sessions", 'Int'>;
|
|
725
|
+
}
|
|
726
|
+
/**
|
|
727
|
+
* sessions findUnique
|
|
728
|
+
*/
|
|
729
|
+
export type sessionsFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
730
|
+
/**
|
|
731
|
+
* Select specific fields to fetch from the sessions
|
|
732
|
+
*/
|
|
733
|
+
select?: Prisma.sessionsSelect<ExtArgs> | null;
|
|
734
|
+
/**
|
|
735
|
+
* Omit specific fields from the sessions
|
|
736
|
+
*/
|
|
737
|
+
omit?: Prisma.sessionsOmit<ExtArgs> | null;
|
|
738
|
+
/**
|
|
739
|
+
* Filter, which sessions to fetch.
|
|
740
|
+
*/
|
|
741
|
+
where: Prisma.sessionsWhereUniqueInput;
|
|
742
|
+
};
|
|
743
|
+
/**
|
|
744
|
+
* sessions findUniqueOrThrow
|
|
745
|
+
*/
|
|
746
|
+
export type sessionsFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
747
|
+
/**
|
|
748
|
+
* Select specific fields to fetch from the sessions
|
|
749
|
+
*/
|
|
750
|
+
select?: Prisma.sessionsSelect<ExtArgs> | null;
|
|
751
|
+
/**
|
|
752
|
+
* Omit specific fields from the sessions
|
|
753
|
+
*/
|
|
754
|
+
omit?: Prisma.sessionsOmit<ExtArgs> | null;
|
|
755
|
+
/**
|
|
756
|
+
* Filter, which sessions to fetch.
|
|
757
|
+
*/
|
|
758
|
+
where: Prisma.sessionsWhereUniqueInput;
|
|
759
|
+
};
|
|
760
|
+
/**
|
|
761
|
+
* sessions findFirst
|
|
762
|
+
*/
|
|
763
|
+
export type sessionsFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
764
|
+
/**
|
|
765
|
+
* Select specific fields to fetch from the sessions
|
|
766
|
+
*/
|
|
767
|
+
select?: Prisma.sessionsSelect<ExtArgs> | null;
|
|
768
|
+
/**
|
|
769
|
+
* Omit specific fields from the sessions
|
|
770
|
+
*/
|
|
771
|
+
omit?: Prisma.sessionsOmit<ExtArgs> | null;
|
|
772
|
+
/**
|
|
773
|
+
* Filter, which sessions to fetch.
|
|
774
|
+
*/
|
|
775
|
+
where?: Prisma.sessionsWhereInput;
|
|
776
|
+
/**
|
|
777
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
778
|
+
*
|
|
779
|
+
* Determine the order of sessions to fetch.
|
|
780
|
+
*/
|
|
781
|
+
orderBy?: Prisma.sessionsOrderByWithRelationInput | Prisma.sessionsOrderByWithRelationInput[];
|
|
782
|
+
/**
|
|
783
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
784
|
+
*
|
|
785
|
+
* Sets the position for searching for sessions.
|
|
786
|
+
*/
|
|
787
|
+
cursor?: Prisma.sessionsWhereUniqueInput;
|
|
788
|
+
/**
|
|
789
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
790
|
+
*
|
|
791
|
+
* Take `±n` sessions from the position of the cursor.
|
|
792
|
+
*/
|
|
793
|
+
take?: number;
|
|
794
|
+
/**
|
|
795
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
796
|
+
*
|
|
797
|
+
* Skip the first `n` sessions.
|
|
798
|
+
*/
|
|
799
|
+
skip?: number;
|
|
800
|
+
/**
|
|
801
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
802
|
+
*
|
|
803
|
+
* Filter by unique combinations of sessions.
|
|
804
|
+
*/
|
|
805
|
+
distinct?: Prisma.SessionsScalarFieldEnum | Prisma.SessionsScalarFieldEnum[];
|
|
806
|
+
};
|
|
807
|
+
/**
|
|
808
|
+
* sessions findFirstOrThrow
|
|
809
|
+
*/
|
|
810
|
+
export type sessionsFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
811
|
+
/**
|
|
812
|
+
* Select specific fields to fetch from the sessions
|
|
813
|
+
*/
|
|
814
|
+
select?: Prisma.sessionsSelect<ExtArgs> | null;
|
|
815
|
+
/**
|
|
816
|
+
* Omit specific fields from the sessions
|
|
817
|
+
*/
|
|
818
|
+
omit?: Prisma.sessionsOmit<ExtArgs> | null;
|
|
819
|
+
/**
|
|
820
|
+
* Filter, which sessions to fetch.
|
|
821
|
+
*/
|
|
822
|
+
where?: Prisma.sessionsWhereInput;
|
|
823
|
+
/**
|
|
824
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
825
|
+
*
|
|
826
|
+
* Determine the order of sessions to fetch.
|
|
827
|
+
*/
|
|
828
|
+
orderBy?: Prisma.sessionsOrderByWithRelationInput | Prisma.sessionsOrderByWithRelationInput[];
|
|
829
|
+
/**
|
|
830
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
831
|
+
*
|
|
832
|
+
* Sets the position for searching for sessions.
|
|
833
|
+
*/
|
|
834
|
+
cursor?: Prisma.sessionsWhereUniqueInput;
|
|
835
|
+
/**
|
|
836
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
837
|
+
*
|
|
838
|
+
* Take `±n` sessions from the position of the cursor.
|
|
839
|
+
*/
|
|
840
|
+
take?: number;
|
|
841
|
+
/**
|
|
842
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
843
|
+
*
|
|
844
|
+
* Skip the first `n` sessions.
|
|
845
|
+
*/
|
|
846
|
+
skip?: number;
|
|
847
|
+
/**
|
|
848
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
849
|
+
*
|
|
850
|
+
* Filter by unique combinations of sessions.
|
|
851
|
+
*/
|
|
852
|
+
distinct?: Prisma.SessionsScalarFieldEnum | Prisma.SessionsScalarFieldEnum[];
|
|
853
|
+
};
|
|
854
|
+
/**
|
|
855
|
+
* sessions findMany
|
|
856
|
+
*/
|
|
857
|
+
export type sessionsFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
858
|
+
/**
|
|
859
|
+
* Select specific fields to fetch from the sessions
|
|
860
|
+
*/
|
|
861
|
+
select?: Prisma.sessionsSelect<ExtArgs> | null;
|
|
862
|
+
/**
|
|
863
|
+
* Omit specific fields from the sessions
|
|
864
|
+
*/
|
|
865
|
+
omit?: Prisma.sessionsOmit<ExtArgs> | null;
|
|
866
|
+
/**
|
|
867
|
+
* Filter, which sessions to fetch.
|
|
868
|
+
*/
|
|
869
|
+
where?: Prisma.sessionsWhereInput;
|
|
870
|
+
/**
|
|
871
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
872
|
+
*
|
|
873
|
+
* Determine the order of sessions to fetch.
|
|
874
|
+
*/
|
|
875
|
+
orderBy?: Prisma.sessionsOrderByWithRelationInput | Prisma.sessionsOrderByWithRelationInput[];
|
|
876
|
+
/**
|
|
877
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
878
|
+
*
|
|
879
|
+
* Sets the position for listing sessions.
|
|
880
|
+
*/
|
|
881
|
+
cursor?: Prisma.sessionsWhereUniqueInput;
|
|
882
|
+
/**
|
|
883
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
884
|
+
*
|
|
885
|
+
* Take `±n` sessions from the position of the cursor.
|
|
886
|
+
*/
|
|
887
|
+
take?: number;
|
|
888
|
+
/**
|
|
889
|
+
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
890
|
+
*
|
|
891
|
+
* Skip the first `n` sessions.
|
|
892
|
+
*/
|
|
893
|
+
skip?: number;
|
|
894
|
+
distinct?: Prisma.SessionsScalarFieldEnum | Prisma.SessionsScalarFieldEnum[];
|
|
895
|
+
};
|
|
896
|
+
/**
|
|
897
|
+
* sessions create
|
|
898
|
+
*/
|
|
899
|
+
export type sessionsCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
900
|
+
/**
|
|
901
|
+
* Select specific fields to fetch from the sessions
|
|
902
|
+
*/
|
|
903
|
+
select?: Prisma.sessionsSelect<ExtArgs> | null;
|
|
904
|
+
/**
|
|
905
|
+
* Omit specific fields from the sessions
|
|
906
|
+
*/
|
|
907
|
+
omit?: Prisma.sessionsOmit<ExtArgs> | null;
|
|
908
|
+
/**
|
|
909
|
+
* The data needed to create a sessions.
|
|
910
|
+
*/
|
|
911
|
+
data: Prisma.XOR<Prisma.sessionsCreateInput, Prisma.sessionsUncheckedCreateInput>;
|
|
912
|
+
};
|
|
913
|
+
/**
|
|
914
|
+
* sessions createMany
|
|
915
|
+
*/
|
|
916
|
+
export type sessionsCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
917
|
+
/**
|
|
918
|
+
* The data used to create many sessions.
|
|
919
|
+
*/
|
|
920
|
+
data: Prisma.sessionsCreateManyInput | Prisma.sessionsCreateManyInput[];
|
|
921
|
+
skipDuplicates?: boolean;
|
|
922
|
+
};
|
|
923
|
+
/**
|
|
924
|
+
* sessions createManyAndReturn
|
|
925
|
+
*/
|
|
926
|
+
export type sessionsCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
927
|
+
/**
|
|
928
|
+
* Select specific fields to fetch from the sessions
|
|
929
|
+
*/
|
|
930
|
+
select?: Prisma.sessionsSelectCreateManyAndReturn<ExtArgs> | null;
|
|
931
|
+
/**
|
|
932
|
+
* Omit specific fields from the sessions
|
|
933
|
+
*/
|
|
934
|
+
omit?: Prisma.sessionsOmit<ExtArgs> | null;
|
|
935
|
+
/**
|
|
936
|
+
* The data used to create many sessions.
|
|
937
|
+
*/
|
|
938
|
+
data: Prisma.sessionsCreateManyInput | Prisma.sessionsCreateManyInput[];
|
|
939
|
+
skipDuplicates?: boolean;
|
|
940
|
+
};
|
|
941
|
+
/**
|
|
942
|
+
* sessions update
|
|
943
|
+
*/
|
|
944
|
+
export type sessionsUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
945
|
+
/**
|
|
946
|
+
* Select specific fields to fetch from the sessions
|
|
947
|
+
*/
|
|
948
|
+
select?: Prisma.sessionsSelect<ExtArgs> | null;
|
|
949
|
+
/**
|
|
950
|
+
* Omit specific fields from the sessions
|
|
951
|
+
*/
|
|
952
|
+
omit?: Prisma.sessionsOmit<ExtArgs> | null;
|
|
953
|
+
/**
|
|
954
|
+
* The data needed to update a sessions.
|
|
955
|
+
*/
|
|
956
|
+
data: Prisma.XOR<Prisma.sessionsUpdateInput, Prisma.sessionsUncheckedUpdateInput>;
|
|
957
|
+
/**
|
|
958
|
+
* Choose, which sessions to update.
|
|
959
|
+
*/
|
|
960
|
+
where: Prisma.sessionsWhereUniqueInput;
|
|
961
|
+
};
|
|
962
|
+
/**
|
|
963
|
+
* sessions updateMany
|
|
964
|
+
*/
|
|
965
|
+
export type sessionsUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
966
|
+
/**
|
|
967
|
+
* The data used to update sessions.
|
|
968
|
+
*/
|
|
969
|
+
data: Prisma.XOR<Prisma.sessionsUpdateManyMutationInput, Prisma.sessionsUncheckedUpdateManyInput>;
|
|
970
|
+
/**
|
|
971
|
+
* Filter which sessions to update
|
|
972
|
+
*/
|
|
973
|
+
where?: Prisma.sessionsWhereInput;
|
|
974
|
+
/**
|
|
975
|
+
* Limit how many sessions to update.
|
|
976
|
+
*/
|
|
977
|
+
limit?: number;
|
|
978
|
+
};
|
|
979
|
+
/**
|
|
980
|
+
* sessions updateManyAndReturn
|
|
981
|
+
*/
|
|
982
|
+
export type sessionsUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
983
|
+
/**
|
|
984
|
+
* Select specific fields to fetch from the sessions
|
|
985
|
+
*/
|
|
986
|
+
select?: Prisma.sessionsSelectUpdateManyAndReturn<ExtArgs> | null;
|
|
987
|
+
/**
|
|
988
|
+
* Omit specific fields from the sessions
|
|
989
|
+
*/
|
|
990
|
+
omit?: Prisma.sessionsOmit<ExtArgs> | null;
|
|
991
|
+
/**
|
|
992
|
+
* The data used to update sessions.
|
|
993
|
+
*/
|
|
994
|
+
data: Prisma.XOR<Prisma.sessionsUpdateManyMutationInput, Prisma.sessionsUncheckedUpdateManyInput>;
|
|
995
|
+
/**
|
|
996
|
+
* Filter which sessions to update
|
|
997
|
+
*/
|
|
998
|
+
where?: Prisma.sessionsWhereInput;
|
|
999
|
+
/**
|
|
1000
|
+
* Limit how many sessions to update.
|
|
1001
|
+
*/
|
|
1002
|
+
limit?: number;
|
|
1003
|
+
};
|
|
1004
|
+
/**
|
|
1005
|
+
* sessions upsert
|
|
1006
|
+
*/
|
|
1007
|
+
export type sessionsUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1008
|
+
/**
|
|
1009
|
+
* Select specific fields to fetch from the sessions
|
|
1010
|
+
*/
|
|
1011
|
+
select?: Prisma.sessionsSelect<ExtArgs> | null;
|
|
1012
|
+
/**
|
|
1013
|
+
* Omit specific fields from the sessions
|
|
1014
|
+
*/
|
|
1015
|
+
omit?: Prisma.sessionsOmit<ExtArgs> | null;
|
|
1016
|
+
/**
|
|
1017
|
+
* The filter to search for the sessions to update in case it exists.
|
|
1018
|
+
*/
|
|
1019
|
+
where: Prisma.sessionsWhereUniqueInput;
|
|
1020
|
+
/**
|
|
1021
|
+
* In case the sessions found by the `where` argument doesn't exist, create a new sessions with this data.
|
|
1022
|
+
*/
|
|
1023
|
+
create: Prisma.XOR<Prisma.sessionsCreateInput, Prisma.sessionsUncheckedCreateInput>;
|
|
1024
|
+
/**
|
|
1025
|
+
* In case the sessions was found with the provided `where` argument, update it with this data.
|
|
1026
|
+
*/
|
|
1027
|
+
update: Prisma.XOR<Prisma.sessionsUpdateInput, Prisma.sessionsUncheckedUpdateInput>;
|
|
1028
|
+
};
|
|
1029
|
+
/**
|
|
1030
|
+
* sessions delete
|
|
1031
|
+
*/
|
|
1032
|
+
export type sessionsDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1033
|
+
/**
|
|
1034
|
+
* Select specific fields to fetch from the sessions
|
|
1035
|
+
*/
|
|
1036
|
+
select?: Prisma.sessionsSelect<ExtArgs> | null;
|
|
1037
|
+
/**
|
|
1038
|
+
* Omit specific fields from the sessions
|
|
1039
|
+
*/
|
|
1040
|
+
omit?: Prisma.sessionsOmit<ExtArgs> | null;
|
|
1041
|
+
/**
|
|
1042
|
+
* Filter which sessions to delete.
|
|
1043
|
+
*/
|
|
1044
|
+
where: Prisma.sessionsWhereUniqueInput;
|
|
1045
|
+
};
|
|
1046
|
+
/**
|
|
1047
|
+
* sessions deleteMany
|
|
1048
|
+
*/
|
|
1049
|
+
export type sessionsDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1050
|
+
/**
|
|
1051
|
+
* Filter which sessions to delete
|
|
1052
|
+
*/
|
|
1053
|
+
where?: Prisma.sessionsWhereInput;
|
|
1054
|
+
/**
|
|
1055
|
+
* Limit how many sessions to delete.
|
|
1056
|
+
*/
|
|
1057
|
+
limit?: number;
|
|
1058
|
+
};
|
|
1059
|
+
/**
|
|
1060
|
+
* sessions without action
|
|
1061
|
+
*/
|
|
1062
|
+
export type sessionsDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
1063
|
+
/**
|
|
1064
|
+
* Select specific fields to fetch from the sessions
|
|
1065
|
+
*/
|
|
1066
|
+
select?: Prisma.sessionsSelect<ExtArgs> | null;
|
|
1067
|
+
/**
|
|
1068
|
+
* Omit specific fields from the sessions
|
|
1069
|
+
*/
|
|
1070
|
+
omit?: Prisma.sessionsOmit<ExtArgs> | null;
|
|
1071
|
+
};
|
|
1072
|
+
export {};
|
|
1073
|
+
//# sourceMappingURL=sessions.d.ts.map
|