/* 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 }, name: { type: DataTypes.STRING, allowNull: true, defaultValue: null, comment: "角色名称", primaryKey: false, field: "name", autoIncrement: false }, delete: { type: DataTypes.BOOLEAN, allowNull: false, defaultValue: null, comment: "收否删除", primaryKey: false, field: "delete", autoIncrement: false }, dataRange: { type: DataTypes.INTEGER, allowNull: true, defaultValue: null, comment: "数据范围:1全公司 2本部门", primaryKey: false, field: "data_range", autoIncrement: false } }, { tableName: "role", comment: "", indexes: [] }); dc.models.Role = Role; return Role; };