package fcb.project.manager.base.entity;

import java.time.LocalDateTime;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 操作记录表
 * </p>
 *
 * @author abner
 * @since 2021-01-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="TmOperation对象", description="操作记录表")
public class TmOperation implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "唯一ID")
    private String id;

    @ApiModelProperty(value = "操作时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime operateTime;

    @ApiModelProperty(value = "操作员名称")
    private String operatorName;

    @ApiModelProperty(value = "操作员ID")
    private String operatorId;

    @ApiModelProperty(value = "操作员手机号")
    private String operatorPhone;

    @ApiModelProperty(value = "所属公司")
    private String operatorCompanyName;

    @ApiModelProperty(value = "所属公司ID")
    private String operatorCompanyId;

    @ApiModelProperty(value = "操作员角色ID")
    private String operatorRoleId;

    @ApiModelProperty(value = "操作员角色名称")
    private String operatorRoleName;

    @ApiModelProperty(value = "操作类型")
    private String operateType;

    @ApiModelProperty(value = "操作记录")
    private String operateContent;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "最新更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "是否删除: 0->未删除; 1->已删除")
    @TableField("isDelete")
    @TableLogic
    private Integer isDelete;


}
