package com.ruoyi.sales.pojo; import io.swagger.v3.oas.annotations.media.Schema; import com.baomidou.mybatisplus.annotation.*; import lombok.Data; import java.time.LocalDateTime; /** * 通用附件上传表 */ @Data @TableName("common_file") public class CommonFile { private static final long serialVersionUID = 1L; @TableId(type = IdType.AUTO) private Long id; /** 关联表主键D */ private Long commonId; /** 文件名称 */ private String name; /** 文件路径 */ private String url; /** 关联表 */ private Integer type; /** 文件大小 */ private Long fileSize; /** 创建时间 */ @TableField(fill = FieldFill.INSERT) private LocalDateTime createTime; /** 更新时间 */ @TableField(fill = FieldFill.INSERT_UPDATE) private LocalDateTime updateTime; @Schema(description = "创建用户") @TableField(fill = FieldFill.INSERT) private Integer createUser; @TableField(fill = FieldFill.INSERT) private Long deptId; }