using System;
using System.Text.Json.Serialization;

namespace StellaOps.Feedser.Exporter.TrivyDb;

public sealed record TrivyConfigDocument(
    [property: JsonPropertyName("mediaType")] string MediaType,
    [property: JsonPropertyName("generatedAt")] DateTimeOffset GeneratedAt,
    [property: JsonPropertyName("databaseVersion")] string DatabaseVersion,
    [property: JsonPropertyName("databaseDigest")] string DatabaseDigest,
    [property: JsonPropertyName("databaseSize")] long DatabaseSize);
