package com.sonic.frog.domain.entity;

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

import java.time.LocalDateTime;

/**
 * AI用户相册表
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("ai_user_album")
public class AiUserAlbum {

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

    /**
     * AI的id
     */
    @TableField("ai_id")
    private Long aiId;

    @ApiModelProperty("AI所属主人用户id")
    @TableField("user_id")
    private Long userId;

    /**
     * 图片地址
     */
    @TableField("img_url")
    private String imgUrl;

    /**
     * 源图片地址
     */
    @TableField("source_img_url")
    private String sourceImgUrl;

    /**
     * 解锁价格
     */
    @TableField("unlock_price")
    private Long unlockPrice;

    /**
     * 图片宽
     */
    @TableField("width")
    private String width;

    /**
     * 图片高
     */
    @TableField("height")
    private String height;

    /**
     * 排序
     */
    @TableField("img_order")
    private Integer imgOrder;

    /**
     * 是否默认图片
     */
    @TableField("is_default")
    private Boolean isDefault;

    /**
     * 点赞数
     */
    @TableField("liked_count")
    private Integer likedCount;

    /**
     * 是否删除 (0:未删除, 1:删除)
     */
    @TableField("is_delete")
    private Boolean isDelete;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField("edit_time")
    private LocalDateTime editTime;
}