Database Migration, Repositories, Automapper, Logger, StaticFiles
This commit is contained in:
2024-04-26 02:34:47 +05:30
parent 234912badb
commit 4c6f9a4ba8
70 changed files with 10151 additions and 32 deletions
+60
View File
@@ -0,0 +1,60 @@
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; }
}
}