package com.fuyuanshen.equipment.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.fuyuanshen.common.tenant.core.TenantEntity;
import com.fuyuanshen.equipment.enums.RepairImageType;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 设备维修图片对象 device_repair_images
 *
 * @date 2025-09-02
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("device_repair_images")
public class DeviceRepairImages extends TenantEntity {

    /**
     * 维修图片ID
     */
    @TableId(value = "image_id", type = IdType.AUTO)
    @TableField(insertStrategy = FieldStrategy.NEVER)
    private Long imageId;

    /**
     * 维修记录ID
     */
    @Schema(title = "维修记录ID")
    private Long recordId;

    /**
     * 图片类型(维修前/维修后)
     */
    @Schema(title = "图片类型(维修前/维修后)")
    private RepairImageType imageType;

    /**
     * 图片存储路径
     */
    @Schema(title = "图片存储路径")
    private String imageUrl;

}
