143 lines
4.8 KiB
C#
143 lines
4.8 KiB
C#
// <auto-generated />
|
|
using System;
|
|
using ApplicationHub.Data.EF.Authentication;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|
|
|
#nullable disable
|
|
|
|
namespace ApplicationHub.Data.EF.Migrations
|
|
{
|
|
[DbContext(typeof(AuthenticationDataContext))]
|
|
partial class AuthenticationDataContextModelSnapshot : ModelSnapshot
|
|
{
|
|
protected override void BuildModel(ModelBuilder modelBuilder)
|
|
{
|
|
#pragma warning disable 612, 618
|
|
modelBuilder.HasAnnotation("ProductVersion", "9.0.8");
|
|
|
|
modelBuilder.Entity("ApplicationHub.Data.EF.Authentication.Entities.GroupEntity", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasMaxLength(255)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("Groups");
|
|
});
|
|
|
|
modelBuilder.Entity("ApplicationHub.Data.EF.Authentication.Entities.RightEntity", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasMaxLength(255)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("Rights");
|
|
});
|
|
|
|
modelBuilder.Entity("ApplicationHub.Data.EF.Authentication.Entities.UserEntity", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<bool>("Active")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("Email")
|
|
.IsRequired()
|
|
.HasMaxLength(255)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("PasswordHash")
|
|
.HasMaxLength(255)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("UserName")
|
|
.IsRequired()
|
|
.HasMaxLength(255)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("Users");
|
|
});
|
|
|
|
modelBuilder.Entity("GroupEntityRightEntity", b =>
|
|
{
|
|
b.Property<Guid>("GroupsId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid>("RightsId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("GroupsId", "RightsId");
|
|
|
|
b.HasIndex("RightsId");
|
|
|
|
b.ToTable("GroupEntityRightEntity");
|
|
});
|
|
|
|
modelBuilder.Entity("GroupEntityUserEntity", b =>
|
|
{
|
|
b.Property<Guid>("GroupsId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<Guid>("UsersId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("GroupsId", "UsersId");
|
|
|
|
b.HasIndex("UsersId");
|
|
|
|
b.ToTable("GroupEntityUserEntity");
|
|
});
|
|
|
|
modelBuilder.Entity("GroupEntityRightEntity", b =>
|
|
{
|
|
b.HasOne("ApplicationHub.Data.EF.Authentication.Entities.GroupEntity", null)
|
|
.WithMany()
|
|
.HasForeignKey("GroupsId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.HasOne("ApplicationHub.Data.EF.Authentication.Entities.RightEntity", null)
|
|
.WithMany()
|
|
.HasForeignKey("RightsId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
});
|
|
|
|
modelBuilder.Entity("GroupEntityUserEntity", b =>
|
|
{
|
|
b.HasOne("ApplicationHub.Data.EF.Authentication.Entities.GroupEntity", null)
|
|
.WithMany()
|
|
.HasForeignKey("GroupsId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.HasOne("ApplicationHub.Data.EF.Authentication.Entities.UserEntity", null)
|
|
.WithMany()
|
|
.HasForeignKey("UsersId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
});
|
|
#pragma warning restore 612, 618
|
|
}
|
|
}
|
|
}
|