const Sequelize = require('sequelize'); module.exports = function(sequelize, DataTypes) { return sequelize.define('lauchuserstructauthority', { authorityStructId: { autoIncrement: true, type: DataTypes.INTEGER, allowNull: false, primaryKey: true }, authorityType: { type: DataTypes.STRING(255), allowNull: false, comment: "按钮、页面、接口" }, authorityName: { type: DataTypes.STRING(255), allowNull: false }, authorityIdentify: { type: DataTypes.STRING(255), allowNull: false }, authorityDescribe: { type: DataTypes.STRING(255), allowNull: false }, father: { type: DataTypes.INTEGER, allowNull: false }, avatar: { type: DataTypes.STRING(255), allowNull: false }, status: { type: DataTypes.STRING(255), allowNull: false, comment: "禁用启用" }, createTime: { type: DataTypes.DATE, allowNull: false }, isDelete: { type: DataTypes.STRING(64), allowNull: false, defaultValue: "" } }, { sequelize, tableName: 'lauchuserstructauthority', timestamps: false, indexes: [ { name: "PRIMARY", unique: true, using: "BTREE", fields: [ { name: "authorityStructId" }, ] }, ] }); };