5 var moment = require('moment');
7 module.exports = function(sequelize, DataTypes) {
8 var ReportOpenchannelSession = sequelize.define('ReportOpenchannelSession', {
9 uniqueid: DataTypes.STRING,
10 accountid: DataTypes.STRING,
11 accountname: DataTypes.STRING,
12 application: DataTypes.STRING,
13 memberid: DataTypes.STRING,
14 membername: DataTypes.STRING,
15 queue: DataTypes.INTEGER,
16 queuename: DataTypes.STRING,
17 roomid: DataTypes.INTEGER,
19 type: DataTypes.INTEGER,
22 joinAt: DataTypes.DATE,
23 leaveAt: DataTypes.DATE,
24 completeAt: DataTypes.DATE,
26 type: DataTypes.BOOLEAN,
29 completeReason: DataTypes.ENUM('agent'),
31 type: DataTypes.BOOLEAN,
35 tableName: 'report_openchannel_session'
38 return ReportOpenchannelSession;