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

57 lines
1.2 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",
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",
2023-01-24 08:04:43 +00:00
"model": "VnUser",
2022-11-10 07:19:54 +00:00
"foreignKey": "userFk"
}
2017-12-04 07:17:29 +00:00
}
}