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;

@Data
@TableName("t_ugc_work_tag")
@Schema(description = "作品标签关联实体")
public class UgcWorkTag implements Serializable {

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

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

    @Schema(description = "标签ID")
    @TableField("tag_id")
    private Long tagId;
}
