@prisma-next/extension-supabase 0.12.0-dev.72
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 +201 -0
- package/README.md +74 -0
- package/dist/contract.d.mts +290 -0
- package/dist/contract.d.mts.map +1 -0
- package/dist/contract.mjs +68 -0
- package/dist/contract.mjs.map +1 -0
- package/dist/pack.d.mts +17 -0
- package/dist/pack.d.mts.map +1 -0
- package/dist/pack.mjs +467 -0
- package/dist/pack.mjs.map +1 -0
- package/dist/runtime.d.mts +7 -0
- package/dist/runtime.d.mts.map +1 -0
- package/dist/runtime.mjs +19 -0
- package/dist/runtime.mjs.map +1 -0
- package/dist/test/utils.d.mts +24 -0
- package/dist/test/utils.d.mts.map +1 -0
- package/dist/test/utils.mjs +64 -0
- package/dist/test/utils.mjs.map +1 -0
- package/package.json +88 -0
- package/src/contract/contract.d.ts +618 -0
- package/src/contract/contract.json +483 -0
- package/src/contract/contract.prisma +48 -0
- package/src/contract/handles.ts +78 -0
- package/src/exports/contract.ts +1 -0
- package/src/exports/pack.ts +1 -0
- package/src/exports/runtime.ts +31 -0
- package/src/pack/index.ts +55 -0
|
@@ -0,0 +1,618 @@
|
|
|
1
|
+
// ⚠️ GENERATED FILE - DO NOT EDIT
|
|
2
|
+
// This file is automatically generated by 'prisma-next contract emit'.
|
|
3
|
+
// To regenerate, run: prisma-next contract emit
|
|
4
|
+
import type { QueryOperationTypes as PgAdapterQueryOps } from '@prisma-next/adapter-postgres/operation-types';
|
|
5
|
+
import type {
|
|
6
|
+
Bit,
|
|
7
|
+
Char,
|
|
8
|
+
CodecTypes as PgTypes,
|
|
9
|
+
Interval,
|
|
10
|
+
JsonValue,
|
|
11
|
+
Numeric,
|
|
12
|
+
Time,
|
|
13
|
+
Timestamp,
|
|
14
|
+
Timestamptz,
|
|
15
|
+
Timetz,
|
|
16
|
+
VarBit,
|
|
17
|
+
Varchar,
|
|
18
|
+
} from '@prisma-next/target-postgres/codec-types';
|
|
19
|
+
|
|
20
|
+
import type {
|
|
21
|
+
ContractWithTypeMaps,
|
|
22
|
+
TypeMaps as TypeMapsType,
|
|
23
|
+
} from '@prisma-next/sql-contract/types';
|
|
24
|
+
import type {
|
|
25
|
+
Contract as ContractType,
|
|
26
|
+
ContractModelDefinitions,
|
|
27
|
+
ExecutionHashBase,
|
|
28
|
+
NamespaceId,
|
|
29
|
+
ProfileHashBase,
|
|
30
|
+
StorageHashBase,
|
|
31
|
+
} from '@prisma-next/contract/types';
|
|
32
|
+
|
|
33
|
+
export type StorageHash =
|
|
34
|
+
StorageHashBase<'sha256:13b530a9c9fb26912d97f8a05dea26634242de75fb4af6b29337e4e7c7712876'>;
|
|
35
|
+
export type ExecutionHash = ExecutionHashBase<string>;
|
|
36
|
+
export type ProfileHash =
|
|
37
|
+
ProfileHashBase<'sha256:9c8aa3114e84ed3b7ea2bd57526d9c2e1bf7c5292be694e9d3801f566fda7ccb'>;
|
|
38
|
+
|
|
39
|
+
export type CodecTypes = PgTypes;
|
|
40
|
+
export type LaneCodecTypes = CodecTypes;
|
|
41
|
+
export type QueryOperationTypes = PgAdapterQueryOps<CodecTypes>;
|
|
42
|
+
type DefaultLiteralValue<CodecId extends string, _Encoded> = CodecId extends keyof CodecTypes
|
|
43
|
+
? CodecTypes[CodecId]['output']
|
|
44
|
+
: _Encoded;
|
|
45
|
+
|
|
46
|
+
export type FieldOutputTypes = {
|
|
47
|
+
readonly AuthIdentity: {
|
|
48
|
+
readonly id: CodecTypes['pg/text@1']['output'];
|
|
49
|
+
readonly user_id: CodecTypes['pg/text@1']['output'];
|
|
50
|
+
readonly provider: CodecTypes['pg/text@1']['output'];
|
|
51
|
+
readonly created_at: CodecTypes['pg/timestamptz@1']['output'];
|
|
52
|
+
readonly updated_at: CodecTypes['pg/timestamptz@1']['output'];
|
|
53
|
+
};
|
|
54
|
+
readonly AuthUser: {
|
|
55
|
+
readonly id: CodecTypes['pg/text@1']['output'];
|
|
56
|
+
readonly email: CodecTypes['pg/text@1']['output'];
|
|
57
|
+
readonly created_at: CodecTypes['pg/timestamptz@1']['output'];
|
|
58
|
+
readonly updated_at: CodecTypes['pg/timestamptz@1']['output'];
|
|
59
|
+
};
|
|
60
|
+
readonly StorageBucket: {
|
|
61
|
+
readonly id: CodecTypes['pg/text@1']['output'];
|
|
62
|
+
readonly name: CodecTypes['pg/text@1']['output'];
|
|
63
|
+
readonly created_at: CodecTypes['pg/timestamptz@1']['output'];
|
|
64
|
+
readonly updated_at: CodecTypes['pg/timestamptz@1']['output'];
|
|
65
|
+
};
|
|
66
|
+
readonly StorageObject: {
|
|
67
|
+
readonly id: CodecTypes['pg/text@1']['output'];
|
|
68
|
+
readonly bucket_id: CodecTypes['pg/text@1']['output'];
|
|
69
|
+
readonly name: CodecTypes['pg/text@1']['output'];
|
|
70
|
+
readonly created_at: CodecTypes['pg/timestamptz@1']['output'];
|
|
71
|
+
readonly updated_at: CodecTypes['pg/timestamptz@1']['output'];
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
export type FieldInputTypes = {
|
|
75
|
+
readonly AuthIdentity: {
|
|
76
|
+
readonly id: CodecTypes['pg/text@1']['input'];
|
|
77
|
+
readonly user_id: CodecTypes['pg/text@1']['input'];
|
|
78
|
+
readonly provider: CodecTypes['pg/text@1']['input'];
|
|
79
|
+
readonly created_at: CodecTypes['pg/timestamptz@1']['input'];
|
|
80
|
+
readonly updated_at: CodecTypes['pg/timestamptz@1']['input'];
|
|
81
|
+
};
|
|
82
|
+
readonly AuthUser: {
|
|
83
|
+
readonly id: CodecTypes['pg/text@1']['input'];
|
|
84
|
+
readonly email: CodecTypes['pg/text@1']['input'];
|
|
85
|
+
readonly created_at: CodecTypes['pg/timestamptz@1']['input'];
|
|
86
|
+
readonly updated_at: CodecTypes['pg/timestamptz@1']['input'];
|
|
87
|
+
};
|
|
88
|
+
readonly StorageBucket: {
|
|
89
|
+
readonly id: CodecTypes['pg/text@1']['input'];
|
|
90
|
+
readonly name: CodecTypes['pg/text@1']['input'];
|
|
91
|
+
readonly created_at: CodecTypes['pg/timestamptz@1']['input'];
|
|
92
|
+
readonly updated_at: CodecTypes['pg/timestamptz@1']['input'];
|
|
93
|
+
};
|
|
94
|
+
readonly StorageObject: {
|
|
95
|
+
readonly id: CodecTypes['pg/text@1']['input'];
|
|
96
|
+
readonly bucket_id: CodecTypes['pg/text@1']['input'];
|
|
97
|
+
readonly name: CodecTypes['pg/text@1']['input'];
|
|
98
|
+
readonly created_at: CodecTypes['pg/timestamptz@1']['input'];
|
|
99
|
+
readonly updated_at: CodecTypes['pg/timestamptz@1']['input'];
|
|
100
|
+
};
|
|
101
|
+
};
|
|
102
|
+
export type TypeMaps = TypeMapsType<
|
|
103
|
+
CodecTypes,
|
|
104
|
+
QueryOperationTypes,
|
|
105
|
+
FieldOutputTypes,
|
|
106
|
+
FieldInputTypes
|
|
107
|
+
>;
|
|
108
|
+
|
|
109
|
+
type ContractBase = Omit<
|
|
110
|
+
ContractType<
|
|
111
|
+
{
|
|
112
|
+
readonly namespaces: {
|
|
113
|
+
readonly __unbound__: {
|
|
114
|
+
readonly id: '__unbound__';
|
|
115
|
+
readonly kind: 'sql-namespace';
|
|
116
|
+
readonly entries: { readonly table: {} };
|
|
117
|
+
};
|
|
118
|
+
readonly auth: {
|
|
119
|
+
readonly id: 'auth';
|
|
120
|
+
readonly kind: 'sql-namespace';
|
|
121
|
+
readonly entries: {
|
|
122
|
+
readonly table: {
|
|
123
|
+
readonly identities: {
|
|
124
|
+
columns: {
|
|
125
|
+
readonly id: {
|
|
126
|
+
readonly nativeType: 'uuid';
|
|
127
|
+
readonly codecId: 'pg/text@1';
|
|
128
|
+
readonly nullable: false;
|
|
129
|
+
readonly typeRef: 'Uuid';
|
|
130
|
+
};
|
|
131
|
+
readonly user_id: {
|
|
132
|
+
readonly nativeType: 'uuid';
|
|
133
|
+
readonly codecId: 'pg/text@1';
|
|
134
|
+
readonly nullable: false;
|
|
135
|
+
readonly typeRef: 'Uuid';
|
|
136
|
+
};
|
|
137
|
+
readonly provider: {
|
|
138
|
+
readonly nativeType: 'text';
|
|
139
|
+
readonly codecId: 'pg/text@1';
|
|
140
|
+
readonly nullable: false;
|
|
141
|
+
};
|
|
142
|
+
readonly created_at: {
|
|
143
|
+
readonly nativeType: 'timestamptz';
|
|
144
|
+
readonly codecId: 'pg/timestamptz@1';
|
|
145
|
+
readonly nullable: false;
|
|
146
|
+
readonly typeRef: 'Timestamptz';
|
|
147
|
+
};
|
|
148
|
+
readonly updated_at: {
|
|
149
|
+
readonly nativeType: 'timestamptz';
|
|
150
|
+
readonly codecId: 'pg/timestamptz@1';
|
|
151
|
+
readonly nullable: false;
|
|
152
|
+
readonly typeRef: 'Timestamptz';
|
|
153
|
+
};
|
|
154
|
+
};
|
|
155
|
+
primaryKey: { readonly columns: readonly ['id'] };
|
|
156
|
+
uniques: readonly [];
|
|
157
|
+
indexes: readonly [];
|
|
158
|
+
foreignKeys: readonly [];
|
|
159
|
+
};
|
|
160
|
+
readonly users: {
|
|
161
|
+
columns: {
|
|
162
|
+
readonly id: {
|
|
163
|
+
readonly nativeType: 'uuid';
|
|
164
|
+
readonly codecId: 'pg/text@1';
|
|
165
|
+
readonly nullable: false;
|
|
166
|
+
readonly typeRef: 'Uuid';
|
|
167
|
+
};
|
|
168
|
+
readonly email: {
|
|
169
|
+
readonly nativeType: 'text';
|
|
170
|
+
readonly codecId: 'pg/text@1';
|
|
171
|
+
readonly nullable: false;
|
|
172
|
+
};
|
|
173
|
+
readonly created_at: {
|
|
174
|
+
readonly nativeType: 'timestamptz';
|
|
175
|
+
readonly codecId: 'pg/timestamptz@1';
|
|
176
|
+
readonly nullable: false;
|
|
177
|
+
readonly typeRef: 'Timestamptz';
|
|
178
|
+
};
|
|
179
|
+
readonly updated_at: {
|
|
180
|
+
readonly nativeType: 'timestamptz';
|
|
181
|
+
readonly codecId: 'pg/timestamptz@1';
|
|
182
|
+
readonly nullable: false;
|
|
183
|
+
readonly typeRef: 'Timestamptz';
|
|
184
|
+
};
|
|
185
|
+
};
|
|
186
|
+
primaryKey: { readonly columns: readonly ['id'] };
|
|
187
|
+
uniques: readonly [];
|
|
188
|
+
indexes: readonly [];
|
|
189
|
+
foreignKeys: readonly [];
|
|
190
|
+
};
|
|
191
|
+
};
|
|
192
|
+
};
|
|
193
|
+
};
|
|
194
|
+
readonly public: {
|
|
195
|
+
readonly id: 'public';
|
|
196
|
+
readonly kind: 'sql-namespace';
|
|
197
|
+
readonly entries: { readonly table: {} };
|
|
198
|
+
};
|
|
199
|
+
readonly storage: {
|
|
200
|
+
readonly id: 'storage';
|
|
201
|
+
readonly kind: 'sql-namespace';
|
|
202
|
+
readonly entries: {
|
|
203
|
+
readonly table: {
|
|
204
|
+
readonly buckets: {
|
|
205
|
+
columns: {
|
|
206
|
+
readonly id: {
|
|
207
|
+
readonly nativeType: 'text';
|
|
208
|
+
readonly codecId: 'pg/text@1';
|
|
209
|
+
readonly nullable: false;
|
|
210
|
+
};
|
|
211
|
+
readonly name: {
|
|
212
|
+
readonly nativeType: 'text';
|
|
213
|
+
readonly codecId: 'pg/text@1';
|
|
214
|
+
readonly nullable: false;
|
|
215
|
+
};
|
|
216
|
+
readonly created_at: {
|
|
217
|
+
readonly nativeType: 'timestamptz';
|
|
218
|
+
readonly codecId: 'pg/timestamptz@1';
|
|
219
|
+
readonly nullable: false;
|
|
220
|
+
readonly typeRef: 'Timestamptz';
|
|
221
|
+
};
|
|
222
|
+
readonly updated_at: {
|
|
223
|
+
readonly nativeType: 'timestamptz';
|
|
224
|
+
readonly codecId: 'pg/timestamptz@1';
|
|
225
|
+
readonly nullable: false;
|
|
226
|
+
readonly typeRef: 'Timestamptz';
|
|
227
|
+
};
|
|
228
|
+
};
|
|
229
|
+
primaryKey: { readonly columns: readonly ['id'] };
|
|
230
|
+
uniques: readonly [];
|
|
231
|
+
indexes: readonly [];
|
|
232
|
+
foreignKeys: readonly [];
|
|
233
|
+
};
|
|
234
|
+
readonly objects: {
|
|
235
|
+
columns: {
|
|
236
|
+
readonly id: {
|
|
237
|
+
readonly nativeType: 'uuid';
|
|
238
|
+
readonly codecId: 'pg/text@1';
|
|
239
|
+
readonly nullable: false;
|
|
240
|
+
readonly typeRef: 'Uuid';
|
|
241
|
+
};
|
|
242
|
+
readonly bucket_id: {
|
|
243
|
+
readonly nativeType: 'text';
|
|
244
|
+
readonly codecId: 'pg/text@1';
|
|
245
|
+
readonly nullable: false;
|
|
246
|
+
};
|
|
247
|
+
readonly name: {
|
|
248
|
+
readonly nativeType: 'text';
|
|
249
|
+
readonly codecId: 'pg/text@1';
|
|
250
|
+
readonly nullable: false;
|
|
251
|
+
};
|
|
252
|
+
readonly created_at: {
|
|
253
|
+
readonly nativeType: 'timestamptz';
|
|
254
|
+
readonly codecId: 'pg/timestamptz@1';
|
|
255
|
+
readonly nullable: false;
|
|
256
|
+
readonly typeRef: 'Timestamptz';
|
|
257
|
+
};
|
|
258
|
+
readonly updated_at: {
|
|
259
|
+
readonly nativeType: 'timestamptz';
|
|
260
|
+
readonly codecId: 'pg/timestamptz@1';
|
|
261
|
+
readonly nullable: false;
|
|
262
|
+
readonly typeRef: 'Timestamptz';
|
|
263
|
+
};
|
|
264
|
+
};
|
|
265
|
+
primaryKey: { readonly columns: readonly ['id'] };
|
|
266
|
+
uniques: readonly [];
|
|
267
|
+
indexes: readonly [];
|
|
268
|
+
foreignKeys: readonly [];
|
|
269
|
+
};
|
|
270
|
+
};
|
|
271
|
+
};
|
|
272
|
+
};
|
|
273
|
+
};
|
|
274
|
+
readonly types: {
|
|
275
|
+
readonly Uuid: {
|
|
276
|
+
readonly kind: 'codec-instance';
|
|
277
|
+
readonly codecId: 'pg/text@1';
|
|
278
|
+
readonly nativeType: 'uuid';
|
|
279
|
+
readonly typeParams: Record<string, never>;
|
|
280
|
+
};
|
|
281
|
+
readonly Timestamptz: {
|
|
282
|
+
readonly kind: 'codec-instance';
|
|
283
|
+
readonly codecId: 'pg/timestamptz@1';
|
|
284
|
+
readonly nativeType: 'timestamptz';
|
|
285
|
+
readonly typeParams: Record<string, never>;
|
|
286
|
+
};
|
|
287
|
+
};
|
|
288
|
+
readonly storageHash: StorageHash;
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
readonly AuthIdentity: {
|
|
292
|
+
readonly fields: {
|
|
293
|
+
readonly id: {
|
|
294
|
+
readonly nullable: false;
|
|
295
|
+
readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1' };
|
|
296
|
+
};
|
|
297
|
+
readonly user_id: {
|
|
298
|
+
readonly nullable: false;
|
|
299
|
+
readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1' };
|
|
300
|
+
};
|
|
301
|
+
readonly provider: {
|
|
302
|
+
readonly nullable: false;
|
|
303
|
+
readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1' };
|
|
304
|
+
};
|
|
305
|
+
readonly created_at: {
|
|
306
|
+
readonly nullable: false;
|
|
307
|
+
readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/timestamptz@1' };
|
|
308
|
+
};
|
|
309
|
+
readonly updated_at: {
|
|
310
|
+
readonly nullable: false;
|
|
311
|
+
readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/timestamptz@1' };
|
|
312
|
+
};
|
|
313
|
+
};
|
|
314
|
+
readonly relations: Record<string, never>;
|
|
315
|
+
readonly storage: {
|
|
316
|
+
readonly table: 'identities';
|
|
317
|
+
readonly namespaceId: 'auth';
|
|
318
|
+
readonly fields: {
|
|
319
|
+
readonly id: { readonly column: 'id' };
|
|
320
|
+
readonly user_id: { readonly column: 'user_id' };
|
|
321
|
+
readonly provider: { readonly column: 'provider' };
|
|
322
|
+
readonly created_at: { readonly column: 'created_at' };
|
|
323
|
+
readonly updated_at: { readonly column: 'updated_at' };
|
|
324
|
+
};
|
|
325
|
+
};
|
|
326
|
+
};
|
|
327
|
+
readonly AuthUser: {
|
|
328
|
+
readonly fields: {
|
|
329
|
+
readonly id: {
|
|
330
|
+
readonly nullable: false;
|
|
331
|
+
readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1' };
|
|
332
|
+
};
|
|
333
|
+
readonly email: {
|
|
334
|
+
readonly nullable: false;
|
|
335
|
+
readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1' };
|
|
336
|
+
};
|
|
337
|
+
readonly created_at: {
|
|
338
|
+
readonly nullable: false;
|
|
339
|
+
readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/timestamptz@1' };
|
|
340
|
+
};
|
|
341
|
+
readonly updated_at: {
|
|
342
|
+
readonly nullable: false;
|
|
343
|
+
readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/timestamptz@1' };
|
|
344
|
+
};
|
|
345
|
+
};
|
|
346
|
+
readonly relations: Record<string, never>;
|
|
347
|
+
readonly storage: {
|
|
348
|
+
readonly table: 'users';
|
|
349
|
+
readonly namespaceId: 'auth';
|
|
350
|
+
readonly fields: {
|
|
351
|
+
readonly id: { readonly column: 'id' };
|
|
352
|
+
readonly email: { readonly column: 'email' };
|
|
353
|
+
readonly created_at: { readonly column: 'created_at' };
|
|
354
|
+
readonly updated_at: { readonly column: 'updated_at' };
|
|
355
|
+
};
|
|
356
|
+
};
|
|
357
|
+
};
|
|
358
|
+
readonly StorageBucket: {
|
|
359
|
+
readonly fields: {
|
|
360
|
+
readonly id: {
|
|
361
|
+
readonly nullable: false;
|
|
362
|
+
readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1' };
|
|
363
|
+
};
|
|
364
|
+
readonly name: {
|
|
365
|
+
readonly nullable: false;
|
|
366
|
+
readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1' };
|
|
367
|
+
};
|
|
368
|
+
readonly created_at: {
|
|
369
|
+
readonly nullable: false;
|
|
370
|
+
readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/timestamptz@1' };
|
|
371
|
+
};
|
|
372
|
+
readonly updated_at: {
|
|
373
|
+
readonly nullable: false;
|
|
374
|
+
readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/timestamptz@1' };
|
|
375
|
+
};
|
|
376
|
+
};
|
|
377
|
+
readonly relations: Record<string, never>;
|
|
378
|
+
readonly storage: {
|
|
379
|
+
readonly table: 'buckets';
|
|
380
|
+
readonly namespaceId: 'storage';
|
|
381
|
+
readonly fields: {
|
|
382
|
+
readonly id: { readonly column: 'id' };
|
|
383
|
+
readonly name: { readonly column: 'name' };
|
|
384
|
+
readonly created_at: { readonly column: 'created_at' };
|
|
385
|
+
readonly updated_at: { readonly column: 'updated_at' };
|
|
386
|
+
};
|
|
387
|
+
};
|
|
388
|
+
};
|
|
389
|
+
readonly StorageObject: {
|
|
390
|
+
readonly fields: {
|
|
391
|
+
readonly id: {
|
|
392
|
+
readonly nullable: false;
|
|
393
|
+
readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1' };
|
|
394
|
+
};
|
|
395
|
+
readonly bucket_id: {
|
|
396
|
+
readonly nullable: false;
|
|
397
|
+
readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1' };
|
|
398
|
+
};
|
|
399
|
+
readonly name: {
|
|
400
|
+
readonly nullable: false;
|
|
401
|
+
readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1' };
|
|
402
|
+
};
|
|
403
|
+
readonly created_at: {
|
|
404
|
+
readonly nullable: false;
|
|
405
|
+
readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/timestamptz@1' };
|
|
406
|
+
};
|
|
407
|
+
readonly updated_at: {
|
|
408
|
+
readonly nullable: false;
|
|
409
|
+
readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/timestamptz@1' };
|
|
410
|
+
};
|
|
411
|
+
};
|
|
412
|
+
readonly relations: Record<string, never>;
|
|
413
|
+
readonly storage: {
|
|
414
|
+
readonly table: 'objects';
|
|
415
|
+
readonly namespaceId: 'storage';
|
|
416
|
+
readonly fields: {
|
|
417
|
+
readonly id: { readonly column: 'id' };
|
|
418
|
+
readonly bucket_id: { readonly column: 'bucket_id' };
|
|
419
|
+
readonly name: { readonly column: 'name' };
|
|
420
|
+
readonly created_at: { readonly column: 'created_at' };
|
|
421
|
+
readonly updated_at: { readonly column: 'updated_at' };
|
|
422
|
+
};
|
|
423
|
+
};
|
|
424
|
+
};
|
|
425
|
+
}
|
|
426
|
+
>,
|
|
427
|
+
'roots' | 'domain'
|
|
428
|
+
> & {
|
|
429
|
+
readonly target: 'postgres';
|
|
430
|
+
readonly targetFamily: 'sql';
|
|
431
|
+
readonly roots: {
|
|
432
|
+
readonly users: { readonly namespace: 'auth' & NamespaceId; readonly model: 'AuthUser' };
|
|
433
|
+
readonly identities: {
|
|
434
|
+
readonly namespace: 'auth' & NamespaceId;
|
|
435
|
+
readonly model: 'AuthIdentity';
|
|
436
|
+
};
|
|
437
|
+
readonly buckets: {
|
|
438
|
+
readonly namespace: 'storage' & NamespaceId;
|
|
439
|
+
readonly model: 'StorageBucket';
|
|
440
|
+
};
|
|
441
|
+
readonly objects: {
|
|
442
|
+
readonly namespace: 'storage' & NamespaceId;
|
|
443
|
+
readonly model: 'StorageObject';
|
|
444
|
+
};
|
|
445
|
+
};
|
|
446
|
+
readonly domain: {
|
|
447
|
+
readonly namespaces: {
|
|
448
|
+
readonly auth: {
|
|
449
|
+
readonly models: {
|
|
450
|
+
readonly AuthIdentity: {
|
|
451
|
+
readonly fields: {
|
|
452
|
+
readonly id: {
|
|
453
|
+
readonly nullable: false;
|
|
454
|
+
readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1' };
|
|
455
|
+
};
|
|
456
|
+
readonly user_id: {
|
|
457
|
+
readonly nullable: false;
|
|
458
|
+
readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1' };
|
|
459
|
+
};
|
|
460
|
+
readonly provider: {
|
|
461
|
+
readonly nullable: false;
|
|
462
|
+
readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1' };
|
|
463
|
+
};
|
|
464
|
+
readonly created_at: {
|
|
465
|
+
readonly nullable: false;
|
|
466
|
+
readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/timestamptz@1' };
|
|
467
|
+
};
|
|
468
|
+
readonly updated_at: {
|
|
469
|
+
readonly nullable: false;
|
|
470
|
+
readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/timestamptz@1' };
|
|
471
|
+
};
|
|
472
|
+
};
|
|
473
|
+
readonly relations: Record<string, never>;
|
|
474
|
+
readonly storage: {
|
|
475
|
+
readonly table: 'identities';
|
|
476
|
+
readonly namespaceId: 'auth';
|
|
477
|
+
readonly fields: {
|
|
478
|
+
readonly id: { readonly column: 'id' };
|
|
479
|
+
readonly user_id: { readonly column: 'user_id' };
|
|
480
|
+
readonly provider: { readonly column: 'provider' };
|
|
481
|
+
readonly created_at: { readonly column: 'created_at' };
|
|
482
|
+
readonly updated_at: { readonly column: 'updated_at' };
|
|
483
|
+
};
|
|
484
|
+
};
|
|
485
|
+
};
|
|
486
|
+
readonly AuthUser: {
|
|
487
|
+
readonly fields: {
|
|
488
|
+
readonly id: {
|
|
489
|
+
readonly nullable: false;
|
|
490
|
+
readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1' };
|
|
491
|
+
};
|
|
492
|
+
readonly email: {
|
|
493
|
+
readonly nullable: false;
|
|
494
|
+
readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1' };
|
|
495
|
+
};
|
|
496
|
+
readonly created_at: {
|
|
497
|
+
readonly nullable: false;
|
|
498
|
+
readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/timestamptz@1' };
|
|
499
|
+
};
|
|
500
|
+
readonly updated_at: {
|
|
501
|
+
readonly nullable: false;
|
|
502
|
+
readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/timestamptz@1' };
|
|
503
|
+
};
|
|
504
|
+
};
|
|
505
|
+
readonly relations: Record<string, never>;
|
|
506
|
+
readonly storage: {
|
|
507
|
+
readonly table: 'users';
|
|
508
|
+
readonly namespaceId: 'auth';
|
|
509
|
+
readonly fields: {
|
|
510
|
+
readonly id: { readonly column: 'id' };
|
|
511
|
+
readonly email: { readonly column: 'email' };
|
|
512
|
+
readonly created_at: { readonly column: 'created_at' };
|
|
513
|
+
readonly updated_at: { readonly column: 'updated_at' };
|
|
514
|
+
};
|
|
515
|
+
};
|
|
516
|
+
};
|
|
517
|
+
};
|
|
518
|
+
};
|
|
519
|
+
readonly storage: {
|
|
520
|
+
readonly models: {
|
|
521
|
+
readonly StorageBucket: {
|
|
522
|
+
readonly fields: {
|
|
523
|
+
readonly id: {
|
|
524
|
+
readonly nullable: false;
|
|
525
|
+
readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1' };
|
|
526
|
+
};
|
|
527
|
+
readonly name: {
|
|
528
|
+
readonly nullable: false;
|
|
529
|
+
readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1' };
|
|
530
|
+
};
|
|
531
|
+
readonly created_at: {
|
|
532
|
+
readonly nullable: false;
|
|
533
|
+
readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/timestamptz@1' };
|
|
534
|
+
};
|
|
535
|
+
readonly updated_at: {
|
|
536
|
+
readonly nullable: false;
|
|
537
|
+
readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/timestamptz@1' };
|
|
538
|
+
};
|
|
539
|
+
};
|
|
540
|
+
readonly relations: Record<string, never>;
|
|
541
|
+
readonly storage: {
|
|
542
|
+
readonly table: 'buckets';
|
|
543
|
+
readonly namespaceId: 'storage';
|
|
544
|
+
readonly fields: {
|
|
545
|
+
readonly id: { readonly column: 'id' };
|
|
546
|
+
readonly name: { readonly column: 'name' };
|
|
547
|
+
readonly created_at: { readonly column: 'created_at' };
|
|
548
|
+
readonly updated_at: { readonly column: 'updated_at' };
|
|
549
|
+
};
|
|
550
|
+
};
|
|
551
|
+
};
|
|
552
|
+
readonly StorageObject: {
|
|
553
|
+
readonly fields: {
|
|
554
|
+
readonly id: {
|
|
555
|
+
readonly nullable: false;
|
|
556
|
+
readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1' };
|
|
557
|
+
};
|
|
558
|
+
readonly bucket_id: {
|
|
559
|
+
readonly nullable: false;
|
|
560
|
+
readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1' };
|
|
561
|
+
};
|
|
562
|
+
readonly name: {
|
|
563
|
+
readonly nullable: false;
|
|
564
|
+
readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/text@1' };
|
|
565
|
+
};
|
|
566
|
+
readonly created_at: {
|
|
567
|
+
readonly nullable: false;
|
|
568
|
+
readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/timestamptz@1' };
|
|
569
|
+
};
|
|
570
|
+
readonly updated_at: {
|
|
571
|
+
readonly nullable: false;
|
|
572
|
+
readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/timestamptz@1' };
|
|
573
|
+
};
|
|
574
|
+
};
|
|
575
|
+
readonly relations: Record<string, never>;
|
|
576
|
+
readonly storage: {
|
|
577
|
+
readonly table: 'objects';
|
|
578
|
+
readonly namespaceId: 'storage';
|
|
579
|
+
readonly fields: {
|
|
580
|
+
readonly id: { readonly column: 'id' };
|
|
581
|
+
readonly bucket_id: { readonly column: 'bucket_id' };
|
|
582
|
+
readonly name: { readonly column: 'name' };
|
|
583
|
+
readonly created_at: { readonly column: 'created_at' };
|
|
584
|
+
readonly updated_at: { readonly column: 'updated_at' };
|
|
585
|
+
};
|
|
586
|
+
};
|
|
587
|
+
};
|
|
588
|
+
};
|
|
589
|
+
};
|
|
590
|
+
};
|
|
591
|
+
};
|
|
592
|
+
readonly capabilities: {
|
|
593
|
+
readonly postgres: {
|
|
594
|
+
readonly distinctOn: true;
|
|
595
|
+
readonly jsonAgg: true;
|
|
596
|
+
readonly lateral: true;
|
|
597
|
+
readonly limit: true;
|
|
598
|
+
readonly orderBy: true;
|
|
599
|
+
readonly returning: true;
|
|
600
|
+
};
|
|
601
|
+
readonly sql: {
|
|
602
|
+
readonly defaultInInsert: true;
|
|
603
|
+
readonly enums: true;
|
|
604
|
+
readonly lateral: true;
|
|
605
|
+
readonly returning: true;
|
|
606
|
+
};
|
|
607
|
+
};
|
|
608
|
+
readonly extensionPacks: {};
|
|
609
|
+
readonly meta: {};
|
|
610
|
+
|
|
611
|
+
readonly profileHash: ProfileHash;
|
|
612
|
+
};
|
|
613
|
+
|
|
614
|
+
export type Models = ContractModelDefinitions<Contract>;
|
|
615
|
+
|
|
616
|
+
export type Contract = ContractWithTypeMaps<ContractBase, TypeMaps>;
|
|
617
|
+
|
|
618
|
+
export type Namespaces = Contract['storage']['namespaces'];
|