Clean up legacy outgoing attachment duplicates

This commit is contained in:
sevenhill
2026-07-05 00:26:18 +03:00
parent b022218a1f
commit b518f22a09
14 changed files with 407 additions and 2 deletions
@@ -0,0 +1,18 @@
namespace QMax.Api.Data.Entities;
public sealed class MessageAttachment
{
public Guid Id { get; set; } = Guid.NewGuid();
public Guid MessageId { get; set; }
public Message? Message { get; set; }
public string? ExternalId { get; set; }
public string OriginalFileName { get; set; } = "file";
public string StorageFileName { get; set; } = "";
public string ContentType { get; set; } = "application/octet-stream";
public long FileSizeBytes { get; set; }
public string? Sha256 { get; set; }
public AttachmentKind Kind { get; set; } = AttachmentKind.File;
public int SortOrder { get; set; }
public string? RemoteUrl { get; set; }
public DateTimeOffset CreatedAt { get; set; } = DateTimeOffset.UtcNow;
}