using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace ServicesDAO.models { [Table("cluster")] public class Cluster { [Key] [Column("idcluster")] public int IdCluster { get; set; } // El contexto técnico exacto que usa Kubernetes/Helm [Column("k8scontext")] public string? K8sContext { get; set; } // La otra columna de contexto lógico [Column("context")] public string? Context { get; set; } // CORRECTO: Es un STRING para hacer match con Profile.Name [Column("tipo_nube")] public string? TipoNube { get; set; } // Llave Foránea hacia la tabla Region [Column("idregion")] public int Idregion { get; set; } // Zona DNS del clúster, ej. 'qr.triara.com'. Antes estaba escrita a mano en // el JavaScript del frontend, lo que impedía operar más de una región. [Column("dns_zone")] public string? DnsZone { get; set; } // Resolutor DNS del clúster, ej. '10.252.8.20'. [Column("dns_resolver_ip")] public string? DnsResolverIp { get; set; } [ForeignKey("Idregion")] public Region? Region { get; set; } } }