Built motion from commit bf7fe19.|0.0.148
[motion.git] / server / models / history / report_square_history.js
1 /**
2  * Context Model
3  */
4
5 module.exports = function(sequelize, DataTypes) {
6
7   var ReportSquareHistory = sequelize.define('ReportSquareHistory', {
8     network: {
9       type: DataTypes.STRING,
10     },
11     network_script: {
12       type: DataTypes.STRING,
13     },
14     request: {
15       type: DataTypes.STRING,
16     },
17     channel: {
18       type: DataTypes.STRING,
19     },
20     language: {
21       type: DataTypes.STRING,
22     },
23     type: {
24       type: DataTypes.STRING,
25     },
26     uniqueid: {
27       type: DataTypes.STRING,
28     },
29     version: {
30       type: DataTypes.STRING,
31     },
32     callerid: {
33       type: DataTypes.STRING,
34     },
35     calleridname: {
36       type: DataTypes.STRING,
37     },
38     callingpres: {
39       type: DataTypes.STRING,
40     },
41     callingani2: {
42       type: DataTypes.STRING,
43     },
44     callington: {
45       type: DataTypes.STRING,
46     },
47     callingtns: {
48       type: DataTypes.STRING,
49     },
50     dnid: {
51       type: DataTypes.STRING,
52     },
53     rdnis: {
54       type: DataTypes.STRING,
55     },
56     context: {
57       type: DataTypes.STRING,
58     },
59     extension: {
60       type: DataTypes.STRING,
61     },
62     priority: {
63       type: DataTypes.STRING,
64     },
65     enhanced: {
66       type: DataTypes.STRING,
67     },
68     accountcode: {
69       type: DataTypes.STRING,
70     },
71     threadid: {
72       type: DataTypes.STRING,
73     },
74     project_name: {
75       type: DataTypes.STRING,
76     },
77     prev_project_name: {
78       type: DataTypes.STRING,
79     },
80     joinAt: {
81       type: DataTypes.DATE,
82     },
83     leaveAt: {
84       type: DataTypes.DATE
85     },
86     is_subproject: {
87       type: DataTypes.BOOLEAN,
88       defaultValue: false
89     }
90   }, {
91     tableName: 'report_square_history'
92   });
93   ReportSquareHistory.removeAttribute('id');
94   return ReportSquareHistory;
95 };