153 lines
5.0 KiB
C#
153 lines
5.0 KiB
C#
// <auto-generated />
|
|
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<int>("AuthKeyID")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("CustomerID")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<DateTime>("DtActivation")
|
|
.HasColumnType("datetime(6)");
|
|
|
|
b.Property<bool>("IsActive")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<int>("KeyNum")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("KeyValue")
|
|
.IsRequired()
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<string>("Note")
|
|
.IsRequired()
|
|
.HasColumnType("longtext");
|
|
|
|
b.HasKey("AuthKeyID");
|
|
|
|
b.HasIndex("CustomerID");
|
|
|
|
b.ToTable("AuthKeyList");
|
|
});
|
|
|
|
modelBuilder.Entity("MagMan.Data.Admin.DbModels.CustomerModel", b =>
|
|
{
|
|
b.Property<int>("CustomerID")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
b.Property<DateTime>("DtActivation")
|
|
.HasColumnType("datetime(6)");
|
|
|
|
b.Property<bool>("HasDb")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<bool>("IsActive")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<int>("MainKey")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<string>("Note")
|
|
.IsRequired()
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<string>("RestToken")
|
|
.IsRequired()
|
|
.HasColumnType("longtext");
|
|
|
|
b.HasKey("CustomerID");
|
|
|
|
b.ToTable("CustomerList");
|
|
});
|
|
|
|
modelBuilder.Entity("MagMan.Data.Admin.DbModels.MachineModel", b =>
|
|
{
|
|
b.Property<int>("MachineID")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("int");
|
|
|
|
b.Property<int>("CustomerID")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<DateTime>("DtActivation")
|
|
.HasColumnType("datetime(6)");
|
|
|
|
b.Property<bool>("IsActive")
|
|
.HasColumnType("tinyint(1)");
|
|
|
|
b.Property<int>("MainKey")
|
|
.HasColumnType("int");
|
|
|
|
b.Property<string>("Name")
|
|
.IsRequired()
|
|
.HasColumnType("longtext");
|
|
|
|
b.Property<string>("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
|
|
}
|
|
}
|
|
}
|