/* eslint-disable*/ 'use strict'; module.exports = dc => { const DataTypes = dc.ORM; const sequelize = dc.orm; const Role = sequelize.define("role", { id: { type: DataTypes.INTEGER, allowNull: false, defaultValue: null, comment: null, primaryKey: true, field: "id", autoIncrement: true, unique: "role_id_uindex" }, name: { type: DataTypes.STRING, allowNull: false, defaultValue: null, comment: null, primaryKey: false, field: "name", autoIncrement: false }, roleGroupId: { type: DataTypes.INTEGER, allowNull: false, defaultValue: null, comment: null, primaryKey: false, field: "role_group_id", autoIncrement: false, references: { key: "id", model: "tRoleGroup" } }, type: { type: DataTypes.INTEGER, allowNull: false, defaultValue: null, comment: "1:集团 2:公司 3:项目", primaryKey: false, field: "type", autoIncrement: false }, dataRange: { type: DataTypes.INTEGER, allowNull: true, defaultValue: null, comment: "1:全公司 2:本人 3:本部门 ", primaryKey: false, field: "data_range", autoIncrement: false }, del: { type: DataTypes.BOOLEAN, allowNull: true, defaultValue: null, comment: null, primaryKey: false, field: "del", autoIncrement: false } }, { tableName: "role", comment: "", indexes: [] }); dc.models.Role = Role; return Role; };