Initial commit
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
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!;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user