// <auto-generated />
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("20240827173122_updateInfoV2")]
    partial class updateInfoV2
    {
        /// <inheritdoc />
        protected override void BuildTargetModel(ModelBuilder modelBuilder)
        {
#pragma warning disable 612, 618
            modelBuilder
                .HasAnnotation("ProductVersion", "7.0.4")
                .HasAnnotation("Relational:MaxIdentifierLength", 128);

            SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);

            modelBuilder.Entity("RB_MES_API.Models.APIGrou", b =>
                {
                    b.Property<int>("FID")
                        .ValueGeneratedOnAdd()
                        .HasColumnType("int");

                    SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("FID"));

                    b.Property<string>("FName")
                        .IsRequired()
                        .HasMaxLength(250)
                        .HasColumnType("nvarchar(250)");

                    b.Property<string>("FTokenUrl")
                        .IsRequired()
                        .HasMaxLength(2000)
                        .HasColumnType("nvarchar(2000)");

                    b.Property<string>("FVersion")
                        .IsRequired()
                        .HasMaxLength(250)
                        .HasColumnType("nvarchar(250)");

                    b.HasKey("FID");

                    b.ToTable("APIGrou");
                });

            modelBuilder.Entity("RB_MES_API.Models.BillConvert", b =>
                {
                    b.Property<int>("FID")
                        .ValueGeneratedOnAdd()
                        .HasColumnType("int");

                    SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("FID"));

                    b.Property<string>("FK3FiledName")
                        .IsRequired()
                        .HasMaxLength(100)
                        .HasColumnType("nvarchar(100)");

                    b.Property<bool>("FNeedInput")
                        .HasColumnType("bit");

                    b.Property<int>("FPageID")
                        .HasColumnType("int");

                    b.Property<int>("FReceiveID")
                        .HasColumnType("int");

                    b.Property<string>("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<int>("FID")
                        .ValueGeneratedOnAdd()
                        .HasColumnType("int");

                    SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("FID"));

                    b.Property<string>("FFieldKeys")
                        .IsRequired()
                        .HasColumnType("nvarchar(max)");

                    b.Property<string>("FFiledString")
                        .IsRequired()
                        .HasColumnType("nvarchar(max)");

                    b.Property<int>("FFormIDTypeID")
                        .HasMaxLength(80)
                        .HasColumnType("int");

                    b.Property<string>("FKDBillName")
                        .IsRequired()
                        .HasMaxLength(80)
                        .HasColumnType("nvarchar(80)");

                    b.Property<int>("FLimit")
                        .HasColumnType("int");

                    b.Property<string>("FOrderString")
                        .IsRequired()
                        .HasColumnType("nvarchar(max)");

                    b.Property<string>("FRBBillName")
                        .IsRequired()
                        .HasMaxLength(80)
                        .HasColumnType("nvarchar(80)");

                    b.Property<int>("FStartRow")
                        .HasColumnType("int");

                    b.Property<string>("FSubSystemID")
                        .IsRequired()
                        .HasMaxLength(80)
                        .HasColumnType("nvarchar(80)");

                    b.Property<int>("FTopRowCount")
                        .HasColumnType("int");

                    b.HasKey("FID");

                    b.HasIndex("FFormIDTypeID")
                        .IsUnique();

                    b.ToTable("r_CloudBillQuery", (string)null);
                });

            modelBuilder.Entity("RB_MES_API.Models.Cloud.CustomService", b =>
                {
                    b.Property<int>("FID")
                        .ValueGeneratedOnAdd()
                        .HasColumnType("int");

                    SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("FID"));

                    b.Property<string>("FActionName")
                        .IsRequired()
                        .HasMaxLength(255)
                        .HasColumnType("nvarchar(255)");

                    b.Property<int>("FApiGroupID")
                        .HasMaxLength(255)
                        .HasColumnType("int");

                    b.Property<string>("FAppComponents")
                        .IsRequired()
                        .HasMaxLength(255)
                        .HasColumnType("nvarchar(255)");

                    b.Property<string>("FClassName")
                        .IsRequired()
                        .HasMaxLength(255)
                        .HasColumnType("nvarchar(255)");

                    b.Property<string>("FNamespace")
                        .IsRequired()
                        .HasMaxLength(255)
                        .HasColumnType("nvarchar(255)");

                    b.HasKey("FID");

                    b.HasIndex("FApiGroupID");

                    b.ToTable("r_CustomServices", (string)null);
                });

            modelBuilder.Entity("RB_MES_API.Models.Cloud.DataSaveBatch", b =>
                {
                    b.Property<int>("FID")
                        .ValueGeneratedOnAdd()
                        .HasColumnType("int");

                    SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("FID"));

                    b.Property<string>("FAuditUrl")
                        .IsRequired()
                        .HasMaxLength(255)
                        .HasColumnType("nvarchar(255)");

                    b.Property<int>("FBatchCount")
                        .HasColumnType("int");

                    b.Property<int>("FDocTypeID")
                        .HasColumnType("int");

                    b.Property<string>("FErpBillType")
                        .IsRequired()
                        .HasColumnType("nvarchar(max)");

                    b.Property<bool>("FIgnoreInterationFlag")
                        .HasColumnType("bit");

                    b.Property<string>("FInterationFlags")
                        .IsRequired()
                        .HasColumnType("nvarchar(max)");

                    b.Property<bool>("FIsAutoAdjustField")
                        .HasColumnType("bit");

                    b.Property<bool>("FIsAutoSubmitAndAudit")
                        .HasColumnType("bit");

                    b.Property<bool>("FIsControlPrecision")
                        .HasColumnType("bit");

                    b.Property<bool>("FIsDeleteEntry")
                        .HasColumnType("bit");

                    b.Property<bool>("FIsEntryBatchFill")
                        .HasColumnType("bit");

                    b.Property<bool>("FIsVerifyBaseDataField")
                        .HasColumnType("bit");

                    b.Property<string>("FNeedReturnFields")
                        .IsRequired()
                        .HasColumnType("nvarchar(max)");

                    b.Property<string>("FNeedUpDateFields")
                        .IsRequired()
                        .HasColumnType("nvarchar(max)");

                    b.Property<bool>("FNumberSearch")
                        .HasColumnType("bit");

                    b.Property<string>("FSubSystemId")
                        .IsRequired()
                        .HasColumnType("nvarchar(max)");

                    b.Property<string>("FSubmitUrl")
                        .IsRequired()
                        .HasMaxLength(255)
                        .HasColumnType("nvarchar(255)");

                    b.Property<bool>("FValidateFlag")
                        .HasColumnType("bit");

                    b.Property<bool>("FValidateRepeatJson")
                        .HasColumnType("bit");

                    b.HasKey("FID");

                    b.HasIndex("FDocTypeID");

                    b.ToTable("r_DataSaveBatch", (string)null);
                });

            modelBuilder.Entity("RB_MES_API.Models.FormIDType", b =>
                {
                    b.Property<int>("FID")
                        .ValueGeneratedOnAdd()
                        .HasColumnType("int");

                    SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("FID"));

                    b.Property<string>("FActionName")
                        .IsRequired()
                        .HasMaxLength(80)
                        .HasColumnType("nvarchar(80)");

                    b.Property<string>("FDBName")
                        .IsRequired()
                        .HasMaxLength(80)
                        .HasColumnType("nvarchar(80)");

                    b.Property<string>("FDescription")
                        .IsRequired()
                        .HasMaxLength(255)
                        .HasColumnType("nvarchar(255)");

                    b.Property<string>("FDocType")
                        .IsRequired()
                        .HasMaxLength(80)
                        .HasColumnType("nvarchar(80)");

                    b.Property<int>("FFunctionID")
                        .HasColumnType("int");

                    b.Property<string>("FGuidColName")
                        .IsRequired()
                        .HasMaxLength(100)
                        .HasColumnType("nvarchar(100)");

                    b.Property<bool>("FIsHostService")
                        .HasColumnType("bit");

                    b.Property<string>("FNeedBreakSQL")
                        .IsRequired()
                        .HasMaxLength(500)
                        .HasColumnType("nvarchar(500)");

                    b.Property<bool>("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<int>("FID")
                        .ValueGeneratedOnAdd()
                        .HasColumnType("int");

                    SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("FID"));

                    b.Property<string>("FDescription")
                        .IsRequired()
                        .HasMaxLength(255)
                        .HasColumnType("nvarchar(255)");

                    b.Property<string>("FFunctionName")
                        .IsRequired()
                        .HasMaxLength(80)
                        .HasColumnType("nvarchar(80)");

                    b.Property<int>("FGoupID")
                        .HasColumnType("int");

                    b.Property<int>("FInterfaceType")
                        .HasColumnType("int");

                    b.Property<string>("FUrl")
                        .IsRequired()
                        .HasMaxLength(255)
                        .HasColumnType("nvarchar(255)");

                    b.Property<bool>("FUsing")
                        .HasColumnType("bit");

                    b.HasKey("FID");

                    b.HasIndex("FGoupID");

                    b.ToTable("r_FunctionList", (string)null);
                });

            modelBuilder.Entity("RB_MES_API.Models.Pangu.LockPRD_MO", b =>
                {
                    b.Property<int>("FID")
                        .ValueGeneratedOnAdd()
                        .HasColumnType("int");

                    SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("FID"));

                    b.Property<string>("ERP_MO")
                        .IsRequired()
                        .HasMaxLength(36)
                        .HasColumnType("nvarchar(36)");

                    b.Property<string>("MOEntryID")
                        .IsRequired()
                        .HasColumnType("nvarchar(max)");

                    b.Property<string>("MOID")
                        .IsRequired()
                        .HasColumnType("nvarchar(max)");

                    b.Property<string>("MO_SEQ")
                        .IsRequired()
                        .HasColumnType("nvarchar(450)");

                    b.Property<string>("TRX_DATE")
                        .IsRequired()
                        .HasColumnType("nvarchar(max)");

                    b.HasKey("FID");

                    b.HasIndex("ERP_MO", "MO_SEQ");

                    b.ToTable("r_LockPRD_MO", (string)null);
                });

            modelBuilder.Entity("RB_MES_API.Models.RBLog", b =>
                {
                    b.Property<int>("FID")
                        .ValueGeneratedOnAdd()
                        .HasColumnType("int");

                    SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("FID"));

                    b.Property<DateTime>("FDateTime")
                        .HasColumnType("datetime2");

                    b.Property<string>("FDocType")
                        .IsRequired()
                        .HasMaxLength(200)
                        .HasColumnType("nvarchar(200)");

                    b.Property<int>("FFunctionID")
                        .HasColumnType("int");

                    b.Property<string>("FGUID")
                        .IsRequired()
                        .HasColumnType("nvarchar(max)");

                    b.Property<string>("FMess")
                        .IsRequired()
                        .HasColumnType("nvarchar(max)");

                    b.Property<string>("FSource")
                        .IsRequired()
                        .HasColumnType("nvarchar(max)");

                    b.Property<bool>("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<int>("FID")
                        .ValueGeneratedOnAdd()
                        .HasColumnType("int");

                    SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("FID"));

                    b.Property<string>("ErpBillName")
                        .IsRequired()
                        .HasMaxLength(100)
                        .HasColumnType("nvarchar(100)");

                    b.Property<string>("ErpBillTypeID")
                        .IsRequired()
                        .HasColumnType("nvarchar(450)");

                    b.Property<int>("FDefaultDepid")
                        .HasColumnType("int");

                    b.Property<int>("FDefaultUserid")
                        .HasColumnType("int");

                    b.Property<string>("FEntryTbName")
                        .IsRequired()
                        .HasMaxLength(100)
                        .HasColumnType("nvarchar(100)");

                    b.Property<int>("FFunctionID")
                        .HasColumnType("int");

                    b.Property<string>("FHeadTbName")
                        .IsRequired()
                        .HasMaxLength(100)
                        .HasColumnType("nvarchar(100)");

                    b.Property<bool>("FROB")
                        .HasColumnType("bit");

                    b.Property<int>("FStatus")
                        .HasColumnType("int");

                    b.HasKey("FID");

                    b.HasIndex("FFunctionID", "ErpBillTypeID")
                        .IsUnique();

                    b.ToTable("r_ReceiveStockBillTypes", (string)null);
                });

            modelBuilder.Entity("RB_MES_API.Models.ReciveDataBack", b =>
                {
                    b.Property<int>("FID")
                        .ValueGeneratedOnAdd()
                        .HasColumnType("int");

                    SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("FID"));

                    b.Property<string>("FBillNo")
                        .IsRequired()
                        .HasColumnType("nvarchar(max)");

                    b.Property<string>("FDocType")
                        .IsRequired()
                        .HasColumnType("nvarchar(450)");

                    b.Property<int>("FErpID")
                        .HasColumnType("int");

                    b.Property<string>("FJson")
                        .IsRequired()
                        .HasColumnType("nvarchar(max)");

                    b.Property<int>("FSeq")
                        .HasColumnType("int");

                    b.Property<string>("QUEUE_ID")
                        .IsRequired()
                        .HasColumnType("nvarchar(max)");

                    b.HasKey("FID");

                    b.HasIndex("FDocType", "FErpID", "FSeq")
                        .IsUnique();

                    b.ToTable("r_ReciveDataBack", (string)null);
                });

            modelBuilder.Entity("RB_MES_API.Models.SelectClumnConvert", b =>
                {
                    b.Property<int>("FID")
                        .ValueGeneratedOnAdd()
                        .HasColumnType("int");

                    SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("FID"));

                    b.Property<string>("FDesName")
                        .IsRequired()
                        .HasMaxLength(80)
                        .HasColumnType("nvarchar(80)");

                    b.Property<string>("FDesTableName")
                        .IsRequired()
                        .HasMaxLength(200)
                        .HasColumnType("nvarchar(200)");

                    b.Property<int>("FFunctionID")
                        .HasColumnType("int");

                    b.Property<int>("FIndexID")
                        .HasColumnType("int");

                    b.Property<string>("FKDCaption")
                        .IsRequired()
                        .HasMaxLength(80)
                        .HasColumnType("nvarchar(80)");

                    b.Property<string>("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<int>("FID")
                        .ValueGeneratedOnAdd()
                        .HasColumnType("int");

                    SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("FID"));

                    b.Property<string>("FDocType")
                        .IsRequired()
                        .HasMaxLength(80)
                        .HasColumnType("nvarchar(80)");

                    b.Property<int>("FFunctionID")
                        .HasColumnType("int");

                    b.Property<string>("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<int>("FCategoryID")
                        .HasColumnType("int");

                    b.Property<string>("FKey")
                        .HasColumnType("nvarchar(450)");

                    b.Property<string>("FDescription")
                        .IsRequired()
                        .HasColumnType("nvarchar(max)");

                    b.Property<bool>("FDetail")
                        .HasColumnType("bit");

                    b.Property<int>("FFormatID")
                        .HasColumnType("int");

                    b.Property<int>("FID")
                        .HasColumnType("int");

                    b.Property<int>("FLevel")
                        .HasColumnType("int");

                    b.Property<string>("FName")
                        .IsRequired()
                        .HasMaxLength(200)
                        .HasColumnType("nvarchar(200)");

                    b.Property<int>("FParentID")
                        .HasColumnType("int");

                    b.Property<bool>("FReadonly")
                        .HasColumnType("bit");

                    b.Property<string>("FValue")
                        .IsRequired()
                        .HasMaxLength(200)
                        .HasColumnType("nvarchar(200)");

                    b.HasKey("FCategoryID", "FKey");

                    b.ToTable("r_SystemProfiles", (string)null);
                });

            modelBuilder.Entity("RB_MES_APICore.Models.ApiHostService", b =>
                {
                    b.Property<int>("FID")
                        .ValueGeneratedOnAdd()
                        .HasColumnType("int");

                    SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("FID"));

                    b.Property<string>("FActionName")
                        .IsRequired()
                        .HasMaxLength(80)
                        .HasColumnType("nvarchar(80)");

                    b.Property<string>("FDocType")
                        .IsRequired()
                        .HasMaxLength(80)
                        .HasColumnType("nvarchar(80)");

                    b.Property<int>("FTimer")
                        .HasMaxLength(80)
                        .HasColumnType("int");

                    b.HasKey("FID");

                    b.ToTable("r_ApiHostServices", (string)null);
                });

            modelBuilder.Entity("RB_MES_APICore.Models.AuthorizationInfo", b =>
                {
                    b.Property<int>("FID")
                        .ValueGeneratedOnAdd()
                        .HasColumnType("int");

                    SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("FID"));

                    b.Property<string>("FAppAccessToken")
                        .HasColumnType("nvarchar(max)");

                    b.Property<string>("FAppKey")
                        .IsRequired()
                        .HasColumnType("nvarchar(max)");

                    b.Property<string>("FAppSecret")
                        .IsRequired()
                        .HasColumnType("nvarchar(max)");

                    b.Property<string>("FAppTicket")
                        .HasColumnType("nvarchar(max)");

                    b.Property<string>("FAuthCode")
                        .IsRequired()
                        .HasColumnType("nvarchar(max)");

                    b.Property<DateTime>("FExpireDate")
                        .HasColumnType("datetime2");

                    b.Property<string>("FOrgAccessToken")
                        .HasColumnType("nvarchar(max)");

                    b.Property<string>("FOrgAuthPermanentCode")
                        .HasColumnType("nvarchar(max)");

                    b.Property<string>("FOrgAuthTempCode")
                        .HasColumnType("nvarchar(max)");

                    b.Property<DateTime>("FStartDate")
                        .HasColumnType("datetime2");

                    b.Property<string>("FToken")
                        .HasColumnType("nvarchar(max)");

                    b.Property<string>("FUserAuthPermanentCode")
                        .HasColumnType("nvarchar(max)");

                    b.Property<string>("FUserCode")
                        .HasColumnType("nvarchar(max)");

                    b.HasKey("FID");

                    b.ToTable("t_AuthorizationInfo", (string)null);
                });

            modelBuilder.Entity("RB_MES_APICore.Models.Cloud.BillTypeRules", b =>
                {
                    b.Property<int>("FID")
                        .ValueGeneratedOnAdd()
                        .HasColumnType("int");

                    SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("FID"));

                    b.Property<string>("FDBillTypeNumber")
                        .IsRequired()
                        .HasMaxLength(80)
                        .HasColumnType("nvarchar(80)");

                    b.Property<string>("FPostTypeID")
                        .IsRequired()
                        .HasMaxLength(80)
                        .HasColumnType("nvarchar(80)");

                    b.Property<string>("FSBillTypeNumber")
                        .IsRequired()
                        .HasMaxLength(80)
                        .HasColumnType("nvarchar(80)");

                    b.HasKey("FID");

                    b.HasIndex("FPostTypeID", "FSBillTypeNumber");

                    b.ToTable("r_BillTypeRules", (string)null);
                });

            modelBuilder.Entity("RB_MES_APICore.Models.ERPPutOperationAnchor", b =>
                {
                    b.Property<int>("FID")
                        .ValueGeneratedOnAdd()
                        .HasColumnType("int");

                    SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("FID"));

                    b.Property<string>("FActionName")
                        .IsRequired()
                        .HasMaxLength(80)
                        .HasColumnType("nvarchar(80)");

                    b.Property<string>("FDocType")
                        .IsRequired()
                        .HasMaxLength(80)
                        .HasColumnType("nvarchar(80)");

                    b.Property<string>("FErpBillNo")
                        .IsRequired()
                        .HasMaxLength(255)
                        .HasColumnType("nvarchar(255)");

                    b.Property<int>("FOperation")
                        .HasColumnType("int");

                    b.Property<int>("FOperationResult")
                        .HasColumnType("int");

                    b.Property<string>("QUEUE_ID")
                        .IsRequired()
                        .HasColumnType("nvarchar(max)");

                    b.HasKey("FID");

                    b.ToTable("r_ERPPutOperationAnchor", (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.Cloud.CustomService", b =>
                {
                    b.HasOne("RB_MES_API.Models.APIGrou", "apigroup")
                        .WithMany()
                        .HasForeignKey("FApiGroupID")
                        .OnDelete(DeleteBehavior.Cascade)
                        .IsRequired();

                    b.Navigation("apigroup");
                });

            modelBuilder.Entity("RB_MES_API.Models.Cloud.DataSaveBatch", b =>
                {
                    b.HasOne("RB_MES_API.Models.FormIDType", "GetForm")
                        .WithMany()
                        .HasForeignKey("FDocTypeID")
                        .OnDelete(DeleteBehavior.Cascade)
                        .IsRequired();

                    b.Navigation("GetForm");
                });

            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.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.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
        }
    }
}
