34 lines
873 B
C#
34 lines
873 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace PortBlog.API.Entities
|
|
{
|
|
public class Certification : BaseEntity
|
|
{
|
|
[Key]
|
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
|
public int CertificationId { get; set; }
|
|
|
|
[Required]
|
|
[MaxLength(100)]
|
|
public string CertificationName { get; set; } = string.Empty;
|
|
|
|
[MaxLength(100)]
|
|
public string IssuingOrganization { get; set; } = string.Empty;
|
|
|
|
[Url]
|
|
[MaxLength(200)]
|
|
public string? CertificationLink { get; set; }
|
|
|
|
[Required]
|
|
public DateTime IssueDate { get; set; }
|
|
|
|
public DateTime? ExpiryDate { get; set; }
|
|
|
|
public int ResumeId { get; set; }
|
|
|
|
[ForeignKey(nameof(ResumeId))]
|
|
public Resume? Resume { get; set; }
|
|
}
|
|
}
|