ms_soccer_nation_rank.js 1.8 KB
module.exports = function (sequelize, DataTypes) {
    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'
    });
};
//# sourceMappingURL=ms_soccer_nation_rank.js.map