package com.test.bijihoudaun.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

@Data
@Schema(name = "图片名称实体")
@TableName("`image_name`")
public class ImageName {
    @Schema(description = "图片名称id", implementation = Long.class)
    @TableId(type = IdType.AUTO)
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long id;

    @Schema(description = "关联的Markdown文件ID", implementation = Long.class)
    @TableField("markdown_id")
    private Long markdownId;

    @Schema(description = "文件名", implementation = String.class)
    @TableField("file_name")
    private String fileName;
}