using Managing.Infrastructure.Databases.MongoDb.Attributes;
using Managing.Infrastructure.Databases.MongoDb.Configurations;
using static Managing.Common.Enums;

namespace Managing.Infrastructure.Databases.MongoDb.Collections;

[BsonCollection("Workers")]
public class WorkerDto : Document
{
    public WorkerType WorkerType { get; set; }
    public DateTime StartTime { get; set; }
    public DateTime? LastRunTime { get; set; }
    public int ExecutionCount { get; set; }
    public TimeSpan Delay { get; set; }
    public bool IsActive { get; set; }
}
