act_wheel_surf_conf.js 2.65 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
        },
        times_type: {
            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_url_left: {
            type: DataTypes.STRING(500),
            allowNull: true
        },
        jump_url_right: {
            type: DataTypes.STRING(500),
            allowNull: true
        },
        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;
};