using MongoDB.Bson;

namespace StellaOps.Feedser.Storage.Mongo;

public sealed record SourceStateRecord(
    string SourceName,
    bool Enabled,
    bool Paused,
    BsonDocument Cursor,
    DateTimeOffset? LastSuccess,
    DateTimeOffset? LastFailure,
    int FailCount,
    DateTimeOffset? BackoffUntil,
    DateTimeOffset UpdatedAt,
    string? LastFailureReason);
