using System.ComponentModel.DataAnnotations.Schema;

namespace Intentor.Models;

/// <summary>
/// Join entity: "Intent A requires Intent B".
/// </summary>
public class IntentRequirement
{
    public int IntentId { get; set; }

    public int RequiredIntentId { get; set; }

    [ForeignKey(nameof(IntentId))]
    public Intent Intent { get; set; } = null!;

    [ForeignKey(nameof(RequiredIntentId))]
    public Intent RequiredIntent { get; set; } = null!;
}
