mirror of
https://github.com/Cleanuparr/Cleanuparr.git
synced 2026-03-27 02:23:56 -04:00
42 lines
1.2 KiB
C#
42 lines
1.2 KiB
C#
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using Cleanuparr.Persistence.Models.Configuration.Arr;
|
|
|
|
namespace Cleanuparr.Persistence.Models.Configuration.Seeker;
|
|
|
|
/// <summary>
|
|
/// Per-instance configuration for the Seeker job.
|
|
/// Links to an ArrInstance with cascade delete.
|
|
/// </summary>
|
|
public sealed record SeekerInstanceConfig
|
|
{
|
|
[Key]
|
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
|
public Guid Id { get; set; } = Guid.NewGuid();
|
|
|
|
/// <summary>
|
|
/// Foreign key to the arr instance this config belongs to
|
|
/// </summary>
|
|
public Guid ArrInstanceId { get; set; }
|
|
|
|
/// <summary>
|
|
/// Navigation property to the associated arr instance
|
|
/// </summary>
|
|
public ArrInstance ArrInstance { get; set; } = null!;
|
|
|
|
/// <summary>
|
|
/// Whether this instance is enabled for Seeker searches
|
|
/// </summary>
|
|
public bool Enabled { get; set; } = true;
|
|
|
|
/// <summary>
|
|
/// Arr tag IDs to exclude from search
|
|
/// </summary>
|
|
public List<string> SkipTags { get; set; } = [];
|
|
|
|
/// <summary>
|
|
/// Timestamp of when this instance was last processed (for round-robin scheduling)
|
|
/// </summary>
|
|
public DateTime? LastProcessedAt { get; set; }
|
|
}
|