45 lines
949 B
JavaScript
45 lines
949 B
JavaScript
'use strict';
|
||
|
||
module.exports = app => {
|
||
const { INTEGER, BIGINT, STRING, DATE } = app.Sequelize;
|
||
|
||
const PrintComputer = app.model.define('print_computer', {
|
||
id: {
|
||
type: INTEGER,
|
||
primaryKey: true,
|
||
autoIncrement: true,
|
||
allowNull: false,
|
||
comment: '主键ID',
|
||
},
|
||
warehouse_id: {
|
||
type: BIGINT.UNSIGNED,
|
||
allowNull: true,
|
||
comment: '仓库ID',
|
||
},
|
||
name: {
|
||
type: STRING(255),
|
||
allowNull: true,
|
||
comment: '打印台名称',
|
||
},
|
||
status: {
|
||
type: INTEGER(1),
|
||
allowNull: false,
|
||
defaultValue: 1,
|
||
comment: '状态,1-已激活,0-未激活',
|
||
},
|
||
last_login_time: {
|
||
type: DATE,
|
||
allowNull: true,
|
||
comment: '上次登录时间',
|
||
},
|
||
}, {
|
||
tableName: 'wms_print_computer',
|
||
freezeTableName: true,
|
||
underscored: false,
|
||
timestamps: false,
|
||
comment: '打印台电脑表',
|
||
});
|
||
|
||
return PrintComputer;
|
||
};
|