Skip to content

Commit cd47f95

Browse files
committed
chore(prisma-parser): set not_null field property
1 parent 0332cee commit cd47f95

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/prisma-to-json-table-schema/src/utils/transformers/intermediate/formatIntermediateField.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ export const formatIntermediateTableField = (
1515
type_name: getFieldTypeName(node.fieldType),
1616
many: node.array,
1717
},
18+
not_null: node.optional === undefined ? true : !node.optional,
1819
...fieldConfig,
1920
};
2021
};

0 commit comments

Comments
 (0)