package com.competition.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;

@Data
@TableName("t_ugc_work_page")
@Schema(description = "作品页面实体")
public class UgcWorkPage implements Serializable {

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

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

    @Schema(description = "页码")
    @TableField("page_no")
    private Integer pageNo;

    @Schema(description = "图片URL")
    @TableField("image_url")
    private String imageUrl;

    @Schema(description = "文本内容")
    private String text;

    @Schema(description = "音频URL")
    @TableField("audio_url")
    private String audioUrl;
}
