55 lines
1.1 KiB
JavaScript
55 lines
1.1 KiB
JavaScript
'use strict';
|
|
|
|
module.exports = app => {
|
|
const { BIGINT, DATE, TEXT } = app.Sequelize;
|
|
|
|
const OrderExpressPrintData = app.model.define('order_express_print_data', {
|
|
id: {
|
|
type: BIGINT(20).UNSIGNED,
|
|
primaryKey: true,
|
|
autoIncrement: true,
|
|
allowNull: false,
|
|
comment: '主键ID',
|
|
},
|
|
express_id: {
|
|
type: BIGINT(20).UNSIGNED,
|
|
allowNull: true,
|
|
comment: '快递记录ID',
|
|
},
|
|
data: {
|
|
type: TEXT,
|
|
allowNull: true,
|
|
comment: '打印数据',
|
|
},
|
|
create_at: {
|
|
type: DATE,
|
|
allowNull: true,
|
|
comment: '创建时间',
|
|
},
|
|
delete_at: {
|
|
type: DATE,
|
|
allowNull: true,
|
|
comment: '删除时间',
|
|
},
|
|
update_at: {
|
|
type: DATE,
|
|
allowNull: true,
|
|
comment: '更新时间',
|
|
},
|
|
}, {
|
|
tableName: 'wms_order_express_print_data',
|
|
freezeTableName: true,
|
|
underscored: true,
|
|
timestamps: false,
|
|
comment: '订单快递打印数据表',
|
|
indexes: [
|
|
{
|
|
name: 'idx_express_id',
|
|
fields: [ 'express_id' ],
|
|
},
|
|
],
|
|
});
|
|
|
|
return OrderExpressPrintData;
|
|
};
|