@prisma-next/extension-supabase 0.13.0 → 0.14.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/dist/pack.mjs +11 -18
- package/dist/pack.mjs.map +1 -1
- package/dist/package-DIZfAx0c.mjs +6 -0
- package/dist/package-DIZfAx0c.mjs.map +1 -0
- package/dist/runtime.d.mts +110 -3
- package/dist/runtime.d.mts.map +1 -1
- package/dist/runtime.mjs +278 -3
- package/dist/runtime.mjs.map +1 -1
- package/dist/test/utils.d.mts +7 -6
- package/dist/test/utils.d.mts.map +1 -1
- package/dist/test/utils.mjs +19 -6
- package/dist/test/utils.mjs.map +1 -1
- package/package.json +28 -25
- package/src/contract/contract.d.ts +218 -356
- package/src/contract/contract.json +10 -17
- package/src/exports/runtime.ts +17 -29
- package/src/runtime/descriptor.ts +26 -0
- package/src/runtime/supabase-runtime.ts +171 -0
- package/src/runtime/supabase.ts +323 -0
|
@@ -23,7 +23,6 @@ import type {
|
|
|
23
23
|
} from '@prisma-next/sql-contract/types';
|
|
24
24
|
import type {
|
|
25
25
|
Contract as ContractType,
|
|
26
|
-
ContractModelDefinitions,
|
|
27
26
|
ExecutionHashBase,
|
|
28
27
|
NamespaceId,
|
|
29
28
|
ProfileHashBase,
|
|
@@ -31,7 +30,7 @@ import type {
|
|
|
31
30
|
} from '@prisma-next/contract/types';
|
|
32
31
|
|
|
33
32
|
export type StorageHash =
|
|
34
|
-
StorageHashBase<'sha256:
|
|
33
|
+
StorageHashBase<'sha256:61dac13aa56bcb5b7f1c5441c2bd8fc07d88f6c870c80b4c1640fd0d180fb423'>;
|
|
35
34
|
export type ExecutionHash = ExecutionHashBase<string>;
|
|
36
35
|
export type ProfileHash =
|
|
37
36
|
ProfileHashBase<'sha256:9c8aa3114e84ed3b7ea2bd57526d9c2e1bf7c5292be694e9d3801f566fda7ccb'>;
|
|
@@ -44,59 +43,67 @@ type DefaultLiteralValue<CodecId extends string, _Encoded> = CodecId extends key
|
|
|
44
43
|
: _Encoded;
|
|
45
44
|
|
|
46
45
|
export type FieldOutputTypes = {
|
|
47
|
-
readonly
|
|
48
|
-
readonly
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
readonly
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
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'];
|
|
46
|
+
readonly auth: {
|
|
47
|
+
readonly AuthIdentity: {
|
|
48
|
+
readonly id: CodecTypes['pg/uuid@1']['output'];
|
|
49
|
+
readonly user_id: CodecTypes['pg/uuid@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/uuid@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
|
+
};
|
|
65
60
|
};
|
|
66
|
-
readonly
|
|
67
|
-
readonly
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
61
|
+
readonly storage: {
|
|
62
|
+
readonly StorageBucket: {
|
|
63
|
+
readonly id: CodecTypes['pg/text@1']['output'];
|
|
64
|
+
readonly name: CodecTypes['pg/text@1']['output'];
|
|
65
|
+
readonly created_at: CodecTypes['pg/timestamptz@1']['output'];
|
|
66
|
+
readonly updated_at: CodecTypes['pg/timestamptz@1']['output'];
|
|
67
|
+
};
|
|
68
|
+
readonly StorageObject: {
|
|
69
|
+
readonly id: CodecTypes['pg/uuid@1']['output'];
|
|
70
|
+
readonly bucket_id: CodecTypes['pg/text@1']['output'];
|
|
71
|
+
readonly name: CodecTypes['pg/text@1']['output'];
|
|
72
|
+
readonly created_at: CodecTypes['pg/timestamptz@1']['output'];
|
|
73
|
+
readonly updated_at: CodecTypes['pg/timestamptz@1']['output'];
|
|
74
|
+
};
|
|
72
75
|
};
|
|
73
76
|
};
|
|
74
77
|
export type FieldInputTypes = {
|
|
75
|
-
readonly
|
|
76
|
-
readonly
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
readonly
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
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'];
|
|
78
|
+
readonly auth: {
|
|
79
|
+
readonly AuthIdentity: {
|
|
80
|
+
readonly id: CodecTypes['pg/uuid@1']['input'];
|
|
81
|
+
readonly user_id: CodecTypes['pg/uuid@1']['input'];
|
|
82
|
+
readonly provider: CodecTypes['pg/text@1']['input'];
|
|
83
|
+
readonly created_at: CodecTypes['pg/timestamptz@1']['input'];
|
|
84
|
+
readonly updated_at: CodecTypes['pg/timestamptz@1']['input'];
|
|
85
|
+
};
|
|
86
|
+
readonly AuthUser: {
|
|
87
|
+
readonly id: CodecTypes['pg/uuid@1']['input'];
|
|
88
|
+
readonly email: CodecTypes['pg/text@1']['input'];
|
|
89
|
+
readonly created_at: CodecTypes['pg/timestamptz@1']['input'];
|
|
90
|
+
readonly updated_at: CodecTypes['pg/timestamptz@1']['input'];
|
|
91
|
+
};
|
|
93
92
|
};
|
|
94
|
-
readonly
|
|
95
|
-
readonly
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
93
|
+
readonly storage: {
|
|
94
|
+
readonly StorageBucket: {
|
|
95
|
+
readonly id: CodecTypes['pg/text@1']['input'];
|
|
96
|
+
readonly name: CodecTypes['pg/text@1']['input'];
|
|
97
|
+
readonly created_at: CodecTypes['pg/timestamptz@1']['input'];
|
|
98
|
+
readonly updated_at: CodecTypes['pg/timestamptz@1']['input'];
|
|
99
|
+
};
|
|
100
|
+
readonly StorageObject: {
|
|
101
|
+
readonly id: CodecTypes['pg/uuid@1']['input'];
|
|
102
|
+
readonly bucket_id: CodecTypes['pg/text@1']['input'];
|
|
103
|
+
readonly name: CodecTypes['pg/text@1']['input'];
|
|
104
|
+
readonly created_at: CodecTypes['pg/timestamptz@1']['input'];
|
|
105
|
+
readonly updated_at: CodecTypes['pg/timestamptz@1']['input'];
|
|
106
|
+
};
|
|
100
107
|
};
|
|
101
108
|
};
|
|
102
109
|
export type TypeMaps = TypeMapsType<
|
|
@@ -107,323 +114,180 @@ export type TypeMaps = TypeMapsType<
|
|
|
107
114
|
>;
|
|
108
115
|
|
|
109
116
|
type ContractBase = Omit<
|
|
110
|
-
ContractType<
|
|
111
|
-
{
|
|
112
|
-
readonly
|
|
113
|
-
readonly
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
readonly
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
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
|
-
};
|
|
117
|
+
ContractType<{
|
|
118
|
+
readonly namespaces: {
|
|
119
|
+
readonly auth: {
|
|
120
|
+
readonly id: 'auth';
|
|
121
|
+
readonly kind: 'sql-namespace';
|
|
122
|
+
readonly entries: {
|
|
123
|
+
readonly table: {
|
|
124
|
+
readonly identities: {
|
|
125
|
+
columns: {
|
|
126
|
+
readonly id: {
|
|
127
|
+
readonly nativeType: 'uuid';
|
|
128
|
+
readonly codecId: 'pg/uuid@1';
|
|
129
|
+
readonly nullable: false;
|
|
130
|
+
readonly typeRef: 'Uuid';
|
|
154
131
|
};
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
readonly
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
readonly
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
readonly
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
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
|
-
};
|
|
132
|
+
readonly user_id: {
|
|
133
|
+
readonly nativeType: 'uuid';
|
|
134
|
+
readonly codecId: 'pg/uuid@1';
|
|
135
|
+
readonly nullable: false;
|
|
136
|
+
readonly typeRef: 'Uuid';
|
|
137
|
+
};
|
|
138
|
+
readonly provider: {
|
|
139
|
+
readonly nativeType: 'text';
|
|
140
|
+
readonly codecId: 'pg/text@1';
|
|
141
|
+
readonly nullable: false;
|
|
142
|
+
};
|
|
143
|
+
readonly created_at: {
|
|
144
|
+
readonly nativeType: 'timestamptz';
|
|
145
|
+
readonly codecId: 'pg/timestamptz@1';
|
|
146
|
+
readonly nullable: false;
|
|
147
|
+
readonly typeRef: 'Timestamptz';
|
|
148
|
+
};
|
|
149
|
+
readonly updated_at: {
|
|
150
|
+
readonly nativeType: 'timestamptz';
|
|
151
|
+
readonly codecId: 'pg/timestamptz@1';
|
|
152
|
+
readonly nullable: false;
|
|
153
|
+
readonly typeRef: 'Timestamptz';
|
|
185
154
|
};
|
|
186
|
-
primaryKey: { readonly columns: readonly ['id'] };
|
|
187
|
-
uniques: readonly [];
|
|
188
|
-
indexes: readonly [];
|
|
189
|
-
foreignKeys: readonly [];
|
|
190
155
|
};
|
|
156
|
+
primaryKey: { readonly columns: readonly ['id'] };
|
|
157
|
+
uniques: readonly [];
|
|
158
|
+
indexes: readonly [];
|
|
159
|
+
foreignKeys: readonly [];
|
|
191
160
|
};
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
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
|
-
};
|
|
161
|
+
readonly users: {
|
|
162
|
+
columns: {
|
|
163
|
+
readonly id: {
|
|
164
|
+
readonly nativeType: 'uuid';
|
|
165
|
+
readonly codecId: 'pg/uuid@1';
|
|
166
|
+
readonly nullable: false;
|
|
167
|
+
readonly typeRef: 'Uuid';
|
|
228
168
|
};
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
readonly
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
readonly
|
|
243
|
-
|
|
244
|
-
|
|
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
|
-
};
|
|
169
|
+
readonly email: {
|
|
170
|
+
readonly nativeType: 'text';
|
|
171
|
+
readonly codecId: 'pg/text@1';
|
|
172
|
+
readonly nullable: false;
|
|
173
|
+
};
|
|
174
|
+
readonly created_at: {
|
|
175
|
+
readonly nativeType: 'timestamptz';
|
|
176
|
+
readonly codecId: 'pg/timestamptz@1';
|
|
177
|
+
readonly nullable: false;
|
|
178
|
+
readonly typeRef: 'Timestamptz';
|
|
179
|
+
};
|
|
180
|
+
readonly updated_at: {
|
|
181
|
+
readonly nativeType: 'timestamptz';
|
|
182
|
+
readonly codecId: 'pg/timestamptz@1';
|
|
183
|
+
readonly nullable: false;
|
|
184
|
+
readonly typeRef: 'Timestamptz';
|
|
264
185
|
};
|
|
265
|
-
primaryKey: { readonly columns: readonly ['id'] };
|
|
266
|
-
uniques: readonly [];
|
|
267
|
-
indexes: readonly [];
|
|
268
|
-
foreignKeys: readonly [];
|
|
269
186
|
};
|
|
187
|
+
primaryKey: { readonly columns: readonly ['id'] };
|
|
188
|
+
uniques: readonly [];
|
|
189
|
+
indexes: readonly [];
|
|
190
|
+
foreignKeys: readonly [];
|
|
270
191
|
};
|
|
271
192
|
};
|
|
272
193
|
};
|
|
273
194
|
};
|
|
274
|
-
readonly
|
|
275
|
-
readonly
|
|
276
|
-
|
|
277
|
-
|
|
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
|
-
};
|
|
195
|
+
readonly public: {
|
|
196
|
+
readonly id: 'public';
|
|
197
|
+
readonly kind: 'sql-namespace';
|
|
198
|
+
readonly entries: { readonly table: {} };
|
|
287
199
|
};
|
|
288
|
-
readonly
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
readonly
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
200
|
+
readonly storage: {
|
|
201
|
+
readonly id: 'storage';
|
|
202
|
+
readonly kind: 'sql-namespace';
|
|
203
|
+
readonly entries: {
|
|
204
|
+
readonly table: {
|
|
205
|
+
readonly buckets: {
|
|
206
|
+
columns: {
|
|
207
|
+
readonly id: {
|
|
208
|
+
readonly nativeType: 'text';
|
|
209
|
+
readonly codecId: 'pg/text@1';
|
|
210
|
+
readonly nullable: false;
|
|
211
|
+
};
|
|
212
|
+
readonly name: {
|
|
213
|
+
readonly nativeType: 'text';
|
|
214
|
+
readonly codecId: 'pg/text@1';
|
|
215
|
+
readonly nullable: false;
|
|
216
|
+
};
|
|
217
|
+
readonly created_at: {
|
|
218
|
+
readonly nativeType: 'timestamptz';
|
|
219
|
+
readonly codecId: 'pg/timestamptz@1';
|
|
220
|
+
readonly nullable: false;
|
|
221
|
+
readonly typeRef: 'Timestamptz';
|
|
222
|
+
};
|
|
223
|
+
readonly updated_at: {
|
|
224
|
+
readonly nativeType: 'timestamptz';
|
|
225
|
+
readonly codecId: 'pg/timestamptz@1';
|
|
226
|
+
readonly nullable: false;
|
|
227
|
+
readonly typeRef: 'Timestamptz';
|
|
228
|
+
};
|
|
229
|
+
};
|
|
230
|
+
primaryKey: { readonly columns: readonly ['id'] };
|
|
231
|
+
uniques: readonly [];
|
|
232
|
+
indexes: readonly [];
|
|
233
|
+
foreignKeys: readonly [];
|
|
234
|
+
};
|
|
235
|
+
readonly objects: {
|
|
236
|
+
columns: {
|
|
237
|
+
readonly id: {
|
|
238
|
+
readonly nativeType: 'uuid';
|
|
239
|
+
readonly codecId: 'pg/uuid@1';
|
|
240
|
+
readonly nullable: false;
|
|
241
|
+
readonly typeRef: 'Uuid';
|
|
242
|
+
};
|
|
243
|
+
readonly bucket_id: {
|
|
244
|
+
readonly nativeType: 'text';
|
|
245
|
+
readonly codecId: 'pg/text@1';
|
|
246
|
+
readonly nullable: false;
|
|
247
|
+
};
|
|
248
|
+
readonly name: {
|
|
249
|
+
readonly nativeType: 'text';
|
|
250
|
+
readonly codecId: 'pg/text@1';
|
|
251
|
+
readonly nullable: false;
|
|
252
|
+
};
|
|
253
|
+
readonly created_at: {
|
|
254
|
+
readonly nativeType: 'timestamptz';
|
|
255
|
+
readonly codecId: 'pg/timestamptz@1';
|
|
256
|
+
readonly nullable: false;
|
|
257
|
+
readonly typeRef: 'Timestamptz';
|
|
258
|
+
};
|
|
259
|
+
readonly updated_at: {
|
|
260
|
+
readonly nativeType: 'timestamptz';
|
|
261
|
+
readonly codecId: 'pg/timestamptz@1';
|
|
262
|
+
readonly nullable: false;
|
|
263
|
+
readonly typeRef: 'Timestamptz';
|
|
264
|
+
};
|
|
265
|
+
};
|
|
266
|
+
primaryKey: { readonly columns: readonly ['id'] };
|
|
267
|
+
uniques: readonly [];
|
|
268
|
+
indexes: readonly [];
|
|
269
|
+
foreignKeys: readonly [];
|
|
270
|
+
};
|
|
355
271
|
};
|
|
356
272
|
};
|
|
357
273
|
};
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
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
|
-
};
|
|
274
|
+
};
|
|
275
|
+
readonly types: {
|
|
276
|
+
readonly Uuid: {
|
|
277
|
+
readonly kind: 'codec-instance';
|
|
278
|
+
readonly codecId: 'pg/uuid@1';
|
|
279
|
+
readonly nativeType: 'uuid';
|
|
280
|
+
readonly typeParams: Record<string, never>;
|
|
388
281
|
};
|
|
389
|
-
readonly
|
|
390
|
-
readonly
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
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
|
-
};
|
|
282
|
+
readonly Timestamptz: {
|
|
283
|
+
readonly kind: 'codec-instance';
|
|
284
|
+
readonly codecId: 'pg/timestamptz@1';
|
|
285
|
+
readonly nativeType: 'timestamptz';
|
|
286
|
+
readonly typeParams: Record<string, never>;
|
|
424
287
|
};
|
|
425
|
-
}
|
|
426
|
-
|
|
288
|
+
};
|
|
289
|
+
readonly storageHash: StorageHash;
|
|
290
|
+
}>,
|
|
427
291
|
'roots' | 'domain'
|
|
428
292
|
> & {
|
|
429
293
|
readonly target: 'postgres';
|
|
@@ -451,11 +315,11 @@ type ContractBase = Omit<
|
|
|
451
315
|
readonly fields: {
|
|
452
316
|
readonly id: {
|
|
453
317
|
readonly nullable: false;
|
|
454
|
-
readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/
|
|
318
|
+
readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/uuid@1' };
|
|
455
319
|
};
|
|
456
320
|
readonly user_id: {
|
|
457
321
|
readonly nullable: false;
|
|
458
|
-
readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/
|
|
322
|
+
readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/uuid@1' };
|
|
459
323
|
};
|
|
460
324
|
readonly provider: {
|
|
461
325
|
readonly nullable: false;
|
|
@@ -487,7 +351,7 @@ type ContractBase = Omit<
|
|
|
487
351
|
readonly fields: {
|
|
488
352
|
readonly id: {
|
|
489
353
|
readonly nullable: false;
|
|
490
|
-
readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/
|
|
354
|
+
readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/uuid@1' };
|
|
491
355
|
};
|
|
492
356
|
readonly email: {
|
|
493
357
|
readonly nullable: false;
|
|
@@ -553,7 +417,7 @@ type ContractBase = Omit<
|
|
|
553
417
|
readonly fields: {
|
|
554
418
|
readonly id: {
|
|
555
419
|
readonly nullable: false;
|
|
556
|
-
readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/
|
|
420
|
+
readonly type: { readonly kind: 'scalar'; readonly codecId: 'pg/uuid@1' };
|
|
557
421
|
};
|
|
558
422
|
readonly bucket_id: {
|
|
559
423
|
readonly nullable: false;
|
|
@@ -611,8 +475,6 @@ type ContractBase = Omit<
|
|
|
611
475
|
readonly profileHash: ProfileHash;
|
|
612
476
|
};
|
|
613
477
|
|
|
614
|
-
export type Models = ContractModelDefinitions<Contract>;
|
|
615
|
-
|
|
616
478
|
export type Contract = ContractWithTypeMaps<ContractBase, TypeMaps>;
|
|
617
479
|
|
|
618
480
|
export type Namespaces = Contract['storage']['namespaces'];
|