package com.reading.platform.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * Resource Item Entity
 */
@Data
@TableName("resource_items")
public class ResourceItem {

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

    private Long libraryId;

    private String name;

    private String code;

    private String description;

    private Integer quantity;

    private Integer availableQuantity;

    private String location;

    private String status;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createdAt;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updatedAt;

    @TableLogic
    private Integer deleted;

}
