salix/modules/ticket/back/models/ticket-observation.json

37 lines
789 B
JSON
Raw Permalink Normal View History

{
"name": "TicketObservation",
"base": "VnModel",
"mixins": {
"Loggable": true
},
"options": {
2018-03-16 14:06:42 +00:00
"mysql": {
2018-12-17 10:28:39 +00:00
"table": "ticketObservation"
2018-03-16 14:06:42 +00:00
}
},
"properties": {
2018-03-16 14:06:42 +00:00
"id": {
"id": true,
2022-05-12 07:47:47 +00:00
"type": "number",
2018-03-16 14:06:42 +00:00
"description": "Identifier"
},
"description": {
2022-05-12 07:47:47 +00:00
"type": "string",
2018-03-16 14:06:42 +00:00
"required": true
}
},
"relations": {
2018-03-16 14:06:42 +00:00
"ticket": {
"type": "belongsTo",
"model": "Ticket",
"foreignKey": "ticketFk"
2018-03-16 14:06:42 +00:00
},
"observationType": {
"type": "belongsTo",
"model": "ObservationType",
"foreignKey": "observationTypeFk",
"required": true
}
}
2018-03-16 14:06:42 +00:00
}