namespace StellaOps.Feedser.Storage.Mongo.PsirtFlags;

/// <summary>
/// Describes a PSIRT precedence flag for a canonical advisory.
/// </summary>
public sealed record PsirtFlagRecord(
    string AdvisoryKey,
    string Vendor,
    string SourceName,
    string AdvisoryIdText,
    DateTimeOffset FlaggedAt)
{
    public PsirtFlagRecord WithFlaggedAt(DateTimeOffset flaggedAt)
        => this with { FlaggedAt = flaggedAt.ToUniversalTime() };
}
