const system = require("../../../system");
const settings = require("../../../../config/settings");
const appconfig = system.getSysConfig();
/**
 * 表单信息表
 */
module.exports = (db, DataTypes) => {
    return db.define("forminfo", {
        code: DataTypes.STRING,
        name: DataTypes.STRING,
        form_items: DataTypes.STRING,
        form_describe: DataTypes.STRING,
        notes: DataTypes.STRING,
        user_id: DataTypes.STRING(100),
        user_name: DataTypes.STRING(100),
        company_id: DataTypes.INTEGER(11),
        record_num:DataTypes.INTEGER(11),
        form_table:DataTypes.JSON
    }, {
        paranoid: true,//假的删除
        underscored: true,
        version: true,
        freezeTableName: true,
        tableName: 'c_form_info',
        validate: {},
        indexes: [

        ]
    });
}

