using Microsoft.EntityFrameworkCore.Metadata.Builders;
using Nop.Data.Mapping;
using Nop.Plugin.SigmaSolve.StyleEditor.Domain;
using Microsoft.EntityFrameworkCore;

namespace Nop.Plugin.SigmaSolve.StyleEditor.Data
{
    public partial class StyleEditorRecordMap : NopEntityTypeConfiguration<StyleEditorRecord>
    {
        #region Methods

        /// <summary>
        /// Configures the entity
        /// </summary>
        /// <param name="builder">The builder to be used to configure the entity</param>
        public override void Configure(EntityTypeBuilder<StyleEditorRecord> builder)
        {
            builder.ToTable(nameof(StyleEditorRecord));
            builder.HasKey(point => point.Id);
        }

        #endregion
    }
}
