teams.js
3.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
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
118
119
120
121
122
module.exports = function (sequelize, DataTypes) {
return sequelize.define('teams', {
id: {
type: DataTypes.INTEGER,
allowNull: false,
primaryKey: true,
comment: "球队ID"
},
coach_id: {
type: DataTypes.INTEGER,
allowNull: true,
comment: "教练ID"
},
competition_id: {
type: DataTypes.INTEGER,
allowNull: true,
comment: "赛事ID(球队所属联赛,杯赛不关联)"
},
country_id: {
type: DataTypes.INTEGER,
allowNull: true,
comment: "国家ID"
},
country_logo: {
type: DataTypes.STRING(255),
allowNull: true,
comment: "国家队Logo(为国家队时存在)"
},
foreign_players: {
type: DataTypes.INTEGER,
allowNull: true,
comment: "非本土球员数,-1表示没有该字段数据"
},
foundation_time: {
type: DataTypes.INTEGER,
allowNull: true,
comment: "成立时间"
},
logo: {
type: DataTypes.STRING(255),
allowNull: true,
comment: "球队Logo"
},
market_value: {
type: DataTypes.INTEGER,
allowNull: true,
comment: "市值"
},
market_value_currency: {
type: DataTypes.STRING(255),
allowNull: true,
comment: "市值单位"
},
name_en: {
type: DataTypes.STRING(255),
allowNull: true,
comment: "英文名称"
},
name_zh: {
type: DataTypes.STRING(255),
allowNull: true,
comment: "中文名称"
},
name_zht: {
type: DataTypes.STRING(255),
allowNull: true,
comment: "粤语名称"
},
national: {
type: DataTypes.INTEGER,
allowNull: true,
comment: "是否国家队,1-是、0-否"
},
national_players: {
type: DataTypes.INTEGER,
allowNull: true,
comment: "国家队球员数,-1表示没有该字段数据"
},
short_name_en: {
type: DataTypes.STRING(255),
allowNull: true,
comment: "英文简称"
},
short_name_zh: {
type: DataTypes.STRING(255),
allowNull: true,
comment: "中文简称"
},
short_name_zht: {
type: DataTypes.STRING(255),
allowNull: true,
comment: "粤语简称"
},
total_players: {
type: DataTypes.INTEGER,
allowNull: true,
comment: "总球员数,-1表示没有该字段数据"
},
venue_id: {
type: DataTypes.INTEGER,
allowNull: true,
comment: "场馆ID"
},
website: {
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');
}
},
created_at: {
type: DataTypes.DATE,
allowNull: true
}
});
};
//# sourceMappingURL=teams.js.map