using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace PortBlog.API.Entities { public class Resume : BaseEntity { [Key] [DatabaseGenerated(DatabaseGeneratedOption.Identity)] public int ResumeId { get; set; } [Required] [MaxLength(100)] public string Title { get; set; } = string.Empty; [Required] [MaxLength(1000)] public string About { get; set; } = string.Empty; [Required] public int Order { get; set; } public int CandidateId { get; set; } [ForeignKey(nameof(CandidateId))] public Candidate? Candidate { get; set; } public ResumeFile? ResumeFile { get; set; } public SocialLinks? SocialLinks { get; set; } public ICollection Academics { get; set; } = new List(); public ICollection Skills { get; set; } = new List(); public ICollection Experiences { get; set; } = new List(); public ICollection Certifications { get; set; } = new List(); public ICollection Hobbies { get; set; } = new List(); public ICollection Projects { get; set; } = new List(); } }