const system=require("../../system");
const settings=require("../../../config/settings");

module.exports = (db, DataTypes) => {
    return db.define("tmk", {
        title:DataTypes.STRING,
        detail:DataTypes.TEXT,
        // ObjectbusinessAddress:DataTypes.STRING,
        // businessTerm:DataTypes.STRING,
        // companyType:DataTypes.STRING,
        // creditCode:DataTypes.STRING,
        // dateIssue:DataTypes.STRING,
        // foundedTime:DataTypes.STRING,
        // legalRepresentative:DataTypes.STRING,
        // managementState:DataTypes.STRING,
        // name:DataTypes.STRING,
        // organizationCode:DataTypes.STRING,
        // registerOffice:DataTypes.STRING,
        // registeredCapital:DataTypes.STRING,
        // registrID:DataTypes.STRING,
        // scope:DataTypes.STRING,
        username:DataTypes.STRING,
    },{
        paranoid: true,//假的删除
        underscored: true,
        version: true,
        freezeTableName: true,
        //freezeTableName: true,
        // define the table's name
        tableName: 'tmk_collect',
        validate: {

        },
        indexes:[]
    });
}