4c6f9a4ba8
Database Migration, Repositories, Automapper, Logger, StaticFiles
45 lines
1.3 KiB
C#
45 lines
1.3 KiB
C#
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<Academic> Academics { get; set; } = new List<Academic>();
|
|
|
|
public ICollection<Skill> Skills { get; set; } = new List<Skill>();
|
|
|
|
public ICollection<Experience> Experiences { get; set; } = new List<Experience>();
|
|
|
|
public ICollection<Certification> Certifications { get; set; } = new List<Certification>();
|
|
|
|
public ICollection<Hobby> Hobbies { get; set; } = new List<Hobby>();
|
|
|
|
public ICollection<Project> Projects { get; set; } = new List<Project>();
|
|
}
|
|
}
|