using MongoDB.Bson.Serialization.Attributes;

namespace StellaOps.Scanner.Storage.Migrations;

[BsonIgnoreExtraElements]
internal sealed class MongoMigrationDocument
{
    [BsonId]
    public string Id { get; set; } = string.Empty;

    [BsonElement("description")]
    [BsonIgnoreIfNull]
    public string? Description { get; set; }
        = null;

    [BsonElement("appliedAt")]
    public DateTime AppliedAtUtc { get; set; }
        = DateTime.UtcNow;
}
