/* eslint-disable*/ 'use strict'; module.exports = dc => { const DataTypes = dc.ORM; const sequelize = dc.orm; const Vacate = sequelize.define("vacate", { id: { type: DataTypes.INTEGER, allowNull: false, defaultValue: null, comment: null, primaryKey: true, field: "id", autoIncrement: true, unique: "vacate_id_uindex" }, pepUserId: { type: DataTypes.INTEGER, allowNull: false, defaultValue: null, comment: null, primaryKey: false, field: "pep_user_id", autoIncrement: false }, startTime: { type: DataTypes.DATE, allowNull: false, defaultValue: null, comment: null, primaryKey: false, field: "start_time", autoIncrement: false }, endTime: { type: DataTypes.DATE, allowNull: false, defaultValue: null, comment: null, primaryKey: false, field: "end_time", autoIncrement: false }, type: { type: DataTypes.STRING, allowNull: true, defaultValue: null, comment: "请假类别", primaryKey: false, field: "type", autoIncrement: false }, duration: { type: DataTypes.INTEGER, allowNull: true, defaultValue: null, comment: "时长 s", primaryKey: false, field: "duration", autoIncrement: false }, pepProcessStoryId: { type: DataTypes.INTEGER, allowNull: false, defaultValue: null, comment: "和 项企 workflow_process_history 关联", primaryKey: false, field: "pep_process_story_id", autoIncrement: false }, wfProcessState: { type: DataTypes.STRING, allowNull: true, defaultValue: null, comment: "流程状态", primaryKey: false, field: "wf_process_state", autoIncrement: false }, reason: { type: DataTypes.STRING, allowNull: true, defaultValue: null, comment: "原因", primaryKey: false, field: "reason", autoIncrement: false } }, { tableName: "vacate", comment: "", indexes: [] }); dc.models.Vacate = Vacate; return Vacate; };