You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
hutao/reference/graphResource2/gen-Model/models/lauchuserstructauthority.js

65 lines
1.4 KiB

6 months ago
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" },
]
},
]
});
};