using Baya.Domain.Common;

namespace Baya.Domain.Entities.Reviews;

/// <summary>
/// The N:N join between a <see cref="Review"/> and a <see cref="ReviewTagMaster"/>. A <c>UNIQUE(review_id,
/// review_tag_master_id)</c> forbids the same tag twice on one review.
/// </summary>
public class ReviewTagLink : BaseEntity<long>
{
    public long ReviewId { get; set; }
    public Review Review { get; set; }

    public long ReviewTagMasterId { get; set; }
    public ReviewTagMaster Tag { get; set; }
}
