using SqlSugar; namespace Model.Entity.Asset { /// /// 设备附件(资产附件管理:文件上传,支持按文件类型筛选与预览) /// public class EquipmentAttachmentEntity : BaseEntity { /// /// 设备Id(关联 EquipmentEntity.Id) /// public long EquipmentId { get; set; } /// /// 文件名称 /// [SugarColumn(Length = 200, IsNullable = true)] public string? FileName { get; set; } /// /// 文件类型(使用说明书/合格证明/校准证书/保养卡/合同扫描件/验收照片等) /// public AttachmentTypeEnum FileType { get; set; } /// /// 文件扩展名(如 .pdf、.jpg) /// [SugarColumn(Length = 20, IsNullable = true)] public string? FileExt { get; set; } /// /// 文件存储地址(上传后存储的相对路径) /// [SugarColumn(Length = 200, IsNullable = true)] public string? FileUrl { get; set; } /// /// 文件大小(字节) /// public long FileSize { get; set; } /// /// 上传人 /// [SugarColumn(Length = 50, IsNullable = true)] public string? Uploader { get; set; } /// /// 备注 /// [SugarColumn(Length = 500, IsNullable = true)] public string? Remark { get; set; } } }