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"
|
||
|
}
|
||
|
}
|
||
|
}
|