38 lines
637 B
JSON
38 lines
637 B
JSON
{
|
|
"name": "TicketState",
|
|
"base": "VnModel",
|
|
"options": {
|
|
"mysql": {
|
|
"table": "ticketState"
|
|
}
|
|
},
|
|
"properties": {
|
|
"id": {
|
|
"id": true,
|
|
"type": "Number",
|
|
"forceId": false
|
|
},
|
|
"updated": {
|
|
"type": "Date",
|
|
"required": false
|
|
}
|
|
},
|
|
"relations": {
|
|
"ticket": {
|
|
"type": "belongsTo",
|
|
"model": "Ticket",
|
|
"foreignKey": "ticketFk"
|
|
},
|
|
"state": {
|
|
"type": "belongsTo",
|
|
"model": "State",
|
|
"foreignKey": "stateFk"
|
|
},
|
|
"worker": {
|
|
"type": "belongsTo",
|
|
"model": "Worder",
|
|
"foreignKey": "workerFk"
|
|
}
|
|
}
|
|
}
|