package com.chushang.inspection.work.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.chushang.common.mybatis.base.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
  * @auther: zhao
  * @date: 2024/6/28 11:25
  */
/**
 * 工单图片
 */
@Data
@EqualsAndHashCode(callSuper=true)
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "wrk_img")
public class WrkImg extends BaseEntity {
    /**
     * 主键
     */
    @TableId(value = "img_id", type = IdType.ASSIGN_ID)
    private Long imgId;

    /**
     * 工单id
     */
    @TableField(value = "wrk_id")
    private Long wrkId;

    /**
     * 图片类型
     */
    @TableField(value = "img_type")
    private Integer imgType;

    /**
     * 真实请求路径
     */
    @TableField(value = "real_path")
    private String realPath;

    /**
     * 文件fid 值
     */
    @TableField(value = "fid")
    private String fid;

    /**
     * 文件大小
     */
    @TableField(value = "`size`")
    private Long size;

    /**
     * 所属部门
     */
    @TableField(value = "dept_id")
    private Long deptId;
}
