salix/services/ticket/common/models/ticket-observation.json

36 lines
801 B
JSON
Raw Normal View History

{
"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
}
},
"properties": {
2018-03-16 14:06:42 +00:00
"id": {
"id": true,
"type": "Number",
"description": "Identifier"
},
"description": {
"type": "String",
"required": true
}
},
"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-16 14:06:42 +00:00
}