/* eslint-disable*/ 'use strict'; module.exports = dc => { const DataTypes = dc.ORM; const sequelize = dc.orm; const UserDepartment = sequelize.define("userDepartment", { id: { type: DataTypes.INTEGER, allowNull: false, defaultValue: null, comment: null, primaryKey: true, field: "id", autoIncrement: true, unique: "user_department_id_uindex" }, userId: { type: DataTypes.INTEGER, allowNull: false, defaultValue: null, comment: null, primaryKey: false, field: "user_id", autoIncrement: false, references: { key: "id", model: "tUser" } }, departmentId: { type: DataTypes.INTEGER, allowNull: false, defaultValue: null, comment: null, primaryKey: false, field: "department_id", autoIncrement: false, references: { key: "id", model: "tDepartment" } } }, { tableName: "user_department", comment: "", indexes: [] }); dc.models.UserDepartment = UserDepartment; return UserDepartment; };