player_stats.js
790 字节
module.exports = function (sequelize, DataTypes) {
return sequelize.define('player_stats', {
match_id: {
type: DataTypes.INTEGER,
allowNull: false,
primaryKey: true,
comment: "比赛id"
},
player_stats: {
type: DataTypes.JSON,
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=player_stats.js.map