37 lines
944 B
C#
37 lines
944 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace RobotNet10.MapManager.Data;
|
|
|
|
/// <summary>
|
|
/// Station interaction node - Junction table linking stations to nodes
|
|
/// Maps to VDMA LIF: station.interactionNodeIds[]
|
|
/// </summary>
|
|
[Table("StationInteractionNodes")]
|
|
public class StationInteractionNode
|
|
{
|
|
[Key]
|
|
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
|
public Guid Id { get; set; }
|
|
|
|
/// <summary>
|
|
/// Station reference
|
|
/// </summary>
|
|
[Required]
|
|
public Guid StationId { get; set; }
|
|
|
|
/// <summary>
|
|
/// Node reference
|
|
/// </summary>
|
|
[Required]
|
|
public Guid NodeId { get; set; }
|
|
|
|
// Navigation properties
|
|
[ForeignKey(nameof(StationId))]
|
|
public virtual Station Station { get; set; } = null!;
|
|
|
|
[ForeignKey(nameof(NodeId))]
|
|
public virtual Node Node { get; set; } = null!;
|
|
}
|
|
|