Add skill groups and GM character owner transfer across stack
This commit is contained in:
@@ -54,6 +54,14 @@ public sealed class RpgRollerDbContext : DbContext
|
||||
entity.Property(x => x.WildDice).IsRequired();
|
||||
entity.Property(x => x.AllowFumble).IsRequired();
|
||||
entity.HasIndex(x => x.CharacterId);
|
||||
entity.HasIndex(x => x.SkillGroupId);
|
||||
});
|
||||
|
||||
modelBuilder.Entity<SkillGroup>(entity =>
|
||||
{
|
||||
entity.HasKey(x => x.Id);
|
||||
entity.Property(x => x.Name).IsRequired().HasMaxLength(128);
|
||||
entity.HasIndex(x => x.CharacterId);
|
||||
});
|
||||
|
||||
modelBuilder.Entity<RollLogEntry>(entity =>
|
||||
@@ -75,5 +83,6 @@ public sealed class RpgRollerDbContext : DbContext
|
||||
public DbSet<Campaign> Campaigns => Set<Campaign>();
|
||||
public DbSet<Character> Characters => Set<Character>();
|
||||
public DbSet<Skill> Skills => Set<Skill>();
|
||||
public DbSet<SkillGroup> SkillGroups => Set<SkillGroup>();
|
||||
public DbSet<RollLogEntry> RollLogEntries => Set<RollLogEntry>();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user