mirror of
https://github.com/Cleanuparr/Cleanuparr.git
synced 2026-01-08 05:47:49 -05:00
25 lines
663 B
C#
25 lines
663 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using Cleanuparr.Shared.Attributes;
|
|
|
|
namespace Cleanuparr.Persistence.Models.Configuration.Arr;
|
|
|
|
public sealed class ArrInstance
|
|
{
|
|
[Key]
|
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
|
public Guid Id { get; set; } = Guid.NewGuid();
|
|
|
|
public bool Enabled { get; set; }
|
|
|
|
public Guid ArrConfigId { get; set; }
|
|
|
|
public ArrConfig? ArrConfig { get; set; }
|
|
|
|
public required string Name { get; set; }
|
|
|
|
public required Uri Url { get; set; }
|
|
|
|
[SensitiveData]
|
|
public required string ApiKey { get; set; }
|
|
} |