salix/modules/client/back/models/greuge.json

52 lines
1.1 KiB
JSON
Raw Normal View History

2017-12-04 07:17:29 +00:00
{
2017-12-13 12:40:21 +00:00
"name": "Greuge",
"base": "Loggable",
"log": {
"model": "ClientLog",
"relation": "client",
"changedModelValue": "description"
},
2017-12-13 12:40:21 +00:00
"options": {
"mysql": {
"table": "greuge"
}
2017-12-13 12:40:21 +00:00
},
2017-12-04 07:17:29 +00:00
"properties": {
"id": {
"id": true,
"type": "Number",
"description": "Identifier"
},
"description": {
"type": "String",
"required": true
},
"amount": {
"type": "Number",
"required": true
},
"shipped": {
"type": "date"
},
"created": {
"type": "date"
},
"greugeTypeFk": {
"type": "Number",
"required": true
}
2017-12-04 07:17:29 +00:00
},
"relations": {
"client": {
"type": "belongsTo",
"model": "Client",
"foreignKey": "clientFk"
},
"greugeType": {
"type": "belongsTo",
"model": "GreugeType",
"foreignKey": "greugeTypeFk"
}
2017-12-04 07:17:29 +00:00
}
}