2018-06-20 06:30:16 +00:00
|
|
|
{
|
|
|
|
"name": "Order",
|
|
|
|
"base": "VnModel",
|
|
|
|
"options": {
|
|
|
|
"mysql": {
|
|
|
|
"table": "order"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"properties": {
|
|
|
|
"id": {
|
|
|
|
"type": "Number",
|
|
|
|
"id": true,
|
|
|
|
"description": "Identifier"
|
|
|
|
},
|
|
|
|
"landed": {
|
|
|
|
"type": "date",
|
|
|
|
"mysql": {
|
|
|
|
"columnName": "date_send"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"clientFk": {
|
|
|
|
"type": "Number",
|
|
|
|
"required": true,
|
|
|
|
"mysql": {
|
|
|
|
"columnName": "customer_id"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"companyFk": {
|
|
|
|
"type": "Number",
|
|
|
|
"mysql": {
|
|
|
|
"columnName": "company_id"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"note": {
|
|
|
|
"type": "String"
|
|
|
|
},
|
|
|
|
"sourceApp": {
|
|
|
|
"type": "String",
|
|
|
|
"mysql": {
|
|
|
|
"columnName": "source_app"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"isConfirmed": {
|
|
|
|
"type": "Number",
|
|
|
|
"mysql": {
|
|
|
|
"columnName": "confirmed"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"created": {
|
|
|
|
"type": "date",
|
|
|
|
"mysql": {
|
|
|
|
"columnName": "date_make"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"firstRowStamp": {
|
|
|
|
"type": "date",
|
|
|
|
"mysql": {
|
|
|
|
"columnName": "first_row_stamp"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"confirmed": {
|
|
|
|
"type": "date",
|
|
|
|
"mysql": {
|
|
|
|
"columnName": "confirm_date"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"relations": {
|
2018-06-20 10:47:43 +00:00
|
|
|
"agencyMode": {
|
2018-06-20 06:30:16 +00:00
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "AgencyMode",
|
|
|
|
"foreignKey": "agency_id"
|
|
|
|
},
|
2018-06-20 10:47:43 +00:00
|
|
|
"address": {
|
2018-06-20 06:30:16 +00:00
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Address",
|
|
|
|
"foreignKey": "address_id"
|
|
|
|
},
|
2018-06-20 10:47:43 +00:00
|
|
|
"deliveryMethod": {
|
2018-06-20 06:30:16 +00:00
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "DeliveryMethod",
|
|
|
|
"foreignKey": "delivery_method_id"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|