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

61 lines
1.3 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",
"showField": "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,
2022-05-12 07:47:47 +00:00
"type": "number",
"description": "Identifier"
},
"description": {
2022-05-12 07:47:47 +00:00
"type": "string",
"required": true
},
"amount": {
2022-05-12 07:47:47 +00:00
"type": "number",
"required": true
},
"shipped": {
"type": "date"
},
"created": {
"type": "date"
},
"greugeTypeFk": {
2022-05-12 07:47:47 +00:00
"type": "number",
"required": true
}
2017-12-04 07:17:29 +00:00
},
"relations": {
"client": {
"type": "belongsTo",
"model": "Client",
"foreignKey": "clientFk"
},
"ticket": {
"type": "belongsTo",
"model": "Ticket",
"foreignKey": "ticketFk"
},
"greugeType": {
"type": "belongsTo",
"model": "GreugeType",
"foreignKey": "greugeTypeFk"
},
"user": {
"type": "belongsTo",
"model": "Account",
2022-11-10 07:19:54 +00:00
"foreignKey": "userFk"
}
2017-12-04 07:17:29 +00:00
}
}