Fix runtime
This commit is contained in:
@@ -8,7 +8,6 @@ public class ContentDbContext(
|
||||
|
||||
public DbSet<Content> Contents => Set<Content>();
|
||||
public DbSet<Creator> Creators => Set<Creator>();
|
||||
public DbSet<Follower> Followers => Set<Follower>();
|
||||
|
||||
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
||||
{
|
||||
@@ -31,16 +30,6 @@ public class ContentDbContext(
|
||||
.OwnsMany(c => c.Reactions)
|
||||
.ToTable("Reactions");
|
||||
|
||||
modelBuilder
|
||||
.Entity<Follower>()
|
||||
.HasOne(c => c.Creator)
|
||||
.WithMany()
|
||||
.HasForeignKey(c => c.CreatorId);
|
||||
|
||||
modelBuilder
|
||||
.Entity<Follower>()
|
||||
.HasKey(s => new { s.CreatedBy, s.CreatorId });
|
||||
|
||||
modelBuilder
|
||||
.Entity<Creator>()
|
||||
.OwnsOne<Socials>(x => x.Socials)
|
||||
|
||||
Reference in New Issue
Block a user