WMS_MAIN/app/model/express.js
2026-04-27 16:09:26 +08:00

52 lines
1020 B
JavaScript

'use strict';
module.exports = app => {
const { STRING, JSON } = app.Sequelize;
const Express = app.model.define('express', {
code: {
type: STRING(50),
primaryKey: true,
allowNull: false,
comment: '快递编码',
},
name: {
type: STRING(255),
allowNull: true,
comment: '快递名称',
},
KS: {
type: STRING(255),
field: 'KS',
allowNull: true,
comment: '快手编码',
},
polyapi_extra_info: {
type: JSON,
allowNull: true,
comment: '聚合接口扩展信息',
},
PDD: {
field: 'PDD',
type: STRING(255),
allowNull: true,
comment: '拼多多编码',
},
DYXD: {
field: 'DYXD',
type: STRING(255),
allowNull: true,
comment: '抖音编码',
},
}, {
tableName: 'wms_express',
freezeTableName: true,
underscored: true,
timestamps: false,
paranoid: false,
comment: '快递基础信息表',
});
return Express;
};