transfer_players.js
3.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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/* jshint indent: 2 */
const moment = require("moment");
module.exports = function (sequelize, DataTypes) {
return sequelize.define('transfer_players', {
id: {
type: DataTypes.BIGINT,
allowNull: false,
primaryKey: true
},
player_id: {
type: DataTypes.BIGINT,
allowNull: false,
primaryKey: true
},
team_id: {
type: DataTypes.BIGINT,
allowNull: false,
primaryKey: true
},
competition_id: {
type: DataTypes.STRING(50),
allowNull: false,
primaryKey: true
},
shirt_number: {
type: DataTypes.BIGINT,
allowNull: true
},
name: {
type: DataTypes.STRING(100),
allowNull: true
},
position_id: {
type: DataTypes.BIGINT,
allowNull: true
},
link: {
type: DataTypes.STRING(255),
allowNull: true
},
created_at: {
type: DataTypes.BIGINT,
allowNull: true,
get() {
return moment(this.getDataValue('created_at')).format('YYYY-MM-DD HH:mm:ss');
}
},
updated_at: {
type: DataTypes.BIGINT,
allowNull: true,
get() {
return moment(this.getDataValue('updated_at')).format('YYYY-MM-DD HH:mm:ss');
}
},
update_flag: {
type: DataTypes.INTEGER(11),
allowNull: false,
defaultValue: '0'
},
age: {
type: DataTypes.INTEGER(11),
allowNull: true
},
birth_date: {
type: DataTypes.STRING(30),
allowNull: true
},
birth_place: {
type: DataTypes.STRING(100),
allowNull: true
},
contract_expires: {
type: DataTypes.STRING(50),
allowNull: true
},
current_club_id: {
type: DataTypes.BIGINT,
allowNull: true
},
current_club_name: {
type: DataTypes.STRING(100),
allowNull: true
},
current_market_value: {
type: DataTypes.STRING(50),
allowNull: true
},
foot: {
type: DataTypes.STRING(20),
allowNull: true
},
height: {
type: DataTypes.STRING(20),
allowNull: true
},
highest_market_value: {
type: DataTypes.STRING(100),
allowNull: true
},
join_date: {
type: DataTypes.STRING(30),
allowNull: true
},
last_update: {
type: DataTypes.STRING(30),
allowNull: true
},
main_position: {
type: DataTypes.STRING(50),
allowNull: true
},
national_id: {
type: DataTypes.BIGINT,
allowNull: true
},
national_name: {
type: DataTypes.STRING(50),
allowNull: true
},
other_position: {
type: DataTypes.STRING(100),
allowNull: true
},
player_agent: {
type: DataTypes.STRING(50),
allowNull: true
},
position: {
type: DataTypes.STRING(50),
allowNull: true
}
}, {
tableName: 'transfer_players'
});
};
//# sourceMappingURL=transfer_players.js.map