Вы можете настроить модели, добавив свойство mysql
к модели и / или к свойствам:
{
"name": "yourModelName",
"base": "PersistedModel",
"idInjection": false,
"mysql": {
"schema": "YOUR DATABASE NAME",
"table": "YOUR MYSQL TABLE NAME"
},
"properties": {
"PropertyOne": {
"type": "Number"
"required": true,
"mysql": {
"columnName": "YOUR MYSQL COLUMN NAME",
"dataType": "int",
"dataLength": null,
"dataPrecision": 10,
"dataScale": 0,
"nullable": "N"
},
"_selectable": false
}
},
"validations": [],
"relations": {},
"acls": [],
"methods": {}
}