Built motion from commit a0baffd.|1.0.1
[motion.git] / server / models / history / report_square_detail_history.js
1 /**
2  * Context Model
3  */
4
5 module.exports = function(sequelize, DataTypes) {
6
7   var ReportSquareDetailHistory = sequelize.define('ReportSquareDetailHistory', {
8     sourceid: DataTypes.INTEGER,
9     uniqueid: {
10       type: DataTypes.STRING,
11     },
12     node: {
13       type: DataTypes.STRING,
14     },
15     application: {
16       type: DataTypes.STRING,
17     },
18     data: {
19       type: DataTypes.STRING,
20     },
21     project_name: {
22       type: DataTypes.STRING,
23     },
24     callerid: {
25       type: DataTypes.STRING,
26     }
27   }, {
28     tableName: 'report_square_details_history',
29     indexes: [{
30       name: 'sourceid',
31       fields: ['sourceid']
32     }]
33   });
34   ReportSquareDetailHistory.removeAttribute('id');
35   return ReportSquareDetailHistory;
36 };