competition_statistics_details.js 1.1 KB
module.exports = function (sequelize, DataTypes) {
    return sequelize.define('competition_statistics_details', {
        id: {
            type: DataTypes.INTEGER(11),
            allowNull: false,
            primaryKey: true,
            autoIncrement: true
        },
        season_id: {
            type: DataTypes.INTEGER(11),
            allowNull: false
        },
        competition_id: {
            type: DataTypes.INTEGER(11),
            allowNull: false
        },
        players_stats: {
            type: DataTypes.JSON,
            allowNull: true
        },
        shooters: {
            type: DataTypes.JSON,
            allowNull: true
        },
        teams_stats: {
            type: DataTypes.JSON,
            allowNull: true
        },
        created_at: {
            type: DataTypes.STRING(20),
            allowNull: true
        },
        updated_at: {
            type: DataTypes.STRING(20),
            allowNull: true
        }
    }, {
        tableName: 'competition_statistics_details'
    });
};
//# sourceMappingURL=competition_statistics_details.js.map