const Sequelize = require('sequelize'); module.exports = function(sequelize, DataTypes) { return sequelize.define('lauchuserstructorganization', { organizationStructId: { autoIncrement: true, type: DataTypes.INTEGER, allowNull: false, primaryKey: true }, organizationType: { type: DataTypes.STRING(255), allowNull: false }, organizationName: { type: DataTypes.STRING(255), allowNull: false }, organizationDescribe: { type: DataTypes.STRING(255), allowNull: false }, father: { type: DataTypes.INTEGER.UNSIGNED.ZEROFILL, allowNull: false }, isDefault: { type: DataTypes.STRING(255), allowNull: false }, createTime: { type: DataTypes.DATE, allowNull: false }, isDelete: { type: DataTypes.STRING(64), allowNull: false, defaultValue: "" } }, { sequelize, tableName: 'lauchuserstructorganization', timestamps: false, indexes: [ { name: "PRIMARY", unique: true, using: "BTREE", fields: [ { name: "organizationStructId" }, ] }, ] }); };