RecordInfoModel.js
1.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
var sequelize = require('../config');
var Sequelize = require('sequelize');
var uuid = require('../util/UuidUtil')
var recordInfo = sequelize.define('3m_record_info', {
id: {
type: Sequelize.STRING(32),
defaultValue:uuid.db32(),
allowNull: false,
unique: true,
primaryKey: true,
field: "id"
},
appId: {
allowNull: false,
type:Sequelize.STRING(50),
field: "app_id"
},
channel: {
allowNull: false,
type:Sequelize.STRING(50),
field: "channel"
},
channelKey:{
type:Sequelize.STRING(50),
field: "channel_key"
},
uid:{
type:Sequelize.STRING(50),
field: "uid"
},
userId:{
type:Sequelize.STRING(50),
field: "user_id"
},
userRole:{
type:Sequelize.STRING(50),
field: "user_role"
},
userName:{
type:Sequelize.STRING(50),
field: "user_name"
},
timestamp:{
type:Sequelize.STRING(50),
field: "timestamp"
},
recordTimestamp:{
type:Sequelize.STRING(50),
field: "recordTimestamp"
},
createTime:{
type:Sequelize.STRING(50),
field: "create_time"
},
status:{
type:Sequelize.INTEGER(1),
field:'status',
},
type:{
type:Sequelize.INTEGER(1),
field:'type',
}
}, {
timestamps: false,
freezeTableName: true
});
module.exports = recordInfo;