fix: db model fixes and quote mapping

This commit is contained in:
2025-07-15 16:38:37 +02:00
parent a355c668bd
commit e2eea51a08
9 changed files with 98 additions and 31 deletions

View File

@@ -8,12 +8,13 @@ namespace QuotifyBE.Entities
required public string Text { get; set; }
required public string Author { get; set; }
//public int CategoryId { get; set; }
public int ImageId { get; set; }
public int? ImageId { get; set; }
public DateTime CreatedAt { get; set; }
public DateTime LastUpdatedAt { get; set; }
public int UserId { get; set; }
public User? User { get; set; }
public ICollection<QuoteCategory>? QuoteCategories = new List<QuoteCategory>();
public Image? Image { get; set; }
public ICollection<QuoteCategory> QuoteCategories { get; set; } = new List<QuoteCategory>();
}
}

View File

@@ -1,4 +1,4 @@
namespace QuotifyBE.Entities
namespace QuotifyBE.Entities
{
public class QuoteCategory
{