﻿using FictionHub.Domain.Models;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using System;
using System.Collections.Generic;
using System.Text;

namespace FictionHub.Infrastructure.Data.Mappings
{
    public class ChapterReviewMap : IEntityTypeConfiguration<ChapterReview>
    {
        public void Configure(EntityTypeBuilder<ChapterReview> builder)
        {
            builder.Property(cr => cr.Id);

            builder.Property(cr => cr.ChapterId);

            builder.Property(cr => cr.ReviewerId);

            builder.Property(cr => cr.Content);

            builder.Property(cr => cr.Rating);
        }
    }
}
