73 lines
1.4 KiB
JavaScript
73 lines
1.4 KiB
JavaScript
'use strict';
|
|
|
|
module.exports = app => {
|
|
const { STRING, INTEGER } = app.Sequelize;
|
|
|
|
const Platform = app.model.define('platform', {
|
|
code: {
|
|
type: STRING(50),
|
|
primaryKey: true,
|
|
allowNull: false,
|
|
comment: '平台代码',
|
|
},
|
|
name: {
|
|
type: STRING(255),
|
|
allowNull: true,
|
|
comment: '平台名称',
|
|
},
|
|
interface_url: {
|
|
type: STRING(255),
|
|
allowNull: true,
|
|
comment: '接口地址',
|
|
},
|
|
platform_code: {
|
|
type: STRING(255),
|
|
allowNull: true,
|
|
comment: '平台编码',
|
|
},
|
|
platid: {
|
|
type: INTEGER(11),
|
|
allowNull: true,
|
|
comment: '平台ID',
|
|
},
|
|
appkey: {
|
|
type: STRING(255),
|
|
allowNull: true,
|
|
comment: '应用Key',
|
|
},
|
|
app_secret: {
|
|
type: STRING(255),
|
|
allowNull: true,
|
|
comment: '应用密钥',
|
|
},
|
|
token: {
|
|
type: STRING(255),
|
|
allowNull: true,
|
|
comment: '访问令牌',
|
|
},
|
|
version: {
|
|
type: STRING(255),
|
|
allowNull: true,
|
|
comment: '接口版本',
|
|
},
|
|
shoptype: {
|
|
type: STRING(50),
|
|
allowNull: true,
|
|
comment: '店铺类型',
|
|
},
|
|
ordersource: {
|
|
type: STRING(50),
|
|
allowNull: true,
|
|
comment: '订单来源',
|
|
},
|
|
}, {
|
|
tableName: 'wms_platform',
|
|
freezeTableName: true,
|
|
timestamps: false,
|
|
underscored: true,
|
|
comment: '平台表',
|
|
});
|
|
|
|
return Platform;
|
|
};
|