'use strict'; const { businessFields } = require('../lib/orderFields'); const { ORDER_STATUS, ORDER_TABLE_BY_STATUS } = require('../lib/orderStatus'); /** * 待审核订单表(order_status_pending) * * 订单起点状态:审核通过后整行转入 order_status_outsourcing(委外中)。 * @param {Egg.Application} app egg application * @return {object} orderStatusPending model */ module.exports = app => { const tableName = ORDER_TABLE_BY_STATUS[ORDER_STATUS.PENDING]; const OrderStatusPending = app.model.define(tableName, businessFields(app.Sequelize, ORDER_STATUS.PENDING), { tableName, comment: '订单-待审核', }); return OrderStatusPending; };