sporttery_match.ts 2.1 KB
/* jshint indent: 2 */

module.exports = function(sequelize:any, DataTypes:any) {
  return sequelize.define('sporttery_match', {
    id: {
      type: DataTypes.STRING(50),
      allowNull: false,
      primaryKey: true
    },
    a_cn: {
      type: DataTypes.STRING(50),
      allowNull: true
    },
    a_cn_abbr: {
      type: DataTypes.STRING(50),
      allowNull: true
    },
    a_id: {
      type: DataTypes.STRING(50),
      allowNull: true
    },
    a_id_dc: {
      type: DataTypes.STRING(50),
      allowNull: true
    },
    a_order: {
      type: DataTypes.STRING(50),
      allowNull: true
    },
    b_date: {
      type: DataTypes.STRING(50),
      allowNull: true
    },
    date: {
      type: DataTypes.STRING(50),
      allowNull: true
    },
    h_cn: {
      type: DataTypes.STRING(50),
      allowNull: true
    },
    h_cn_abbr: {
      type: DataTypes.STRING(50),
      allowNull: true
    },
    h_id: {
      type: DataTypes.STRING(50),
      allowNull: true
    },
    h_id_dc: {
      type: DataTypes.STRING(50),
      allowNull: true
    },
    h_order: {
      type: DataTypes.STRING(50),
      allowNull: true
    },
    had: {
      type: DataTypes.JSON,
      allowNull: true
    },
    hhad: {
      type: DataTypes.JSON,
      allowNull: true
    },
    match_info: {
      type: DataTypes.JSON,
      allowNull: true
    },
    num: {
      type: DataTypes.STRING(50),
      allowNull: true
    },
    show: {
      type: DataTypes.STRING(50),
      allowNull: true
    },
    status: {
      type: DataTypes.STRING(50),
      allowNull: true
    },
    temperature: {
      type: DataTypes.STRING(50),
      allowNull: true
    },
    time: {
      type: DataTypes.STRING(50),
      allowNull: true
    },
    weather: {
      type: DataTypes.STRING(50),
      allowNull: true
    },
    weather_city: {
      type: DataTypes.STRING(50),
      allowNull: true
    },
    weather_pic: {
      type: DataTypes.STRING(500),
      allowNull: true
    },
    updated_at: {
      type: DataTypes.BIGINT,
      allowNull: true
    },
    created_at: {
      type: DataTypes.BIGINT,
      allowNull: true
    }
  }, {
    tableName: 'sporttery_match'
  });
};