Changes:
Database Migration, Repositories, Automapper, Logger, StaticFiles
This commit is contained in:
@@ -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; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user