// using System; using MagMan.Data.Admin; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; #nullable disable namespace MagMan.Data.Admin.Migrations { [DbContext(typeof(MultiTenantContext))] partial class MultiTenantContextModelSnapshot : ModelSnapshot { protected override void BuildModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasAnnotation("ProductVersion", "6.0.25") .HasAnnotation("Relational:MaxIdentifierLength", 64); modelBuilder.Entity("MagMan.Data.Admin.DbModels.AuthKeyModel", b => { b.Property("AuthKeyID") .ValueGeneratedOnAdd() .HasColumnType("int"); b.Property("CustomerID") .HasColumnType("int"); b.Property("DtActivation") .HasColumnType("datetime(6)"); b.Property("IsActive") .HasColumnType("tinyint(1)"); b.Property("KeyNum") .HasColumnType("int"); b.Property("KeyValue") .IsRequired() .HasColumnType("longtext"); b.Property("Note") .IsRequired() .HasColumnType("longtext"); b.HasKey("AuthKeyID"); b.HasIndex("CustomerID"); b.ToTable("AuthKeyList"); }); modelBuilder.Entity("MagMan.Data.Admin.DbModels.CustomerModel", b => { b.Property("CustomerID") .ValueGeneratedOnAdd() .HasColumnType("int"); b.Property("DtActivation") .HasColumnType("datetime(6)"); b.Property("HasDb") .HasColumnType("tinyint(1)"); b.Property("IsActive") .HasColumnType("tinyint(1)"); b.Property("MainKey") .HasColumnType("int"); b.Property("Name") .IsRequired() .HasColumnType("longtext"); b.Property("Note") .IsRequired() .HasColumnType("longtext"); b.Property("RestToken") .IsRequired() .HasColumnType("longtext"); b.HasKey("CustomerID"); b.ToTable("CustomerList"); }); modelBuilder.Entity("MagMan.Data.Admin.DbModels.MachineModel", b => { b.Property("MachineID") .ValueGeneratedOnAdd() .HasColumnType("int"); b.Property("CustomerID") .HasColumnType("int"); b.Property("DtActivation") .HasColumnType("datetime(6)"); b.Property("IsActive") .HasColumnType("tinyint(1)"); b.Property("MainKey") .HasColumnType("int"); b.Property("Name") .IsRequired() .HasColumnType("longtext"); b.Property("Note") .IsRequired() .HasColumnType("longtext"); b.HasKey("MachineID"); b.HasIndex("CustomerID"); b.ToTable("MachineList"); }); modelBuilder.Entity("MagMan.Data.Admin.DbModels.AuthKeyModel", b => { b.HasOne("MagMan.Data.Admin.DbModels.CustomerModel", "CustomerNav") .WithMany() .HasForeignKey("CustomerID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("CustomerNav"); }); modelBuilder.Entity("MagMan.Data.Admin.DbModels.MachineModel", b => { b.HasOne("MagMan.Data.Admin.DbModels.CustomerModel", "CustomerNav") .WithMany("MachineNav") .HasForeignKey("CustomerID") .OnDelete(DeleteBehavior.Restrict) .IsRequired(); b.Navigation("CustomerNav"); }); modelBuilder.Entity("MagMan.Data.Admin.DbModels.CustomerModel", b => { b.Navigation("MachineNav"); }); #pragma warning restore 612, 618 } } }