package com.ai.da.mapper.primary.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_generate_detail")
public class GenerateDetail {

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

    /**
     * 关联 generate ID
     */
    private Long generateId;

    /**
     * 模型返回的图片url
     */
    private String url;

    /**
     * 是否喜欢   0：dislike  1:like
     */
    private Byte isLike;

    /**
     * 喜欢的图片添加到library对应的id
     */
    private Long libraryId;

    /**
     * 图片的md5
     */
    private String md5;

    /**
     * 创建时间
     */
    private LocalDateTime createDate;

    /**
     * 更新时间
     */
    private Date updateDate;

    public GenerateDetail() {
    }

    public GenerateDetail(Long generateId, String url, String md5, LocalDateTime createDate) {
        this.generateId = generateId;
        this.url = url;
        this.md5 = md5;
        this.createDate = createDate;
    }
}
