// <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 RndtSpAuConfiguration : IEntityTypeConfiguration<RndtSpAu>
    {
        public void Configure(EntityTypeBuilder<RndtSpAu> entity)
        {
            entity.HasKey(e => new { e.SP, e.SP_VERSION, e.AU, e.AUSEQ })
                .HasName("RndkSpAu");

            entity.ToTable("RndtSpAu", "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.AU).HasColumnType("numeric(12, 0)");

            entity.Property(e => e.AUSEQ).HasColumnType("numeric(5, 0)");

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

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

            OnConfigurePartial(entity);
        }

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