人力资源
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.

38 lines
777 B

/* eslint-disable*/
'use strict';
module.exports = dc => {
const DataTypes = dc.ORM;
const sequelize = dc.orm;
const UserRole = sequelize.define("user_role", {
id: {
type: DataTypes.INTEGER,
allowNull: false,
defaultValue: null,
comment: null,
primaryKey: true,
field: "id",
autoIncrement: true
},
roleId: {
type: DataTypes.INTEGER,
allowNull: false,
defaultValue: null,
comment: null,
field: "role_id",
},
userId: {
type: DataTypes.INTEGER,
allowNull: false,
defaultValue: true,
comment: null,
field: "user_id",
},
}, {
tableName: "user_role",
comment: "",
indexes: []
});
dc.models.UserRole = UserRole;
return UserRole;
};