Add skill groups and GM character owner transfer across stack

This commit is contained in:
2026-02-26 13:54:17 +01:00
parent bf3a6fa645
commit 04bc8095e6
31 changed files with 995 additions and 1180 deletions

View File

@@ -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>();
}
}