2018-06-20 06:30:16 +00:00
|
|
|
{
|
|
|
|
"name": "Order",
|
|
|
|
"base": "VnModel",
|
|
|
|
"options": {
|
|
|
|
"mysql": {
|
2018-12-17 10:28:39 +00:00
|
|
|
"table": "hedera.order"
|
2018-06-20 06:30:16 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"properties": {
|
|
|
|
"id": {
|
2022-05-12 07:47:47 +00:00
|
|
|
"type": "number",
|
2018-06-20 06:30:16 +00:00
|
|
|
"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,
|
2018-06-20 06:30:16 +00:00
|
|
|
"mysql": {
|
|
|
|
"columnName": "date_send"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"clientFk": {
|
2022-05-12 07:47:47 +00:00
|
|
|
"type": "number",
|
2018-06-20 06:30:16 +00:00
|
|
|
"required": true,
|
|
|
|
"mysql": {
|
|
|
|
"columnName": "customer_id"
|
|
|
|
}
|
|
|
|
},
|
2019-02-15 12:26:49 +00:00
|
|
|
"addressFk": {
|
2022-05-12 07:47:47 +00:00
|
|
|
"type": "number",
|
2019-02-15 12:26:49 +00:00
|
|
|
"required": true,
|
|
|
|
"mysql": {
|
|
|
|
"columnName": "address_id"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"agencyModeFk": {
|
2022-05-12 07:47:47 +00:00
|
|
|
"type": "number",
|
2019-02-15 12:26:49 +00:00
|
|
|
"required": true,
|
|
|
|
"mysql": {
|
|
|
|
"columnName": "agency_id"
|
|
|
|
}
|
|
|
|
},
|
2018-06-20 06:30:16 +00:00
|
|
|
"companyFk": {
|
2022-05-12 07:47:47 +00:00
|
|
|
"type": "number",
|
2019-02-06 13:56:36 +00:00
|
|
|
"required": true,
|
2018-06-20 06:30:16 +00:00
|
|
|
"mysql": {
|
|
|
|
"columnName": "company_id"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"note": {
|
2022-05-12 07:47:47 +00:00
|
|
|
"type": "string"
|
2018-06-20 06:30:16 +00:00
|
|
|
},
|
|
|
|
"sourceApp": {
|
2022-05-12 07:47:47 +00:00
|
|
|
"type": "string",
|
2018-06-20 06:30:16 +00:00
|
|
|
"mysql": {
|
|
|
|
"columnName": "source_app"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"isConfirmed": {
|
2022-05-12 07:47:47 +00:00
|
|
|
"type": "number",
|
2018-06-20 06:30:16 +00:00
|
|
|
"mysql": {
|
|
|
|
"columnName": "confirmed"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"created": {
|
2019-02-27 16:04:32 +00:00
|
|
|
"type": "Date",
|
2018-06-20 06:30:16 +00:00
|
|
|
"mysql": {
|
|
|
|
"columnName": "date_make"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"firstRowStamp": {
|
2019-02-27 16:04:32 +00:00
|
|
|
"type": "Date",
|
2018-06-20 06:30:16 +00:00
|
|
|
"mysql": {
|
|
|
|
"columnName": "first_row_stamp"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"confirmed": {
|
2019-02-27 16:04:32 +00:00
|
|
|
"type": "Date",
|
2018-06-20 06:30:16 +00:00
|
|
|
"mysql": {
|
|
|
|
"columnName": "confirm_date"
|
|
|
|
}
|
2020-08-26 09:27:36 +00:00
|
|
|
},
|
|
|
|
"total": {
|
2022-05-12 07:47:47 +00:00
|
|
|
"type": "number"
|
2018-06-20 06:30:16 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"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-07-18 12:21:58 +00:00
|
|
|
"client": {
|
|
|
|
"type": "belongsTo",
|
|
|
|
"model": "Client",
|
|
|
|
"foreignKey": "customer_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"
|
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"
|
2018-06-20 06:30:16 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|