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