@amaster.ai/dsh-storage 0.1.0
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/LICENSE +21 -0
- package/README.md +66 -0
- package/cordis.patch.yml +3 -0
- package/lib/backends/database.js +198 -0
- package/lib/generated/mysql/browser.js +17 -0
- package/lib/generated/mysql/client.js +34 -0
- package/lib/generated/mysql/commonInputTypes.js +10 -0
- package/lib/generated/mysql/enums.js +10 -0
- package/lib/generated/mysql/internal/class.js +49 -0
- package/lib/generated/mysql/internal/prismaNamespace.js +146 -0
- package/lib/generated/mysql/internal/prismaNamespaceBrowser.js +117 -0
- package/lib/generated/mysql/models/AiChatHistory.js +1 -0
- package/lib/generated/mysql/models/AiMessage.js +1 -0
- package/lib/generated/mysql/models.js +1 -0
- package/lib/generated/postgresql/browser.js +17 -0
- package/lib/generated/postgresql/client.js +34 -0
- package/lib/generated/postgresql/commonInputTypes.js +10 -0
- package/lib/generated/postgresql/enums.js +10 -0
- package/lib/generated/postgresql/internal/class.js +49 -0
- package/lib/generated/postgresql/internal/prismaNamespace.js +131 -0
- package/lib/generated/postgresql/internal/prismaNamespaceBrowser.js +102 -0
- package/lib/generated/postgresql/models/AiChatHistory.js +1 -0
- package/lib/generated/postgresql/models/AiMessage.js +1 -0
- package/lib/generated/postgresql/models.js +1 -0
- package/lib/generated/sqlite/browser.js +17 -0
- package/lib/generated/sqlite/client.js +34 -0
- package/lib/generated/sqlite/commonInputTypes.js +10 -0
- package/lib/generated/sqlite/enums.js +10 -0
- package/lib/generated/sqlite/internal/class.js +49 -0
- package/lib/generated/sqlite/internal/prismaNamespace.js +128 -0
- package/lib/generated/sqlite/internal/prismaNamespaceBrowser.js +99 -0
- package/lib/generated/sqlite/models/AiChatHistory.js +1 -0
- package/lib/generated/sqlite/models/AiMessage.js +1 -0
- package/lib/generated/sqlite/models.js +1 -0
- package/lib/generated/sqlserver/browser.js +17 -0
- package/lib/generated/sqlserver/client.js +34 -0
- package/lib/generated/sqlserver/commonInputTypes.js +10 -0
- package/lib/generated/sqlserver/enums.js +10 -0
- package/lib/generated/sqlserver/internal/class.js +49 -0
- package/lib/generated/sqlserver/internal/prismaNamespace.js +119 -0
- package/lib/generated/sqlserver/internal/prismaNamespaceBrowser.js +90 -0
- package/lib/generated/sqlserver/models/AiChatHistory.js +1 -0
- package/lib/generated/sqlserver/models/AiMessage.js +1 -0
- package/lib/generated/sqlserver/models.js +1 -0
- package/lib/index.js +224 -0
- package/lib/projector.js +153 -0
- package/lib/types/backends/database.d.ts +37 -0
- package/lib/types/generated/mysql/browser.d.ts +15 -0
- package/lib/types/generated/mysql/client.d.ts +34 -0
- package/lib/types/generated/mysql/commonInputTypes.d.ts +396 -0
- package/lib/types/generated/mysql/enums.d.ts +1 -0
- package/lib/types/generated/mysql/internal/class.d.ts +143 -0
- package/lib/types/generated/mysql/internal/prismaNamespace.d.ts +709 -0
- package/lib/types/generated/mysql/internal/prismaNamespaceBrowser.d.ts +112 -0
- package/lib/types/generated/mysql/models/AiChatHistory.d.ts +1258 -0
- package/lib/types/generated/mysql/models/AiMessage.d.ts +1360 -0
- package/lib/types/generated/mysql/models.d.ts +3 -0
- package/lib/types/generated/postgresql/browser.d.ts +15 -0
- package/lib/types/generated/postgresql/client.d.ts +34 -0
- package/lib/types/generated/postgresql/commonInputTypes.d.ts +392 -0
- package/lib/types/generated/postgresql/enums.d.ts +1 -0
- package/lib/types/generated/postgresql/internal/class.d.ts +143 -0
- package/lib/types/generated/postgresql/internal/prismaNamespace.d.ts +728 -0
- package/lib/types/generated/postgresql/internal/prismaNamespaceBrowser.d.ts +95 -0
- package/lib/types/generated/postgresql/models/AiChatHistory.d.ts +1373 -0
- package/lib/types/generated/postgresql/models/AiMessage.d.ts +1497 -0
- package/lib/types/generated/postgresql/models.d.ts +3 -0
- package/lib/types/generated/sqlite/browser.d.ts +15 -0
- package/lib/types/generated/sqlite/client.d.ts +34 -0
- package/lib/types/generated/sqlite/commonInputTypes.d.ts +373 -0
- package/lib/types/generated/sqlite/enums.d.ts +1 -0
- package/lib/types/generated/sqlite/internal/class.d.ts +143 -0
- package/lib/types/generated/sqlite/internal/prismaNamespace.d.ts +705 -0
- package/lib/types/generated/sqlite/internal/prismaNamespaceBrowser.d.ts +92 -0
- package/lib/types/generated/sqlite/models/AiChatHistory.d.ts +1371 -0
- package/lib/types/generated/sqlite/models/AiMessage.d.ts +1494 -0
- package/lib/types/generated/sqlite/models.d.ts +3 -0
- package/lib/types/generated/sqlserver/browser.d.ts +15 -0
- package/lib/types/generated/sqlserver/client.d.ts +34 -0
- package/lib/types/generated/sqlserver/commonInputTypes.d.ts +333 -0
- package/lib/types/generated/sqlserver/enums.d.ts +1 -0
- package/lib/types/generated/sqlserver/internal/class.d.ts +143 -0
- package/lib/types/generated/sqlserver/internal/prismaNamespace.d.ts +669 -0
- package/lib/types/generated/sqlserver/internal/prismaNamespaceBrowser.d.ts +80 -0
- package/lib/types/generated/sqlserver/models/AiChatHistory.d.ts +1257 -0
- package/lib/types/generated/sqlserver/models/AiMessage.d.ts +1376 -0
- package/lib/types/generated/sqlserver/models.d.ts +3 -0
- package/lib/types/index.d.ts +56 -0
- package/lib/types/projector.d.ts +48 -0
- package/lib/types/types.d.ts +49 -0
- package/lib/types.js +8 -0
- package/package.json +85 -0
- package/preview.png +0 -0
- package/prisma/schema.mysql.prisma +75 -0
- package/prisma/schema.postgresql.prisma +67 -0
- package/prisma/schema.sqlite.prisma +67 -0
- package/prisma/schema.sqlserver.prisma +73 -0
|
@@ -0,0 +1,396 @@
|
|
|
1
|
+
import type * as runtime from "@prisma/client/runtime/client";
|
|
2
|
+
import type * as Prisma from "./internal/prismaNamespace.js";
|
|
3
|
+
export type StringFilter<$PrismaModel = never> = {
|
|
4
|
+
equals?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
5
|
+
in?: string[];
|
|
6
|
+
notIn?: string[];
|
|
7
|
+
lt?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
8
|
+
lte?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
9
|
+
gt?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
10
|
+
gte?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
11
|
+
contains?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
12
|
+
startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
13
|
+
endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
14
|
+
search?: string;
|
|
15
|
+
not?: Prisma.NestedStringFilter<$PrismaModel> | string;
|
|
16
|
+
};
|
|
17
|
+
export type StringNullableFilter<$PrismaModel = never> = {
|
|
18
|
+
equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | null;
|
|
19
|
+
in?: string[] | null;
|
|
20
|
+
notIn?: string[] | null;
|
|
21
|
+
lt?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
22
|
+
lte?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
23
|
+
gt?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
24
|
+
gte?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
25
|
+
contains?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
26
|
+
startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
27
|
+
endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
28
|
+
search?: string;
|
|
29
|
+
not?: Prisma.NestedStringNullableFilter<$PrismaModel> | string | null;
|
|
30
|
+
};
|
|
31
|
+
export type JsonNullableFilter<$PrismaModel = never> = Prisma.PatchUndefined<Prisma.Either<Required<JsonNullableFilterBase<$PrismaModel>>, Exclude<keyof Required<JsonNullableFilterBase<$PrismaModel>>, 'path'>>, Required<JsonNullableFilterBase<$PrismaModel>>> | Prisma.OptionalFlat<Omit<Required<JsonNullableFilterBase<$PrismaModel>>, 'path'>>;
|
|
32
|
+
export type JsonNullableFilterBase<$PrismaModel = never> = {
|
|
33
|
+
equals?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter;
|
|
34
|
+
path?: string;
|
|
35
|
+
mode?: Prisma.QueryMode | Prisma.EnumQueryModeFieldRefInput<$PrismaModel>;
|
|
36
|
+
string_contains?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
37
|
+
string_starts_with?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
38
|
+
string_ends_with?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
39
|
+
array_starts_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
|
|
40
|
+
array_ends_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
|
|
41
|
+
array_contains?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
|
|
42
|
+
lt?: runtime.InputJsonValue;
|
|
43
|
+
lte?: runtime.InputJsonValue;
|
|
44
|
+
gt?: runtime.InputJsonValue;
|
|
45
|
+
gte?: runtime.InputJsonValue;
|
|
46
|
+
not?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter;
|
|
47
|
+
};
|
|
48
|
+
export type DateTimeFilter<$PrismaModel = never> = {
|
|
49
|
+
equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
50
|
+
in?: Date[] | string[];
|
|
51
|
+
notIn?: Date[] | string[];
|
|
52
|
+
lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
53
|
+
lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
54
|
+
gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
55
|
+
gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
56
|
+
not?: Prisma.NestedDateTimeFilter<$PrismaModel> | Date | string;
|
|
57
|
+
};
|
|
58
|
+
export type DateTimeNullableFilter<$PrismaModel = never> = {
|
|
59
|
+
equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> | null;
|
|
60
|
+
in?: Date[] | string[] | null;
|
|
61
|
+
notIn?: Date[] | string[] | null;
|
|
62
|
+
lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
63
|
+
lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
64
|
+
gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
65
|
+
gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
66
|
+
not?: Prisma.NestedDateTimeNullableFilter<$PrismaModel> | Date | string | null;
|
|
67
|
+
};
|
|
68
|
+
export type SortOrderInput = {
|
|
69
|
+
sort: Prisma.SortOrder;
|
|
70
|
+
nulls?: Prisma.NullsOrder;
|
|
71
|
+
};
|
|
72
|
+
export type StringWithAggregatesFilter<$PrismaModel = never> = {
|
|
73
|
+
equals?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
74
|
+
in?: string[];
|
|
75
|
+
notIn?: string[];
|
|
76
|
+
lt?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
77
|
+
lte?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
78
|
+
gt?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
79
|
+
gte?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
80
|
+
contains?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
81
|
+
startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
82
|
+
endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
83
|
+
search?: string;
|
|
84
|
+
not?: Prisma.NestedStringWithAggregatesFilter<$PrismaModel> | string;
|
|
85
|
+
_count?: Prisma.NestedIntFilter<$PrismaModel>;
|
|
86
|
+
_min?: Prisma.NestedStringFilter<$PrismaModel>;
|
|
87
|
+
_max?: Prisma.NestedStringFilter<$PrismaModel>;
|
|
88
|
+
};
|
|
89
|
+
export type StringNullableWithAggregatesFilter<$PrismaModel = never> = {
|
|
90
|
+
equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | null;
|
|
91
|
+
in?: string[] | null;
|
|
92
|
+
notIn?: string[] | null;
|
|
93
|
+
lt?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
94
|
+
lte?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
95
|
+
gt?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
96
|
+
gte?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
97
|
+
contains?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
98
|
+
startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
99
|
+
endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
100
|
+
search?: string;
|
|
101
|
+
not?: Prisma.NestedStringNullableWithAggregatesFilter<$PrismaModel> | string | null;
|
|
102
|
+
_count?: Prisma.NestedIntNullableFilter<$PrismaModel>;
|
|
103
|
+
_min?: Prisma.NestedStringNullableFilter<$PrismaModel>;
|
|
104
|
+
_max?: Prisma.NestedStringNullableFilter<$PrismaModel>;
|
|
105
|
+
};
|
|
106
|
+
export type JsonNullableWithAggregatesFilter<$PrismaModel = never> = Prisma.PatchUndefined<Prisma.Either<Required<JsonNullableWithAggregatesFilterBase<$PrismaModel>>, Exclude<keyof Required<JsonNullableWithAggregatesFilterBase<$PrismaModel>>, 'path'>>, Required<JsonNullableWithAggregatesFilterBase<$PrismaModel>>> | Prisma.OptionalFlat<Omit<Required<JsonNullableWithAggregatesFilterBase<$PrismaModel>>, 'path'>>;
|
|
107
|
+
export type JsonNullableWithAggregatesFilterBase<$PrismaModel = never> = {
|
|
108
|
+
equals?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter;
|
|
109
|
+
path?: string;
|
|
110
|
+
mode?: Prisma.QueryMode | Prisma.EnumQueryModeFieldRefInput<$PrismaModel>;
|
|
111
|
+
string_contains?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
112
|
+
string_starts_with?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
113
|
+
string_ends_with?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
114
|
+
array_starts_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
|
|
115
|
+
array_ends_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
|
|
116
|
+
array_contains?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
|
|
117
|
+
lt?: runtime.InputJsonValue;
|
|
118
|
+
lte?: runtime.InputJsonValue;
|
|
119
|
+
gt?: runtime.InputJsonValue;
|
|
120
|
+
gte?: runtime.InputJsonValue;
|
|
121
|
+
not?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter;
|
|
122
|
+
_count?: Prisma.NestedIntNullableFilter<$PrismaModel>;
|
|
123
|
+
_min?: Prisma.NestedJsonNullableFilter<$PrismaModel>;
|
|
124
|
+
_max?: Prisma.NestedJsonNullableFilter<$PrismaModel>;
|
|
125
|
+
};
|
|
126
|
+
export type DateTimeWithAggregatesFilter<$PrismaModel = never> = {
|
|
127
|
+
equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
128
|
+
in?: Date[] | string[];
|
|
129
|
+
notIn?: Date[] | string[];
|
|
130
|
+
lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
131
|
+
lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
132
|
+
gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
133
|
+
gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
134
|
+
not?: Prisma.NestedDateTimeWithAggregatesFilter<$PrismaModel> | Date | string;
|
|
135
|
+
_count?: Prisma.NestedIntFilter<$PrismaModel>;
|
|
136
|
+
_min?: Prisma.NestedDateTimeFilter<$PrismaModel>;
|
|
137
|
+
_max?: Prisma.NestedDateTimeFilter<$PrismaModel>;
|
|
138
|
+
};
|
|
139
|
+
export type DateTimeNullableWithAggregatesFilter<$PrismaModel = never> = {
|
|
140
|
+
equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> | null;
|
|
141
|
+
in?: Date[] | string[] | null;
|
|
142
|
+
notIn?: Date[] | string[] | null;
|
|
143
|
+
lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
144
|
+
lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
145
|
+
gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
146
|
+
gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
147
|
+
not?: Prisma.NestedDateTimeNullableWithAggregatesFilter<$PrismaModel> | Date | string | null;
|
|
148
|
+
_count?: Prisma.NestedIntNullableFilter<$PrismaModel>;
|
|
149
|
+
_min?: Prisma.NestedDateTimeNullableFilter<$PrismaModel>;
|
|
150
|
+
_max?: Prisma.NestedDateTimeNullableFilter<$PrismaModel>;
|
|
151
|
+
};
|
|
152
|
+
export type IntFilter<$PrismaModel = never> = {
|
|
153
|
+
equals?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
154
|
+
in?: number[];
|
|
155
|
+
notIn?: number[];
|
|
156
|
+
lt?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
157
|
+
lte?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
158
|
+
gt?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
159
|
+
gte?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
160
|
+
not?: Prisma.NestedIntFilter<$PrismaModel> | number;
|
|
161
|
+
};
|
|
162
|
+
export type BigIntFilter<$PrismaModel = never> = {
|
|
163
|
+
equals?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>;
|
|
164
|
+
in?: bigint[] | number[];
|
|
165
|
+
notIn?: bigint[] | number[];
|
|
166
|
+
lt?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>;
|
|
167
|
+
lte?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>;
|
|
168
|
+
gt?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>;
|
|
169
|
+
gte?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>;
|
|
170
|
+
not?: Prisma.NestedBigIntFilter<$PrismaModel> | bigint | number;
|
|
171
|
+
};
|
|
172
|
+
export type IntWithAggregatesFilter<$PrismaModel = never> = {
|
|
173
|
+
equals?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
174
|
+
in?: number[];
|
|
175
|
+
notIn?: number[];
|
|
176
|
+
lt?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
177
|
+
lte?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
178
|
+
gt?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
179
|
+
gte?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
180
|
+
not?: Prisma.NestedIntWithAggregatesFilter<$PrismaModel> | number;
|
|
181
|
+
_count?: Prisma.NestedIntFilter<$PrismaModel>;
|
|
182
|
+
_avg?: Prisma.NestedFloatFilter<$PrismaModel>;
|
|
183
|
+
_sum?: Prisma.NestedIntFilter<$PrismaModel>;
|
|
184
|
+
_min?: Prisma.NestedIntFilter<$PrismaModel>;
|
|
185
|
+
_max?: Prisma.NestedIntFilter<$PrismaModel>;
|
|
186
|
+
};
|
|
187
|
+
export type BigIntWithAggregatesFilter<$PrismaModel = never> = {
|
|
188
|
+
equals?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>;
|
|
189
|
+
in?: bigint[] | number[];
|
|
190
|
+
notIn?: bigint[] | number[];
|
|
191
|
+
lt?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>;
|
|
192
|
+
lte?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>;
|
|
193
|
+
gt?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>;
|
|
194
|
+
gte?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>;
|
|
195
|
+
not?: Prisma.NestedBigIntWithAggregatesFilter<$PrismaModel> | bigint | number;
|
|
196
|
+
_count?: Prisma.NestedIntFilter<$PrismaModel>;
|
|
197
|
+
_avg?: Prisma.NestedFloatFilter<$PrismaModel>;
|
|
198
|
+
_sum?: Prisma.NestedBigIntFilter<$PrismaModel>;
|
|
199
|
+
_min?: Prisma.NestedBigIntFilter<$PrismaModel>;
|
|
200
|
+
_max?: Prisma.NestedBigIntFilter<$PrismaModel>;
|
|
201
|
+
};
|
|
202
|
+
export type NestedStringFilter<$PrismaModel = never> = {
|
|
203
|
+
equals?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
204
|
+
in?: string[];
|
|
205
|
+
notIn?: string[];
|
|
206
|
+
lt?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
207
|
+
lte?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
208
|
+
gt?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
209
|
+
gte?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
210
|
+
contains?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
211
|
+
startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
212
|
+
endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
213
|
+
search?: string;
|
|
214
|
+
not?: Prisma.NestedStringFilter<$PrismaModel> | string;
|
|
215
|
+
};
|
|
216
|
+
export type NestedStringNullableFilter<$PrismaModel = never> = {
|
|
217
|
+
equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | null;
|
|
218
|
+
in?: string[] | null;
|
|
219
|
+
notIn?: string[] | null;
|
|
220
|
+
lt?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
221
|
+
lte?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
222
|
+
gt?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
223
|
+
gte?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
224
|
+
contains?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
225
|
+
startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
226
|
+
endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
227
|
+
search?: string;
|
|
228
|
+
not?: Prisma.NestedStringNullableFilter<$PrismaModel> | string | null;
|
|
229
|
+
};
|
|
230
|
+
export type NestedDateTimeFilter<$PrismaModel = never> = {
|
|
231
|
+
equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
232
|
+
in?: Date[] | string[];
|
|
233
|
+
notIn?: Date[] | string[];
|
|
234
|
+
lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
235
|
+
lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
236
|
+
gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
237
|
+
gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
238
|
+
not?: Prisma.NestedDateTimeFilter<$PrismaModel> | Date | string;
|
|
239
|
+
};
|
|
240
|
+
export type NestedDateTimeNullableFilter<$PrismaModel = never> = {
|
|
241
|
+
equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> | null;
|
|
242
|
+
in?: Date[] | string[] | null;
|
|
243
|
+
notIn?: Date[] | string[] | null;
|
|
244
|
+
lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
245
|
+
lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
246
|
+
gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
247
|
+
gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
248
|
+
not?: Prisma.NestedDateTimeNullableFilter<$PrismaModel> | Date | string | null;
|
|
249
|
+
};
|
|
250
|
+
export type NestedStringWithAggregatesFilter<$PrismaModel = never> = {
|
|
251
|
+
equals?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
252
|
+
in?: string[];
|
|
253
|
+
notIn?: string[];
|
|
254
|
+
lt?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
255
|
+
lte?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
256
|
+
gt?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
257
|
+
gte?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
258
|
+
contains?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
259
|
+
startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
260
|
+
endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
261
|
+
search?: string;
|
|
262
|
+
not?: Prisma.NestedStringWithAggregatesFilter<$PrismaModel> | string;
|
|
263
|
+
_count?: Prisma.NestedIntFilter<$PrismaModel>;
|
|
264
|
+
_min?: Prisma.NestedStringFilter<$PrismaModel>;
|
|
265
|
+
_max?: Prisma.NestedStringFilter<$PrismaModel>;
|
|
266
|
+
};
|
|
267
|
+
export type NestedIntFilter<$PrismaModel = never> = {
|
|
268
|
+
equals?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
269
|
+
in?: number[];
|
|
270
|
+
notIn?: number[];
|
|
271
|
+
lt?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
272
|
+
lte?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
273
|
+
gt?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
274
|
+
gte?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
275
|
+
not?: Prisma.NestedIntFilter<$PrismaModel> | number;
|
|
276
|
+
};
|
|
277
|
+
export type NestedStringNullableWithAggregatesFilter<$PrismaModel = never> = {
|
|
278
|
+
equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | null;
|
|
279
|
+
in?: string[] | null;
|
|
280
|
+
notIn?: string[] | null;
|
|
281
|
+
lt?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
282
|
+
lte?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
283
|
+
gt?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
284
|
+
gte?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
285
|
+
contains?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
286
|
+
startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
287
|
+
endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
288
|
+
search?: string;
|
|
289
|
+
not?: Prisma.NestedStringNullableWithAggregatesFilter<$PrismaModel> | string | null;
|
|
290
|
+
_count?: Prisma.NestedIntNullableFilter<$PrismaModel>;
|
|
291
|
+
_min?: Prisma.NestedStringNullableFilter<$PrismaModel>;
|
|
292
|
+
_max?: Prisma.NestedStringNullableFilter<$PrismaModel>;
|
|
293
|
+
};
|
|
294
|
+
export type NestedIntNullableFilter<$PrismaModel = never> = {
|
|
295
|
+
equals?: number | Prisma.IntFieldRefInput<$PrismaModel> | null;
|
|
296
|
+
in?: number[] | null;
|
|
297
|
+
notIn?: number[] | null;
|
|
298
|
+
lt?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
299
|
+
lte?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
300
|
+
gt?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
301
|
+
gte?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
302
|
+
not?: Prisma.NestedIntNullableFilter<$PrismaModel> | number | null;
|
|
303
|
+
};
|
|
304
|
+
export type NestedJsonNullableFilter<$PrismaModel = never> = Prisma.PatchUndefined<Prisma.Either<Required<NestedJsonNullableFilterBase<$PrismaModel>>, Exclude<keyof Required<NestedJsonNullableFilterBase<$PrismaModel>>, 'path'>>, Required<NestedJsonNullableFilterBase<$PrismaModel>>> | Prisma.OptionalFlat<Omit<Required<NestedJsonNullableFilterBase<$PrismaModel>>, 'path'>>;
|
|
305
|
+
export type NestedJsonNullableFilterBase<$PrismaModel = never> = {
|
|
306
|
+
equals?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter;
|
|
307
|
+
path?: string;
|
|
308
|
+
mode?: Prisma.QueryMode | Prisma.EnumQueryModeFieldRefInput<$PrismaModel>;
|
|
309
|
+
string_contains?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
310
|
+
string_starts_with?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
311
|
+
string_ends_with?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
312
|
+
array_starts_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
|
|
313
|
+
array_ends_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
|
|
314
|
+
array_contains?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
|
|
315
|
+
lt?: runtime.InputJsonValue;
|
|
316
|
+
lte?: runtime.InputJsonValue;
|
|
317
|
+
gt?: runtime.InputJsonValue;
|
|
318
|
+
gte?: runtime.InputJsonValue;
|
|
319
|
+
not?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter;
|
|
320
|
+
};
|
|
321
|
+
export type NestedDateTimeWithAggregatesFilter<$PrismaModel = never> = {
|
|
322
|
+
equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
323
|
+
in?: Date[] | string[];
|
|
324
|
+
notIn?: Date[] | string[];
|
|
325
|
+
lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
326
|
+
lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
327
|
+
gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
328
|
+
gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
329
|
+
not?: Prisma.NestedDateTimeWithAggregatesFilter<$PrismaModel> | Date | string;
|
|
330
|
+
_count?: Prisma.NestedIntFilter<$PrismaModel>;
|
|
331
|
+
_min?: Prisma.NestedDateTimeFilter<$PrismaModel>;
|
|
332
|
+
_max?: Prisma.NestedDateTimeFilter<$PrismaModel>;
|
|
333
|
+
};
|
|
334
|
+
export type NestedDateTimeNullableWithAggregatesFilter<$PrismaModel = never> = {
|
|
335
|
+
equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> | null;
|
|
336
|
+
in?: Date[] | string[] | null;
|
|
337
|
+
notIn?: Date[] | string[] | null;
|
|
338
|
+
lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
339
|
+
lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
340
|
+
gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
341
|
+
gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
342
|
+
not?: Prisma.NestedDateTimeNullableWithAggregatesFilter<$PrismaModel> | Date | string | null;
|
|
343
|
+
_count?: Prisma.NestedIntNullableFilter<$PrismaModel>;
|
|
344
|
+
_min?: Prisma.NestedDateTimeNullableFilter<$PrismaModel>;
|
|
345
|
+
_max?: Prisma.NestedDateTimeNullableFilter<$PrismaModel>;
|
|
346
|
+
};
|
|
347
|
+
export type NestedBigIntFilter<$PrismaModel = never> = {
|
|
348
|
+
equals?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>;
|
|
349
|
+
in?: bigint[] | number[];
|
|
350
|
+
notIn?: bigint[] | number[];
|
|
351
|
+
lt?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>;
|
|
352
|
+
lte?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>;
|
|
353
|
+
gt?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>;
|
|
354
|
+
gte?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>;
|
|
355
|
+
not?: Prisma.NestedBigIntFilter<$PrismaModel> | bigint | number;
|
|
356
|
+
};
|
|
357
|
+
export type NestedIntWithAggregatesFilter<$PrismaModel = never> = {
|
|
358
|
+
equals?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
359
|
+
in?: number[];
|
|
360
|
+
notIn?: number[];
|
|
361
|
+
lt?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
362
|
+
lte?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
363
|
+
gt?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
364
|
+
gte?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
365
|
+
not?: Prisma.NestedIntWithAggregatesFilter<$PrismaModel> | number;
|
|
366
|
+
_count?: Prisma.NestedIntFilter<$PrismaModel>;
|
|
367
|
+
_avg?: Prisma.NestedFloatFilter<$PrismaModel>;
|
|
368
|
+
_sum?: Prisma.NestedIntFilter<$PrismaModel>;
|
|
369
|
+
_min?: Prisma.NestedIntFilter<$PrismaModel>;
|
|
370
|
+
_max?: Prisma.NestedIntFilter<$PrismaModel>;
|
|
371
|
+
};
|
|
372
|
+
export type NestedFloatFilter<$PrismaModel = never> = {
|
|
373
|
+
equals?: number | Prisma.FloatFieldRefInput<$PrismaModel>;
|
|
374
|
+
in?: number[];
|
|
375
|
+
notIn?: number[];
|
|
376
|
+
lt?: number | Prisma.FloatFieldRefInput<$PrismaModel>;
|
|
377
|
+
lte?: number | Prisma.FloatFieldRefInput<$PrismaModel>;
|
|
378
|
+
gt?: number | Prisma.FloatFieldRefInput<$PrismaModel>;
|
|
379
|
+
gte?: number | Prisma.FloatFieldRefInput<$PrismaModel>;
|
|
380
|
+
not?: Prisma.NestedFloatFilter<$PrismaModel> | number;
|
|
381
|
+
};
|
|
382
|
+
export type NestedBigIntWithAggregatesFilter<$PrismaModel = never> = {
|
|
383
|
+
equals?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>;
|
|
384
|
+
in?: bigint[] | number[];
|
|
385
|
+
notIn?: bigint[] | number[];
|
|
386
|
+
lt?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>;
|
|
387
|
+
lte?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>;
|
|
388
|
+
gt?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>;
|
|
389
|
+
gte?: bigint | number | Prisma.BigIntFieldRefInput<$PrismaModel>;
|
|
390
|
+
not?: Prisma.NestedBigIntWithAggregatesFilter<$PrismaModel> | bigint | number;
|
|
391
|
+
_count?: Prisma.NestedIntFilter<$PrismaModel>;
|
|
392
|
+
_avg?: Prisma.NestedFloatFilter<$PrismaModel>;
|
|
393
|
+
_sum?: Prisma.NestedBigIntFilter<$PrismaModel>;
|
|
394
|
+
_min?: Prisma.NestedBigIntFilter<$PrismaModel>;
|
|
395
|
+
_max?: Prisma.NestedBigIntFilter<$PrismaModel>;
|
|
396
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import * as runtime from "@prisma/client/runtime/client";
|
|
2
|
+
import type * as Prisma from "./prismaNamespace.js";
|
|
3
|
+
export type LogOptions<ClientOptions extends Prisma.PrismaClientOptions> = 'log' extends keyof ClientOptions ? ClientOptions['log'] extends Array<Prisma.LogLevel | Prisma.LogDefinition> ? Prisma.GetEvents<ClientOptions['log']> : never : never;
|
|
4
|
+
export interface PrismaClientConstructor {
|
|
5
|
+
/**
|
|
6
|
+
* ## Prisma Client
|
|
7
|
+
*
|
|
8
|
+
* Type-safe database client for TypeScript
|
|
9
|
+
* @example
|
|
10
|
+
* ```
|
|
11
|
+
* const prisma = new PrismaClient({
|
|
12
|
+
* adapter: new PrismaPg({ connectionString: process.env.DATABASE_URL })
|
|
13
|
+
* })
|
|
14
|
+
* // Fetch zero or more AiMessages
|
|
15
|
+
* const aiMessages = await prisma.aiMessage.findMany()
|
|
16
|
+
* ```
|
|
17
|
+
*
|
|
18
|
+
* Read more in our [docs](https://pris.ly/d/client).
|
|
19
|
+
*/
|
|
20
|
+
new <Options extends Prisma.PrismaClientOptions = Prisma.PrismaClientOptions, LogOpts extends LogOptions<Options> = LogOptions<Options>, OmitOpts extends Prisma.PrismaClientOptions['omit'] = Options extends {
|
|
21
|
+
omit: infer U;
|
|
22
|
+
} ? U : Prisma.PrismaClientOptions['omit'], ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs>(options: Prisma.PrismaClientConstructorArgs<Options>): PrismaClient<LogOpts, OmitOpts, ExtArgs>;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* ## Prisma Client
|
|
26
|
+
*
|
|
27
|
+
* Type-safe database client for TypeScript
|
|
28
|
+
* @example
|
|
29
|
+
* ```
|
|
30
|
+
* const prisma = new PrismaClient({
|
|
31
|
+
* adapter: new PrismaPg({ connectionString: process.env.DATABASE_URL })
|
|
32
|
+
* })
|
|
33
|
+
* // Fetch zero or more AiMessages
|
|
34
|
+
* const aiMessages = await prisma.aiMessage.findMany()
|
|
35
|
+
* ```
|
|
36
|
+
*
|
|
37
|
+
* Read more in our [docs](https://pris.ly/d/client).
|
|
38
|
+
*/
|
|
39
|
+
export interface PrismaClient<in LogOpts extends Prisma.LogLevel = never, in out OmitOpts extends Prisma.PrismaClientOptions['omit'] = Prisma.PrismaClientOptions['omit'], in out ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> {
|
|
40
|
+
[K: symbol]: {
|
|
41
|
+
types: Prisma.TypeMap<ExtArgs>['other'];
|
|
42
|
+
};
|
|
43
|
+
$on<V extends LogOpts>(eventType: V, callback: (event: V extends 'query' ? Prisma.QueryEvent : Prisma.LogEvent) => void): PrismaClient;
|
|
44
|
+
/**
|
|
45
|
+
* Connect with the database
|
|
46
|
+
*/
|
|
47
|
+
$connect(): runtime.Types.Utils.JsPromise<void>;
|
|
48
|
+
/**
|
|
49
|
+
* Disconnect from the database
|
|
50
|
+
*/
|
|
51
|
+
$disconnect(): runtime.Types.Utils.JsPromise<void>;
|
|
52
|
+
/**
|
|
53
|
+
* Executes a prepared raw query and returns the number of affected rows.
|
|
54
|
+
* @example
|
|
55
|
+
* ```
|
|
56
|
+
* const result = await prisma.$executeRaw`UPDATE User SET cool = ${true} WHERE email = ${'user@email.com'};`
|
|
57
|
+
* ```
|
|
58
|
+
*
|
|
59
|
+
* Read more in our [docs](https://pris.ly/d/raw-queries).
|
|
60
|
+
*/
|
|
61
|
+
$executeRaw<T = unknown>(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): Prisma.PrismaPromise<number>;
|
|
62
|
+
/**
|
|
63
|
+
* Executes a raw query and returns the number of affected rows.
|
|
64
|
+
* Susceptible to SQL injections, see documentation.
|
|
65
|
+
* @example
|
|
66
|
+
* ```
|
|
67
|
+
* const result = await prisma.$executeRawUnsafe('UPDATE User SET cool = $1 WHERE email = $2 ;', true, 'user@email.com')
|
|
68
|
+
* ```
|
|
69
|
+
*
|
|
70
|
+
* Read more in our [docs](https://pris.ly/d/raw-queries).
|
|
71
|
+
*/
|
|
72
|
+
$executeRawUnsafe<T = unknown>(query: string, ...values: any[]): Prisma.PrismaPromise<number>;
|
|
73
|
+
/**
|
|
74
|
+
* Performs a prepared raw query and returns the `SELECT` data.
|
|
75
|
+
* @example
|
|
76
|
+
* ```
|
|
77
|
+
* const result = await prisma.$queryRaw`SELECT * FROM User WHERE id = ${1} OR email = ${'user@email.com'};`
|
|
78
|
+
* ```
|
|
79
|
+
*
|
|
80
|
+
* Read more in our [docs](https://pris.ly/d/raw-queries).
|
|
81
|
+
*/
|
|
82
|
+
$queryRaw<T = unknown>(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): Prisma.PrismaPromise<T>;
|
|
83
|
+
/**
|
|
84
|
+
* Performs a raw query and returns the `SELECT` data.
|
|
85
|
+
* Susceptible to SQL injections, see documentation.
|
|
86
|
+
* @example
|
|
87
|
+
* ```
|
|
88
|
+
* const result = await prisma.$queryRawUnsafe('SELECT * FROM User WHERE id = $1 OR email = $2;', 1, 'user@email.com')
|
|
89
|
+
* ```
|
|
90
|
+
*
|
|
91
|
+
* Read more in our [docs](https://pris.ly/d/raw-queries).
|
|
92
|
+
*/
|
|
93
|
+
$queryRawUnsafe<T = unknown>(query: string, ...values: any[]): Prisma.PrismaPromise<T>;
|
|
94
|
+
/**
|
|
95
|
+
* Allows the running of a sequence of read/write operations that are guaranteed to either succeed or fail as a whole.
|
|
96
|
+
* @example
|
|
97
|
+
* ```
|
|
98
|
+
* const [george, bob, alice] = await prisma.$transaction([
|
|
99
|
+
* prisma.user.create({ data: { name: 'George' } }),
|
|
100
|
+
* prisma.user.create({ data: { name: 'Bob' } }),
|
|
101
|
+
* prisma.user.create({ data: { name: 'Alice' } }),
|
|
102
|
+
* ])
|
|
103
|
+
* ```
|
|
104
|
+
*
|
|
105
|
+
* Read more in our [docs](https://www.prisma.io/docs/orm/prisma-client/queries/transactions).
|
|
106
|
+
*/
|
|
107
|
+
$transaction<P extends Prisma.PrismaPromise<any>[]>(arg: [...P], options?: {
|
|
108
|
+
maxWait?: number;
|
|
109
|
+
timeout?: number;
|
|
110
|
+
isolationLevel?: Prisma.TransactionIsolationLevel;
|
|
111
|
+
}): runtime.Types.Utils.JsPromise<runtime.Types.Utils.UnwrapTuple<P>>;
|
|
112
|
+
$transaction<R>(fn: (prisma: Omit<PrismaClient, runtime.ITXClientDenyList>) => runtime.Types.Utils.JsPromise<R>, options?: {
|
|
113
|
+
maxWait?: number;
|
|
114
|
+
timeout?: number;
|
|
115
|
+
isolationLevel?: Prisma.TransactionIsolationLevel;
|
|
116
|
+
}): runtime.Types.Utils.JsPromise<R>;
|
|
117
|
+
$extends: runtime.Types.Extensions.ExtendsHook<"extends", Prisma.TypeMapCb<OmitOpts>, ExtArgs, runtime.Types.Utils.Call<Prisma.TypeMapCb<OmitOpts>, {
|
|
118
|
+
extArgs: ExtArgs;
|
|
119
|
+
}>>;
|
|
120
|
+
/**
|
|
121
|
+
* `prisma.aiMessage`: Exposes CRUD operations for the **AiMessage** model.
|
|
122
|
+
* Example usage:
|
|
123
|
+
* ```ts
|
|
124
|
+
* // Fetch zero or more AiMessages
|
|
125
|
+
* const aiMessages = await prisma.aiMessage.findMany()
|
|
126
|
+
* ```
|
|
127
|
+
*/
|
|
128
|
+
get aiMessage(): Prisma.AiMessageDelegate<ExtArgs, {
|
|
129
|
+
omit: OmitOpts;
|
|
130
|
+
}>;
|
|
131
|
+
/**
|
|
132
|
+
* `prisma.aiChatHistory`: Exposes CRUD operations for the **AiChatHistory** model.
|
|
133
|
+
* Example usage:
|
|
134
|
+
* ```ts
|
|
135
|
+
* // Fetch zero or more AiChatHistories
|
|
136
|
+
* const aiChatHistories = await prisma.aiChatHistory.findMany()
|
|
137
|
+
* ```
|
|
138
|
+
*/
|
|
139
|
+
get aiChatHistory(): Prisma.AiChatHistoryDelegate<ExtArgs, {
|
|
140
|
+
omit: OmitOpts;
|
|
141
|
+
}>;
|
|
142
|
+
}
|
|
143
|
+
export declare function getPrismaClientClass(): PrismaClientConstructor;
|