ms_basketball_competition.js 5.0 KB
/* jshint indent: 2 */
module.exports = function (sequelize, DataTypes) {
    return sequelize.define('ms_basketball_competition', {
        id: {
            type: DataTypes.INTEGER(11),
            allowNull: false,
            primaryKey: true,
            autoIncrement: true
        },
        created_at: {
            type: DataTypes.DATE,
            allowNull: true
        },
        updated_at: {
            type: DataTypes.DATE,
            allowNull: true
        },
        info_match_type_id: {
            type: DataTypes.BIGINT,
            allowNull: true
        },
        sportdt_competition_id: {
            type: DataTypes.BIGINT,
            allowNull: true,
            unique: true
        },
        info_match_type_parent_id: {
            type: DataTypes.BIGINT,
            allowNull: true
        },
        sportdt_competition_name: {
            type: DataTypes.STRING(1000),
            allowNull: true
        },
        sportdt_competition_short_name: {
            type: DataTypes.STRING(1000),
            allowNull: true
        },
        color: {
            type: DataTypes.STRING(50),
            allowNull: true
        },
        start_date: {
            type: DataTypes.STRING(20),
            allowNull: true
        },
        end_date: {
            type: DataTypes.STRING(20),
            allowNull: true
        },
        sort_id: {
            type: DataTypes.INTEGER(11),
            allowNull: true
        },
        area_id: {
            type: DataTypes.INTEGER(11),
            allowNull: true
        },
        twitter_url: {
            type: DataTypes.STRING(500),
            allowNull: true
        },
        facebook_url: {
            type: DataTypes.STRING(500),
            allowNull: true
        },
        competition_logo: {
            type: DataTypes.STRING(1000),
            allowNull: true
        },
        photo: {
            type: DataTypes.STRING(500),
            allowNull: true
        },
        blog_flag: {
            type: DataTypes.INTEGER(11),
            allowNull: true,
            defaultValue: '0'
        },
        instagram_url: {
            type: DataTypes.STRING(500),
            allowNull: true
        },
        blog_uuid: {
            type: DataTypes.STRING(200),
            allowNull: true
        },
        info_competition_id: {
            type: DataTypes.INTEGER(11),
            allowNull: true
        },
        sporttery_competition_id: {
            type: DataTypes.INTEGER(11),
            allowNull: true
        },
        leisu_competition_id: {
            type: DataTypes.INTEGER(11),
            allowNull: true
        },
        yiqiu_name: {
            type: DataTypes.STRING(50),
            allowNull: true
        },
        yiqiu_logo: {
            type: DataTypes.STRING(500),
            allowNull: true
        },
        yiqiu_short_name: {
            type: DataTypes.STRING(50),
            allowNull: true
        },
        yiqiu_en_name: {
            type: DataTypes.STRING(100),
            allowNull: true
        },
        yiqiu_id: {
            type: DataTypes.INTEGER(11),
            allowNull: true
        },
        sort_name: {
            type: DataTypes.STRING(20),
            allowNull: true
        },
        area_name: {
            type: DataTypes.STRING(50),
            allowNull: true
        },
        yiqiu_competition_season: {
            type: DataTypes.STRING(20),
            allowNull: true
        },
        yiqiu_competition_round: {
            type: DataTypes.STRING(20),
            allowNull: true
        },
        yiqiu_competition_mode: {
            type: DataTypes.STRING(20),
            allowNull: true
        },
        yiqiu_competition_round_detail: {
            type: DataTypes.JSON,
            allowNull: true
        },
        team_count: {
            type: DataTypes.INTEGER(11),
            allowNull: true
        },
        team_record: {
            type: DataTypes.JSON,
            allowNull: true
        },
        player_count: {
            type: DataTypes.INTEGER(11),
            allowNull: true
        },
        player_avg_age: {
            type: DataTypes.DECIMAL,
            allowNull: true
        },
        player_non_local_count: {
            type: DataTypes.INTEGER(11),
            allowNull: true
        },
        team_last_champion: {
            type: DataTypes.JSON,
            allowNull: true
        },
        player_last_mvp: {
            type: DataTypes.JSON,
            allowNull: true
        },
        is_hot: {
            type: DataTypes.INTEGER(11),
            allowNull: true,
            defaultValue: '0'
        },
        hot_order: {
            type: DataTypes.INTEGER(11),
            allowNull: true,
            defaultValue: '0'
        },
        status: {
            type: DataTypes.INTEGER(11),
            allowNull: true,
            defaultValue: '1'
        },
        rank_memo: {
            type: DataTypes.STRING(1000),
            allowNull: true
        }
    }, {
        tableName: 'ms_basketball_competition'
    });
};
//# sourceMappingURL=ms_basketball_competition.js.map