61 lines
1.5 KiB
C#
61 lines
1.5 KiB
C#
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace PortBlog.API.Entities
|
|
{
|
|
public class Project : BaseEntity
|
|
{
|
|
[Key]
|
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
|
public int ProjectId { get; set; }
|
|
|
|
[Required]
|
|
[MaxLength(100)]
|
|
public string Name { get; set; } = string.Empty;
|
|
|
|
[Required]
|
|
[MaxLength(500)]
|
|
public string Description { get; set; } = string.Empty;
|
|
|
|
[Required]
|
|
[MaxLength(100)]
|
|
public string Category { get; set; } = string.Empty;
|
|
|
|
[Required]
|
|
[MaxLength(100)]
|
|
public string? Roles { get; set; }
|
|
|
|
[MaxLength(200)]
|
|
public string? Challenges { get; set; }
|
|
|
|
[MaxLength(200)]
|
|
public string? LessonsLearned { get; set; }
|
|
|
|
[MaxLength(200)]
|
|
public string? Impact { get; set; }
|
|
|
|
[Required]
|
|
[MaxLength(200)]
|
|
public string? Responsibilities { get; set; }
|
|
|
|
[Required]
|
|
[MaxLength(200)]
|
|
public string? TechnologiesUsed { get; set; }
|
|
|
|
public DateTime? StartDate { get; set; }
|
|
|
|
public DateTime? EndDate { get; set; }
|
|
|
|
[MaxLength(20)]
|
|
public string? Status { get; set; }
|
|
|
|
[MaxLength(200)]
|
|
public string? ImagePath { get; set; }
|
|
|
|
public int ResumeId { get; set; }
|
|
|
|
[ForeignKey(nameof(ResumeId))]
|
|
public Resume? Resume { get; set; }
|
|
}
|
|
}
|