// using System; using FSI.BT.IR.Organization.Db.Data; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; #nullable disable namespace FSI.BT.IR.Organization.Db.Migrations { [DbContext(typeof(AppDbContext))] partial class AppDbContextModelSnapshot : ModelSnapshot { protected override void BuildModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder.HasAnnotation("ProductVersion", "8.0.10"); modelBuilder.Entity("FSI.BT.IR.Organization.Db.Models.Organization", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("INTEGER"); b.Property("Created") .HasColumnType("TEXT"); b.Property("Description") .HasMaxLength(128) .HasColumnType("TEXT"); b.Property("FullShortName") .IsRequired() .HasColumnType("TEXT"); b.Property("Name") .IsRequired() .HasMaxLength(64) .HasColumnType("TEXT"); b.Property("ParentId") .HasColumnType("INTEGER"); b.Property("ShortName") .IsRequired() .HasMaxLength(16) .HasColumnType("TEXT"); b.Property("Type") .HasColumnType("INTEGER"); b.Property("Updated") .HasColumnType("TEXT"); b.HasKey("Id"); b.HasIndex("ParentId"); b.ToTable("Organizations"); }); modelBuilder.Entity("FSI.BT.IR.Organization.Db.Models.Organization", b => { b.HasOne("FSI.BT.IR.Organization.Db.Models.Organization", "Parent") .WithMany("Parents") .HasForeignKey("ParentId"); b.Navigation("Parent"); }); modelBuilder.Entity("FSI.BT.IR.Organization.Db.Models.Organization", b => { b.Navigation("Parents"); }); #pragma warning restore 612, 618 } } }