player_stats.ts 686 字节
module.exports = function(sequelize:any, DataTypes:any) {
    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
      }
    });
  };