580 lines
21 KiB
C#
580 lines
21 KiB
C#
// <auto-generated />
|
|
using System;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|
using RobotApp.Data;
|
|
|
|
#nullable disable
|
|
|
|
namespace RobotApp.Migrations
|
|
{
|
|
[DbContext(typeof(ApplicationDbContext))]
|
|
partial class ApplicationDbContextModelSnapshot : ModelSnapshot
|
|
{
|
|
protected override void BuildModel(ModelBuilder modelBuilder)
|
|
{
|
|
#pragma warning disable 612, 618
|
|
modelBuilder.HasAnnotation("ProductVersion", "9.0.9");
|
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<string>", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("ClaimType")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("ClaimValue")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("RoleId")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("RoleId");
|
|
|
|
b.ToTable("AspNetRoleClaims", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<string>", b =>
|
|
{
|
|
b.Property<int>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("ClaimType")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("ClaimValue")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("UserId")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("UserId");
|
|
|
|
b.ToTable("AspNetUserClaims", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<string>", b =>
|
|
{
|
|
b.Property<string>("LoginProvider")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("ProviderKey")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("ProviderDisplayName")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("UserId")
|
|
.IsRequired()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("LoginProvider", "ProviderKey");
|
|
|
|
b.HasIndex("UserId");
|
|
|
|
b.ToTable("AspNetUserLogins", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole<string>", b =>
|
|
{
|
|
b.Property<string>("UserId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("RoleId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("UserId", "RoleId");
|
|
|
|
b.HasIndex("RoleId");
|
|
|
|
b.ToTable("AspNetUserRoles", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<string>", b =>
|
|
{
|
|
b.Property<string>("UserId")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("LoginProvider")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Name")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Value")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("UserId", "LoginProvider", "Name");
|
|
|
|
b.ToTable("AspNetUserTokens", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("RobotApp.Data.ApplicationRole", b =>
|
|
{
|
|
b.Property<string>("Id")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
.IsConcurrencyToken()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Name")
|
|
.HasMaxLength(256)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("NormalizedName")
|
|
.HasMaxLength(256)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("NormalizedName")
|
|
.IsUnique()
|
|
.HasDatabaseName("RoleNameIndex");
|
|
|
|
b.ToTable("AspNetRoles", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("RobotApp.Data.ApplicationUser", b =>
|
|
{
|
|
b.Property<string>("Id")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<int>("AccessFailedCount")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("ConcurrencyStamp")
|
|
.IsConcurrencyToken()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("Email")
|
|
.HasMaxLength(256)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<bool>("EmailConfirmed")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<bool>("LockoutEnabled")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<DateTimeOffset?>("LockoutEnd")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("NormalizedEmail")
|
|
.HasMaxLength(256)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("NormalizedUserName")
|
|
.HasMaxLength(256)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("PasswordHash")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<string>("PhoneNumber")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<bool>("PhoneNumberConfirmed")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("SecurityStamp")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<bool>("TwoFactorEnabled")
|
|
.HasColumnType("INTEGER");
|
|
|
|
b.Property<string>("UserName")
|
|
.HasMaxLength(256)
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.HasIndex("NormalizedEmail")
|
|
.HasDatabaseName("EmailIndex");
|
|
|
|
b.HasIndex("NormalizedUserName")
|
|
.IsUnique()
|
|
.HasDatabaseName("UserNameIndex");
|
|
|
|
b.ToTable("AspNetUsers", (string)null);
|
|
});
|
|
|
|
modelBuilder.Entity("RobotApp.Data.RobotConfig", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("Id");
|
|
|
|
b.Property<string>("ConfigName")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("nvarchar(64)")
|
|
.HasColumnName("ConfigName");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreatedAt");
|
|
|
|
b.Property<string>("Description")
|
|
.HasMaxLength(500)
|
|
.HasColumnType("ntext")
|
|
.HasColumnName("Description");
|
|
|
|
b.Property<double>("Height")
|
|
.HasColumnType("float")
|
|
.HasColumnName("Height");
|
|
|
|
b.Property<bool>("IsActive")
|
|
.HasColumnType("bit")
|
|
.HasColumnName("IsActive");
|
|
|
|
b.Property<double>("Length")
|
|
.HasColumnType("float")
|
|
.HasColumnName("Length");
|
|
|
|
b.Property<int>("NavigationType")
|
|
.HasColumnType("int")
|
|
.HasColumnName("NavigationType");
|
|
|
|
b.Property<double>("RadiusWheel")
|
|
.HasColumnType("float")
|
|
.HasColumnName("RadiusWheel");
|
|
|
|
b.Property<DateTime>("UpdatedAt")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("UpdatedAt");
|
|
|
|
b.Property<double>("Width")
|
|
.HasColumnType("float")
|
|
.HasColumnName("Width");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("RobotConfig");
|
|
});
|
|
|
|
modelBuilder.Entity("RobotApp.Data.RobotPlcConfig", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("Id");
|
|
|
|
b.Property<string>("ConfigName")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("nvarchar(64)")
|
|
.HasColumnName("ConfigName");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreatedAt");
|
|
|
|
b.Property<string>("Description")
|
|
.HasMaxLength(500)
|
|
.HasColumnType("ntext")
|
|
.HasColumnName("Description");
|
|
|
|
b.Property<bool>("IsActive")
|
|
.HasColumnType("bit")
|
|
.HasColumnName("IsActive");
|
|
|
|
b.Property<string>("PLCAddress")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(64)")
|
|
.HasColumnName("PLCAddress");
|
|
|
|
b.Property<int>("PLCPort")
|
|
.HasColumnType("int")
|
|
.HasColumnName("PLCPort");
|
|
|
|
b.Property<byte>("PLCUnitId")
|
|
.HasColumnType("tinyint")
|
|
.HasColumnName("PLCUnitId");
|
|
|
|
b.Property<DateTime>("UpdatedAt")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("UpdatedAt");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("RobotPlcConfig");
|
|
});
|
|
|
|
modelBuilder.Entity("RobotApp.Data.RobotSafetyConfig", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("Id");
|
|
|
|
b.Property<string>("ConfigName")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("nvarchar(64)")
|
|
.HasColumnName("ConfigName");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreatedAt");
|
|
|
|
b.Property<string>("Description")
|
|
.HasMaxLength(500)
|
|
.HasColumnType("ntext")
|
|
.HasColumnName("Description");
|
|
|
|
b.Property<bool>("IsActive")
|
|
.HasColumnType("bit")
|
|
.HasColumnName("IsActive");
|
|
|
|
b.Property<double>("SafetySpeedFast")
|
|
.HasColumnType("float")
|
|
.HasColumnName("SafetySpeedFast");
|
|
|
|
b.Property<double>("SafetySpeedMedium")
|
|
.HasColumnType("float")
|
|
.HasColumnName("SafetySpeedMedium");
|
|
|
|
b.Property<double>("SafetySpeedNormal")
|
|
.HasColumnType("float")
|
|
.HasColumnName("SafetySpeedNormal");
|
|
|
|
b.Property<double>("SafetySpeedOptimal")
|
|
.HasColumnType("float")
|
|
.HasColumnName("SafetySpeedOptimal");
|
|
|
|
b.Property<double>("SafetySpeedSlow")
|
|
.HasColumnType("float")
|
|
.HasColumnName("SafetySpeedSlow");
|
|
|
|
b.Property<double>("SafetySpeedVeryFast")
|
|
.HasColumnType("float")
|
|
.HasColumnName("SafetySpeedVeryFast");
|
|
|
|
b.Property<double>("SafetySpeedVerySlow")
|
|
.HasColumnType("float")
|
|
.HasColumnName("SafetySpeedVerySlow");
|
|
|
|
b.Property<DateTime>("UpdatedAt")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("UpdatedAt");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("RobotSafetyConfig");
|
|
});
|
|
|
|
modelBuilder.Entity("RobotApp.Data.RobotSimulationConfig", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("Id");
|
|
|
|
b.Property<string>("ConfigName")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("nvarchar(64)")
|
|
.HasColumnName("ConfigName");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreatedAt");
|
|
|
|
b.Property<string>("Description")
|
|
.HasMaxLength(500)
|
|
.HasColumnType("ntext")
|
|
.HasColumnName("Description");
|
|
|
|
b.Property<bool>("EnableSimulation")
|
|
.HasColumnType("bit")
|
|
.HasColumnName("EnableSimulation");
|
|
|
|
b.Property<bool>("IsActive")
|
|
.HasColumnType("bit")
|
|
.HasColumnName("IsActive");
|
|
|
|
b.Property<double>("SimulationAcceleration")
|
|
.HasColumnType("float")
|
|
.HasColumnName("SimulationAcceleration");
|
|
|
|
b.Property<double>("SimulationDeceleration")
|
|
.HasColumnType("float")
|
|
.HasColumnName("SimulationDeceleration");
|
|
|
|
b.Property<double>("SimulationMaxAngularVelocity")
|
|
.HasColumnType("float")
|
|
.HasColumnName("SimulationMaxAngularVelocity");
|
|
|
|
b.Property<double>("SimulationMaxVelocity")
|
|
.HasColumnType("float")
|
|
.HasColumnName("SimulationMaxVelocity");
|
|
|
|
b.Property<DateTime>("UpdatedAt")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("UpdatedAt");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("RobotSimulationConfig");
|
|
});
|
|
|
|
modelBuilder.Entity("RobotApp.Data.RobotVDA5050Config", b =>
|
|
{
|
|
b.Property<Guid>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("uniqueidentifier")
|
|
.HasColumnName("Id");
|
|
|
|
b.Property<string>("ConfigName")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("nvarchar(64)")
|
|
.HasColumnName("ConfigName");
|
|
|
|
b.Property<DateTime>("CreatedAt")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("CreatedAt");
|
|
|
|
b.Property<string>("Description")
|
|
.HasMaxLength(500)
|
|
.HasColumnType("ntext")
|
|
.HasColumnName("Description");
|
|
|
|
b.Property<bool>("IsActive")
|
|
.HasColumnType("bit")
|
|
.HasColumnName("IsActive");
|
|
|
|
b.Property<string>("SerialNumber")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(64)")
|
|
.HasColumnName("SerialNumber");
|
|
|
|
b.Property<DateTime>("UpdatedAt")
|
|
.HasColumnType("datetime2")
|
|
.HasColumnName("UpdatedAt");
|
|
|
|
b.Property<string>("VDA5050CA")
|
|
.HasColumnType("nvarchar(64)")
|
|
.HasColumnName("VDA5050_CA");
|
|
|
|
b.Property<string>("VDA5050Cer")
|
|
.HasColumnType("nvarchar(64)")
|
|
.HasColumnName("VDA5050_Cer");
|
|
|
|
b.Property<bool>("VDA5050EnablePassword")
|
|
.HasColumnType("bit")
|
|
.HasColumnName("VDA5050_EnablePassword");
|
|
|
|
b.Property<bool>("VDA5050EnableTls")
|
|
.HasColumnType("bit")
|
|
.HasColumnName("VDA5050_EnableTls");
|
|
|
|
b.Property<string>("VDA5050HostServer")
|
|
.HasMaxLength(100)
|
|
.HasColumnType("nvarchar(64)")
|
|
.HasColumnName("VDA5050_HostServer");
|
|
|
|
b.Property<string>("VDA5050Key")
|
|
.HasColumnType("nvarchar(64)")
|
|
.HasColumnName("VDA5050_Key");
|
|
|
|
b.Property<string>("VDA5050Manufacturer")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(64)")
|
|
.HasColumnName("VDA5050_Manufacturer");
|
|
|
|
b.Property<string>("VDA5050Password")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(64)")
|
|
.HasColumnName("VDA5050_Password");
|
|
|
|
b.Property<int>("VDA5050Port")
|
|
.HasColumnType("int")
|
|
.HasColumnName("VDA5050_Port");
|
|
|
|
b.Property<int>("VDA5050PublishRepeat")
|
|
.HasColumnType("int")
|
|
.HasColumnName("VDA5050_PublishRepeat");
|
|
|
|
b.Property<string>("VDA5050TopicPrefix")
|
|
.HasMaxLength(64)
|
|
.HasColumnType("nvarchar(64)")
|
|
.HasColumnName("VDA5050_TopicPrefix");
|
|
|
|
b.Property<string>("VDA5050UserName")
|
|
.HasMaxLength(50)
|
|
.HasColumnType("nvarchar(64)")
|
|
.HasColumnName("VDA5050_UserName");
|
|
|
|
b.Property<string>("VDA5050Version")
|
|
.HasMaxLength(20)
|
|
.HasColumnType("nvarchar(64)")
|
|
.HasColumnName("VDA5050_Version");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("RobotVDA5050Config");
|
|
});
|
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<string>", b =>
|
|
{
|
|
b.HasOne("RobotApp.Data.ApplicationRole", null)
|
|
.WithMany()
|
|
.HasForeignKey("RoleId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
});
|
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<string>", b =>
|
|
{
|
|
b.HasOne("RobotApp.Data.ApplicationUser", null)
|
|
.WithMany()
|
|
.HasForeignKey("UserId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
});
|
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<string>", b =>
|
|
{
|
|
b.HasOne("RobotApp.Data.ApplicationUser", null)
|
|
.WithMany()
|
|
.HasForeignKey("UserId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
});
|
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole<string>", b =>
|
|
{
|
|
b.HasOne("RobotApp.Data.ApplicationRole", null)
|
|
.WithMany()
|
|
.HasForeignKey("RoleId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
|
|
b.HasOne("RobotApp.Data.ApplicationUser", null)
|
|
.WithMany()
|
|
.HasForeignKey("UserId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
});
|
|
|
|
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<string>", b =>
|
|
{
|
|
b.HasOne("RobotApp.Data.ApplicationUser", null)
|
|
.WithMany()
|
|
.HasForeignKey("UserId")
|
|
.OnDelete(DeleteBehavior.Cascade)
|
|
.IsRequired();
|
|
});
|
|
#pragma warning restore 612, 618
|
|
}
|
|
}
|
|
}
|