package shop.alien.entity.store;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 反馈附件表（图片和视频）
 */
@Data
@JsonInclude
@TableName("life_img")
@ApiModel(value = "LifeImg对象", description = "反馈附件（图片和视频）")
public class LifeImg implements Serializable {
    private static final long serialVersionUID = 1L;

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

    @ApiModelProperty(value = "反馈ID(关联life_feedback)")
    @TableField("feedback_id")
    private Integer feedbackId;

    @ApiModelProperty(value = "文件URL（图片或视频）")
    @TableField("img_url")
    private String imgUrl;

    @ApiModelProperty(value = "缩略图URL（视频的封面图）")
    @TableField("thumbnail_url")
    private String thumbnailUrl;

    @ApiModelProperty(value = "文件类型:1-图片,2-视频")
    @TableField("file_type")
    private Integer fileType;

    @ApiModelProperty(value = "上传时间")
    @TableField("upload_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date uploadTime;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    @ApiModelProperty(value = "修改时间")
    @TableField(value = "update_time", fill = FieldFill.UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

    @ApiModelProperty(value = "创建人ID")
    @TableField("created_user_id")
    private Integer createdUserId;

    @ApiModelProperty(value = "修改人ID")
    @TableField("updated_user_id")
    private Integer updatedUserId;
}

