alioth/before/cha/13=graphResource2/gen-Model/models/lauchuserstructrelationorganizationauthority.js
2025-05-30 09:18:01 +08:00

43 lines
976 B
JavaScript

const Sequelize = require('sequelize');
module.exports = function(sequelize, DataTypes) {
return sequelize.define('lauchuserstructrelationorganizationauthority', {
organizationRelationAuthorityId: {
autoIncrement: true,
type: DataTypes.INTEGER,
allowNull: false,
primaryKey: true
},
organizationStruct: {
type: DataTypes.INTEGER,
allowNull: false
},
authorityStruct: {
type: DataTypes.INTEGER,
allowNull: false
},
createTime: {
type: DataTypes.DATE,
allowNull: false
},
isDelete: {
type: DataTypes.STRING(64),
allowNull: false,
defaultValue: ""
}
}, {
sequelize,
tableName: 'lauchuserstructrelationorganizationauthority',
timestamps: false,
indexes: [
{
name: "PRIMARY",
unique: true,
using: "BTREE",
fields: [
{ name: "organizationRelationAuthorityId" },
]
},
]
});
};