CDN flag change
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
namespace SOR.Database.Entities.Catalog;
|
||||
|
||||
/// <summary>
|
||||
/// Tracks generic CDN uploads made through the admin portal.
|
||||
/// This is separate from card-linked asset records so arbitrary files
|
||||
/// (UI graphics, config data, music, SFX, models, etc.) can still carry
|
||||
/// provenance metadata such as whether they were AI-generated.
|
||||
/// </summary>
|
||||
public sealed class CdnUploadRecord
|
||||
{
|
||||
public Guid Id { get; set; } = Guid.NewGuid();
|
||||
|
||||
/// <summary>S3 object key within the configured bucket.</summary>
|
||||
public string ObjectKey { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>Logical top-level or nested folder prefix, e.g. "graphics" or "models/ui".</summary>
|
||||
public string Prefix { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>Publicly accessible CDN URL for the uploaded object.</summary>
|
||||
public string PublicUrl { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>Best-known MIME type for the object.</summary>
|
||||
public string? ContentType { get; set; }
|
||||
|
||||
/// <summary>Whether the object was AI-generated.</summary>
|
||||
public bool IsAiGenerated { get; set; }
|
||||
|
||||
public DateTimeOffset UploadedAt { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user