using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;

namespace CouchLog.Data
{
    [PrimaryKey(nameof(SharedListLabelId), nameof(SharedListEntityId))]
    public class LinkTableSharedLabel
    {
        // --- Foreign Keys ---
        public int SharedListLabelId { get; set; }

        public int SharedListEntityId { get; set; }


        // --- Navigation Properties ---
        [ForeignKey(nameof(SharedListLabelId))]
        public virtual SharedListLabel SharedListLabel { get; set; } = null!;

        [ForeignKey(nameof(SharedListEntityId))]
        public virtual SharedListEntity SharedListEntity { get; set; } = null!;
    }
}