Add default roles and user

This commit is contained in:
2025-10-14 21:22:54 +09:00
parent 209cd79f01
commit 40b2a5f598
8 changed files with 159 additions and 12 deletions

View File

@ -1,10 +1,11 @@
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
#nullable disable
namespace Hcs.WebApp.Data.Migrations
{
[DbContext(typeof(AppIdentityDbContext))]
public class AppIdentityDbContextModelSnapshot : ModelSnapshot
public partial class AppIdentityDbContextModelSnapshot : ModelSnapshot
{
protected override void BuildModel(ModelBuilder modelBuilder)
{
@ -80,7 +81,7 @@ namespace Hcs.WebApp.Data.Migrations
b.ToTable("AspNetUsers", (string)null);
});
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRole", b =>
modelBuilder.Entity("Hcs.WebApp.Data.AppRole", b =>
{
b.Property<string>("Id")
.HasColumnType("nvarchar(450)");