/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.attence.rule.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import org.springblade.core.mp.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 实体类
 *
 * @author BladeX
 * @since 2021-04-12
 */
@Data
@TableName("attence_rule")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "Rule对象", description = "Rule对象")
public class Rule extends BaseEntity {

	private static final long serialVersionUID = 1L;

	/**
	* 规则名称
	*/
		@ApiModelProperty(value = "规则名称")
		private String name;
	/**
	* 所有者id
	*/
		@ApiModelProperty(value = "所有者id")
		private Long ownerId;
	/**
	* 所有者类型： 0-企业
	*/
		@ApiModelProperty(value = "所有者类型： 0-企业")
		private Integer ownerType;
	/**
	* 汇报人id
	*/
		@ApiModelProperty(value = "汇报人id")
		private Long reporterId;
	/**
	* 汇报人类型： 0-员工
	*/
		@ApiModelProperty(value = "汇报人类型： 0-员工")
		private Integer reporterType;
	/**
	* 打卡规则类型id
	*/
		@ApiModelProperty(value = "打卡规则类型id")
		private Long ruleType;
	/**
	* 员工打卡时是否必须拍照 0-不必拍照 1-必须拍照
	*/
		@ApiModelProperty(value = "员工打卡时是否必须拍照 0-不必拍照 1-必须拍照")
		private Integer needPhone;
	/**
	* 是否备注时允许上传本地图片 0-不允许 1-允许
	*/
		@ApiModelProperty(value = "是否备注时允许上传本地图片 0-不允许 1-允许")
		private Integer noteCanUseLocalPic;
	/**
	* 员工打卡时必须进行人脸识别验证 0-不用 1-必须
	*/
		@ApiModelProperty(value = "员工打卡时必须进行人脸识别验证 0-不用 1-必须")
		private Integer useFaceDetect;
	/**
	* 范围外打卡处理方式，0-视为范围外异常，默认值；1-视为正常外勤；2:不允许范围外打卡
	*/
		@ApiModelProperty(value = "范围外打卡处理方式，0-视为范围外异常，默认值；1-视为正常外勤；2:不允许范围外打卡")
		private Integer optionOutRange;
	/**
	* 每月最多补卡次数，默认-1表示不限制
	*/
		@ApiModelProperty(value = "每月最多补卡次数，默认-1表示不限制")
		private Integer allowApplyBkCnt;


}
