2017-12-04 07:17:29 +00:00
|
|
|
{
|
2017-12-13 12:40:21 +00:00
|
|
|
"name": "Greuge",
|
2017-12-04 07:17:29 +00:00
|
|
|
"base": "VnModel",
|
2017-12-13 12:40:21 +00:00
|
|
|
"options": {
|
|
|
|
"mysql": {
|
2018-01-29 11:37:54 +00:00
|
|
|
"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": {
|
2018-01-11 21:11:35 +00:00
|
|
|
"type": "String",
|
|
|
|
"required": true
|
2017-12-04 07:17:29 +00:00
|
|
|
},
|
|
|
|
"amount": {
|
2018-01-11 21:11:35 +00:00
|
|
|
"type": "Number",
|
|
|
|
"required": true
|
2017-12-04 07:17:29 +00:00
|
|
|
},
|
|
|
|
"shipped": {
|
|
|
|
"type": "date"
|
|
|
|
},
|
|
|
|
"created": {
|
|
|
|
"type": "date"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"relations": {
|
|
|
|
"client": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Client",
|
|
|
|
"foreignKey": "clientFk"
|
|
|
|
},
|
|
|
|
"greugeType": {
|
|
|
|
"type": "belongsTo",
|
2017-12-13 12:40:21 +00:00
|
|
|
"model": "GreugeType",
|
2018-01-11 21:11:35 +00:00
|
|
|
"foreignKey": "greugeTypeFk",
|
|
|
|
"required": true
|
2017-12-04 07:17:29 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|