using System.ComponentModel.DataAnnotations.Schema; namespace vendorApproverBackend.Entities { [Table("renewal_part2_evaluations")] public class RenewalPart2Evaluation { [Column("id")] public long Id { get; set; } [Column("total_score")] public double TotalScore { get; set; } // Criteria stored as JSON for flexibility, similar to your EvaluationData logic public CriteriaData Criteria { get; set; } = new(); } public class CriteriaData { public ScoreDetail ProductPerformance { get; set; } = new(); public ScoreDetail ComplianceWithStandards { get; set; } = new(); public ScoreDetail AfterSaleService { get; set; } = new(); } public class ScoreDetail { public double? Score { get; set; } public string? Remark { get; set; } public string? ScoreLabel { get; set; } } }