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

namespace ProfitGroup.NotifyService.Data.Core.Data.Entities.Configurations
{
    public partial class RndtBomHeaderConfiguration : IEntityTypeConfiguration<RndtBomHeader>
    {
        public void Configure(EntityTypeBuilder<RndtBomHeader> entity)
        {
            entity.HasKey(e => new { e.SP, e.SP_VERSION, e.LO, e.ALTERNATIVE, e.BOM_USAGE, e.ICNODE, e.IINODE })
                .HasName("RndkBomHeader");

            entity.ToTable("RndtBomHeader", "RndSuite");

            entity.Property(e => e.SP).HasColumnType("numeric(12, 0)");

            entity.Property(e => e.SP_VERSION).HasColumnType("numeric(8, 0)");

            entity.Property(e => e.LO).HasColumnType("numeric(12, 0)");

            entity.Property(e => e.ALTERNATIVE).HasColumnType("numeric(2, 0)");

            entity.Property(e => e.BOM_USAGE).HasColumnType("numeric(2, 0)");

            entity.Property(e => e.ICNODE).HasColumnType("numeric(9, 0)");

            entity.Property(e => e.IINODE).HasColumnType("numeric(9, 0)");

            entity.Property(e => e.DESCRIPTION).HasMaxLength(80);

            entity.Property(e => e.IC).HasColumnType("numeric(12, 0)");

            entity.Property(e => e.II).HasColumnType("numeric(12, 0)");

            OnConfigurePartial(entity);
        }

        partial void OnConfigurePartial(EntityTypeBuilder<RndtBomHeader> entity);
    }
}
