4c6f9a4ba8
Database Migration, Repositories, Automapper, Logger, StaticFiles
35 lines
856 B
C#
35 lines
856 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace PortBlog.API.Entities
|
|
{
|
|
public class Academic : BaseEntity
|
|
{
|
|
[Key]
|
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
|
public int AcademicId { get; set; }
|
|
|
|
[Required]
|
|
[MaxLength(200)]
|
|
public string Institution { get; set; } = string.Empty;
|
|
|
|
[Required]
|
|
public int StartYear { get; set; }
|
|
|
|
[Required]
|
|
public int EndYear { get; set; }
|
|
|
|
public int ResumeId { get; set; }
|
|
|
|
[ForeignKey(nameof(ResumeId))]
|
|
public Resume? Resume { get; set; }
|
|
|
|
[Required]
|
|
[MaxLength(100)]
|
|
public string Degree { get; set; } = string.Empty;
|
|
|
|
[MaxLength(100)]
|
|
public string? DegreeSpecialization { get; set; }
|
|
}
|
|
}
|