salix/services/client/common/models/greuge.json

44 lines
839 B
JSON
Raw Normal View History

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": {
"table": "greuge",
"database": "vn"
}
},
2017-12-04 07:17:29 +00:00
"properties": {
"id": {
"id": true,
"type": "Number",
"description": "Identifier"
},
"description": {
"type": "String",
"required": true
2017-12-04 07:17:29 +00:00
},
"amount": {
"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",
"foreignKey": "greugeTypeFk",
"required": true
2017-12-04 07:17:29 +00:00
}
}
}