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
+42
View File
@@ -0,0 +1,42 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace PortBlog.API.Entities
{
public class SocialLinks : BaseEntity
{
[Key]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public int Id { get; set; }
[MaxLength(200)]
public string? GitHub { get; set; }
[Required]
[MaxLength(200)]
public string Linkedin { get; set; } = string.Empty;
[MaxLength(200)]
public string? Instagram { get; set; }
[MaxLength(200)]
public string? Facebook { get; set; }
[MaxLength(200)]
public string? Twitter { get; set; }
[MaxLength(200)]
public string? PersonalWebsite { get; set; }
[MaxLength(200)]
public string? BlogUrl { get; set; }
[ForeignKey(nameof(BlogUrl))]
public Blog? Blog { get; set; }
[ForeignKey(nameof(ResumeId))]
public Resume? Resume { get; set; }
public int ResumeId { get; set; }
}
}