WMS_MAIN/app/model/express.js

28 lines
522 B
JavaScript

'use strict';
module.exports = app => {
const { STRING } = app.Sequelize;
const Express = app.model.define('express', {
code: {
type: STRING(50),
primaryKey: true,
allowNull: false,
comment: '快递编码',
},
name: {
type: STRING(255),
allowNull: true,
comment: '快递名称',
},
}, {
tableName: 'wms_express',
freezeTableName: true,
underscored: true,
timestamps: false,
comment: '快递基础信息表',
});
return Express;
};