package com.lesingle.modules.ugc.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@TableName("t_ugc_review_log")
@Schema(description = "UGC审核日志实体")
public class UgcReviewLog implements Serializable {

    @Schema(description = "主键ID")
    @TableId(type = IdType.AUTO)
    private Long id;

    @Schema(description = "目标类型")
    @TableField("target_type")
    private String targetType;

    @Schema(description = "目标ID")
    @TableField("target_id")
    private Long targetId;

    @Schema(description = "作品ID")
    @TableField("work_id")
    private Long workId;

    @Schema(description = "操作动作")
    private String action;

    @Schema(description = "原因")
    private String reason;

    @Schema(description = "备注")
    private String note;

    @Schema(description = "操作人ID")
    @TableField("operator_id")
    private Long operatorId;

    @Schema(description = "创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;
}
