2018-03-12 12:55:18 +00:00
|
|
|
{
|
|
|
|
"name": "TicketObservation",
|
|
|
|
"base": "VnModel",
|
|
|
|
"options": {
|
2018-03-16 14:06:42 +00:00
|
|
|
"mysql": {
|
2018-03-19 15:29:55 +00:00
|
|
|
"table": "ticketObservation",
|
|
|
|
"database": "vn"
|
2018-03-16 14:06:42 +00:00
|
|
|
}
|
2018-03-12 12:55:18 +00:00
|
|
|
},
|
|
|
|
"properties": {
|
2018-03-16 14:06:42 +00:00
|
|
|
"id": {
|
|
|
|
"id": true,
|
|
|
|
"type": "Number",
|
|
|
|
"description": "Identifier"
|
|
|
|
},
|
|
|
|
"description": {
|
|
|
|
"type": "String",
|
|
|
|
"required": true
|
|
|
|
}
|
2018-03-12 12:55:18 +00:00
|
|
|
},
|
|
|
|
"relations": {
|
2018-03-16 14:06:42 +00:00
|
|
|
"ticket": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Ticket",
|
|
|
|
"foreignKey": "ticketFk",
|
|
|
|
"required": true
|
|
|
|
},
|
|
|
|
"observationType": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "ObservationType",
|
|
|
|
"foreignKey": "observationTypeFk",
|
|
|
|
"required": true
|
|
|
|
}
|
2018-03-12 12:55:18 +00:00
|
|
|
}
|
2018-03-16 14:06:42 +00:00
|
|
|
}
|