35 lines
495 B
JSON
35 lines
495 B
JSON
{
|
|
"name": "TicketState",
|
|
"base": "PersistedModel",
|
|
"options": {
|
|
"mysql": {
|
|
"table": "ticketState"
|
|
}
|
|
},
|
|
"properties": {
|
|
"ticketFk": {
|
|
"id": true,
|
|
"type": "Number",
|
|
"forceId": false
|
|
},
|
|
"updated": {
|
|
"type": "Date"
|
|
},
|
|
"alertLevel": {
|
|
"type": "Number"
|
|
}
|
|
},
|
|
"relations": {
|
|
"ticket": {
|
|
"type": "belongsTo",
|
|
"model": "Ticket",
|
|
"foreignKey": "ticketFk"
|
|
},
|
|
"state": {
|
|
"type": "belongsTo",
|
|
"model": "State",
|
|
"foreignKey": "stateFk"
|
|
}
|
|
}
|
|
}
|