cps_user.ts
1.9 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
/* jshint indent: 2 */
module.exports = function(sequelize:any, DataTypes:any) {
return sequelize.define('cps_user', {
id: {
type: DataTypes.INTEGER(11),
allowNull: false,
primaryKey: true,
autoIncrement: true
},
user_id: {
type: DataTypes.BIGINT,
allowNull: true,
unique: true
},
user_platform: {
type: DataTypes.STRING(20),
allowNull: true
},
promoter_id: {
type: DataTypes.INTEGER(11),
allowNull: true
},
user_name: {
type: DataTypes.STRING(50),
allowNull: true
},
mobile: {
type: DataTypes.STRING(50),
allowNull: true
},
created_at: {
type: DataTypes.DATE,
allowNull: true
},
updated_at: {
type: DataTypes.DATE,
allowNull: true
},
operate_time: {
type: DataTypes.DATE,
allowNull: true
},
operate_user_id: {
type: DataTypes.BIGINT,
allowNull: true
},
status: {
type: DataTypes.INTEGER(11),
allowNull: true
},
real_name: {
type: DataTypes.STRING(50),
allowNull: true
},
id_card: {
type: DataTypes.STRING(50),
allowNull: true
},
id_card_url_1: {
type: DataTypes.STRING(300),
allowNull: true
},
id_card_url_2: {
type: DataTypes.STRING(300),
allowNull: true
},
memo: {
type: DataTypes.STRING(500),
allowNull: true
},
user_type: {
type: DataTypes.STRING(10),
allowNull: true
},
money_rate: {
type: DataTypes.DECIMAL,
allowNull: true
},
operate_result: {
type: DataTypes.STRING(300),
allowNull: true
},
user_info_url: {
type: DataTypes.STRING(2000),
allowNull: true
},
cps_code: {
type: DataTypes.STRING(20),
allowNull: true
},
}, {
tableName: 'cps_user'
});
};