// <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 RndtSpIiConfiguration : IEntityTypeConfiguration<RndtSpIi>
    {
        public void Configure(EntityTypeBuilder<RndtSpIi> entity)
        {
            entity.HasKey(e => new { e.SP, e.SP_VERSION, e.IC, e.ICNODE, e.IINODE })
                .HasName("RndkSpIi");

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

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

            entity.Property(e => e.SP_VERSION)
                .HasColumnType("numeric(12, 4)")
                .HasDefaultValueSql("((1))");

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

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

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

            entity.Property(e => e.ACTIVE)
                .HasMaxLength(1)
                .IsUnicode(false)
                .IsFixedLength();

            entity.Property(e => e.ALLOW_MODIFY)
                .HasMaxLength(1)
                .IsUnicode(false)
                .IsFixedLength();

            entity.Property(e => e.CALC_FORMULA).HasMaxLength(2000);

            entity.Property(e => e.COMMENT_REQUIRED)
                .HasMaxLength(1)
                .IsUnicode(false)
                .IsFixedLength();

            entity.Property(e => e.DSP_LEN).HasColumnType("numeric(4, 0)");

            entity.Property(e => e.DSP_ROWS).HasColumnType("numeric(4, 0)");

            entity.Property(e => e.DSP_TITLE).HasMaxLength(40);

            entity.Property(e => e.DSP_TP)
                .HasMaxLength(1)
                .IsUnicode(false)
                .IsFixedLength();

            entity.Property(e => e.HIDDEN)
                .HasMaxLength(1)
                .IsUnicode(false)
                .IsFixedLength();

            entity.Property(e => e.IDENTIFIER).HasMaxLength(26);

            entity.Property(e => e.IE_VERSION).HasColumnType("numeric(12, 4)");

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

            entity.Property(e => e.II_CLASS).HasMaxLength(2);

            entity.Property(e => e.II_SHORT_DESC).HasMaxLength(20);

            entity.Property(e => e.IS_PROTECTED)
                .HasMaxLength(1)
                .IsUnicode(false)
                .IsFixedLength();

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

            entity.Property(e => e.LC_VERSION).HasColumnType("numeric(12, 4)");

            entity.Property(e => e.LOG_HS)
                .HasMaxLength(1)
                .IsUnicode(false)
                .IsFixedLength();

            entity.Property(e => e.MANDATORY)
                .HasMaxLength(1)
                .IsUnicode(false)
                .IsFixedLength();

            entity.Property(e => e.POS_X).HasColumnType("numeric(4, 0)");

            entity.Property(e => e.POS_Y).HasColumnType("numeric(4, 0)");

            entity.Property(e => e.RADIO_BUTTON_GROUP).HasMaxLength(50);

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

            OnConfigurePartial(entity);
        }

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