@gadmin2n/prisma-react-generator 0.0.45 → 0.0.46
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.
|
@@ -260,7 +260,7 @@ function getModelConfigStruct(model, enums = []) {
|
|
|
260
260
|
const editableFields = [...relationFields, ...relationsFields].reduce((acc, cur) => {
|
|
261
261
|
acc.push(`!${cur}.*`);
|
|
262
262
|
return acc;
|
|
263
|
-
}, ['*', '!creator', '!createdAt', '!updatedAt']);
|
|
263
|
+
}, ['*', '!creator', '!createdAt', '!updatedAt', '!created_at', '!updated_at']);
|
|
264
264
|
const textFieldsExclude = model.fields
|
|
265
265
|
.filter((field) => {
|
|
266
266
|
const { formItem: { type }, } = (0, helpers_1.parseDocumentation)(field.documentation || '', field);
|
|
@@ -272,7 +272,7 @@ function getModelConfigStruct(model, enums = []) {
|
|
|
272
272
|
acc.push(`!${cur}.*`);
|
|
273
273
|
acc.push(`_count.${cur}`);
|
|
274
274
|
return acc;
|
|
275
|
-
}, ['*', '!createdAt', ...textFieldsExclude])
|
|
275
|
+
}, ['*', '!createdAt', '!created_at', ...textFieldsExclude])
|
|
276
276
|
.concat(relationFields.reduce((acc, cur) => {
|
|
277
277
|
acc.push(`!${cur}.*`);
|
|
278
278
|
acc.push(`${cur}`);
|
package/package.json
CHANGED