using System.ComponentModel.DataAnnotations;

namespace OpcPks.Core.Models
{
    public class CertRequestModel
    {
        // UI에서 asp-for가 이 이름을 찾습니다.
        [Required]
        public string AdminId { get; set; } = "mngr";

        [Required]
        [DataType(DataType.Password)]
        public string AdminPassword { get; set; } = "mngr";

        public string ApplicationName { get; set; } = "OpcPksClient";
        public bool IsRedundant { get; set; } = false;

        public string PrimaryHostName { get; set; } = "192.168.0.20";
        public string SecondaryHostName { get; set; } = "192.168.1.20";

        public string? PrimaryIpA { get; set; } = "";   // Yellow
        public string? PrimaryIpB { get; set; } = "";   // Green
        
        public string SecondaryIpA { get; set; } = ""; 
        public string SecondaryIpB { get; set; } = "";

        public int ValidityYears { get; set; } = 5;
    }
}