act_wheel_surf_conf.js 3.13 KB
/* eslint new-cap: "off" */
const options = require('../model-opts');

module.exports = function(Sequelize, DataTypes) {
    const ActWheelSurfConf = Sequelize.define('ActWheelSurfConf', {
        id: {
            type: DataTypes.INTEGER(8),
            allowNull: false,
            primaryKey: true,
            autoIncrement: true
        },
        act_id: {
            type: DataTypes.INTEGER(8),
            allowNull: false
        },
        rule_btn_bg: {
            type: DataTypes.STRING(300),
            allowNull: true
        },
        rule: {
            type: DataTypes.STRING(2000),
            allowNull: true
        },
        share_btn_bg: {
            type: DataTypes.STRING(300),
            allowNull: true
        },
        share_url: {
            type: DataTypes.STRING(500),
            allowNull: true
        },
        main_bg: {
            type: DataTypes.STRING(300),
            allowNull: true
        },
        wheel_bg: {
            type: DataTypes.STRING(300),
            allowNull: true
        },
        prize_btn_bg: {
            type: DataTypes.STRING(300),
            allowNull: true
        },
        times_type: {
            type: DataTypes.INTEGER(8),
            allowNull: true
        },
        day_limit_times: {
            type: DataTypes.INTEGER(8),
            allowNull: true
        },
        act_total_times: {
            type: DataTypes.INTEGER(8),
            allowNull: true
        },
        day_over_limit_bg: {
            type: DataTypes.STRING(300),
            allowNull: true
        },
        btm_tip_one: {
            type: DataTypes.STRING(60),
            allowNull: true
        },
        btm_tip_two: {
            type: DataTypes.STRING(60),
            allowNull: true
        },
        my_prize_btn_bg: {
            type: DataTypes.STRING(300),
            allowNull: true
        },
        jump_btn_left_url: {
            type: DataTypes.STRING(500),
            allowNull: true
        },
        jump_btn_middle_url: {
            type: DataTypes.STRING(500),
            allowNull: true
        },
        jump_btn_right_url: {
            type: DataTypes.STRING(500),
            allowNull: true
        },
        jump_btn_left_bg: {
            type: DataTypes.STRING(300),
            allowNull: true
        },
        jump_btn_middle_bg: {
            type: DataTypes.STRING(300),
            allowNull: true
        },
        jump_btn_right_bg: {
            type: DataTypes.STRING(300),
            allowNull: true
        },
        bottomContentCode: {
            type: DataTypes.STRING(100),
            allowNull: true,
            field: 'bottom_content_code'
        },
        win_prize_bg: {
            type: DataTypes.STRING(300),
            allowNull: true
        },
        try_again_bg: {
            type: DataTypes.STRING(300),
            allowNull: true
        },
        status: {
            type: DataTypes.INTEGER(8),
            allowNull: true
        },
        create_time: {
            type: DataTypes.DATE,
            defaultValue: Sequelize.NOW
        }
    }, Object.assign(options, {tableName: 'act_wheel_surf_conf'}));

    return ActWheelSurfConf;
};