prediction_result.js 4.9 KB
/* jshint indent: 2 */
module.exports = function (sequelize, DataTypes) {
    return sequelize.define('prediction_result', {
        dbno: {
            type: DataTypes.INTEGER(11),
            allowNull: false,
            primaryKey: true,
            autoIncrement: true
        },
        temp_id: {
            type: DataTypes.INTEGER(11),
            allowNull: true
        },
        game_id: {
            type: DataTypes.INTEGER(11),
            allowNull: true
        },
        admin_user_id: {
            type: DataTypes.INTEGER(11),
            allowNull: true
        },
        expertid: {
            type: DataTypes.INTEGER(11),
            allowNull: true
        },
        author_name: {
            type: DataTypes.STRING(20),
            allowNull: true
        },
        author_tag: {
            type: DataTypes.STRING(50),
            allowNull: true
        },
        author_headimgurl: {
            type: DataTypes.STRING(100),
            allowNull: true
        },
        author_advantage: {
            type: DataTypes.STRING(100),
            allowNull: true
        },
        author_description: {
            type: DataTypes.STRING(500),
            allowNull: true
        },
        plan_begintime: {
            type: DataTypes.DATE,
            allowNull: true
        },
        plan_endtime: {
            type: DataTypes.DATE,
            allowNull: true
        },
        plan_title: {
            type: DataTypes.STRING(500),
            allowNull: true
        },
        plan_description: {
            type: DataTypes.TEXT,
            allowNull: true
        },
        prediction_result: {
            type: DataTypes.JSON,
            allowNull: true
        },
        forecast_items: {
            type: DataTypes.JSON,
            allowNull: true
        },
        open_result_detail: {
            type: DataTypes.JSON,
            allowNull: true
        },
        lotteryitems: {
            type: DataTypes.JSON,
            allowNull: true
        },
        open_result_status: {
            type: DataTypes.INTEGER(11),
            allowNull: true
        },
        lottery_id: {
            type: DataTypes.INTEGER(11),
            allowNull: true
        },
        is_win: {
            type: DataTypes.INTEGER(1),
            allowNull: true
        },
        author_record: {
            type: DataTypes.STRING(20),
            allowNull: true
        },
        lz_7count: {
            type: DataTypes.INTEGER(11),
            allowNull: true
        },
        lz_30d_count: {
            type: DataTypes.INTEGER(11),
            allowNull: true
        },
        d7_win_ratio: {
            type: DataTypes.STRING(20),
            allowNull: true
        },
        d7_return_ratio: {
            type: DataTypes.STRING(20),
            allowNull: true
        },
        d15_return_ratio: {
            type: DataTypes.STRING(20),
            allowNull: true
        },
        last_7dan_return: {
            type: DataTypes.STRING(20),
            allowNull: true
        },
        created_at: {
            type: DataTypes.DATE,
            allowNull: true
        },
        updated_at: {
            type: DataTypes.DATE,
            allowNull: true
        },
        bet_amount: {
            type: DataTypes.DECIMAL,
            allowNull: true
        },
        win_amount: {
            type: DataTypes.DECIMAL,
            allowNull: true
        },
        author_7wincount: {
            type: DataTypes.INTEGER(11),
            allowNull: true
        },
        d30returnratio: {
            type: DataTypes.STRING(50),
            allowNull: true
        },
        d7returnratio: {
            type: DataTypes.STRING(50),
            allowNull: true
        },
        lzcount: {
            type: DataTypes.INTEGER(11),
            allowNull: true
        },
        maxlzcount: {
            type: DataTypes.INTEGER(11),
            allowNull: true
        },
        option_name: {
            type: DataTypes.STRING(50),
            allowNull: true
        },
        plan_summary: {
            type: DataTypes.TEXT,
            allowNull: true
        },
        plan_saleprice: {
            type: DataTypes.INTEGER(11),
            allowNull: true
        },
        publishtime: {
            type: DataTypes.DATE,
            allowNull: true
        },
        typeid: {
            type: DataTypes.INTEGER(11),
            allowNull: true
        },
        winratio: {
            type: DataTypes.STRING(50),
            allowNull: true
        },
        winstatus: {
            type: DataTypes.INTEGER(11),
            allowNull: true
        },
        last7danreturn: {
            type: DataTypes.STRING(50),
            allowNull: true
        },
        d15returnratio: {
            type: DataTypes.STRING(50),
            allowNull: true
        }
    }, {
        tableName: 'prediction_result'
    });
};
//# sourceMappingURL=prediction_result.js.map