package cn.iocoder.yudao.module.knowledge.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

@TableName("t_violation_image")
@Data
@Schema(description = "违章图片类")
public class TViolationImage extends BaseDO {

    @Schema(description = "主键")
    @TableId
    private String id;

    @Schema(
            description = "文件名称",
            example = "test.doc"
    )
    @TableField("fileName")
    private String name;

    @Schema(
            description = "文件地址",
            example = "/d/test"
    )
    private String fileUrl;

    @Schema(
            description = "文件大小",
            example = "20KB"
    )
    private String fileSize;

    @Schema(
            description = "文件排序",
            example = "1"
    )
    private int sort;

    @Schema(
            description = "违章编码",
            example = "a01"
    )
    private String violationCode;

    @Schema(
            description = "预留字段",
            example = "a01"
    )
    private String violationImageA;

    @Schema(
            description = "创建人",
            example = "a01"
    )
    private String creator;

    @Schema(
            description = "关联违章id",
            example = "1"
    )
    private Long violationId;

}
