const system = require("../../../system");
const settings = require("../../../../config/settings");
const appconfig = system.getSysConfig();
/**
 * 表单信息表
 */
module.exports = (db, DataTypes) => {
    return db.define("datastatistic", {
        statistic_date: {
            type: DataTypes.STRING
        },
        channel_code: {
            type: DataTypes.STRING
        },
        channel_name: {
            type: DataTypes.STRING
        },
        pv: {
            type: DataTypes.STRING
        },
        uv: {
            type: DataTypes.STRING
        },
        sub_count: {
            type: DataTypes.STRING
        },
        push_count: {
            type: DataTypes.STRING
        },
        customer_count: {
            type: DataTypes.STRING
        }
    },
        {
            paranoid: true,//假的删除
            underscored: true,
            version: true,
            freezeTableName: true,
            //freezeTableName: true,
            // define the table's name
            tableName: 'mc_data_statistic',
            validate: {

            },
            indexes: [
            ]
        });
}

