lottery_store_template.ts
2.6 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
module.exports = function(sequelize:any, DataTypes:any) {
return sequelize.define('lottery_store_template', {
id: {
type: DataTypes.INTEGER(11),
allowNull: false,
primaryKey: true,
autoIncrement: true
},
title: {
type: DataTypes.STRING(255),
allowNull: true
},
content: {
type: DataTypes.TEXT,
allowNull: true
},
url: {
type: DataTypes.STRING(500),
allowNull: true
},
publish_time: {
type: DataTypes.STRING(20),
allowNull: true,
},
frequency: {
type: DataTypes.INTEGER(2),
allowNull: true
},
main_image_url: {
type: DataTypes.STRING(500),
allowNull: true
},
template_status: {
type: DataTypes.INTEGER(1),
allowNull: true
},
created_at: {
type: DataTypes.DATE,
allowNull: true,
},
updated_at: {
type: DataTypes.DATE,
allowNull: true,
},
deleted_at: {
type: DataTypes.DATE,
allowNull: true,
},
module_id: {
type: DataTypes.INTEGER(11),
allowNull: true
},
sub_module_id: {
type: DataTypes.INTEGER(11),
allowNull: true
},
is_top: {
type: DataTypes.INTEGER(1),
allowNull: true
},
shopkeeper_qr_code: {
type: DataTypes.STRING(500),
allowNull: true
},
shopkeeper_image: {
type: DataTypes.STRING(500),
allowNull: true
},
ejs_body: {
type: DataTypes.TEXT,
allowNull: true
},
ejs_config: {
type: DataTypes.JSON,
allowNull: true
},
lotteryids: {
type: DataTypes.JSON,
allowNull: true,
comment: '彩种id数组'
},
sub_module_ids: {
type: DataTypes.JSON,
allowNull: true
},
sub_module_parent_ids: {
type: DataTypes.JSON,
allowNull: true
},
enable: {
type: DataTypes.INTEGER(1),
allowNull: true,
comment: '是否启用模版'
} ,
bobao:{
type: DataTypes.INTEGER(1),
allowNull: true,
comment: '是否启用播报'
},
func_name: {
type: DataTypes.STRING(50),
allowNull: true,
comment: '海报数据源函数'
},
top_sort: {
type: DataTypes.INTEGER(8),
allowNull: true
},
posters_key: {
type: DataTypes.STRING(255),
allowNull: true,
comment: '足球生成海报key'
}
}, {
tableName: 'lottery_store_template'
});
};