We experienced an issue on non named id
auto increment primary key.
I have created a bug report to our dev team.
I have a workaround while it’s being fixed.
On your .forestadmin-schema.json
you can set your field like this
{
"field": "cdtId",
"type": "Number",
"defaultValue": null,
"enums": null,
"integration": null,
"isFilterable": true,
"isPrimaryKey": true,
"isReadOnly": true, // this is the change
"isRequired": false, // here to
"isSortable": true,
"isVirtual": false,
"reference": null,
"inverseOf": null,
"validations": [] // make sure this is empty
}
And set your NODE_ENV
to something deferent than dev, to avoid the schema re-generation.