salix/modules/order/back/models/order.json

117 lines
2.7 KiB
JSON
Raw Normal View History

{
"name": "Order",
"base": "VnModel",
"options": {
"mysql": {
2018-12-17 10:28:39 +00:00
"table": "hedera.order"
}
},
"properties": {
"id": {
"type": "Number",
"id": true,
"description": "Identifier"
},
"landed": {
2019-02-27 16:04:32 +00:00
"type": "Date",
2019-02-06 13:56:36 +00:00
"required": true,
"mysql": {
"columnName": "date_send"
}
},
"clientFk": {
"type": "Number",
"required": true,
"mysql": {
"columnName": "customer_id"
}
},
"addressFk": {
"type": "Number",
"required": true,
"mysql": {
"columnName": "address_id"
}
},
"agencyModeFk": {
"type": "Number",
"required": true,
"mysql": {
"columnName": "agency_id"
}
},
"companyFk": {
"type": "Number",
2019-02-06 13:56:36 +00:00
"required": true,
"mysql": {
"columnName": "company_id"
}
},
"note": {
"type": "String"
},
"sourceApp": {
"type": "String",
"mysql": {
"columnName": "source_app"
}
},
"isConfirmed": {
"type": "Number",
"mysql": {
"columnName": "confirmed"
}
},
"created": {
2019-02-27 16:04:32 +00:00
"type": "Date",
"mysql": {
"columnName": "date_make"
}
},
"firstRowStamp": {
2019-02-27 16:04:32 +00:00
"type": "Date",
"mysql": {
"columnName": "first_row_stamp"
}
},
"confirmed": {
2019-02-27 16:04:32 +00:00
"type": "Date",
"mysql": {
"columnName": "confirm_date"
}
}
},
"relations": {
2018-06-20 10:47:43 +00:00
"agencyMode": {
"type": "belongsTo",
"model": "AgencyMode",
"foreignKey": "agency_id"
},
2018-06-20 10:47:43 +00:00
"address": {
"type": "belongsTo",
"model": "Address",
"foreignKey": "address_id"
},
2018-07-18 12:21:58 +00:00
"client": {
"type": "belongsTo",
"model": "Client",
"foreignKey": "customer_id"
},
2018-06-20 10:47:43 +00:00
"deliveryMethod": {
"type": "belongsTo",
"model": "DeliveryMethod",
"foreignKey": "delivery_method_id"
2018-07-18 12:21:58 +00:00
},
"rows": {
"type": "hasMany",
"model": "OrderRow",
"foreignKey": "orderFk"
2018-09-06 10:47:25 +00:00
},
"company": {
"type": "belongsTo",
"model": "Company",
"foreignKey": "company_id"
}
}
}