Initial commit
This commit is contained in:
705
srcs/RobotNet10/RobotApp/RobotNet10.RobotApp/Data/Migrations/MapDb/20260305070456_AddMapDb.Designer.cs
generated
Normal file
705
srcs/RobotNet10/RobotApp/RobotNet10.RobotApp/Data/Migrations/MapDb/20260305070456_AddMapDb.Designer.cs
generated
Normal file
@@ -0,0 +1,705 @@
|
||||
// <auto-generated />
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||
using RobotNet10.MapManager.Data;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace RobotNet10.RobotApp.Data.Migrations.MapDb
|
||||
{
|
||||
[DbContext(typeof(MapDbContext))]
|
||||
[Migration("20260305070456_AddMapDb")]
|
||||
partial class AddMapDb
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
||||
{
|
||||
#pragma warning disable 612, 618
|
||||
modelBuilder.HasAnnotation("ProductVersion", "10.0.3");
|
||||
|
||||
modelBuilder.Entity("RobotNet10.MapManager.Data.Edge", b =>
|
||||
{
|
||||
b.Property<Guid>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<string>("EdgeDescription")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<string>("EdgeId")
|
||||
.IsRequired()
|
||||
.HasMaxLength(128)
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<string>("EdgeName")
|
||||
.HasMaxLength(256)
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<Guid>("EndNodeId")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<Guid>("LevelId")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<Guid>("StartNodeId")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("EdgeId");
|
||||
|
||||
b.HasIndex("EndNodeId");
|
||||
|
||||
b.HasIndex("StartNodeId");
|
||||
|
||||
b.HasIndex("LevelId", "EdgeId")
|
||||
.IsUnique();
|
||||
|
||||
b.ToTable("Edges", t =>
|
||||
{
|
||||
t.HasCheckConstraint("CK_Edges_DifferentNodes", "[StartNodeId] <> [EndNodeId]");
|
||||
});
|
||||
});
|
||||
|
||||
modelBuilder.Entity("RobotNet10.MapManager.Data.EdgeVehicleProperty", b =>
|
||||
{
|
||||
b.Property<Guid>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<string>("Actions")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<double?>("CorridorLeftWidth")
|
||||
.HasColumnType("REAL");
|
||||
|
||||
b.Property<int?>("CorridorRefPoint")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<double?>("CorridorRightWidth")
|
||||
.HasColumnType("REAL");
|
||||
|
||||
b.Property<Guid>("EdgeId")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<string>("LoadRestriction_LoadSetNames")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<bool?>("LoadRestriction_Loaded")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<bool?>("LoadRestriction_Unloaded")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<double?>("MaxHeight")
|
||||
.HasColumnType("REAL");
|
||||
|
||||
b.Property<double?>("MaxRotationSpeed")
|
||||
.HasColumnType("REAL");
|
||||
|
||||
b.Property<double?>("MaxSpeed")
|
||||
.HasColumnType("REAL");
|
||||
|
||||
b.Property<double?>("MinHeight")
|
||||
.HasColumnType("REAL");
|
||||
|
||||
b.Property<int?>("OrientationType")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<bool?>("RotationAllowed")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<int?>("RotationAtEndNodeAllowed")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<int?>("RotationAtStartNodeAllowed")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<double?>("TrajectoryControlPoint1X")
|
||||
.HasColumnType("REAL");
|
||||
|
||||
b.Property<double?>("TrajectoryControlPoint1Y")
|
||||
.HasColumnType("REAL");
|
||||
|
||||
b.Property<double?>("TrajectoryControlPoint2X")
|
||||
.HasColumnType("REAL");
|
||||
|
||||
b.Property<double?>("TrajectoryControlPoint2Y")
|
||||
.HasColumnType("REAL");
|
||||
|
||||
b.Property<int?>("TrajectoryDegree")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<double?>("VehicleOrientation")
|
||||
.HasColumnType("REAL");
|
||||
|
||||
b.Property<Guid>("VehicleTypeId")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("EdgeId");
|
||||
|
||||
b.HasIndex("VehicleTypeId");
|
||||
|
||||
b.HasIndex("EdgeId", "VehicleTypeId")
|
||||
.IsUnique();
|
||||
|
||||
b.ToTable("EdgeVehicleProperties");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("RobotNet10.MapManager.Data.Layout", b =>
|
||||
{
|
||||
b.Property<Guid>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<string>("CreatedBy")
|
||||
.HasMaxLength(256)
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<DateTime>("CreatedDate")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<string>("Description")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<bool>("IsActive")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<string>("LayoutId")
|
||||
.IsRequired()
|
||||
.HasMaxLength(128)
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<string>("LayoutName")
|
||||
.IsRequired()
|
||||
.HasMaxLength(256)
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<string>("ModifiedBy")
|
||||
.HasMaxLength(256)
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<DateTime>("ModifiedDate")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("IsActive");
|
||||
|
||||
b.HasIndex("LayoutId")
|
||||
.IsUnique();
|
||||
|
||||
b.ToTable("Layouts");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("RobotNet10.MapManager.Data.LayoutLevel", b =>
|
||||
{
|
||||
b.Property<Guid>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<string>("LayoutLevelId")
|
||||
.IsRequired()
|
||||
.HasMaxLength(64)
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<int>("LevelOrder")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<Guid>("VersionId")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("LevelOrder");
|
||||
|
||||
b.HasIndex("VersionId", "LayoutLevelId")
|
||||
.IsUnique();
|
||||
|
||||
b.ToTable("LayoutLevels");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("RobotNet10.MapManager.Data.LayoutLevelEditorSettings", b =>
|
||||
{
|
||||
b.Property<Guid>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<double?>("BoundsMaxX")
|
||||
.HasColumnType("REAL");
|
||||
|
||||
b.Property<double?>("BoundsMaxY")
|
||||
.HasColumnType("REAL");
|
||||
|
||||
b.Property<double?>("BoundsMinX")
|
||||
.HasColumnType("REAL");
|
||||
|
||||
b.Property<double?>("BoundsMinY")
|
||||
.HasColumnType("REAL");
|
||||
|
||||
b.Property<DateTime>("CreatedDate")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<double>("EdgeMinLengthCreate")
|
||||
.HasColumnType("REAL");
|
||||
|
||||
b.Property<bool>("EdgeNameAutoGenerate")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<double?>("ImageHeight")
|
||||
.HasColumnType("REAL");
|
||||
|
||||
b.Property<double?>("ImageWidth")
|
||||
.HasColumnType("REAL");
|
||||
|
||||
b.Property<Guid>("LevelId")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<DateTime>("ModifiedDate")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<bool>("NodeNameAutoGenerate")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<double>("NodeProximityRadius")
|
||||
.HasColumnType("REAL");
|
||||
|
||||
b.Property<double>("OriginX")
|
||||
.HasColumnType("REAL");
|
||||
|
||||
b.Property<double>("OriginY")
|
||||
.HasColumnType("REAL");
|
||||
|
||||
b.Property<double>("Resolution")
|
||||
.HasColumnType("REAL");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("LevelId")
|
||||
.IsUnique();
|
||||
|
||||
b.ToTable("LayoutLevelEditorSettings");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("RobotNet10.MapManager.Data.LayoutVersion", b =>
|
||||
{
|
||||
b.Property<Guid>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<string>("CreatedBy")
|
||||
.HasMaxLength(256)
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<DateTime>("CreatedDate")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<bool>("IsActive")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<string>("LayoutDescription")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<Guid>("LayoutId")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<string>("Version")
|
||||
.IsRequired()
|
||||
.HasMaxLength(32)
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("IsActive");
|
||||
|
||||
b.HasIndex("LayoutId", "Version")
|
||||
.IsUnique();
|
||||
|
||||
b.ToTable("LayoutVersions");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("RobotNet10.MapManager.Data.Node", b =>
|
||||
{
|
||||
b.Property<Guid>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<Guid>("LevelId")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<string>("MapId")
|
||||
.HasMaxLength(128)
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<string>("NodeDescription")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<string>("NodeId")
|
||||
.IsRequired()
|
||||
.HasMaxLength(128)
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<string>("NodeName")
|
||||
.HasMaxLength(256)
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<double>("X")
|
||||
.HasColumnType("REAL");
|
||||
|
||||
b.Property<double>("Y")
|
||||
.HasColumnType("REAL");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("MapId");
|
||||
|
||||
b.HasIndex("NodeId");
|
||||
|
||||
b.HasIndex("LevelId", "NodeId")
|
||||
.IsUnique();
|
||||
|
||||
b.HasIndex("X", "Y");
|
||||
|
||||
b.ToTable("Nodes");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("RobotNet10.MapManager.Data.NodeVehicleProperty", b =>
|
||||
{
|
||||
b.Property<Guid>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<string>("Actions")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<double?>("AllowedDeviationTheta")
|
||||
.HasColumnType("REAL");
|
||||
|
||||
b.Property<double?>("AllowedDeviationXY")
|
||||
.HasColumnType("REAL");
|
||||
|
||||
b.Property<Guid>("NodeId")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<double?>("Theta")
|
||||
.HasColumnType("REAL");
|
||||
|
||||
b.Property<Guid>("VehicleTypeId")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("NodeId");
|
||||
|
||||
b.HasIndex("VehicleTypeId");
|
||||
|
||||
b.HasIndex("NodeId", "VehicleTypeId")
|
||||
.IsUnique();
|
||||
|
||||
b.ToTable("NodeVehicleProperties");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("RobotNet10.MapManager.Data.Station", b =>
|
||||
{
|
||||
b.Property<Guid>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<Guid>("LevelId")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<string>("StationDescription")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<double?>("StationHeight")
|
||||
.HasColumnType("REAL");
|
||||
|
||||
b.Property<string>("StationId")
|
||||
.IsRequired()
|
||||
.HasMaxLength(128)
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<string>("StationName")
|
||||
.HasMaxLength(256)
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<double?>("Theta")
|
||||
.HasColumnType("REAL");
|
||||
|
||||
b.Property<double>("X")
|
||||
.HasColumnType("REAL");
|
||||
|
||||
b.Property<double>("Y")
|
||||
.HasColumnType("REAL");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("StationId");
|
||||
|
||||
b.HasIndex("LevelId", "StationId")
|
||||
.IsUnique();
|
||||
|
||||
b.ToTable("Stations");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("RobotNet10.MapManager.Data.StationInteractionNode", b =>
|
||||
{
|
||||
b.Property<Guid>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<Guid>("NodeId")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<Guid>("StationId")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("NodeId");
|
||||
|
||||
b.HasIndex("StationId");
|
||||
|
||||
b.HasIndex("StationId", "NodeId")
|
||||
.IsUnique();
|
||||
|
||||
b.ToTable("StationInteractionNodes");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("RobotNet10.MapManager.Data.VehicleType", b =>
|
||||
{
|
||||
b.Property<Guid>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<string>("Actions")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<DateTime>("CreatedDate")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<string>("Description")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<bool>("IsActive")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<string>("Specifications")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<string>("VehicleTypeId")
|
||||
.IsRequired()
|
||||
.HasMaxLength(64)
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<string>("VehicleTypeName")
|
||||
.IsRequired()
|
||||
.HasMaxLength(256)
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("IsActive");
|
||||
|
||||
b.HasIndex("VehicleTypeId")
|
||||
.IsUnique();
|
||||
|
||||
b.ToTable("VehicleTypes");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("RobotNet10.MapManager.Data.Edge", b =>
|
||||
{
|
||||
b.HasOne("RobotNet10.MapManager.Data.Node", "EndNode")
|
||||
.WithMany("IncomingEdges")
|
||||
.HasForeignKey("EndNodeId")
|
||||
.OnDelete(DeleteBehavior.Restrict)
|
||||
.IsRequired();
|
||||
|
||||
b.HasOne("RobotNet10.MapManager.Data.LayoutLevel", "Level")
|
||||
.WithMany("Edges")
|
||||
.HasForeignKey("LevelId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.HasOne("RobotNet10.MapManager.Data.Node", "StartNode")
|
||||
.WithMany("OutgoingEdges")
|
||||
.HasForeignKey("StartNodeId")
|
||||
.OnDelete(DeleteBehavior.Restrict)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("EndNode");
|
||||
|
||||
b.Navigation("Level");
|
||||
|
||||
b.Navigation("StartNode");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("RobotNet10.MapManager.Data.EdgeVehicleProperty", b =>
|
||||
{
|
||||
b.HasOne("RobotNet10.MapManager.Data.Edge", "Edge")
|
||||
.WithMany("VehicleProperties")
|
||||
.HasForeignKey("EdgeId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.HasOne("RobotNet10.MapManager.Data.VehicleType", "VehicleType")
|
||||
.WithMany("EdgeVehicleProperties")
|
||||
.HasForeignKey("VehicleTypeId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("Edge");
|
||||
|
||||
b.Navigation("VehicleType");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("RobotNet10.MapManager.Data.LayoutLevel", b =>
|
||||
{
|
||||
b.HasOne("RobotNet10.MapManager.Data.LayoutVersion", "Version")
|
||||
.WithMany("Levels")
|
||||
.HasForeignKey("VersionId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("Version");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("RobotNet10.MapManager.Data.LayoutLevelEditorSettings", b =>
|
||||
{
|
||||
b.HasOne("RobotNet10.MapManager.Data.LayoutLevel", "Level")
|
||||
.WithOne("EditorSettings")
|
||||
.HasForeignKey("RobotNet10.MapManager.Data.LayoutLevelEditorSettings", "LevelId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("Level");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("RobotNet10.MapManager.Data.LayoutVersion", b =>
|
||||
{
|
||||
b.HasOne("RobotNet10.MapManager.Data.Layout", "Layout")
|
||||
.WithMany("Versions")
|
||||
.HasForeignKey("LayoutId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("Layout");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("RobotNet10.MapManager.Data.Node", b =>
|
||||
{
|
||||
b.HasOne("RobotNet10.MapManager.Data.LayoutLevel", "Level")
|
||||
.WithMany("Nodes")
|
||||
.HasForeignKey("LevelId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("Level");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("RobotNet10.MapManager.Data.NodeVehicleProperty", b =>
|
||||
{
|
||||
b.HasOne("RobotNet10.MapManager.Data.Node", "Node")
|
||||
.WithMany("VehicleProperties")
|
||||
.HasForeignKey("NodeId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.HasOne("RobotNet10.MapManager.Data.VehicleType", "VehicleType")
|
||||
.WithMany("NodeVehicleProperties")
|
||||
.HasForeignKey("VehicleTypeId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("Node");
|
||||
|
||||
b.Navigation("VehicleType");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("RobotNet10.MapManager.Data.Station", b =>
|
||||
{
|
||||
b.HasOne("RobotNet10.MapManager.Data.LayoutLevel", "Level")
|
||||
.WithMany("Stations")
|
||||
.HasForeignKey("LevelId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("Level");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("RobotNet10.MapManager.Data.StationInteractionNode", b =>
|
||||
{
|
||||
b.HasOne("RobotNet10.MapManager.Data.Node", "Node")
|
||||
.WithMany("StationInteractions")
|
||||
.HasForeignKey("NodeId")
|
||||
.OnDelete(DeleteBehavior.Restrict)
|
||||
.IsRequired();
|
||||
|
||||
b.HasOne("RobotNet10.MapManager.Data.Station", "Station")
|
||||
.WithMany("InteractionNodes")
|
||||
.HasForeignKey("StationId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("Node");
|
||||
|
||||
b.Navigation("Station");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("RobotNet10.MapManager.Data.Edge", b =>
|
||||
{
|
||||
b.Navigation("VehicleProperties");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("RobotNet10.MapManager.Data.Layout", b =>
|
||||
{
|
||||
b.Navigation("Versions");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("RobotNet10.MapManager.Data.LayoutLevel", b =>
|
||||
{
|
||||
b.Navigation("Edges");
|
||||
|
||||
b.Navigation("EditorSettings");
|
||||
|
||||
b.Navigation("Nodes");
|
||||
|
||||
b.Navigation("Stations");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("RobotNet10.MapManager.Data.LayoutVersion", b =>
|
||||
{
|
||||
b.Navigation("Levels");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("RobotNet10.MapManager.Data.Node", b =>
|
||||
{
|
||||
b.Navigation("IncomingEdges");
|
||||
|
||||
b.Navigation("OutgoingEdges");
|
||||
|
||||
b.Navigation("StationInteractions");
|
||||
|
||||
b.Navigation("VehicleProperties");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("RobotNet10.MapManager.Data.Station", b =>
|
||||
{
|
||||
b.Navigation("InteractionNodes");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("RobotNet10.MapManager.Data.VehicleType", b =>
|
||||
{
|
||||
b.Navigation("EdgeVehicleProperties");
|
||||
|
||||
b.Navigation("NodeVehicleProperties");
|
||||
});
|
||||
#pragma warning restore 612, 618
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,501 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace RobotNet10.RobotApp.Data.Migrations.MapDb
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class AddMapDb : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.CreateTable(
|
||||
name: "Layouts",
|
||||
columns: table => new
|
||||
{
|
||||
Id = table.Column<Guid>(type: "TEXT", nullable: false),
|
||||
LayoutId = table.Column<string>(type: "TEXT", maxLength: 128, nullable: false),
|
||||
LayoutName = table.Column<string>(type: "TEXT", maxLength: 256, nullable: false),
|
||||
Description = table.Column<string>(type: "TEXT", nullable: true),
|
||||
IsActive = table.Column<bool>(type: "INTEGER", nullable: false),
|
||||
CreatedDate = table.Column<DateTime>(type: "TEXT", nullable: false),
|
||||
ModifiedDate = table.Column<DateTime>(type: "TEXT", nullable: false),
|
||||
CreatedBy = table.Column<string>(type: "TEXT", maxLength: 256, nullable: true),
|
||||
ModifiedBy = table.Column<string>(type: "TEXT", maxLength: 256, nullable: true)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_Layouts", x => x.Id);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "VehicleTypes",
|
||||
columns: table => new
|
||||
{
|
||||
Id = table.Column<Guid>(type: "TEXT", nullable: false),
|
||||
VehicleTypeId = table.Column<string>(type: "TEXT", maxLength: 64, nullable: false),
|
||||
VehicleTypeName = table.Column<string>(type: "TEXT", maxLength: 256, nullable: false),
|
||||
Description = table.Column<string>(type: "TEXT", nullable: true),
|
||||
Specifications = table.Column<string>(type: "TEXT", nullable: true),
|
||||
IsActive = table.Column<bool>(type: "INTEGER", nullable: false),
|
||||
Actions = table.Column<string>(type: "TEXT", nullable: true),
|
||||
CreatedDate = table.Column<DateTime>(type: "TEXT", nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_VehicleTypes", x => x.Id);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "LayoutVersions",
|
||||
columns: table => new
|
||||
{
|
||||
Id = table.Column<Guid>(type: "TEXT", nullable: false),
|
||||
LayoutId = table.Column<Guid>(type: "TEXT", nullable: false),
|
||||
Version = table.Column<string>(type: "TEXT", maxLength: 32, nullable: false),
|
||||
LayoutDescription = table.Column<string>(type: "TEXT", nullable: true),
|
||||
CreatedBy = table.Column<string>(type: "TEXT", maxLength: 256, nullable: true),
|
||||
CreatedDate = table.Column<DateTime>(type: "TEXT", nullable: false),
|
||||
IsActive = table.Column<bool>(type: "INTEGER", nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_LayoutVersions", x => x.Id);
|
||||
table.ForeignKey(
|
||||
name: "FK_LayoutVersions_Layouts_LayoutId",
|
||||
column: x => x.LayoutId,
|
||||
principalTable: "Layouts",
|
||||
principalColumn: "Id",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "LayoutLevels",
|
||||
columns: table => new
|
||||
{
|
||||
Id = table.Column<Guid>(type: "TEXT", nullable: false),
|
||||
VersionId = table.Column<Guid>(type: "TEXT", nullable: false),
|
||||
LayoutLevelId = table.Column<string>(type: "TEXT", maxLength: 64, nullable: false),
|
||||
LevelOrder = table.Column<int>(type: "INTEGER", nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_LayoutLevels", x => x.Id);
|
||||
table.ForeignKey(
|
||||
name: "FK_LayoutLevels_LayoutVersions_VersionId",
|
||||
column: x => x.VersionId,
|
||||
principalTable: "LayoutVersions",
|
||||
principalColumn: "Id",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "LayoutLevelEditorSettings",
|
||||
columns: table => new
|
||||
{
|
||||
Id = table.Column<Guid>(type: "TEXT", nullable: false),
|
||||
LevelId = table.Column<Guid>(type: "TEXT", nullable: false),
|
||||
EdgeMinLengthCreate = table.Column<double>(type: "REAL", nullable: false),
|
||||
EdgeNameAutoGenerate = table.Column<bool>(type: "INTEGER", nullable: false),
|
||||
NodeNameAutoGenerate = table.Column<bool>(type: "INTEGER", nullable: false),
|
||||
NodeProximityRadius = table.Column<double>(type: "REAL", nullable: false),
|
||||
OriginX = table.Column<double>(type: "REAL", nullable: false),
|
||||
OriginY = table.Column<double>(type: "REAL", nullable: false),
|
||||
Resolution = table.Column<double>(type: "REAL", nullable: false),
|
||||
BoundsMinX = table.Column<double>(type: "REAL", nullable: true),
|
||||
BoundsMaxX = table.Column<double>(type: "REAL", nullable: true),
|
||||
BoundsMinY = table.Column<double>(type: "REAL", nullable: true),
|
||||
BoundsMaxY = table.Column<double>(type: "REAL", nullable: true),
|
||||
ImageWidth = table.Column<double>(type: "REAL", nullable: true),
|
||||
ImageHeight = table.Column<double>(type: "REAL", nullable: true),
|
||||
CreatedDate = table.Column<DateTime>(type: "TEXT", nullable: false),
|
||||
ModifiedDate = table.Column<DateTime>(type: "TEXT", nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_LayoutLevelEditorSettings", x => x.Id);
|
||||
table.ForeignKey(
|
||||
name: "FK_LayoutLevelEditorSettings_LayoutLevels_LevelId",
|
||||
column: x => x.LevelId,
|
||||
principalTable: "LayoutLevels",
|
||||
principalColumn: "Id",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "Nodes",
|
||||
columns: table => new
|
||||
{
|
||||
Id = table.Column<Guid>(type: "TEXT", nullable: false),
|
||||
LevelId = table.Column<Guid>(type: "TEXT", nullable: false),
|
||||
NodeId = table.Column<string>(type: "TEXT", maxLength: 128, nullable: false),
|
||||
NodeName = table.Column<string>(type: "TEXT", maxLength: 256, nullable: true),
|
||||
NodeDescription = table.Column<string>(type: "TEXT", nullable: true),
|
||||
MapId = table.Column<string>(type: "TEXT", maxLength: 128, nullable: true),
|
||||
X = table.Column<double>(type: "REAL", nullable: false),
|
||||
Y = table.Column<double>(type: "REAL", nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_Nodes", x => x.Id);
|
||||
table.ForeignKey(
|
||||
name: "FK_Nodes_LayoutLevels_LevelId",
|
||||
column: x => x.LevelId,
|
||||
principalTable: "LayoutLevels",
|
||||
principalColumn: "Id",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "Stations",
|
||||
columns: table => new
|
||||
{
|
||||
Id = table.Column<Guid>(type: "TEXT", nullable: false),
|
||||
LevelId = table.Column<Guid>(type: "TEXT", nullable: false),
|
||||
StationId = table.Column<string>(type: "TEXT", maxLength: 128, nullable: false),
|
||||
StationName = table.Column<string>(type: "TEXT", maxLength: 256, nullable: true),
|
||||
StationDescription = table.Column<string>(type: "TEXT", nullable: true),
|
||||
StationHeight = table.Column<double>(type: "REAL", nullable: true),
|
||||
X = table.Column<double>(type: "REAL", nullable: false),
|
||||
Y = table.Column<double>(type: "REAL", nullable: false),
|
||||
Theta = table.Column<double>(type: "REAL", nullable: true)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_Stations", x => x.Id);
|
||||
table.ForeignKey(
|
||||
name: "FK_Stations_LayoutLevels_LevelId",
|
||||
column: x => x.LevelId,
|
||||
principalTable: "LayoutLevels",
|
||||
principalColumn: "Id",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "Edges",
|
||||
columns: table => new
|
||||
{
|
||||
Id = table.Column<Guid>(type: "TEXT", nullable: false),
|
||||
LevelId = table.Column<Guid>(type: "TEXT", nullable: false),
|
||||
EdgeId = table.Column<string>(type: "TEXT", maxLength: 128, nullable: false),
|
||||
StartNodeId = table.Column<Guid>(type: "TEXT", nullable: false),
|
||||
EndNodeId = table.Column<Guid>(type: "TEXT", nullable: false),
|
||||
EdgeName = table.Column<string>(type: "TEXT", maxLength: 256, nullable: true),
|
||||
EdgeDescription = table.Column<string>(type: "TEXT", nullable: true)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_Edges", x => x.Id);
|
||||
table.CheckConstraint("CK_Edges_DifferentNodes", "[StartNodeId] <> [EndNodeId]");
|
||||
table.ForeignKey(
|
||||
name: "FK_Edges_LayoutLevels_LevelId",
|
||||
column: x => x.LevelId,
|
||||
principalTable: "LayoutLevels",
|
||||
principalColumn: "Id",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
table.ForeignKey(
|
||||
name: "FK_Edges_Nodes_EndNodeId",
|
||||
column: x => x.EndNodeId,
|
||||
principalTable: "Nodes",
|
||||
principalColumn: "Id",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
table.ForeignKey(
|
||||
name: "FK_Edges_Nodes_StartNodeId",
|
||||
column: x => x.StartNodeId,
|
||||
principalTable: "Nodes",
|
||||
principalColumn: "Id",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "NodeVehicleProperties",
|
||||
columns: table => new
|
||||
{
|
||||
Id = table.Column<Guid>(type: "TEXT", nullable: false),
|
||||
NodeId = table.Column<Guid>(type: "TEXT", nullable: false),
|
||||
VehicleTypeId = table.Column<Guid>(type: "TEXT", nullable: false),
|
||||
Theta = table.Column<double>(type: "REAL", nullable: true),
|
||||
Actions = table.Column<string>(type: "TEXT", nullable: true),
|
||||
AllowedDeviationXY = table.Column<double>(type: "REAL", nullable: true),
|
||||
AllowedDeviationTheta = table.Column<double>(type: "REAL", nullable: true)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_NodeVehicleProperties", x => x.Id);
|
||||
table.ForeignKey(
|
||||
name: "FK_NodeVehicleProperties_Nodes_NodeId",
|
||||
column: x => x.NodeId,
|
||||
principalTable: "Nodes",
|
||||
principalColumn: "Id",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
table.ForeignKey(
|
||||
name: "FK_NodeVehicleProperties_VehicleTypes_VehicleTypeId",
|
||||
column: x => x.VehicleTypeId,
|
||||
principalTable: "VehicleTypes",
|
||||
principalColumn: "Id",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "StationInteractionNodes",
|
||||
columns: table => new
|
||||
{
|
||||
Id = table.Column<Guid>(type: "TEXT", nullable: false),
|
||||
StationId = table.Column<Guid>(type: "TEXT", nullable: false),
|
||||
NodeId = table.Column<Guid>(type: "TEXT", nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_StationInteractionNodes", x => x.Id);
|
||||
table.ForeignKey(
|
||||
name: "FK_StationInteractionNodes_Nodes_NodeId",
|
||||
column: x => x.NodeId,
|
||||
principalTable: "Nodes",
|
||||
principalColumn: "Id",
|
||||
onDelete: ReferentialAction.Restrict);
|
||||
table.ForeignKey(
|
||||
name: "FK_StationInteractionNodes_Stations_StationId",
|
||||
column: x => x.StationId,
|
||||
principalTable: "Stations",
|
||||
principalColumn: "Id",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "EdgeVehicleProperties",
|
||||
columns: table => new
|
||||
{
|
||||
Id = table.Column<Guid>(type: "TEXT", nullable: false),
|
||||
EdgeId = table.Column<Guid>(type: "TEXT", nullable: false),
|
||||
VehicleTypeId = table.Column<Guid>(type: "TEXT", nullable: false),
|
||||
VehicleOrientation = table.Column<double>(type: "REAL", nullable: true),
|
||||
OrientationType = table.Column<int>(type: "INTEGER", nullable: true),
|
||||
RotationAllowed = table.Column<bool>(type: "INTEGER", nullable: true),
|
||||
RotationAtStartNodeAllowed = table.Column<int>(type: "INTEGER", nullable: true),
|
||||
RotationAtEndNodeAllowed = table.Column<int>(type: "INTEGER", nullable: true),
|
||||
MaxSpeed = table.Column<double>(type: "REAL", nullable: true),
|
||||
MaxRotationSpeed = table.Column<double>(type: "REAL", nullable: true),
|
||||
MinHeight = table.Column<double>(type: "REAL", nullable: true),
|
||||
MaxHeight = table.Column<double>(type: "REAL", nullable: true),
|
||||
LoadRestriction_Unloaded = table.Column<bool>(type: "INTEGER", nullable: true),
|
||||
LoadRestriction_Loaded = table.Column<bool>(type: "INTEGER", nullable: true),
|
||||
LoadRestriction_LoadSetNames = table.Column<string>(type: "TEXT", nullable: true),
|
||||
TrajectoryDegree = table.Column<int>(type: "INTEGER", nullable: true),
|
||||
TrajectoryControlPoint1X = table.Column<double>(type: "REAL", nullable: true),
|
||||
TrajectoryControlPoint1Y = table.Column<double>(type: "REAL", nullable: true),
|
||||
TrajectoryControlPoint2X = table.Column<double>(type: "REAL", nullable: true),
|
||||
TrajectoryControlPoint2Y = table.Column<double>(type: "REAL", nullable: true),
|
||||
Actions = table.Column<string>(type: "TEXT", nullable: true),
|
||||
CorridorLeftWidth = table.Column<double>(type: "REAL", nullable: true),
|
||||
CorridorRightWidth = table.Column<double>(type: "REAL", nullable: true),
|
||||
CorridorRefPoint = table.Column<int>(type: "INTEGER", nullable: true)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_EdgeVehicleProperties", x => x.Id);
|
||||
table.ForeignKey(
|
||||
name: "FK_EdgeVehicleProperties_Edges_EdgeId",
|
||||
column: x => x.EdgeId,
|
||||
principalTable: "Edges",
|
||||
principalColumn: "Id",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
table.ForeignKey(
|
||||
name: "FK_EdgeVehicleProperties_VehicleTypes_VehicleTypeId",
|
||||
column: x => x.VehicleTypeId,
|
||||
principalTable: "VehicleTypes",
|
||||
principalColumn: "Id",
|
||||
onDelete: ReferentialAction.Cascade);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_Edges_EdgeId",
|
||||
table: "Edges",
|
||||
column: "EdgeId");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_Edges_EndNodeId",
|
||||
table: "Edges",
|
||||
column: "EndNodeId");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_Edges_LevelId_EdgeId",
|
||||
table: "Edges",
|
||||
columns: new[] { "LevelId", "EdgeId" },
|
||||
unique: true);
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_Edges_StartNodeId",
|
||||
table: "Edges",
|
||||
column: "StartNodeId");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_EdgeVehicleProperties_EdgeId",
|
||||
table: "EdgeVehicleProperties",
|
||||
column: "EdgeId");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_EdgeVehicleProperties_EdgeId_VehicleTypeId",
|
||||
table: "EdgeVehicleProperties",
|
||||
columns: new[] { "EdgeId", "VehicleTypeId" },
|
||||
unique: true);
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_EdgeVehicleProperties_VehicleTypeId",
|
||||
table: "EdgeVehicleProperties",
|
||||
column: "VehicleTypeId");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_LayoutLevelEditorSettings_LevelId",
|
||||
table: "LayoutLevelEditorSettings",
|
||||
column: "LevelId",
|
||||
unique: true);
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_LayoutLevels_LevelOrder",
|
||||
table: "LayoutLevels",
|
||||
column: "LevelOrder");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_LayoutLevels_VersionId_LayoutLevelId",
|
||||
table: "LayoutLevels",
|
||||
columns: new[] { "VersionId", "LayoutLevelId" },
|
||||
unique: true);
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_Layouts_IsActive",
|
||||
table: "Layouts",
|
||||
column: "IsActive");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_Layouts_LayoutId",
|
||||
table: "Layouts",
|
||||
column: "LayoutId",
|
||||
unique: true);
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_LayoutVersions_IsActive",
|
||||
table: "LayoutVersions",
|
||||
column: "IsActive");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_LayoutVersions_LayoutId_Version",
|
||||
table: "LayoutVersions",
|
||||
columns: new[] { "LayoutId", "Version" },
|
||||
unique: true);
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_Nodes_LevelId_NodeId",
|
||||
table: "Nodes",
|
||||
columns: new[] { "LevelId", "NodeId" },
|
||||
unique: true);
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_Nodes_MapId",
|
||||
table: "Nodes",
|
||||
column: "MapId");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_Nodes_NodeId",
|
||||
table: "Nodes",
|
||||
column: "NodeId");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_Nodes_X_Y",
|
||||
table: "Nodes",
|
||||
columns: new[] { "X", "Y" });
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_NodeVehicleProperties_NodeId",
|
||||
table: "NodeVehicleProperties",
|
||||
column: "NodeId");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_NodeVehicleProperties_NodeId_VehicleTypeId",
|
||||
table: "NodeVehicleProperties",
|
||||
columns: new[] { "NodeId", "VehicleTypeId" },
|
||||
unique: true);
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_NodeVehicleProperties_VehicleTypeId",
|
||||
table: "NodeVehicleProperties",
|
||||
column: "VehicleTypeId");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_StationInteractionNodes_NodeId",
|
||||
table: "StationInteractionNodes",
|
||||
column: "NodeId");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_StationInteractionNodes_StationId",
|
||||
table: "StationInteractionNodes",
|
||||
column: "StationId");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_StationInteractionNodes_StationId_NodeId",
|
||||
table: "StationInteractionNodes",
|
||||
columns: new[] { "StationId", "NodeId" },
|
||||
unique: true);
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_Stations_LevelId_StationId",
|
||||
table: "Stations",
|
||||
columns: new[] { "LevelId", "StationId" },
|
||||
unique: true);
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_Stations_StationId",
|
||||
table: "Stations",
|
||||
column: "StationId");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_VehicleTypes_IsActive",
|
||||
table: "VehicleTypes",
|
||||
column: "IsActive");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_VehicleTypes_VehicleTypeId",
|
||||
table: "VehicleTypes",
|
||||
column: "VehicleTypeId",
|
||||
unique: true);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropTable(
|
||||
name: "EdgeVehicleProperties");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "LayoutLevelEditorSettings");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "NodeVehicleProperties");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "StationInteractionNodes");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "Edges");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "VehicleTypes");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "Stations");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "Nodes");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "LayoutLevels");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "LayoutVersions");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "Layouts");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,702 @@
|
||||
// <auto-generated />
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||
using RobotNet10.MapManager.Data;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace RobotNet10.RobotApp.Data.Migrations.MapDb
|
||||
{
|
||||
[DbContext(typeof(MapDbContext))]
|
||||
partial class MapDbContextModelSnapshot : ModelSnapshot
|
||||
{
|
||||
protected override void BuildModel(ModelBuilder modelBuilder)
|
||||
{
|
||||
#pragma warning disable 612, 618
|
||||
modelBuilder.HasAnnotation("ProductVersion", "10.0.3");
|
||||
|
||||
modelBuilder.Entity("RobotNet10.MapManager.Data.Edge", b =>
|
||||
{
|
||||
b.Property<Guid>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<string>("EdgeDescription")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<string>("EdgeId")
|
||||
.IsRequired()
|
||||
.HasMaxLength(128)
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<string>("EdgeName")
|
||||
.HasMaxLength(256)
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<Guid>("EndNodeId")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<Guid>("LevelId")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<Guid>("StartNodeId")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("EdgeId");
|
||||
|
||||
b.HasIndex("EndNodeId");
|
||||
|
||||
b.HasIndex("StartNodeId");
|
||||
|
||||
b.HasIndex("LevelId", "EdgeId")
|
||||
.IsUnique();
|
||||
|
||||
b.ToTable("Edges", t =>
|
||||
{
|
||||
t.HasCheckConstraint("CK_Edges_DifferentNodes", "[StartNodeId] <> [EndNodeId]");
|
||||
});
|
||||
});
|
||||
|
||||
modelBuilder.Entity("RobotNet10.MapManager.Data.EdgeVehicleProperty", b =>
|
||||
{
|
||||
b.Property<Guid>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<string>("Actions")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<double?>("CorridorLeftWidth")
|
||||
.HasColumnType("REAL");
|
||||
|
||||
b.Property<int?>("CorridorRefPoint")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<double?>("CorridorRightWidth")
|
||||
.HasColumnType("REAL");
|
||||
|
||||
b.Property<Guid>("EdgeId")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<string>("LoadRestriction_LoadSetNames")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<bool?>("LoadRestriction_Loaded")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<bool?>("LoadRestriction_Unloaded")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<double?>("MaxHeight")
|
||||
.HasColumnType("REAL");
|
||||
|
||||
b.Property<double?>("MaxRotationSpeed")
|
||||
.HasColumnType("REAL");
|
||||
|
||||
b.Property<double?>("MaxSpeed")
|
||||
.HasColumnType("REAL");
|
||||
|
||||
b.Property<double?>("MinHeight")
|
||||
.HasColumnType("REAL");
|
||||
|
||||
b.Property<int?>("OrientationType")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<bool?>("RotationAllowed")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<int?>("RotationAtEndNodeAllowed")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<int?>("RotationAtStartNodeAllowed")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<double?>("TrajectoryControlPoint1X")
|
||||
.HasColumnType("REAL");
|
||||
|
||||
b.Property<double?>("TrajectoryControlPoint1Y")
|
||||
.HasColumnType("REAL");
|
||||
|
||||
b.Property<double?>("TrajectoryControlPoint2X")
|
||||
.HasColumnType("REAL");
|
||||
|
||||
b.Property<double?>("TrajectoryControlPoint2Y")
|
||||
.HasColumnType("REAL");
|
||||
|
||||
b.Property<int?>("TrajectoryDegree")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<double?>("VehicleOrientation")
|
||||
.HasColumnType("REAL");
|
||||
|
||||
b.Property<Guid>("VehicleTypeId")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("EdgeId");
|
||||
|
||||
b.HasIndex("VehicleTypeId");
|
||||
|
||||
b.HasIndex("EdgeId", "VehicleTypeId")
|
||||
.IsUnique();
|
||||
|
||||
b.ToTable("EdgeVehicleProperties");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("RobotNet10.MapManager.Data.Layout", b =>
|
||||
{
|
||||
b.Property<Guid>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<string>("CreatedBy")
|
||||
.HasMaxLength(256)
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<DateTime>("CreatedDate")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<string>("Description")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<bool>("IsActive")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<string>("LayoutId")
|
||||
.IsRequired()
|
||||
.HasMaxLength(128)
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<string>("LayoutName")
|
||||
.IsRequired()
|
||||
.HasMaxLength(256)
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<string>("ModifiedBy")
|
||||
.HasMaxLength(256)
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<DateTime>("ModifiedDate")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("IsActive");
|
||||
|
||||
b.HasIndex("LayoutId")
|
||||
.IsUnique();
|
||||
|
||||
b.ToTable("Layouts");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("RobotNet10.MapManager.Data.LayoutLevel", b =>
|
||||
{
|
||||
b.Property<Guid>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<string>("LayoutLevelId")
|
||||
.IsRequired()
|
||||
.HasMaxLength(64)
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<int>("LevelOrder")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<Guid>("VersionId")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("LevelOrder");
|
||||
|
||||
b.HasIndex("VersionId", "LayoutLevelId")
|
||||
.IsUnique();
|
||||
|
||||
b.ToTable("LayoutLevels");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("RobotNet10.MapManager.Data.LayoutLevelEditorSettings", b =>
|
||||
{
|
||||
b.Property<Guid>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<double?>("BoundsMaxX")
|
||||
.HasColumnType("REAL");
|
||||
|
||||
b.Property<double?>("BoundsMaxY")
|
||||
.HasColumnType("REAL");
|
||||
|
||||
b.Property<double?>("BoundsMinX")
|
||||
.HasColumnType("REAL");
|
||||
|
||||
b.Property<double?>("BoundsMinY")
|
||||
.HasColumnType("REAL");
|
||||
|
||||
b.Property<DateTime>("CreatedDate")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<double>("EdgeMinLengthCreate")
|
||||
.HasColumnType("REAL");
|
||||
|
||||
b.Property<bool>("EdgeNameAutoGenerate")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<double?>("ImageHeight")
|
||||
.HasColumnType("REAL");
|
||||
|
||||
b.Property<double?>("ImageWidth")
|
||||
.HasColumnType("REAL");
|
||||
|
||||
b.Property<Guid>("LevelId")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<DateTime>("ModifiedDate")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<bool>("NodeNameAutoGenerate")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<double>("NodeProximityRadius")
|
||||
.HasColumnType("REAL");
|
||||
|
||||
b.Property<double>("OriginX")
|
||||
.HasColumnType("REAL");
|
||||
|
||||
b.Property<double>("OriginY")
|
||||
.HasColumnType("REAL");
|
||||
|
||||
b.Property<double>("Resolution")
|
||||
.HasColumnType("REAL");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("LevelId")
|
||||
.IsUnique();
|
||||
|
||||
b.ToTable("LayoutLevelEditorSettings");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("RobotNet10.MapManager.Data.LayoutVersion", b =>
|
||||
{
|
||||
b.Property<Guid>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<string>("CreatedBy")
|
||||
.HasMaxLength(256)
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<DateTime>("CreatedDate")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<bool>("IsActive")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<string>("LayoutDescription")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<Guid>("LayoutId")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<string>("Version")
|
||||
.IsRequired()
|
||||
.HasMaxLength(32)
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("IsActive");
|
||||
|
||||
b.HasIndex("LayoutId", "Version")
|
||||
.IsUnique();
|
||||
|
||||
b.ToTable("LayoutVersions");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("RobotNet10.MapManager.Data.Node", b =>
|
||||
{
|
||||
b.Property<Guid>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<Guid>("LevelId")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<string>("MapId")
|
||||
.HasMaxLength(128)
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<string>("NodeDescription")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<string>("NodeId")
|
||||
.IsRequired()
|
||||
.HasMaxLength(128)
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<string>("NodeName")
|
||||
.HasMaxLength(256)
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<double>("X")
|
||||
.HasColumnType("REAL");
|
||||
|
||||
b.Property<double>("Y")
|
||||
.HasColumnType("REAL");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("MapId");
|
||||
|
||||
b.HasIndex("NodeId");
|
||||
|
||||
b.HasIndex("LevelId", "NodeId")
|
||||
.IsUnique();
|
||||
|
||||
b.HasIndex("X", "Y");
|
||||
|
||||
b.ToTable("Nodes");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("RobotNet10.MapManager.Data.NodeVehicleProperty", b =>
|
||||
{
|
||||
b.Property<Guid>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<string>("Actions")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<double?>("AllowedDeviationTheta")
|
||||
.HasColumnType("REAL");
|
||||
|
||||
b.Property<double?>("AllowedDeviationXY")
|
||||
.HasColumnType("REAL");
|
||||
|
||||
b.Property<Guid>("NodeId")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<double?>("Theta")
|
||||
.HasColumnType("REAL");
|
||||
|
||||
b.Property<Guid>("VehicleTypeId")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("NodeId");
|
||||
|
||||
b.HasIndex("VehicleTypeId");
|
||||
|
||||
b.HasIndex("NodeId", "VehicleTypeId")
|
||||
.IsUnique();
|
||||
|
||||
b.ToTable("NodeVehicleProperties");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("RobotNet10.MapManager.Data.Station", b =>
|
||||
{
|
||||
b.Property<Guid>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<Guid>("LevelId")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<string>("StationDescription")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<double?>("StationHeight")
|
||||
.HasColumnType("REAL");
|
||||
|
||||
b.Property<string>("StationId")
|
||||
.IsRequired()
|
||||
.HasMaxLength(128)
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<string>("StationName")
|
||||
.HasMaxLength(256)
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<double?>("Theta")
|
||||
.HasColumnType("REAL");
|
||||
|
||||
b.Property<double>("X")
|
||||
.HasColumnType("REAL");
|
||||
|
||||
b.Property<double>("Y")
|
||||
.HasColumnType("REAL");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("StationId");
|
||||
|
||||
b.HasIndex("LevelId", "StationId")
|
||||
.IsUnique();
|
||||
|
||||
b.ToTable("Stations");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("RobotNet10.MapManager.Data.StationInteractionNode", b =>
|
||||
{
|
||||
b.Property<Guid>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<Guid>("NodeId")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<Guid>("StationId")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("NodeId");
|
||||
|
||||
b.HasIndex("StationId");
|
||||
|
||||
b.HasIndex("StationId", "NodeId")
|
||||
.IsUnique();
|
||||
|
||||
b.ToTable("StationInteractionNodes");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("RobotNet10.MapManager.Data.VehicleType", b =>
|
||||
{
|
||||
b.Property<Guid>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<string>("Actions")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<DateTime>("CreatedDate")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<string>("Description")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<bool>("IsActive")
|
||||
.HasColumnType("INTEGER");
|
||||
|
||||
b.Property<string>("Specifications")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<string>("VehicleTypeId")
|
||||
.IsRequired()
|
||||
.HasMaxLength(64)
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<string>("VehicleTypeName")
|
||||
.IsRequired()
|
||||
.HasMaxLength(256)
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("IsActive");
|
||||
|
||||
b.HasIndex("VehicleTypeId")
|
||||
.IsUnique();
|
||||
|
||||
b.ToTable("VehicleTypes");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("RobotNet10.MapManager.Data.Edge", b =>
|
||||
{
|
||||
b.HasOne("RobotNet10.MapManager.Data.Node", "EndNode")
|
||||
.WithMany("IncomingEdges")
|
||||
.HasForeignKey("EndNodeId")
|
||||
.OnDelete(DeleteBehavior.Restrict)
|
||||
.IsRequired();
|
||||
|
||||
b.HasOne("RobotNet10.MapManager.Data.LayoutLevel", "Level")
|
||||
.WithMany("Edges")
|
||||
.HasForeignKey("LevelId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.HasOne("RobotNet10.MapManager.Data.Node", "StartNode")
|
||||
.WithMany("OutgoingEdges")
|
||||
.HasForeignKey("StartNodeId")
|
||||
.OnDelete(DeleteBehavior.Restrict)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("EndNode");
|
||||
|
||||
b.Navigation("Level");
|
||||
|
||||
b.Navigation("StartNode");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("RobotNet10.MapManager.Data.EdgeVehicleProperty", b =>
|
||||
{
|
||||
b.HasOne("RobotNet10.MapManager.Data.Edge", "Edge")
|
||||
.WithMany("VehicleProperties")
|
||||
.HasForeignKey("EdgeId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.HasOne("RobotNet10.MapManager.Data.VehicleType", "VehicleType")
|
||||
.WithMany("EdgeVehicleProperties")
|
||||
.HasForeignKey("VehicleTypeId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("Edge");
|
||||
|
||||
b.Navigation("VehicleType");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("RobotNet10.MapManager.Data.LayoutLevel", b =>
|
||||
{
|
||||
b.HasOne("RobotNet10.MapManager.Data.LayoutVersion", "Version")
|
||||
.WithMany("Levels")
|
||||
.HasForeignKey("VersionId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("Version");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("RobotNet10.MapManager.Data.LayoutLevelEditorSettings", b =>
|
||||
{
|
||||
b.HasOne("RobotNet10.MapManager.Data.LayoutLevel", "Level")
|
||||
.WithOne("EditorSettings")
|
||||
.HasForeignKey("RobotNet10.MapManager.Data.LayoutLevelEditorSettings", "LevelId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("Level");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("RobotNet10.MapManager.Data.LayoutVersion", b =>
|
||||
{
|
||||
b.HasOne("RobotNet10.MapManager.Data.Layout", "Layout")
|
||||
.WithMany("Versions")
|
||||
.HasForeignKey("LayoutId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("Layout");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("RobotNet10.MapManager.Data.Node", b =>
|
||||
{
|
||||
b.HasOne("RobotNet10.MapManager.Data.LayoutLevel", "Level")
|
||||
.WithMany("Nodes")
|
||||
.HasForeignKey("LevelId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("Level");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("RobotNet10.MapManager.Data.NodeVehicleProperty", b =>
|
||||
{
|
||||
b.HasOne("RobotNet10.MapManager.Data.Node", "Node")
|
||||
.WithMany("VehicleProperties")
|
||||
.HasForeignKey("NodeId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.HasOne("RobotNet10.MapManager.Data.VehicleType", "VehicleType")
|
||||
.WithMany("NodeVehicleProperties")
|
||||
.HasForeignKey("VehicleTypeId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("Node");
|
||||
|
||||
b.Navigation("VehicleType");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("RobotNet10.MapManager.Data.Station", b =>
|
||||
{
|
||||
b.HasOne("RobotNet10.MapManager.Data.LayoutLevel", "Level")
|
||||
.WithMany("Stations")
|
||||
.HasForeignKey("LevelId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("Level");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("RobotNet10.MapManager.Data.StationInteractionNode", b =>
|
||||
{
|
||||
b.HasOne("RobotNet10.MapManager.Data.Node", "Node")
|
||||
.WithMany("StationInteractions")
|
||||
.HasForeignKey("NodeId")
|
||||
.OnDelete(DeleteBehavior.Restrict)
|
||||
.IsRequired();
|
||||
|
||||
b.HasOne("RobotNet10.MapManager.Data.Station", "Station")
|
||||
.WithMany("InteractionNodes")
|
||||
.HasForeignKey("StationId")
|
||||
.OnDelete(DeleteBehavior.Cascade)
|
||||
.IsRequired();
|
||||
|
||||
b.Navigation("Node");
|
||||
|
||||
b.Navigation("Station");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("RobotNet10.MapManager.Data.Edge", b =>
|
||||
{
|
||||
b.Navigation("VehicleProperties");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("RobotNet10.MapManager.Data.Layout", b =>
|
||||
{
|
||||
b.Navigation("Versions");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("RobotNet10.MapManager.Data.LayoutLevel", b =>
|
||||
{
|
||||
b.Navigation("Edges");
|
||||
|
||||
b.Navigation("EditorSettings");
|
||||
|
||||
b.Navigation("Nodes");
|
||||
|
||||
b.Navigation("Stations");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("RobotNet10.MapManager.Data.LayoutVersion", b =>
|
||||
{
|
||||
b.Navigation("Levels");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("RobotNet10.MapManager.Data.Node", b =>
|
||||
{
|
||||
b.Navigation("IncomingEdges");
|
||||
|
||||
b.Navigation("OutgoingEdges");
|
||||
|
||||
b.Navigation("StationInteractions");
|
||||
|
||||
b.Navigation("VehicleProperties");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("RobotNet10.MapManager.Data.Station", b =>
|
||||
{
|
||||
b.Navigation("InteractionNodes");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("RobotNet10.MapManager.Data.VehicleType", b =>
|
||||
{
|
||||
b.Navigation("EdgeVehicleProperties");
|
||||
|
||||
b.Navigation("NodeVehicleProperties");
|
||||
});
|
||||
#pragma warning restore 612, 618
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user