2017-12-04 07:17:29 +00:00
|
|
|
{
|
2017-12-13 12:40:21 +00:00
|
|
|
"name": "Greuge",
|
2018-10-22 12:35:21 +00:00
|
|
|
"base": "Loggable",
|
|
|
|
"log": {
|
|
|
|
"model": "ClientLog",
|
|
|
|
"relation": "client",
|
2019-04-04 10:38:54 +00:00
|
|
|
"showField": "description"
|
2018-10-22 12:35:21 +00:00
|
|
|
},
|
2017-12-13 12:40:21 +00:00
|
|
|
"options": {
|
2018-09-07 06:27:26 +00:00
|
|
|
"mysql": {
|
|
|
|
"table": "greuge"
|
|
|
|
}
|
2017-12-13 12:40:21 +00:00
|
|
|
},
|
2017-12-04 07:17:29 +00:00
|
|
|
"properties": {
|
2018-09-07 06:27:26 +00:00
|
|
|
"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": {
|
2018-09-07 06:27:26 +00:00
|
|
|
"client": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Client",
|
|
|
|
"foreignKey": "clientFk"
|
|
|
|
},
|
|
|
|
"greugeType": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "GreugeType",
|
|
|
|
"foreignKey": "greugeTypeFk"
|
|
|
|
}
|
2017-12-04 07:17:29 +00:00
|
|
|
}
|
2018-09-07 06:27:26 +00:00
|
|
|
}
|