namespace PowderCoating.Core.Entities;
///
/// One thumbs-up or thumbs-down vote per company per library formula.
/// Platform-level — no BaseEntity, no soft delete, no CompanyId tenant filter.
/// Unique constraint enforced at the DB level: (FormulaLibraryItemId, CompanyId).
///
public class FormulaLibraryRating
{
public int Id { get; set; }
public int FormulaLibraryItemId { get; set; }
/// The company casting the vote.
public int CompanyId { get; set; }
/// True = thumbs up, false = thumbs down.
public bool IsPositive { get; set; }
public DateTime RatedAt { get; set; } = DateTime.UtcNow;
// Navigation
public virtual FormulaLibraryItem FormulaLibraryItem { get; set; } = null!;
}