ms_soccer_result_trend.ts 3.0 KB
/*********************************************************************
# Autor: sandyWqh
# Date: 2021-03-16 15:31:34
# Description: 
# Version: 1.0
# LastEditors  : sandyWqh
# LastEditTime : 2021-04-08 16:17:17
**********************************************************************/
/* jshint indent: 2 */

module.exports = function (sequelize: any, DataTypes: any) {
  return sequelize.define('ms_soccer_result_trend', {
    id: {
      type: DataTypes.INTEGER(11),
      allowNull: false,
      primaryKey: true,
      autoIncrement: true
    },
    yiqiu_id: {
      type: DataTypes.INTEGER(11),
      allowNull: false,
      unique: true
    },
    sport_id: {
      type: DataTypes.INTEGER(11),
      allowNull: false,
      unique: true
    },
    home_id: {
      type: DataTypes.INTEGER(11),
      allowNull: true
    },
    away_id: {
      type: DataTypes.INTEGER(11),
      allowNull: true
    },
    match_time: {
      type: DataTypes.STRING(100),
      allowNull: true
    },
    competition_id: {
      type: DataTypes.INTEGER(11),
      allowNull: true
    },
    competition_name: {
      type: DataTypes.STRING(200),
      allowNull: true
    },
    home_name: {
      type: DataTypes.STRING(200),
      allowNull: true
    },
    away_name: {
      type: DataTypes.STRING(200),
      allowNull: true
    },
    score: {
      type: DataTypes.STRING(50),
      allowNull: true
    },
    half: {
      type: DataTypes.STRING(50),
      allowNull: true
    },
    note: {
      type: DataTypes.STRING(50),
      allowNull: true
    },
    match_num: {
      type: DataTypes.STRING(20),
      allowNull: true
    },
    let_score: {
      type: DataTypes.STRING(20),
      allowNull: true
    },
    week_day: {
      type: DataTypes.STRING(20),
      allowNull: true
    },
    plate: {
      type: DataTypes.STRING(50),
      allowNull: true
    },
    win_flat_lose: {
      type: DataTypes.STRING(20),
      allowNull: true
    },
    let_ball: {
      type: DataTypes.STRING(20),
      allowNull: true
    },
    plate_result: {
      type: DataTypes.STRING(20),
      allowNull: true
    },
    total_balls: {
      type: DataTypes.STRING(20),
      allowNull: true
    },
    half_full: {
      type: DataTypes.STRING(20),
      allowNull: true
    },
    max_min: {
      type: DataTypes.STRING(20),
      allowNull: true
    },
    odd_even: {
      type: DataTypes.STRING(20),
      allowNull: true
    },
    jc_sp: {
      type: DataTypes.STRING(200),
      allowNull: true
    },
    jc_let_sp: {
      type: DataTypes.STRING(200),
      allowNull: true
    },
    is_jingcai: {
      type: DataTypes.INTEGER(11),
      allowNull: true,
      defaultValue: '0'
    },
    is_beidan: {
      type: DataTypes.INTEGER(11),
      allowNull: true,
      defaultValue: '0'
    },
    issue_name: {
      type: DataTypes.STRING(100),
      allowNull: true
    },
    match_num_bd: {
      type: DataTypes.STRING(20),
      allowNull: true
    },
  }, {
    tableName: 'ms_soccer_result_trend'
  });
};