seasons.js
1.7 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
module.exports = function (sequelize, DataTypes) {
return sequelize.define('seasons', {
id: {
autoIncrement: true,
type: DataTypes.INTEGER,
allowNull: false,
primaryKey: true,
comment: "赛季ID"
},
competition_id: {
type: DataTypes.INTEGER,
allowNull: true,
comment: "赛事ID"
},
end_time: {
type: DataTypes.INTEGER,
allowNull: true,
comment: "结束时间"
},
has_player_stats: {
type: DataTypes.INTEGER,
allowNull: true,
comment: "是否有球员统计,1-是、0-否"
},
has_table: {
type: DataTypes.INTEGER,
allowNull: true,
comment: "是否有积分榜,1-是、0-否"
},
has_team_stats: {
type: DataTypes.INTEGER,
allowNull: true,
comment: "是否有球队统计,1-是、0-否"
},
is_current: {
type: DataTypes.INTEGER,
allowNull: true,
comment: "是否最新赛季,1-是、0-否"
},
start_time: {
type: DataTypes.INTEGER,
allowNull: true,
comment: "开始时间"
},
year: {
type: DataTypes.STRING(255),
allowNull: true,
comment: "赛季年份"
},
updated_at: {
type: DataTypes.BIGINT,
allowNull: true,
get() {
return moment(this.getDataValue('updated_at')).format('YYYY-MM-DD HH:mm:ss');
}
},
});
};
//# sourceMappingURL=seasons.js.map