namespace JobTrackerApi.Models;

public sealed class ImapConnection
{
    public int Id { get; set; }
    public string OwnerUserId { get; set; } = "";
    public string Host { get; set; } = "";
    public int Port { get; set; } = 993;
    public bool UseSsl { get; set; } = true;
    public string Username { get; set; } = "";
    public string EncryptedPassword { get; set; } = "";
    public DateTimeOffset ConnectedAt { get; set; } = DateTimeOffset.UtcNow;
    public DateTimeOffset? LastSyncedAt { get; set; }
    public DateTimeOffset? LastSyncAttemptedAt { get; set; }
    public DateTimeOffset? LastSyncSucceededAt { get; set; }
    public string? LastSyncMode { get; set; }
    public string? LastSyncSource { get; set; }
    public string? LastSyncStatus { get; set; }
    public string? LastSyncError { get; set; }
}
