mirror of
https://github.com/QuotifyTeam/QuotifyBE.git
synced 2025-12-16 19:00:07 +01:00
chore: (WIP) group controllers, slightly annotate code
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
// using Microsoft.AspNetCore.Identity;
|
||||
// using Microsoft.AspNetCore.Identity;
|
||||
// using Microsoft.AspNetCore.Identity.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.Extensions.Logging;
|
||||
@@ -17,6 +17,7 @@ namespace QuotifyBE.Data
|
||||
public DbSet<Quote> Quotes => Set<Quote>();
|
||||
public DbSet<Category> Categories => Set<Category>();
|
||||
public DbSet<Image> Images => Set<Image>();
|
||||
public DbSet<QuoteCategory> QuoteCategories => Set<QuoteCategory>();
|
||||
|
||||
protected override void OnModelCreating(ModelBuilder builder)
|
||||
{
|
||||
@@ -26,4 +27,4 @@ namespace QuotifyBE.Data
|
||||
.HasKey(vs => new { vs.QuoteId, vs.CategoryId });
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user