mirror of
https://github.com/QuotifyTeam/QuotifyBE.git
synced 2025-12-16 19:00:07 +01:00
fix: db model fixes and quote mapping
This commit is contained in:
@@ -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>();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace QuotifyBE.Entities
|
||||
namespace QuotifyBE.Entities
|
||||
{
|
||||
public class QuoteCategory
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user