salix/modules/ticket/back/models/stowaway.json

37 lines
730 B
JSON
Raw Normal View History

{
"name": "Stowaway",
"base": "VnModel",
"options": {
"mysql": {
"table": "stowaway"
}
},
"properties": {
"id": {
"id": true,
"type": "Number",
"forceId": false
},
"shipFk": {
"type": "Number",
"required": false
},
"created":{
"type": "Date",
"required": false
}
},
"relations": {
"ship": {
"type": "belongsTo",
"model": "Ticket",
"foreignKey": "shipFk"
},
"ticket": {
"type": "belongsTo",
"model": "Ticket",
"foreignKey": "id"
}
}
}