/* eslint-disable*/ 'use strict'; module.exports = dc => { const DataTypes = dc.ORM; const sequelize = dc.orm; const Overtime = sequelize.define("overtime", { id: { type: DataTypes.INTEGER, allowNull: false, defaultValue: null, comment: null, primaryKey: true, field: "id", autoIncrement: true, unique: "overtime_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 }, duration: { type: DataTypes.INTEGER, allowNull: true, defaultValue: null, comment: null, primaryKey: false, field: "duration", autoIncrement: false }, pepProcessStoryId: { type: DataTypes.INTEGER, allowNull: false, defaultValue: null, comment: null, primaryKey: false, field: "pep_process_story_id", autoIncrement: false }, wfProcessState: { type: DataTypes.STRING, allowNull: true, defaultValue: null, comment: null, primaryKey: false, field: "wf_process_state", autoIncrement: false }, takeRestWorkday: { type: DataTypes.INTEGER, allowNull: true, defaultValue: "0", comment: "工作日调休", primaryKey: false, field: "take_rest_workday", autoIncrement: false }, takeRestDayoff: { type: DataTypes.INTEGER, allowNull: true, defaultValue: "0", comment: "普假调休", primaryKey: false, field: "take_rest_dayoff", autoIncrement: false }, takeRestFestivals: { type: DataTypes.INTEGER, allowNull: true, defaultValue: "0", comment: "节假日调休", primaryKey: false, field: "take_rest_festivals", autoIncrement: false }, payWorkday: { type: DataTypes.INTEGER, allowNull: true, defaultValue: "0", comment: "工作日补偿", primaryKey: false, field: "pay_workday", autoIncrement: false }, payDayoff: { type: DataTypes.INTEGER, allowNull: true, defaultValue: "0", comment: "普假补偿", primaryKey: false, field: "pay_dayoff", autoIncrement: false }, payFestivals: { type: DataTypes.INTEGER, allowNull: true, defaultValue: "0", comment: "节假日补偿", primaryKey: false, field: "pay_festivals", autoIncrement: false }, compensate: { type: DataTypes.STRING, allowNull: true, defaultValue: null, comment: "补偿方式", primaryKey: false, field: "compensate", autoIncrement: false } }, { tableName: "overtime", comment: "", indexes: [] }); dc.models.Overtime = Overtime; return Overtime; };