// <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 RndtScIcConfiguration : IEntityTypeConfiguration<RndtScIc>
    {
        public void Configure(EntityTypeBuilder<RndtScIc> entity)
        {
            entity.HasKey(e => new { e.SC, e.IC, e.ICNODE })
                .HasName("RndkSCIC");

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

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

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

            entity.Property(e => e.ICNODE).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.DESCRIPTION).HasMaxLength(80);

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

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

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

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

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

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

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

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

            entity.Property(e => e.LAST_COMMENT).HasMaxLength(255);

            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.MANUALLY_ADDED)
                .HasMaxLength(1)
                .IsUnicode(false)
                .IsFixedLength();

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

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

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

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

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

            OnConfigurePartial(entity);
        }

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