File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -25,8 +25,8 @@ export async function generate(options: GeneratorOptions) {
25
25
26
26
const dbmlSchema = generateDBMLSchema (
27
27
options . dmmf ,
28
- mapToDbSchema ,
29
28
allowManyToMany ,
29
+ mapToDbSchema ,
30
30
projectOptions
31
31
) ;
32
32
Original file line number Diff line number Diff line change @@ -11,8 +11,8 @@ export const autoGeneratedComment = `//// --------------------------------------
11
11
12
12
export function generateDBMLSchema (
13
13
dmmf : DMMF . Document ,
14
- mapToDbSchema : boolean ,
15
14
allowManyToMany : boolean = true ,
15
+ mapToDbSchema : boolean = false ,
16
16
projectOptions ?: ProjectOptions
17
17
) : string {
18
18
const tables = generateTables ( dmmf . datamodel . models , mapToDbSchema ) ;
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import { DMMF } from '@prisma/generator-helper';
3
3
4
4
export function generateTables (
5
5
models : DMMF . Model [ ] ,
6
- mapToDbSchema : boolean
6
+ mapToDbSchema : boolean = false
7
7
) : string [ ] {
8
8
return models . map ( ( model ) => {
9
9
let modelName = model . name ;
You can’t perform that action at this time.
0 commit comments