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",
|
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,
|
2022-05-12 07:47:47 +00:00
|
|
|
"type": "number",
|
2018-09-07 06:27:26 +00:00
|
|
|
"description": "Identifier"
|
|
|
|
},
|
|
|
|
"description": {
|
2022-05-12 07:47:47 +00:00
|
|
|
"type": "string",
|
2018-09-07 06:27:26 +00:00
|
|
|
"required": true
|
|
|
|
},
|
|
|
|
"amount": {
|
2022-05-12 07:47:47 +00:00
|
|
|
"type": "number",
|
2018-09-07 06:27:26 +00:00
|
|
|
"required": true
|
|
|
|
},
|
|
|
|
"shipped": {
|
|
|
|
"type": "date"
|
|
|
|
},
|
|
|
|
"created": {
|
|
|
|
"type": "date"
|
|
|
|
},
|
|
|
|
"greugeTypeFk": {
|
2022-05-12 07:47:47 +00:00
|
|
|
"type": "number",
|
2018-09-07 06:27:26 +00:00
|
|
|
"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"
|
|
|
|
},
|
2019-11-12 13:53:58 +00:00
|
|
|
"ticket": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Ticket",
|
|
|
|
"foreignKey": "ticketFk"
|
|
|
|
},
|
2018-09-07 06:27:26 +00:00
|
|
|
"greugeType": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "GreugeType",
|
|
|
|
"foreignKey": "greugeTypeFk"
|
2022-11-10 07:18:05 +00:00
|
|
|
},
|
|
|
|
"user": {
|
|
|
|
"type": "belongsTo",
|
2023-01-24 08:04:43 +00:00
|
|
|
"model": "VnUser",
|
2022-11-10 07:19:54 +00:00
|
|
|
"foreignKey": "userFk"
|
2018-09-07 06:27:26 +00:00
|
|
|
}
|
2017-12-04 07:17:29 +00:00
|
|
|
}
|
2023-04-12 10:33:14 +00:00
|
|
|
}
|