37 lines
730 B
JSON
37 lines
730 B
JSON
{
|
|
"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"
|
|
}
|
|
}
|
|
}
|