36 lines
801 B
JSON
36 lines
801 B
JSON
{
|
|
"name": "TicketObservation",
|
|
"base": "VnModel",
|
|
"options": {
|
|
"mysql": {
|
|
"table": "ticketObservation",
|
|
"database": "vn"
|
|
}
|
|
},
|
|
"properties": {
|
|
"id": {
|
|
"id": true,
|
|
"type": "Number",
|
|
"description": "Identifier"
|
|
},
|
|
"description": {
|
|
"type": "String",
|
|
"required": true
|
|
}
|
|
},
|
|
"relations": {
|
|
"ticket": {
|
|
"type": "belongsTo",
|
|
"model": "Ticket",
|
|
"foreignKey": "ticketFk",
|
|
"required": true
|
|
},
|
|
"observationType": {
|
|
"type": "belongsTo",
|
|
"model": "ObservationType",
|
|
"foreignKey": "observationTypeFk",
|
|
"required": true
|
|
}
|
|
}
|
|
}
|