// <auto-generated> This file has been auto generated by EF Core Power Tools. </auto-generated>
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore;
using ProfitGroup.NotifyService.Data.Core.Data.Entities.Configurations;
using System.Collections.Generic;
using System;
#nullable disable

namespace ProfitGroup.NotifyService.Data.Core.Data.Entities
{
    public partial class RDnLDatabaseContext : DbContext
    {
        public RDnLDatabaseContext()
        {
        }

        public RDnLDatabaseContext(DbContextOptions<RDnLDatabaseContext> options)
            : base(options)
        {
        }

        public virtual DbSet<ProfITS4MtLog> ProfITS4MtLog { get; set; }
        public virtual DbSet<ProfITS4PrLog> ProfITS4PrLog { get; set; }
        public virtual DbSet<RndtAu> RndtAu { get; set; }
        public virtual DbSet<RndtBomHeader> RndtBomHeader { get; set; }
        public virtual DbSet<RndtSc> RndtSc { get; set; }
        public virtual DbSet<RndtScIc> RndtScIc { get; set; }
        public virtual DbSet<RndtScIi> RndtScIi { get; set; }
        public virtual DbSet<RndtSp> RndtSp { get; set; }
        public virtual DbSet<RndtSpAu> RndtSpAu { get; set; }
        public virtual DbSet<RndtSpIc> RndtSpIc { get; set; }
        public virtual DbSet<RndtSpIi> RndtSpIi { get; set; }

        protected override void OnModelCreating(ModelBuilder modelBuilder)
        {
        modelBuilder.ApplyConfiguration(new Configurations.ProfITS4MtLogConfiguration());
        modelBuilder.ApplyConfiguration(new Configurations.ProfITS4PrLogConfiguration());
        modelBuilder.ApplyConfiguration(new Configurations.RndtAuConfiguration());
        modelBuilder.ApplyConfiguration(new Configurations.RndtBomHeaderConfiguration());
        modelBuilder.ApplyConfiguration(new Configurations.RndtScConfiguration());
        modelBuilder.ApplyConfiguration(new Configurations.RndtScIcConfiguration());
        modelBuilder.ApplyConfiguration(new Configurations.RndtScIiConfiguration());
        modelBuilder.ApplyConfiguration(new Configurations.RndtSpConfiguration());
        modelBuilder.ApplyConfiguration(new Configurations.RndtSpAuConfiguration());
        modelBuilder.ApplyConfiguration(new Configurations.RndtSpIcConfiguration());
        modelBuilder.ApplyConfiguration(new Configurations.RndtSpIiConfiguration());

            modelBuilder.HasSequence("RndsAlId", "RndSuite").HasMin(1);

            modelBuilder.HasSequence("RndsAuId", "RndSuite").HasMin(1);

            modelBuilder.HasSequence("RndsBomImplosionId", "RndSuite").HasMin(1);

            modelBuilder.HasSequence("RndsBOMNoId", "RndSuite").HasMin(1);

            modelBuilder.HasSequence("RndsBU", "RndSuite").HasMin(1);

            modelBuilder.HasSequence("RndsCellId", "RndSuite").HasMin(1);

            modelBuilder.HasSequence("RndsChId", "RndSuite").HasMin(1);

            modelBuilder.HasSequence("RndsCmId", "RndSuite").HasMin(1);

            modelBuilder.HasSequence("RndsCnId", "RndSuite").HasMin(1);

            modelBuilder.HasSequence("RndsCompId", "RndSuite").HasMin(1);

            modelBuilder.HasSequence("RndsContactId", "RndSuite").HasMin(1);

            modelBuilder.HasSequence("RndsCpId", "RndSuite").HasMin(1);

            modelBuilder.HasSequence("RndsCsId", "RndSuite").HasMin(1);

            modelBuilder.HasSequence("RndsCyId", "RndSuite").HasMin(1);

            modelBuilder.HasSequence("RndsDcId", "RndSuite")
                .StartsAt(1203)
                .HasMin(1);

            modelBuilder.HasSequence("RndsEqId", "RndSuite").HasMin(1);

            modelBuilder.HasSequence("RndsEqTpId", "RndSuite").HasMin(1);

            modelBuilder.HasSequence("RndsEtId", "RndSuite").HasMin(1);

            modelBuilder.HasSequence("RndsEvTimedId", "RndSuite").HasMin(1);

            modelBuilder.HasSequence("RndsFbSheetColumnId", "RndSuite").HasMin(1);

            modelBuilder.HasSequence("RndsFbSheetId", "RndSuite").HasMin(1);

            modelBuilder.HasSequence("RndsFbSheetRowId", "RndSuite").HasMin(1);

            modelBuilder.HasSequence("RndsFmFavoriteId", "RndSuite").HasMin(1);

            modelBuilder.HasSequence("RndsFmMatId", "RndSuite").HasMin(1);

            modelBuilder.HasSequence("RndsFnId", "RndSuite").HasMin(1);

            modelBuilder.HasSequence("RndsFrId", "RndSuite").HasMin(1);

            modelBuilder.HasSequence("RndsFtFavoriteId", "RndSuite").HasMin(1);

            modelBuilder.HasSequence("RndsGrId", "RndSuite").HasMin(1);

            modelBuilder.HasSequence("RndsIdId", "RndSuite").HasMin(1);

            modelBuilder.HasSequence("RndsIeId", "RndSuite").HasMin(1);

            modelBuilder.HasSequence("RndsIpId", "RndSuite").HasMin(1);

            modelBuilder.HasSequence("RndsIpIeFormulaID", "RndSuite").HasMin(1);

            modelBuilder.HasSequence("RndsLangId", "RndSuite").HasMin(1);

            modelBuilder.HasSequence("RndsLcFa_LCFA_ID", "RndSuite").HasMin(1);

            modelBuilder.HasSequence("RndsLcId", "RndSuite").HasMin(1);

            modelBuilder.HasSequence("RndsLcTypeId", "RndSuite").HasMin(1);

            modelBuilder.HasSequence("RndsLoId", "RndSuite").HasMin(1);

            modelBuilder.HasSequence("RndsLoTypeId", "RndSuite").HasMin(1);

            modelBuilder.HasSequence("RndsLpId", "RndSuite").HasMin(1);

            modelBuilder.HasSequence("RndsLyId", "RndSuite").HasMin(1);

            modelBuilder.HasSequence("RndsMtId", "RndSuite").HasMin(1);

            modelBuilder.HasSequence("RndsPaId", "RndSuite").HasMin(1);

            modelBuilder.HasSequence("RndsPcGoId", "RndSuite").HasMin(1);

            modelBuilder.HasSequence("RndsPcId", "RndSuite").HasMin(1);

            modelBuilder.HasSequence("RndsPlId", "RndSuite").HasMin(1);

            modelBuilder.HasSequence("RndsPltId", "RndSuite").HasMin(1);

            modelBuilder.HasSequence("RndsPpId", "RndSuite").HasMin(1);

            modelBuilder.HasSequence("RndsPrId", "RndSuite").HasMin(1);

            modelBuilder.HasSequence("RndsPRSEQId", "RndSuite").HasMin(1);

            modelBuilder.HasSequence("RndsPtId", "RndSuite").HasMin(1);

            modelBuilder.HasSequence("RndsRegId", "RndSuite").HasMin(1);

            modelBuilder.HasSequence("RndsRpId", "RndSuite").HasMin(1);

            modelBuilder.HasSequence("RndsRqId", "RndSuite").HasMin(1);

            modelBuilder.HasSequence("RndsRqIiFormulaId", "RndSuite").HasMin(1);

            modelBuilder.HasSequence("RndsRssId", "RndSuite").HasMin(1);

            modelBuilder.HasSequence("RndsRtId", "RndSuite").HasMin(1);

            modelBuilder.HasSequence("RndsSchEvId", "RndSuite").HasMin(1);

            modelBuilder.HasSequence("RndsSchEvTestPlan", "RndSuite").HasMin(1);

            modelBuilder.HasSequence("RndsSchGroupId", "RndSuite").HasMin(1);

            modelBuilder.HasSequence("RndsSchId", "RndSuite").HasMin(1);

            modelBuilder.HasSequence("RndsSchtId", "RndSuite").HasMin(1);

            modelBuilder.HasSequence("RndsScId", "RndSuite").HasMin(1);

            modelBuilder.HasSequence("RndsSdId", "RndSuite").HasMin(1);

            modelBuilder.HasSequence("RndsSpId", "RndSuite").HasMin(1);

            modelBuilder.HasSequence("RndsSpIiCompId", "RndSuite").HasMin(1);

            modelBuilder.HasSequence("RndsSpIiFormulaID", "RndSuite").HasMin(1);

            modelBuilder.HasSequence("RndsSpShCoId", "RndSuite").HasMin(1);

            modelBuilder.HasSequence("RndsSpShOpId", "RndSuite").HasMin(1);

            modelBuilder.HasSequence("RndsSsId", "RndSuite").HasMin(1);

            modelBuilder.HasSequence("RndsStId", "RndSuite").HasMin(1);

            modelBuilder.HasSequence("RndsSTYPEId", "RndSuite")
                .StartsAt(8)
                .HasMin(1);

            modelBuilder.HasSequence("RndsSynId", "RndSuite").HasMin(1);

            modelBuilder.HasSequence("RndsTkId", "RndSuite").HasMin(1);

            modelBuilder.HasSequence("RndsTrEventNr", "RndSuite")
                .HasMin(1)
                .IsCyclic();

            modelBuilder.HasSequence("RndsUcId", "RndSuite").HasMin(1);

            modelBuilder.HasSequence("RndsUnitId", "RndSuite").HasMin(1);

            modelBuilder.HasSequence("RndsUpId", "RndSuite").HasMin(1);

            modelBuilder.HasSequence("RndsWdgId", "RndSuite").HasMin(1);

            modelBuilder.HasSequence("RndsWellTypeId", "RndSuite").HasMin(1);

            modelBuilder.HasSequence("RndsWfId", "RndSuite").HasMin(1);

            modelBuilder.HasSequence("RndsWfIiFormulaId", "RndSuite").HasMin(1);

            modelBuilder.HasSequence("RndsWfTpId", "RndSuite").HasMin(1);

            modelBuilder.HasSequence("RndsWpId", "RndSuite").HasMin(1);

            modelBuilder.HasSequence("RndsWsId", "RndSuite").HasMin(1);

            modelBuilder.HasSequence("RndsWtId", "RndSuite").HasMin(1);

            modelBuilder.HasSequence("SiswSTMatID", "RndSuite").StartsAt(15000);

            modelBuilder.HasSequence("SiswTechID", "RndSuite");

            OnModelCreatingPartial(modelBuilder);
        }

        partial void OnModelCreatingPartial(ModelBuilder modelBuilder);
    }
}
