/*
 * Copyright (c) 2024 codvision.com All Rights Reserved.
 */

package com.codvision.basic.entity.inspection;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Transient;
import java.io.Serializable;
import java.util.Date;

/**
 * @author codvision
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("tbl_inspection_task_inventory_mapper")
@ApiModel(description = "检查任务、清单关联")
public class InspectionTaskInventoryMapper implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "主键id")
    private Integer id;

    @ApiModelProperty(value = "检查清单id")
    private Integer inventoryId;

    @ApiModelProperty(value = "检查任务id")
    private Integer taskId;


    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    @Transient
    private InspectionInventory inspectionInventory;
}
