using Baya.Domain.Common;

namespace Baya.Domain.Entities.Catalog;

/// <summary>
/// One answered dimension of a variant: the option value it chose for a given group. One row per
/// dimension makes the variant's meaning explicit and queryable. <c>UNIQUE(variant_id, option_group_id)</c>
/// enforces <b>one value per dimension per variant</b> — a variant can never answer the same group twice.
/// </summary>
public class NurseServiceVariantOption : BaseEntity<long>
{
    public long VariantId { get; set; }
    public NurseServiceVariant Variant { get; set; }

    public long OptionGroupId { get; set; }
    public ServiceOptionGroup OptionGroup { get; set; }

    public long OptionValueId { get; set; }
    public ServiceOptionValue OptionValue { get; set; }
}
