@gaialabs/core 0.2.4 → 0.2.5
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/client/client.d.ts +1 -0
- package/client/client.js +5 -0
- package/client/default.d.ts +1 -0
- package/client/default.js +5 -0
- package/client/edge.d.ts +1 -0
- package/client/edge.js +373 -0
- package/client/index-browser.js +399 -0
- package/client/index.d.ts +34222 -0
- package/client/index.js +373 -0
- package/client/package.json +144 -0
- package/client/query_compiler_fast_bg.js +2 -0
- package/client/query_compiler_fast_bg.wasm +0 -0
- package/client/query_compiler_fast_bg.wasm-base64.js +2 -0
- package/client/query_engine-windows.dll.node +0 -0
- package/client/query_engine_bg.js +2 -0
- package/client/query_engine_bg.wasm +0 -0
- package/client/runtime/client.d.ts +3358 -0
- package/client/runtime/client.js +86 -0
- package/client/runtime/edge-esm.js +35 -0
- package/client/runtime/edge.js +35 -0
- package/client/runtime/index-browser.d.ts +90 -0
- package/client/runtime/index-browser.js +6 -0
- package/client/runtime/library.d.ts +3982 -0
- package/client/runtime/library.js +147 -0
- package/client/runtime/react-native.js +84 -0
- package/client/runtime/wasm-compiler-edge.js +76 -0
- package/client/runtime/wasm-engine-edge.js +38 -0
- package/client/schema.prisma +404 -0
- package/client/wasm-edge-light-loader.mjs +5 -0
- package/client/wasm-worker-loader.mjs +5 -0
- package/client/wasm.d.ts +1 -0
- package/client/wasm.js +421 -0
- package/dist/index.cjs +1228 -424
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1038 -347
- package/dist/index.d.cts.map +1 -0
- package/dist/index.d.mts +1038 -347
- package/dist/index.d.mts.map +1 -0
- package/dist/index.mjs +1225 -421
- package/dist/index.mjs.map +1 -1
- package/package.json +15 -1
- package/prisma.cjs +1 -0
- package/prisma.d.ts +1 -0
- package/prisma.mjs +9 -0
package/client/wasm.js
ADDED
|
@@ -0,0 +1,421 @@
|
|
|
1
|
+
|
|
2
|
+
/* !!! This is code generated by Prisma. Do not edit directly. !!!
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// biome-ignore-all lint: generated file
|
|
5
|
+
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
|
|
8
|
+
const {
|
|
9
|
+
PrismaClientKnownRequestError,
|
|
10
|
+
PrismaClientUnknownRequestError,
|
|
11
|
+
PrismaClientRustPanicError,
|
|
12
|
+
PrismaClientInitializationError,
|
|
13
|
+
PrismaClientValidationError,
|
|
14
|
+
getPrismaClient,
|
|
15
|
+
sqltag,
|
|
16
|
+
empty,
|
|
17
|
+
join,
|
|
18
|
+
raw,
|
|
19
|
+
skip,
|
|
20
|
+
Decimal,
|
|
21
|
+
Debug,
|
|
22
|
+
objectEnumValues,
|
|
23
|
+
makeStrictEnum,
|
|
24
|
+
Extensions,
|
|
25
|
+
warnOnce,
|
|
26
|
+
defineDmmfProperty,
|
|
27
|
+
Public,
|
|
28
|
+
getRuntime,
|
|
29
|
+
createParam,
|
|
30
|
+
} = require('./runtime/wasm-engine-edge.js')
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
const Prisma = {}
|
|
34
|
+
|
|
35
|
+
exports.Prisma = Prisma
|
|
36
|
+
exports.$Enums = {}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Prisma Client JS version: 6.19.2
|
|
40
|
+
* Query Engine version: c2990dca591cba766e3b7ef5d9e8a84796e47ab7
|
|
41
|
+
*/
|
|
42
|
+
Prisma.prismaVersion = {
|
|
43
|
+
client: "6.19.2",
|
|
44
|
+
engine: "c2990dca591cba766e3b7ef5d9e8a84796e47ab7"
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
Prisma.PrismaClientKnownRequestError = PrismaClientKnownRequestError;
|
|
48
|
+
Prisma.PrismaClientUnknownRequestError = PrismaClientUnknownRequestError
|
|
49
|
+
Prisma.PrismaClientRustPanicError = PrismaClientRustPanicError
|
|
50
|
+
Prisma.PrismaClientInitializationError = PrismaClientInitializationError
|
|
51
|
+
Prisma.PrismaClientValidationError = PrismaClientValidationError
|
|
52
|
+
Prisma.Decimal = Decimal
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Re-export of sql-template-tag
|
|
56
|
+
*/
|
|
57
|
+
Prisma.sql = sqltag
|
|
58
|
+
Prisma.empty = empty
|
|
59
|
+
Prisma.join = join
|
|
60
|
+
Prisma.raw = raw
|
|
61
|
+
Prisma.validator = Public.validator
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Extensions
|
|
65
|
+
*/
|
|
66
|
+
Prisma.getExtensionContext = Extensions.getExtensionContext
|
|
67
|
+
Prisma.defineExtension = Extensions.defineExtension
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Shorthand utilities for JSON filtering
|
|
71
|
+
*/
|
|
72
|
+
Prisma.DbNull = objectEnumValues.instances.DbNull
|
|
73
|
+
Prisma.JsonNull = objectEnumValues.instances.JsonNull
|
|
74
|
+
Prisma.AnyNull = objectEnumValues.instances.AnyNull
|
|
75
|
+
|
|
76
|
+
Prisma.NullTypes = {
|
|
77
|
+
DbNull: objectEnumValues.classes.DbNull,
|
|
78
|
+
JsonNull: objectEnumValues.classes.JsonNull,
|
|
79
|
+
AnyNull: objectEnumValues.classes.AnyNull
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* Enums
|
|
88
|
+
*/
|
|
89
|
+
exports.Prisma.TransactionIsolationLevel = makeStrictEnum({
|
|
90
|
+
ReadUncommitted: 'ReadUncommitted',
|
|
91
|
+
ReadCommitted: 'ReadCommitted',
|
|
92
|
+
RepeatableRead: 'RepeatableRead',
|
|
93
|
+
Serializable: 'Serializable'
|
|
94
|
+
});
|
|
95
|
+
|
|
96
|
+
exports.Prisma.PlatformScalarFieldEnum = {
|
|
97
|
+
id: 'id',
|
|
98
|
+
name: 'name',
|
|
99
|
+
meta: 'meta',
|
|
100
|
+
createdAt: 'createdAt',
|
|
101
|
+
updatedAt: 'updatedAt'
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
exports.Prisma.PlatformBranchScalarFieldEnum = {
|
|
105
|
+
id: 'id',
|
|
106
|
+
name: 'name',
|
|
107
|
+
version: 'version',
|
|
108
|
+
isActive: 'isActive',
|
|
109
|
+
notes: 'notes',
|
|
110
|
+
platformId: 'platformId',
|
|
111
|
+
addressingModes: 'addressingModes',
|
|
112
|
+
vectors: 'vectors',
|
|
113
|
+
types: 'types',
|
|
114
|
+
headers: 'headers',
|
|
115
|
+
createdAt: 'createdAt',
|
|
116
|
+
updatedAt: 'updatedAt'
|
|
117
|
+
};
|
|
118
|
+
|
|
119
|
+
exports.Prisma.DeveloperScalarFieldEnum = {
|
|
120
|
+
id: 'id',
|
|
121
|
+
name: 'name',
|
|
122
|
+
meta: 'meta',
|
|
123
|
+
createdAt: 'createdAt',
|
|
124
|
+
updatedAt: 'updatedAt'
|
|
125
|
+
};
|
|
126
|
+
|
|
127
|
+
exports.Prisma.RegionScalarFieldEnum = {
|
|
128
|
+
id: 'id',
|
|
129
|
+
name: 'name',
|
|
130
|
+
meta: 'meta',
|
|
131
|
+
createdAt: 'createdAt',
|
|
132
|
+
updatedAt: 'updatedAt'
|
|
133
|
+
};
|
|
134
|
+
|
|
135
|
+
exports.Prisma.GameScalarFieldEnum = {
|
|
136
|
+
id: 'id',
|
|
137
|
+
name: 'name',
|
|
138
|
+
meta: 'meta',
|
|
139
|
+
platformId: 'platformId',
|
|
140
|
+
createdAt: 'createdAt',
|
|
141
|
+
updatedAt: 'updatedAt'
|
|
142
|
+
};
|
|
143
|
+
|
|
144
|
+
exports.Prisma.GameDeveloperScalarFieldEnum = {
|
|
145
|
+
id: 'id',
|
|
146
|
+
gameId: 'gameId',
|
|
147
|
+
developerId: 'developerId',
|
|
148
|
+
createdAt: 'createdAt',
|
|
149
|
+
updatedAt: 'updatedAt'
|
|
150
|
+
};
|
|
151
|
+
|
|
152
|
+
exports.Prisma.GameRomScalarFieldEnum = {
|
|
153
|
+
id: 'id',
|
|
154
|
+
crc: 'crc',
|
|
155
|
+
meta: 'meta',
|
|
156
|
+
gameId: 'gameId',
|
|
157
|
+
regionId: 'regionId',
|
|
158
|
+
createdAt: 'createdAt',
|
|
159
|
+
updatedAt: 'updatedAt'
|
|
160
|
+
};
|
|
161
|
+
|
|
162
|
+
exports.Prisma.GameRomBranchScalarFieldEnum = {
|
|
163
|
+
id: 'id',
|
|
164
|
+
name: 'name',
|
|
165
|
+
version: 'version',
|
|
166
|
+
isActive: 'isActive',
|
|
167
|
+
notes: 'notes',
|
|
168
|
+
gameRomId: 'gameRomId',
|
|
169
|
+
platformBranchId: 'platformBranchId',
|
|
170
|
+
coplib: 'coplib',
|
|
171
|
+
config: 'config',
|
|
172
|
+
files: 'files',
|
|
173
|
+
blocks: 'blocks',
|
|
174
|
+
labels: 'labels',
|
|
175
|
+
rewrites: 'rewrites',
|
|
176
|
+
mnemonics: 'mnemonics',
|
|
177
|
+
overrides: 'overrides',
|
|
178
|
+
transforms: 'transforms',
|
|
179
|
+
strings: 'strings',
|
|
180
|
+
structs: 'structs',
|
|
181
|
+
groups: 'groups',
|
|
182
|
+
fileTypes: 'fileTypes',
|
|
183
|
+
createdAt: 'createdAt',
|
|
184
|
+
updatedAt: 'updatedAt'
|
|
185
|
+
};
|
|
186
|
+
|
|
187
|
+
exports.Prisma.GameRomArtifactScalarFieldEnum = {
|
|
188
|
+
id: 'id',
|
|
189
|
+
name: 'name',
|
|
190
|
+
type: 'type',
|
|
191
|
+
version: 'version',
|
|
192
|
+
crc: 'crc',
|
|
193
|
+
meta: 'meta',
|
|
194
|
+
gameRomId: 'gameRomId',
|
|
195
|
+
isText: 'isText',
|
|
196
|
+
text: 'text',
|
|
197
|
+
data: 'data',
|
|
198
|
+
createdAt: 'createdAt',
|
|
199
|
+
updatedAt: 'updatedAt'
|
|
200
|
+
};
|
|
201
|
+
|
|
202
|
+
exports.Prisma.GameRomBranchArtifactScalarFieldEnum = {
|
|
203
|
+
id: 'id',
|
|
204
|
+
branchId: 'branchId',
|
|
205
|
+
artifactId: 'artifactId'
|
|
206
|
+
};
|
|
207
|
+
|
|
208
|
+
exports.Prisma.BaseRomScalarFieldEnum = {
|
|
209
|
+
id: 'id',
|
|
210
|
+
name: 'name',
|
|
211
|
+
gameId: 'gameId',
|
|
212
|
+
gameRomId: 'gameRomId',
|
|
213
|
+
createdAt: 'createdAt',
|
|
214
|
+
updatedAt: 'updatedAt'
|
|
215
|
+
};
|
|
216
|
+
|
|
217
|
+
exports.Prisma.BaseRomBranchScalarFieldEnum = {
|
|
218
|
+
id: 'id',
|
|
219
|
+
name: 'name',
|
|
220
|
+
version: 'version',
|
|
221
|
+
isActive: 'isActive',
|
|
222
|
+
notes: 'notes',
|
|
223
|
+
baseRomId: 'baseRomId',
|
|
224
|
+
gameRomBranchId: 'gameRomBranchId',
|
|
225
|
+
createdAt: 'createdAt',
|
|
226
|
+
updatedAt: 'updatedAt'
|
|
227
|
+
};
|
|
228
|
+
|
|
229
|
+
exports.Prisma.BaseRomFileScalarFieldEnum = {
|
|
230
|
+
id: 'id',
|
|
231
|
+
name: 'name',
|
|
232
|
+
type: 'type',
|
|
233
|
+
version: 'version',
|
|
234
|
+
crc: 'crc',
|
|
235
|
+
meta: 'meta',
|
|
236
|
+
baseRomId: 'baseRomId',
|
|
237
|
+
isText: 'isText',
|
|
238
|
+
text: 'text',
|
|
239
|
+
data: 'data',
|
|
240
|
+
createdAt: 'createdAt',
|
|
241
|
+
updatedAt: 'updatedAt'
|
|
242
|
+
};
|
|
243
|
+
|
|
244
|
+
exports.Prisma.BaseRomBranchFileScalarFieldEnum = {
|
|
245
|
+
id: 'id',
|
|
246
|
+
branchId: 'branchId',
|
|
247
|
+
fileId: 'fileId'
|
|
248
|
+
};
|
|
249
|
+
|
|
250
|
+
exports.Prisma.ProjectScalarFieldEnum = {
|
|
251
|
+
id: 'id',
|
|
252
|
+
name: 'name',
|
|
253
|
+
meta: 'meta',
|
|
254
|
+
gameId: 'gameId',
|
|
255
|
+
baseRomId: 'baseRomId',
|
|
256
|
+
createdAt: 'createdAt',
|
|
257
|
+
updatedAt: 'updatedAt'
|
|
258
|
+
};
|
|
259
|
+
|
|
260
|
+
exports.Prisma.ProjectBranchScalarFieldEnum = {
|
|
261
|
+
id: 'id',
|
|
262
|
+
name: 'name',
|
|
263
|
+
version: 'version',
|
|
264
|
+
isActive: 'isActive',
|
|
265
|
+
notes: 'notes',
|
|
266
|
+
projectId: 'projectId',
|
|
267
|
+
baseRomBranchId: 'baseRomBranchId',
|
|
268
|
+
modules: 'modules',
|
|
269
|
+
createdAt: 'createdAt',
|
|
270
|
+
updatedAt: 'updatedAt'
|
|
271
|
+
};
|
|
272
|
+
|
|
273
|
+
exports.Prisma.ProjectFileScalarFieldEnum = {
|
|
274
|
+
id: 'id',
|
|
275
|
+
name: 'name',
|
|
276
|
+
type: 'type',
|
|
277
|
+
module: 'module',
|
|
278
|
+
version: 'version',
|
|
279
|
+
crc: 'crc',
|
|
280
|
+
meta: 'meta',
|
|
281
|
+
projectId: 'projectId',
|
|
282
|
+
isText: 'isText',
|
|
283
|
+
text: 'text',
|
|
284
|
+
data: 'data',
|
|
285
|
+
createdAt: 'createdAt',
|
|
286
|
+
updatedAt: 'updatedAt'
|
|
287
|
+
};
|
|
288
|
+
|
|
289
|
+
exports.Prisma.ProjectBranchFileScalarFieldEnum = {
|
|
290
|
+
id: 'id',
|
|
291
|
+
branchId: 'branchId',
|
|
292
|
+
fileId: 'fileId'
|
|
293
|
+
};
|
|
294
|
+
|
|
295
|
+
exports.Prisma.SortOrder = {
|
|
296
|
+
asc: 'asc',
|
|
297
|
+
desc: 'desc'
|
|
298
|
+
};
|
|
299
|
+
|
|
300
|
+
exports.Prisma.NullableJsonNullValueInput = {
|
|
301
|
+
DbNull: Prisma.DbNull,
|
|
302
|
+
JsonNull: Prisma.JsonNull
|
|
303
|
+
};
|
|
304
|
+
|
|
305
|
+
exports.Prisma.QueryMode = {
|
|
306
|
+
default: 'default',
|
|
307
|
+
insensitive: 'insensitive'
|
|
308
|
+
};
|
|
309
|
+
|
|
310
|
+
exports.Prisma.JsonNullValueFilter = {
|
|
311
|
+
DbNull: Prisma.DbNull,
|
|
312
|
+
JsonNull: Prisma.JsonNull,
|
|
313
|
+
AnyNull: Prisma.AnyNull
|
|
314
|
+
};
|
|
315
|
+
|
|
316
|
+
exports.Prisma.NullsOrder = {
|
|
317
|
+
first: 'first',
|
|
318
|
+
last: 'last'
|
|
319
|
+
};
|
|
320
|
+
|
|
321
|
+
|
|
322
|
+
exports.Prisma.ModelName = {
|
|
323
|
+
Platform: 'Platform',
|
|
324
|
+
PlatformBranch: 'PlatformBranch',
|
|
325
|
+
Developer: 'Developer',
|
|
326
|
+
Region: 'Region',
|
|
327
|
+
Game: 'Game',
|
|
328
|
+
GameDeveloper: 'GameDeveloper',
|
|
329
|
+
GameRom: 'GameRom',
|
|
330
|
+
GameRomBranch: 'GameRomBranch',
|
|
331
|
+
GameRomArtifact: 'GameRomArtifact',
|
|
332
|
+
GameRomBranchArtifact: 'GameRomBranchArtifact',
|
|
333
|
+
BaseRom: 'BaseRom',
|
|
334
|
+
BaseRomBranch: 'BaseRomBranch',
|
|
335
|
+
BaseRomFile: 'BaseRomFile',
|
|
336
|
+
BaseRomBranchFile: 'BaseRomBranchFile',
|
|
337
|
+
Project: 'Project',
|
|
338
|
+
ProjectBranch: 'ProjectBranch',
|
|
339
|
+
ProjectFile: 'ProjectFile',
|
|
340
|
+
ProjectBranchFile: 'ProjectBranchFile'
|
|
341
|
+
};
|
|
342
|
+
/**
|
|
343
|
+
* Create the Client
|
|
344
|
+
*/
|
|
345
|
+
const config = {
|
|
346
|
+
"generator": {
|
|
347
|
+
"name": "client",
|
|
348
|
+
"provider": {
|
|
349
|
+
"fromEnvVar": null,
|
|
350
|
+
"value": "prisma-client-js"
|
|
351
|
+
},
|
|
352
|
+
"output": {
|
|
353
|
+
"value": "C:\\Work\\gaia-core\\client",
|
|
354
|
+
"fromEnvVar": null
|
|
355
|
+
},
|
|
356
|
+
"config": {
|
|
357
|
+
"engineType": "library"
|
|
358
|
+
},
|
|
359
|
+
"binaryTargets": [
|
|
360
|
+
{
|
|
361
|
+
"fromEnvVar": null,
|
|
362
|
+
"value": "windows",
|
|
363
|
+
"native": true
|
|
364
|
+
}
|
|
365
|
+
],
|
|
366
|
+
"previewFeatures": [],
|
|
367
|
+
"sourceFilePath": "C:\\Work\\gaia-core\\prisma\\schema.prisma",
|
|
368
|
+
"isCustomOutput": true
|
|
369
|
+
},
|
|
370
|
+
"relativeEnvPaths": {
|
|
371
|
+
"rootEnvPath": null,
|
|
372
|
+
"schemaEnvPath": "../.env"
|
|
373
|
+
},
|
|
374
|
+
"relativePath": "../prisma",
|
|
375
|
+
"clientVersion": "6.19.2",
|
|
376
|
+
"engineVersion": "c2990dca591cba766e3b7ef5d9e8a84796e47ab7",
|
|
377
|
+
"datasourceNames": [
|
|
378
|
+
"db"
|
|
379
|
+
],
|
|
380
|
+
"activeProvider": "postgresql",
|
|
381
|
+
"postinstall": false,
|
|
382
|
+
"inlineDatasources": {
|
|
383
|
+
"db": {
|
|
384
|
+
"url": {
|
|
385
|
+
"fromEnvVar": "DATABASE_URL",
|
|
386
|
+
"value": null
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
},
|
|
390
|
+
"inlineSchema": "// This is your Prisma schema file,\n// learn more about it in the docs: https://pris.ly/d/prisma-schema\n\n// Looking for ways to speed up your queries, or scale easily with your serverless or edge functions?\n// Try Prisma Accelerate: https://pris.ly/cli/accelerate-init\n\ngenerator client {\n provider = \"prisma-client-js\"\n output = \"../client\"\n}\n\ndatasource db {\n provider = \"postgresql\"\n url = env(\"DATABASE_URL\")\n}\n\nmodel Platform {\n id String @id @default(cuid())\n name String @unique\n meta Json?\n\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n\n branches PlatformBranch[]\n games Game[]\n}\n\nmodel PlatformBranch {\n id String @id @default(cuid())\n name String?\n version Int?\n isActive Boolean?\n notes String[]\n\n platform Platform @relation(fields: [platformId], references: [id])\n platformId String\n\n addressingModes Json?\n vectors Json?\n types Json?\n headers Json?\n\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n\n gameBranches GameRomBranch[]\n\n @@unique([platformId, name])\n @@unique([platformId, version])\n @@unique([platformId, isActive])\n @@index([platformId, name])\n @@index([platformId, version])\n @@index([platformId, isActive])\n @@index([platformId])\n}\n\nmodel Developer {\n id String @id @default(cuid())\n name String @unique\n meta Json?\n\n games GameDeveloper[]\n\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n}\n\nmodel Region {\n id String @id @default(cuid())\n name String @unique\n meta Json?\n\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n\n roms GameRom[]\n}\n\nmodel Game {\n id String @id @default(cuid())\n name String\n meta Json?\n\n platform Platform @relation(fields: [platformId], references: [id])\n platformId String\n\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n\n gameRoms GameRom[]\n baseRoms BaseRom[]\n projects Project[]\n developers GameDeveloper[]\n\n @@unique([platformId, name])\n @@index([platformId])\n}\n\nmodel GameDeveloper {\n id String @id @default(cuid())\n\n game Game? @relation(fields: [gameId], references: [id])\n gameId String?\n\n developer Developer? @relation(fields: [developerId], references: [id])\n developerId String?\n\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n\n @@index([gameId])\n @@index([developerId])\n}\n\nmodel GameRom {\n id String @id @default(cuid())\n crc Int @unique\n meta Json?\n\n game Game @relation(fields: [gameId], references: [id])\n gameId String\n\n region Region? @relation(fields: [regionId], references: [id])\n regionId String?\n\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n\n branches GameRomBranch[]\n baseRoms BaseRom[]\n artifacts GameRomArtifact[]\n\n @@index([gameId])\n @@index([regionId])\n}\n\nmodel GameRomBranch {\n id String @id @default(cuid())\n name String?\n version Int?\n isActive Boolean?\n notes String[]\n\n gameRom GameRom @relation(fields: [gameRomId], references: [id])\n gameRomId String\n\n platformBranch PlatformBranch @relation(fields: [platformBranchId], references: [id])\n platformBranchId String\n\n coplib Json?\n config Json?\n files Json?\n blocks Json?\n labels Json?\n rewrites Json?\n mnemonics Json?\n overrides Json?\n transforms Json?\n strings Json?\n structs Json?\n groups Json?\n fileTypes Json?\n\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n\n baseBranches BaseRomBranch[]\n artifacts GameRomBranchArtifact[]\n\n @@unique([gameRomId, name])\n @@unique([gameRomId, version])\n @@unique([gameRomId, isActive])\n @@index([gameRomId, name])\n @@index([gameRomId, version])\n @@index([gameRomId, isActive])\n @@index([gameRomId])\n @@index([platformBranchId])\n}\n\nmodel GameRomArtifact {\n id String @id @default(cuid())\n name String\n type String\n version Int?\n crc Int?\n meta Json?\n\n gameRom GameRom @relation(fields: [gameRomId], references: [id])\n gameRomId String\n\n isText Boolean @default(false)\n text String?\n data Bytes?\n\n branchArtifacts GameRomBranchArtifact[]\n\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n\n @@unique([gameRomId, name, version])\n @@index([gameRomId, crc])\n @@index([gameRomId])\n @@index([crc])\n}\n\nmodel GameRomBranchArtifact {\n id String @id @default(cuid())\n\n branch GameRomBranch @relation(fields: [branchId], references: [id])\n branchId String\n\n artifact GameRomArtifact @relation(fields: [artifactId], references: [id])\n artifactId String\n\n @@unique([branchId, artifactId])\n @@index([branchId])\n @@index([artifactId])\n}\n\nmodel BaseRom {\n id String @id @default(cuid())\n name String @unique\n\n game Game @relation(fields: [gameId], references: [id])\n gameId String\n\n gameRom GameRom @relation(fields: [gameRomId], references: [id])\n gameRomId String\n\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n\n branches BaseRomBranch[]\n files BaseRomFile[]\n projects Project[]\n\n @@unique([gameId, name])\n @@index([gameId, name])\n @@index([gameId])\n @@index([gameRomId])\n}\n\nmodel BaseRomBranch {\n id String @id @default(cuid())\n name String?\n version Int?\n isActive Boolean?\n notes String[]\n\n baseRom BaseRom @relation(fields: [baseRomId], references: [id])\n baseRomId String\n\n gameRomBranch GameRomBranch @relation(fields: [gameRomBranchId], references: [id])\n gameRomBranchId String\n\n projectBranches ProjectBranch[]\n\n files BaseRomBranchFile[]\n\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n\n @@unique([baseRomId, name])\n @@unique([baseRomId, version])\n @@unique([baseRomId, isActive])\n @@index([baseRomId, name])\n @@index([baseRomId, version])\n @@index([baseRomId, isActive])\n @@index([baseRomId])\n @@index([gameRomBranchId])\n}\n\nmodel BaseRomFile {\n id String @id @default(cuid())\n name String\n type String\n version Int?\n crc Int?\n meta Json?\n\n baseRom BaseRom @relation(fields: [baseRomId], references: [id])\n baseRomId String\n\n isText Boolean @default(false)\n text String?\n data Bytes?\n\n branchFiles BaseRomBranchFile[]\n\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n\n @@unique([baseRomId, name, version])\n @@index([baseRomId, crc])\n @@index([baseRomId])\n @@index([crc])\n}\n\nmodel BaseRomBranchFile {\n id String @id @default(cuid())\n\n branch BaseRomBranch @relation(fields: [branchId], references: [id])\n branchId String\n\n file BaseRomFile @relation(fields: [fileId], references: [id])\n fileId String\n\n @@unique([branchId, fileId])\n @@index([branchId])\n @@index([fileId])\n}\n\nmodel Project {\n id String @id @default(cuid())\n name String @unique\n meta Json?\n\n game Game @relation(fields: [gameId], references: [id])\n gameId String\n\n baseRom BaseRom @relation(fields: [baseRomId], references: [id])\n baseRomId String\n\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n\n files ProjectFile[]\n branches ProjectBranch[]\n\n @@index([name])\n @@index([gameId])\n @@index([baseRomId])\n}\n\nmodel ProjectBranch {\n id String @id @default(cuid())\n name String?\n version Int?\n isActive Boolean?\n notes String[]\n\n project Project @relation(fields: [projectId], references: [id])\n projectId String\n\n baseRomBranch BaseRomBranch @relation(fields: [baseRomBranchId], references: [id])\n baseRomBranchId String\n\n modules Json[]\n files ProjectBranchFile[]\n\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n\n @@unique([projectId, name])\n @@unique([projectId, version])\n @@unique([projectId, isActive])\n @@index([projectId, name])\n @@index([projectId, version])\n @@index([projectId, isActive])\n @@index([projectId])\n @@index([baseRomBranchId])\n}\n\nmodel ProjectFile {\n id String @id @default(cuid())\n name String\n type String\n module String?\n version Int?\n crc Int?\n meta Json?\n\n project Project @relation(fields: [projectId], references: [id])\n projectId String\n\n isText Boolean @default(false)\n text String?\n data Bytes?\n\n branchFiles ProjectBranchFile[]\n\n createdAt DateTime @default(now())\n updatedAt DateTime @updatedAt\n\n @@unique([projectId, module, name, version])\n @@unique([projectId, module, crc])\n @@index([projectId, crc])\n @@index([projectId])\n}\n\nmodel ProjectBranchFile {\n id String @id @default(cuid())\n\n branch ProjectBranch @relation(fields: [branchId], references: [id])\n branchId String\n\n file ProjectFile @relation(fields: [fileId], references: [id])\n fileId String\n\n @@unique([branchId, fileId])\n @@index([branchId])\n @@index([fileId])\n}\n",
|
|
391
|
+
"inlineSchemaHash": "b033c6e6a18a226f37820a1d68e03a2a212b13e4ddf986fb0338abfd9f89afbc",
|
|
392
|
+
"copyEngine": true
|
|
393
|
+
}
|
|
394
|
+
config.dirname = '/'
|
|
395
|
+
|
|
396
|
+
config.runtimeDataModel = JSON.parse("{\"models\":{\"Platform\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"meta\",\"kind\":\"scalar\",\"type\":\"Json\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"branches\",\"kind\":\"object\",\"type\":\"PlatformBranch\",\"relationName\":\"PlatformToPlatformBranch\"},{\"name\":\"games\",\"kind\":\"object\",\"type\":\"Game\",\"relationName\":\"GameToPlatform\"}],\"dbName\":null},\"PlatformBranch\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"version\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"isActive\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"notes\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"platform\",\"kind\":\"object\",\"type\":\"Platform\",\"relationName\":\"PlatformToPlatformBranch\"},{\"name\":\"platformId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"addressingModes\",\"kind\":\"scalar\",\"type\":\"Json\"},{\"name\":\"vectors\",\"kind\":\"scalar\",\"type\":\"Json\"},{\"name\":\"types\",\"kind\":\"scalar\",\"type\":\"Json\"},{\"name\":\"headers\",\"kind\":\"scalar\",\"type\":\"Json\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"gameBranches\",\"kind\":\"object\",\"type\":\"GameRomBranch\",\"relationName\":\"GameRomBranchToPlatformBranch\"}],\"dbName\":null},\"Developer\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"meta\",\"kind\":\"scalar\",\"type\":\"Json\"},{\"name\":\"games\",\"kind\":\"object\",\"type\":\"GameDeveloper\",\"relationName\":\"DeveloperToGameDeveloper\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"}],\"dbName\":null},\"Region\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"meta\",\"kind\":\"scalar\",\"type\":\"Json\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"roms\",\"kind\":\"object\",\"type\":\"GameRom\",\"relationName\":\"GameRomToRegion\"}],\"dbName\":null},\"Game\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"meta\",\"kind\":\"scalar\",\"type\":\"Json\"},{\"name\":\"platform\",\"kind\":\"object\",\"type\":\"Platform\",\"relationName\":\"GameToPlatform\"},{\"name\":\"platformId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"gameRoms\",\"kind\":\"object\",\"type\":\"GameRom\",\"relationName\":\"GameToGameRom\"},{\"name\":\"baseRoms\",\"kind\":\"object\",\"type\":\"BaseRom\",\"relationName\":\"BaseRomToGame\"},{\"name\":\"projects\",\"kind\":\"object\",\"type\":\"Project\",\"relationName\":\"GameToProject\"},{\"name\":\"developers\",\"kind\":\"object\",\"type\":\"GameDeveloper\",\"relationName\":\"GameToGameDeveloper\"}],\"dbName\":null},\"GameDeveloper\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"game\",\"kind\":\"object\",\"type\":\"Game\",\"relationName\":\"GameToGameDeveloper\"},{\"name\":\"gameId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"developer\",\"kind\":\"object\",\"type\":\"Developer\",\"relationName\":\"DeveloperToGameDeveloper\"},{\"name\":\"developerId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"}],\"dbName\":null},\"GameRom\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"crc\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"meta\",\"kind\":\"scalar\",\"type\":\"Json\"},{\"name\":\"game\",\"kind\":\"object\",\"type\":\"Game\",\"relationName\":\"GameToGameRom\"},{\"name\":\"gameId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"region\",\"kind\":\"object\",\"type\":\"Region\",\"relationName\":\"GameRomToRegion\"},{\"name\":\"regionId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"branches\",\"kind\":\"object\",\"type\":\"GameRomBranch\",\"relationName\":\"GameRomToGameRomBranch\"},{\"name\":\"baseRoms\",\"kind\":\"object\",\"type\":\"BaseRom\",\"relationName\":\"BaseRomToGameRom\"},{\"name\":\"artifacts\",\"kind\":\"object\",\"type\":\"GameRomArtifact\",\"relationName\":\"GameRomToGameRomArtifact\"}],\"dbName\":null},\"GameRomBranch\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"version\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"isActive\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"notes\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"gameRom\",\"kind\":\"object\",\"type\":\"GameRom\",\"relationName\":\"GameRomToGameRomBranch\"},{\"name\":\"gameRomId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"platformBranch\",\"kind\":\"object\",\"type\":\"PlatformBranch\",\"relationName\":\"GameRomBranchToPlatformBranch\"},{\"name\":\"platformBranchId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"coplib\",\"kind\":\"scalar\",\"type\":\"Json\"},{\"name\":\"config\",\"kind\":\"scalar\",\"type\":\"Json\"},{\"name\":\"files\",\"kind\":\"scalar\",\"type\":\"Json\"},{\"name\":\"blocks\",\"kind\":\"scalar\",\"type\":\"Json\"},{\"name\":\"labels\",\"kind\":\"scalar\",\"type\":\"Json\"},{\"name\":\"rewrites\",\"kind\":\"scalar\",\"type\":\"Json\"},{\"name\":\"mnemonics\",\"kind\":\"scalar\",\"type\":\"Json\"},{\"name\":\"overrides\",\"kind\":\"scalar\",\"type\":\"Json\"},{\"name\":\"transforms\",\"kind\":\"scalar\",\"type\":\"Json\"},{\"name\":\"strings\",\"kind\":\"scalar\",\"type\":\"Json\"},{\"name\":\"structs\",\"kind\":\"scalar\",\"type\":\"Json\"},{\"name\":\"groups\",\"kind\":\"scalar\",\"type\":\"Json\"},{\"name\":\"fileTypes\",\"kind\":\"scalar\",\"type\":\"Json\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"baseBranches\",\"kind\":\"object\",\"type\":\"BaseRomBranch\",\"relationName\":\"BaseRomBranchToGameRomBranch\"},{\"name\":\"artifacts\",\"kind\":\"object\",\"type\":\"GameRomBranchArtifact\",\"relationName\":\"GameRomBranchToGameRomBranchArtifact\"}],\"dbName\":null},\"GameRomArtifact\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"type\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"version\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"crc\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"meta\",\"kind\":\"scalar\",\"type\":\"Json\"},{\"name\":\"gameRom\",\"kind\":\"object\",\"type\":\"GameRom\",\"relationName\":\"GameRomToGameRomArtifact\"},{\"name\":\"gameRomId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"isText\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"text\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"data\",\"kind\":\"scalar\",\"type\":\"Bytes\"},{\"name\":\"branchArtifacts\",\"kind\":\"object\",\"type\":\"GameRomBranchArtifact\",\"relationName\":\"GameRomArtifactToGameRomBranchArtifact\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"}],\"dbName\":null},\"GameRomBranchArtifact\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"branch\",\"kind\":\"object\",\"type\":\"GameRomBranch\",\"relationName\":\"GameRomBranchToGameRomBranchArtifact\"},{\"name\":\"branchId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"artifact\",\"kind\":\"object\",\"type\":\"GameRomArtifact\",\"relationName\":\"GameRomArtifactToGameRomBranchArtifact\"},{\"name\":\"artifactId\",\"kind\":\"scalar\",\"type\":\"String\"}],\"dbName\":null},\"BaseRom\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"game\",\"kind\":\"object\",\"type\":\"Game\",\"relationName\":\"BaseRomToGame\"},{\"name\":\"gameId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"gameRom\",\"kind\":\"object\",\"type\":\"GameRom\",\"relationName\":\"BaseRomToGameRom\"},{\"name\":\"gameRomId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"branches\",\"kind\":\"object\",\"type\":\"BaseRomBranch\",\"relationName\":\"BaseRomToBaseRomBranch\"},{\"name\":\"files\",\"kind\":\"object\",\"type\":\"BaseRomFile\",\"relationName\":\"BaseRomToBaseRomFile\"},{\"name\":\"projects\",\"kind\":\"object\",\"type\":\"Project\",\"relationName\":\"BaseRomToProject\"}],\"dbName\":null},\"BaseRomBranch\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"version\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"isActive\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"notes\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"baseRom\",\"kind\":\"object\",\"type\":\"BaseRom\",\"relationName\":\"BaseRomToBaseRomBranch\"},{\"name\":\"baseRomId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"gameRomBranch\",\"kind\":\"object\",\"type\":\"GameRomBranch\",\"relationName\":\"BaseRomBranchToGameRomBranch\"},{\"name\":\"gameRomBranchId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"projectBranches\",\"kind\":\"object\",\"type\":\"ProjectBranch\",\"relationName\":\"BaseRomBranchToProjectBranch\"},{\"name\":\"files\",\"kind\":\"object\",\"type\":\"BaseRomBranchFile\",\"relationName\":\"BaseRomBranchToBaseRomBranchFile\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"}],\"dbName\":null},\"BaseRomFile\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"type\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"version\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"crc\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"meta\",\"kind\":\"scalar\",\"type\":\"Json\"},{\"name\":\"baseRom\",\"kind\":\"object\",\"type\":\"BaseRom\",\"relationName\":\"BaseRomToBaseRomFile\"},{\"name\":\"baseRomId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"isText\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"text\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"data\",\"kind\":\"scalar\",\"type\":\"Bytes\"},{\"name\":\"branchFiles\",\"kind\":\"object\",\"type\":\"BaseRomBranchFile\",\"relationName\":\"BaseRomBranchFileToBaseRomFile\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"}],\"dbName\":null},\"BaseRomBranchFile\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"branch\",\"kind\":\"object\",\"type\":\"BaseRomBranch\",\"relationName\":\"BaseRomBranchToBaseRomBranchFile\"},{\"name\":\"branchId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"file\",\"kind\":\"object\",\"type\":\"BaseRomFile\",\"relationName\":\"BaseRomBranchFileToBaseRomFile\"},{\"name\":\"fileId\",\"kind\":\"scalar\",\"type\":\"String\"}],\"dbName\":null},\"Project\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"meta\",\"kind\":\"scalar\",\"type\":\"Json\"},{\"name\":\"game\",\"kind\":\"object\",\"type\":\"Game\",\"relationName\":\"GameToProject\"},{\"name\":\"gameId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"baseRom\",\"kind\":\"object\",\"type\":\"BaseRom\",\"relationName\":\"BaseRomToProject\"},{\"name\":\"baseRomId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"files\",\"kind\":\"object\",\"type\":\"ProjectFile\",\"relationName\":\"ProjectToProjectFile\"},{\"name\":\"branches\",\"kind\":\"object\",\"type\":\"ProjectBranch\",\"relationName\":\"ProjectToProjectBranch\"}],\"dbName\":null},\"ProjectBranch\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"version\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"isActive\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"notes\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"project\",\"kind\":\"object\",\"type\":\"Project\",\"relationName\":\"ProjectToProjectBranch\"},{\"name\":\"projectId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"baseRomBranch\",\"kind\":\"object\",\"type\":\"BaseRomBranch\",\"relationName\":\"BaseRomBranchToProjectBranch\"},{\"name\":\"baseRomBranchId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"modules\",\"kind\":\"scalar\",\"type\":\"Json\"},{\"name\":\"files\",\"kind\":\"object\",\"type\":\"ProjectBranchFile\",\"relationName\":\"ProjectBranchToProjectBranchFile\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"}],\"dbName\":null},\"ProjectFile\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"type\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"module\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"version\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"crc\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"meta\",\"kind\":\"scalar\",\"type\":\"Json\"},{\"name\":\"project\",\"kind\":\"object\",\"type\":\"Project\",\"relationName\":\"ProjectToProjectFile\"},{\"name\":\"projectId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"isText\",\"kind\":\"scalar\",\"type\":\"Boolean\"},{\"name\":\"text\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"data\",\"kind\":\"scalar\",\"type\":\"Bytes\"},{\"name\":\"branchFiles\",\"kind\":\"object\",\"type\":\"ProjectBranchFile\",\"relationName\":\"ProjectBranchFileToProjectFile\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"}],\"dbName\":null},\"ProjectBranchFile\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"branch\",\"kind\":\"object\",\"type\":\"ProjectBranch\",\"relationName\":\"ProjectBranchToProjectBranchFile\"},{\"name\":\"branchId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"file\",\"kind\":\"object\",\"type\":\"ProjectFile\",\"relationName\":\"ProjectBranchFileToProjectFile\"},{\"name\":\"fileId\",\"kind\":\"scalar\",\"type\":\"String\"}],\"dbName\":null}},\"enums\":{},\"types\":{}}")
|
|
397
|
+
defineDmmfProperty(exports.Prisma, config.runtimeDataModel)
|
|
398
|
+
config.engineWasm = {
|
|
399
|
+
getRuntime: async () => require('./query_engine_bg.js'),
|
|
400
|
+
getQueryEngineWasmModule: async () => {
|
|
401
|
+
const loader = (await import('#wasm-engine-loader')).default
|
|
402
|
+
const engine = (await loader).default
|
|
403
|
+
return engine
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
config.compilerWasm = undefined
|
|
407
|
+
|
|
408
|
+
config.injectableEdgeEnv = () => ({
|
|
409
|
+
parsed: {
|
|
410
|
+
DATABASE_URL: typeof globalThis !== 'undefined' && globalThis['DATABASE_URL'] || typeof process !== 'undefined' && process.env && process.env.DATABASE_URL || undefined
|
|
411
|
+
}
|
|
412
|
+
})
|
|
413
|
+
|
|
414
|
+
if (typeof globalThis !== 'undefined' && globalThis['DEBUG'] || typeof process !== 'undefined' && process.env && process.env.DEBUG || undefined) {
|
|
415
|
+
Debug.enable(typeof globalThis !== 'undefined' && globalThis['DEBUG'] || typeof process !== 'undefined' && process.env && process.env.DEBUG || undefined)
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
const PrismaClient = getPrismaClient(config)
|
|
419
|
+
exports.PrismaClient = PrismaClient
|
|
420
|
+
Object.assign(exports, Prisma)
|
|
421
|
+
|