// using System; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using RB_MES_API.Context; #nullable disable namespace RB_MES_APICore.Migrations { [DbContext(typeof(RBContext))] [Migration("20220906123111_appinfo")] partial class appinfo { protected override void BuildTargetModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasAnnotation("ProductVersion", "6.0.8") .HasAnnotation("Relational:MaxIdentifierLength", 128); SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder, 1L, 1); modelBuilder.Entity("RB_MES_API.Models.APIGrou", b => { b.Property("FID") .ValueGeneratedOnAdd() .HasColumnType("int"); SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("FID"), 1L, 1); b.Property("FName") .IsRequired() .HasMaxLength(250) .HasColumnType("nvarchar(250)"); b.Property("FTokenUrl") .IsRequired() .HasMaxLength(2000) .HasColumnType("nvarchar(2000)"); b.Property("FVersion") .IsRequired() .HasMaxLength(250) .HasColumnType("nvarchar(250)"); b.HasKey("FID"); b.ToTable("APIGrou"); }); modelBuilder.Entity("RB_MES_API.Models.BillConvert", b => { b.Property("FID") .ValueGeneratedOnAdd() .HasColumnType("int"); SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("FID"), 1L, 1); b.Property("FK3FiledName") .IsRequired() .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("FNeedInput") .HasColumnType("bit"); b.Property("FPageID") .HasColumnType("int"); b.Property("FReceiveID") .HasColumnType("int"); b.Property("FSourceName") .IsRequired() .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.HasKey("FID"); b.HasIndex("FReceiveID", "FPageID", "FK3FiledName") .IsUnique(); b.ToTable("r_BillConvertes", (string)null); }); modelBuilder.Entity("RB_MES_API.Models.Cloud.CloudBillQuery", b => { b.Property("FID") .ValueGeneratedOnAdd() .HasColumnType("int"); SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("FID"), 1L, 1); b.Property("FFieldKeys") .IsRequired() .HasColumnType("nvarchar(max)"); b.Property("FFiledString") .IsRequired() .HasColumnType("nvarchar(max)"); b.Property("FFormIDTypeID") .HasMaxLength(80) .HasColumnType("int"); b.Property("FKDBillName") .IsRequired() .HasMaxLength(80) .HasColumnType("nvarchar(80)"); b.Property("FLimit") .HasColumnType("int"); b.Property("FOrderString") .IsRequired() .HasColumnType("nvarchar(max)"); b.Property("FRBBillName") .IsRequired() .HasMaxLength(80) .HasColumnType("nvarchar(80)"); b.Property("FStartRow") .HasColumnType("int"); b.Property("FSubSystemID") .IsRequired() .HasMaxLength(80) .HasColumnType("nvarchar(80)"); b.Property("FTopRowCount") .HasColumnType("int"); b.HasKey("FID"); b.HasIndex("FFormIDTypeID") .IsUnique(); b.ToTable("r_CloudBillQuery", (string)null); }); modelBuilder.Entity("RB_MES_API.Models.FormIDType", b => { b.Property("FID") .ValueGeneratedOnAdd() .HasColumnType("int"); SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("FID"), 1L, 1); b.Property("FActionName") .IsRequired() .HasMaxLength(80) .HasColumnType("nvarchar(80)"); b.Property("FDBName") .IsRequired() .HasMaxLength(80) .HasColumnType("nvarchar(80)"); b.Property("FDescription") .IsRequired() .HasMaxLength(255) .HasColumnType("nvarchar(255)"); b.Property("FDocType") .IsRequired() .HasMaxLength(80) .HasColumnType("nvarchar(80)"); b.Property("FFunctionID") .HasColumnType("int"); b.Property("FIsHostService") .HasColumnType("bit"); b.Property("FUsing") .HasColumnType("bit"); b.HasKey("FID"); b.HasIndex("FFunctionID", "FDocType"); b.ToTable("r_FormIDType", (string)null); }); modelBuilder.Entity("RB_MES_API.Models.FunctionList", b => { b.Property("FID") .ValueGeneratedOnAdd() .HasColumnType("int"); SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("FID"), 1L, 1); b.Property("FDescription") .IsRequired() .HasMaxLength(255) .HasColumnType("nvarchar(255)"); b.Property("FFunctionName") .IsRequired() .HasMaxLength(80) .HasColumnType("nvarchar(80)"); b.Property("FGoupID") .HasColumnType("int"); b.Property("FInterfaceType") .HasColumnType("int"); b.Property("FIsDetail") .HasColumnType("bit"); b.Property("FUrl") .IsRequired() .HasMaxLength(255) .HasColumnType("nvarchar(255)"); b.Property("FUsing") .HasColumnType("bit"); b.HasKey("FID"); b.HasIndex("FGoupID"); b.ToTable("r_FunctionList", (string)null); }); modelBuilder.Entity("RB_MES_API.Models.JoinTb", b => { b.Property("FID") .ValueGeneratedOnAdd() .HasColumnType("int"); SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("FID"), 1L, 1); b.Property("FAsName") .IsRequired() .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("FCondition") .IsRequired() .HasMaxLength(2000) .HasColumnType("nvarchar(2000)"); b.Property("FCtlID") .HasColumnType("int"); b.Property("FJoinSymbol") .IsRequired() .HasMaxLength(20) .HasColumnType("nvarchar(20)"); b.Property("FJoinType") .IsRequired() .HasMaxLength(20) .HasColumnType("nvarchar(20)"); b.Property("FSID") .HasColumnType("int"); b.Property("FTbName") .IsRequired() .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.HasKey("FID"); b.HasIndex("FSID", "FCtlID") .IsUnique(); b.ToTable("r_JoinTb", (string)null); }); modelBuilder.Entity("RB_MES_API.Models.K3DefaultColVal", b => { b.Property("FID") .ValueGeneratedOnAdd() .HasColumnType("int"); SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("FID"), 1L, 1); b.Property("FDescribe") .HasColumnType("nvarchar(max)"); b.Property("FPageID") .HasColumnType("int"); b.Property("FReceiveID") .HasColumnType("int"); b.Property("FSqlType") .IsRequired() .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("FVal") .IsRequired() .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("K3FiledName") .IsRequired() .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.HasKey("FID"); b.HasIndex("FReceiveID", "FPageID", "K3FiledName") .IsUnique(); b.ToTable("r_K3DefaultColVals", (string)null); }); modelBuilder.Entity("RB_MES_API.Models.MesRequestStatu", b => { b.Property("FID") .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("FERPBillType") .HasColumnType("int"); b.Property("FERPBillID") .HasColumnType("int"); b.Property("FERPBillEntryID") .HasColumnType("int"); b.Property("FIMSDocType") .IsRequired() .HasMaxLength(80) .HasColumnType("nvarchar(80)"); b.Property("FRequestKey") .IsRequired() .HasMaxLength(80) .HasColumnType("nvarchar(80)"); b.Property("FStatus") .HasColumnType("int"); b.HasKey("FID", "FERPBillType", "FERPBillID", "FERPBillEntryID"); b.ToTable("r_MesRequestStatus", (string)null); }); modelBuilder.Entity("RB_MES_API.Models.RBLog", b => { b.Property("FID") .ValueGeneratedOnAdd() .HasColumnType("int"); SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("FID"), 1L, 1); b.Property("FDateTime") .HasColumnType("datetime2"); b.Property("FDocType") .IsRequired() .HasMaxLength(80) .HasColumnType("nvarchar(80)"); b.Property("FFunctionID") .HasColumnType("int"); b.Property("FMess") .IsRequired() .HasMaxLength(255) .HasColumnType("nvarchar(255)"); b.Property("FSource") .IsRequired() .HasColumnType("xml"); b.Property("FStatus") .HasColumnType("bit"); b.HasKey("FID"); b.HasIndex("FDateTime", "FDocType"); b.ToTable("RBLog", (string)null); }); modelBuilder.Entity("RB_MES_API.Models.ReceiveStockBillType", b => { b.Property("FID") .ValueGeneratedOnAdd() .HasColumnType("int"); SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("FID"), 1L, 1); b.Property("ErpBillName") .IsRequired() .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("ErpBillTypeID") .IsRequired() .HasColumnType("nvarchar(450)"); b.Property("FDefaultDepid") .HasColumnType("int"); b.Property("FDefaultUserid") .HasColumnType("int"); b.Property("FEntryTbName") .IsRequired() .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("FFunctionID") .HasColumnType("int"); b.Property("FHeadTbName") .IsRequired() .HasMaxLength(100) .HasColumnType("nvarchar(100)"); b.Property("FROB") .HasColumnType("bit"); b.Property("FStatus") .HasColumnType("int"); b.HasKey("FID"); b.HasIndex("FFunctionID", "ErpBillTypeID") .IsUnique(); b.ToTable("r_ReceiveStockBillTypes", (string)null); }); modelBuilder.Entity("RB_MES_API.Models.SCol", b => { b.Property("FID") .ValueGeneratedOnAdd() .HasColumnType("int"); SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("FID"), 1L, 1); b.Property("FAsName") .IsRequired() .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("FAsTable") .IsRequired() .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("FColName") .IsRequired() .HasMaxLength(50) .HasColumnType("nvarchar(50)"); b.Property("FCtlID") .HasColumnType("int"); b.Property("FDeaful") .IsRequired() .HasMaxLength(2000) .HasColumnType("nvarchar(2000)"); b.Property("FSID") .HasColumnType("int"); b.HasKey("FID"); b.HasIndex("FSID", "FAsName") .IsUnique(); b.HasIndex("FSID", "FCtlID") .IsUnique(); b.ToTable("r_SCol", (string)null); }); modelBuilder.Entity("RB_MES_API.Models.SelectClumnConvert", b => { b.Property("FID") .ValueGeneratedOnAdd() .HasColumnType("int"); SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("FID"), 1L, 1); b.Property("FDesName") .IsRequired() .HasMaxLength(80) .HasColumnType("nvarchar(80)"); b.Property("FDesTableName") .IsRequired() .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("FFunctionID") .HasColumnType("int"); b.Property("FKDCaption") .IsRequired() .HasMaxLength(80) .HasColumnType("nvarchar(80)"); b.Property("FSourceName") .IsRequired() .HasMaxLength(80) .HasColumnType("nvarchar(80)"); b.HasKey("FID"); b.HasIndex("FFunctionID"); b.ToTable("r_ClumnConvert", (string)null); }); modelBuilder.Entity("RB_MES_API.Models.SelectJoinID", b => { b.Property("FID") .ValueGeneratedOnAdd() .HasColumnType("int"); SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("FID"), 1L, 1); b.Property("FDocType") .IsRequired() .HasMaxLength(80) .HasColumnType("nvarchar(80)"); b.Property("FFunctionID") .HasColumnType("int"); b.Property("FOptcode") .IsRequired() .HasMaxLength(80) .HasColumnType("nvarchar(80)"); b.HasKey("FID"); b.HasIndex("FDocType"); b.HasIndex("FFunctionID"); b.ToTable("r_SelectJoinID", (string)null); }); modelBuilder.Entity("RB_MES_API.Models.SystemProfile", b => { b.Property("FCategoryID") .HasColumnType("int"); b.Property("FKey") .HasColumnType("nvarchar(450)"); b.Property("FDescription") .IsRequired() .HasColumnType("nvarchar(max)"); b.Property("FDetail") .HasColumnType("bit"); b.Property("FFormatID") .HasColumnType("int"); b.Property("FID") .HasColumnType("int"); b.Property("FLevel") .HasColumnType("int"); b.Property("FName") .IsRequired() .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.Property("FParentID") .HasColumnType("int"); b.Property("FReadonly") .HasColumnType("bit"); b.Property("FValue") .IsRequired() .HasMaxLength(200) .HasColumnType("nvarchar(200)"); b.HasKey("FCategoryID", "FKey"); b.ToTable("r_SystemProfiles", (string)null); }); modelBuilder.Entity("RB_MES_API.Models.BillConvert", b => { b.HasOne("RB_MES_API.Models.ReceiveStockBillType", "StockBillType") .WithMany() .HasForeignKey("FReceiveID") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("StockBillType"); }); modelBuilder.Entity("RB_MES_API.Models.Cloud.CloudBillQuery", b => { b.HasOne("RB_MES_API.Models.FormIDType", "GetFormID") .WithMany() .HasForeignKey("FFormIDTypeID") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("GetFormID"); }); modelBuilder.Entity("RB_MES_API.Models.FormIDType", b => { b.HasOne("RB_MES_API.Models.FunctionList", "functions") .WithMany() .HasForeignKey("FFunctionID") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("functions"); }); modelBuilder.Entity("RB_MES_API.Models.FunctionList", b => { b.HasOne("RB_MES_API.Models.APIGrou", "apigroup") .WithMany() .HasForeignKey("FGoupID") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("apigroup"); }); modelBuilder.Entity("RB_MES_API.Models.JoinTb", b => { b.HasOne("RB_MES_API.Models.SelectJoinID", "selectjoins") .WithMany() .HasForeignKey("FSID") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("selectjoins"); }); modelBuilder.Entity("RB_MES_API.Models.K3DefaultColVal", b => { b.HasOne("RB_MES_API.Models.ReceiveStockBillType", "ReceiveType") .WithMany() .HasForeignKey("FReceiveID") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("ReceiveType"); }); modelBuilder.Entity("RB_MES_API.Models.ReceiveStockBillType", b => { b.HasOne("RB_MES_API.Models.FunctionList", "functions") .WithMany() .HasForeignKey("FFunctionID") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("functions"); }); modelBuilder.Entity("RB_MES_API.Models.SCol", b => { b.HasOne("RB_MES_API.Models.SelectJoinID", "selectjoins") .WithMany() .HasForeignKey("FSID") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("selectjoins"); }); modelBuilder.Entity("RB_MES_API.Models.SelectJoinID", b => { b.HasOne("RB_MES_API.Models.FunctionList", "functions") .WithMany() .HasForeignKey("FFunctionID") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); b.Navigation("functions"); }); #pragma warning restore 612, 618 } } }