package com.storlead.sales.pojo.entity.customer;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.storlead.framework.mybatis.entity.SysBaseField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 工单访问记录表
 * </p>
 *
 * @author YPZ
 * @since 2024-04-29
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("work_order_view_log")
@ApiModel(value="WorkOrderViewLogEntity对象", description="工单访问记录表")
public class WorkOrderViewLogEntity extends SysBaseField {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "工单订单表id")
    @TableField("work_order_id")
    private Long workOrderId;

    @ApiModelProperty(value = "系统用户id")
    @TableField("user_id")
    private Long userId;

    @ApiModelProperty(value = "系统用户姓名")
    @TableField("user_name")
    private String userName;

    @ApiModelProperty(value = "查看次数")
    @TableField("view_count")
    private Integer viewCount;


}
