Clean up legacy outgoing attachment duplicates
This commit is contained in:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user