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 io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
@Data
@ApiModel(value = "Portfolio对象", description = "作品集")
@TableName("portfolio")
public class Portfolio implements Serializable {

    private static final long serialVersionUID = 1L;

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

    @ApiModelProperty(value = "collection ID")
    private Long collectionId;

    private Long projectId;

    @ApiModelProperty(value = "userLikeGroup源")
    private Long userLikeGroupSourceId;

    @ApiModelProperty(value = "作品名称")
    private String portfolioName;

    @ApiModelProperty(value = "作品描述")
    private String portfolioDes;

    @ApiModelProperty(value = "作品类型")
    private String portfolioType;

    @ApiModelProperty(value = "画布ID")
    private Long canvasId;

    @ApiModelProperty(value = "封面ID")
    private Long coverId;

    @ApiModelProperty(value = "作品状态1公开0隐藏")
    private Integer status;

    @ApiModelProperty(value = "是否允许二次创作1允许0不允许")
    private Integer openSource;

    private Integer original;

    private Long originalAccountId;

    private Long originalPortfolioId;

    private String snapshot;

    @ApiModelProperty(value = "作品集作者ID")
    private Long accountId;

    // 学校/企业id
    private Long organizationId;

    // 该条作品是否在该组织公开 默认公开 1（0为不公开）
    private Integer isPublic;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createDate;

    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateDate;

    @ApiModelProperty(value = "是否删除")
    private Integer isDeleted;
}
