ms_soccer_nation_rank.ts 1.6 KB
/* jshint indent: 2 */

module.exports = function(sequelize:any, DataTypes:any) {
    return sequelize.define('ms_soccer_nation_rank', {
      national_id: {
        type: DataTypes.BIGINT,
        allowNull: false,
        primaryKey: true
      },
      national_name: {
        type: DataTypes.STRING(50),
        allowNull: true
      },
      national_url: {
        type: DataTypes.STRING(255),
        allowNull: true
      },
      squad_size: {
        type: DataTypes.STRING(20),
        allowNull: true
      },
      avg_age: {
        type: DataTypes.STRING(20),
        allowNull: true
      },
      total_value: {
        type: DataTypes.STRING(20),
        allowNull: true
      },
      confederation: {
        type: DataTypes.STRING(20),
        allowNull: true
      },
      points: {
        type: DataTypes.STRING(20),
        allowNull: true
      },
      created_at: {
        type: DataTypes.BIGINT,
        allowNull: true
      },
      updated_at: {
        type: DataTypes.BIGINT,
        allowNull: true
      },
      chinese_national_name: {
        type: DataTypes.STRING(50),
        allowNull: true,
        defaultValue: ''
      },
      chinese_confederation: {
        type: DataTypes.STRING(50),
        allowNull: true,
        defaultValue: ''
      },
      index_number: {
        type: DataTypes.INTEGER(11),
        allowNull: false,
        defaultValue: '0'
      },
      total_market: {
        type: DataTypes.BIGINT,
        allowNull: false,
        defaultValue: '0'
      }
    }, {
      tableName: 'ms_soccer_nation_rank'
    });
  };