< Summary

Information
Class: LGDXRobotCloud.Data.Migrations.LgdxContextModelSnapshot
Assembly: LGDXRobotCloud.Data
File(s): /builds/yukaitung/lgdxrobot2-cloud/LGDXRobotCloud.Data/Migrations/LgdxContextModelSnapshot.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 1001
Coverable lines: 1001
Total lines: 1061
Line coverage: 0%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
BuildModel(...)100%210%

File(s)

/builds/yukaitung/lgdxrobot2-cloud/LGDXRobotCloud.Data/Migrations/LgdxContextModelSnapshot.cs

#LineLine coverage
 1// <auto-generated />
 2using System;
 3using LGDXRobotCloud.Data.DbContexts;
 4using Microsoft.EntityFrameworkCore;
 5using Microsoft.EntityFrameworkCore.Infrastructure;
 6using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
 7using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
 8
 9#nullable disable
 10
 11namespace LGDXRobotCloud.Data.Migrations
 12{
 13    [DbContext(typeof(LgdxContext))]
 14    partial class LgdxContextModelSnapshot : ModelSnapshot
 15    {
 16        protected override void BuildModel(ModelBuilder modelBuilder)
 017        {
 18#pragma warning disable 612, 618
 019            modelBuilder
 020                .HasAnnotation("ProductVersion", "9.0.1")
 021                .HasAnnotation("Relational:MaxIdentifierLength", 63);
 22
 023            NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
 24
 025            modelBuilder.Entity("LGDXRobotCloud.Data.Entities.ApiKey", b =>
 026                {
 027                    b.Property<int>("Id")
 028                        .ValueGeneratedOnAdd()
 029                        .HasColumnType("integer");
 030
 031                    NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
 032
 033                    b.Property<bool>("IsThirdParty")
 034                        .HasColumnType("boolean");
 035
 036                    b.Property<string>("Name")
 037                        .IsRequired()
 038                        .HasMaxLength(50)
 039                        .HasColumnType("character varying(50)");
 040
 041                    b.Property<string>("Secret")
 042                        .IsRequired()
 043                        .HasMaxLength(200)
 044                        .HasColumnType("character varying(200)");
 045
 046                    b.HasKey("Id");
 047
 048                    b.ToTable("Administration.ApiKeys");
 049                });
 50
 051            modelBuilder.Entity("LGDXRobotCloud.Data.Entities.AutoTask", b =>
 052                {
 053                    b.Property<int>("Id")
 054                        .ValueGeneratedOnAdd()
 055                        .HasColumnType("integer");
 056
 057                    NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
 058
 059                    b.Property<Guid?>("AssignedRobotId")
 060                        .HasColumnType("uuid");
 061
 062                    b.Property<int>("CurrentProgressId")
 063                        .HasColumnType("integer");
 064
 065                    b.Property<int?>("CurrentProgressOrder")
 066                        .HasColumnType("integer");
 067
 068                    b.Property<int?>("FlowId")
 069                        .HasColumnType("integer");
 070
 071                    b.Property<string>("Name")
 072                        .HasMaxLength(50)
 073                        .HasColumnType("character varying(50)");
 074
 075                    b.Property<string>("NextToken")
 076                        .HasMaxLength(32)
 077                        .HasColumnType("character varying(32)");
 078
 079                    b.Property<int>("Priority")
 080                        .HasColumnType("integer");
 081
 082                    b.Property<int>("RealmId")
 083                        .HasColumnType("integer");
 084
 085                    b.HasKey("Id");
 086
 087                    b.HasIndex("AssignedRobotId");
 088
 089                    b.HasIndex("CurrentProgressId");
 090
 091                    b.HasIndex("FlowId");
 092
 093                    b.HasIndex("RealmId", "AssignedRobotId");
 094
 095                    b.ToTable("Automation.AutoTasks");
 096                });
 97
 098            modelBuilder.Entity("LGDXRobotCloud.Data.Entities.AutoTaskDetail", b =>
 099                {
 0100                    b.Property<int>("Id")
 0101                        .ValueGeneratedOnAdd()
 0102                        .HasColumnType("integer");
 0103
 0104                    NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
 0105
 0106                    b.Property<int>("AutoTaskId")
 0107                        .HasColumnType("integer");
 0108
 0109                    b.Property<double?>("CustomRotation")
 0110                        .HasColumnType("double precision");
 0111
 0112                    b.Property<double?>("CustomX")
 0113                        .HasColumnType("double precision");
 0114
 0115                    b.Property<double?>("CustomY")
 0116                        .HasColumnType("double precision");
 0117
 0118                    b.Property<int>("Order")
 0119                        .HasColumnType("integer");
 0120
 0121                    b.Property<int?>("WaypointId")
 0122                        .HasColumnType("integer");
 0123
 0124                    b.HasKey("Id");
 0125
 0126                    b.HasIndex("AutoTaskId");
 0127
 0128                    b.HasIndex("Order");
 0129
 0130                    b.HasIndex("WaypointId");
 0131
 0132                    b.ToTable("Automation.AutoTaskDetails");
 0133                });
 134
 0135            modelBuilder.Entity("LGDXRobotCloud.Data.Entities.Flow", b =>
 0136                {
 0137                    b.Property<int>("Id")
 0138                        .ValueGeneratedOnAdd()
 0139                        .HasColumnType("integer");
 0140
 0141                    NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
 0142
 0143                    b.Property<string>("Name")
 0144                        .IsRequired()
 0145                        .HasMaxLength(50)
 0146                        .HasColumnType("character varying(50)");
 0147
 0148                    b.HasKey("Id");
 0149
 0150                    b.ToTable("Automation.Flows");
 0151                });
 152
 0153            modelBuilder.Entity("LGDXRobotCloud.Data.Entities.FlowDetail", b =>
 0154                {
 0155                    b.Property<int>("Id")
 0156                        .ValueGeneratedOnAdd()
 0157                        .HasColumnType("integer");
 0158
 0159                    NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
 0160
 0161                    b.Property<int>("AutoTaskNextControllerId")
 0162                        .HasColumnType("integer");
 0163
 0164                    b.Property<int>("FlowId")
 0165                        .HasColumnType("integer");
 0166
 0167                    b.Property<int>("Order")
 0168                        .HasColumnType("integer");
 0169
 0170                    b.Property<int>("ProgressId")
 0171                        .HasColumnType("integer");
 0172
 0173                    b.Property<int?>("TriggerId")
 0174                        .HasColumnType("integer");
 0175
 0176                    b.HasKey("Id");
 0177
 0178                    b.HasIndex("FlowId");
 0179
 0180                    b.HasIndex("Order");
 0181
 0182                    b.HasIndex("ProgressId");
 0183
 0184                    b.HasIndex("TriggerId");
 0185
 0186                    b.ToTable("Automation.FlowDetails");
 0187                });
 188
 0189            modelBuilder.Entity("LGDXRobotCloud.Data.Entities.LgdxRole", b =>
 0190                {
 0191                    b.Property<string>("Id")
 0192                        .HasColumnType("text");
 0193
 0194                    b.Property<string>("ConcurrencyStamp")
 0195                        .IsConcurrencyToken()
 0196                        .HasColumnType("text");
 0197
 0198                    b.Property<string>("Description")
 0199                        .HasColumnType("text");
 0200
 0201                    b.Property<string>("Name")
 0202                        .HasMaxLength(256)
 0203                        .HasColumnType("character varying(256)");
 0204
 0205                    b.Property<string>("NormalizedName")
 0206                        .HasMaxLength(256)
 0207                        .HasColumnType("character varying(256)");
 0208
 0209                    b.HasKey("Id");
 0210
 0211                    b.HasIndex("NormalizedName")
 0212                        .IsUnique()
 0213                        .HasDatabaseName("RoleNameIndex");
 0214
 0215                    b.ToTable("AspNetRoles", (string)null);
 0216                });
 217
 0218            modelBuilder.Entity("LGDXRobotCloud.Data.Entities.LgdxUser", b =>
 0219                {
 0220                    b.Property<string>("Id")
 0221                        .HasColumnType("text");
 0222
 0223                    b.Property<int>("AccessFailedCount")
 0224                        .HasColumnType("integer");
 0225
 0226                    b.Property<string>("ConcurrencyStamp")
 0227                        .IsConcurrencyToken()
 0228                        .HasColumnType("text");
 0229
 0230                    b.Property<string>("Email")
 0231                        .HasMaxLength(256)
 0232                        .HasColumnType("character varying(256)");
 0233
 0234                    b.Property<bool>("EmailConfirmed")
 0235                        .HasColumnType("boolean");
 0236
 0237                    b.Property<bool>("LockoutEnabled")
 0238                        .HasColumnType("boolean");
 0239
 0240                    b.Property<DateTimeOffset?>("LockoutEnd")
 0241                        .HasColumnType("timestamp with time zone");
 0242
 0243                    b.Property<string>("Name")
 0244                        .HasColumnType("text");
 0245
 0246                    b.Property<string>("NormalizedEmail")
 0247                        .HasMaxLength(256)
 0248                        .HasColumnType("character varying(256)");
 0249
 0250                    b.Property<string>("NormalizedUserName")
 0251                        .HasMaxLength(256)
 0252                        .HasColumnType("character varying(256)");
 0253
 0254                    b.Property<string>("PasswordHash")
 0255                        .HasColumnType("text");
 0256
 0257                    b.Property<string>("PhoneNumber")
 0258                        .HasColumnType("text");
 0259
 0260                    b.Property<bool>("PhoneNumberConfirmed")
 0261                        .HasColumnType("boolean");
 0262
 0263                    b.Property<string>("RefreshTokenHash")
 0264                        .HasMaxLength(64)
 0265                        .HasColumnType("character varying(64)");
 0266
 0267                    b.Property<string>("SecurityStamp")
 0268                        .HasColumnType("text");
 0269
 0270                    b.Property<bool>("TwoFactorEnabled")
 0271                        .HasColumnType("boolean");
 0272
 0273                    b.Property<string>("UserName")
 0274                        .HasMaxLength(256)
 0275                        .HasColumnType("character varying(256)");
 0276
 0277                    b.HasKey("Id");
 0278
 0279                    b.HasIndex("NormalizedEmail")
 0280                        .HasDatabaseName("EmailIndex");
 0281
 0282                    b.HasIndex("NormalizedUserName")
 0283                        .IsUnique()
 0284                        .HasDatabaseName("UserNameIndex");
 0285
 0286                    b.ToTable("AspNetUsers", (string)null);
 0287                });
 288
 0289            modelBuilder.Entity("LGDXRobotCloud.Data.Entities.Progress", b =>
 0290                {
 0291                    b.Property<int>("Id")
 0292                        .ValueGeneratedOnAdd()
 0293                        .HasColumnType("integer");
 0294
 0295                    NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
 0296
 0297                    b.Property<string>("Name")
 0298                        .IsRequired()
 0299                        .HasMaxLength(50)
 0300                        .HasColumnType("character varying(50)");
 0301
 0302                    b.Property<bool>("Reserved")
 0303                        .HasColumnType("boolean");
 0304
 0305                    b.Property<bool>("System")
 0306                        .HasColumnType("boolean");
 0307
 0308                    b.HasKey("Id");
 0309
 0310                    b.ToTable("Automation.Progresses");
 0311
 0312                    b.HasData(
 0313                        new
 0314                        {
 0315                            Id = 1,
 0316                            Name = "Template",
 0317                            Reserved = true,
 0318                            System = true
 0319                        },
 0320                        new
 0321                        {
 0322                            Id = 2,
 0323                            Name = "Waiting",
 0324                            Reserved = true,
 0325                            System = true
 0326                        },
 0327                        new
 0328                        {
 0329                            Id = 3,
 0330                            Name = "Completed",
 0331                            Reserved = true,
 0332                            System = true
 0333                        },
 0334                        new
 0335                        {
 0336                            Id = 4,
 0337                            Name = "Aborted",
 0338                            Reserved = true,
 0339                            System = true
 0340                        },
 0341                        new
 0342                        {
 0343                            Id = 5,
 0344                            Name = "Starting",
 0345                            Reserved = false,
 0346                            System = true
 0347                        },
 0348                        new
 0349                        {
 0350                            Id = 6,
 0351                            Name = "Loading",
 0352                            Reserved = false,
 0353                            System = true
 0354                        },
 0355                        new
 0356                        {
 0357                            Id = 7,
 0358                            Name = "PreMoving",
 0359                            Reserved = false,
 0360                            System = true
 0361                        },
 0362                        new
 0363                        {
 0364                            Id = 8,
 0365                            Name = "Moving",
 0366                            Reserved = false,
 0367                            System = true
 0368                        },
 0369                        new
 0370                        {
 0371                            Id = 9,
 0372                            Name = "Unloading",
 0373                            Reserved = false,
 0374                            System = true
 0375                        },
 0376                        new
 0377                        {
 0378                            Id = 10,
 0379                            Name = "Completing",
 0380                            Reserved = false,
 0381                            System = true
 0382                        },
 0383                        new
 0384                        {
 0385                            Id = 99,
 0386                            Name = "Reserved",
 0387                            Reserved = true,
 0388                            System = true
 0389                        });
 0390                });
 391
 0392            modelBuilder.Entity("LGDXRobotCloud.Data.Entities.Realm", b =>
 0393                {
 0394                    b.Property<int>("Id")
 0395                        .ValueGeneratedOnAdd()
 0396                        .HasColumnType("integer");
 0397
 0398                    NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
 0399
 0400                    b.Property<string>("Description")
 0401                        .HasMaxLength(200)
 0402                        .HasColumnType("character varying(200)");
 0403
 0404                    b.Property<byte[]>("Image")
 0405                        .IsRequired()
 0406                        .HasColumnType("bytea");
 0407
 0408                    b.Property<string>("Name")
 0409                        .IsRequired()
 0410                        .HasMaxLength(50)
 0411                        .HasColumnType("character varying(50)");
 0412
 0413                    b.Property<double>("OriginRotation")
 0414                        .HasColumnType("double precision");
 0415
 0416                    b.Property<double>("OriginX")
 0417                        .HasColumnType("double precision");
 0418
 0419                    b.Property<double>("OriginY")
 0420                        .HasColumnType("double precision");
 0421
 0422                    b.Property<double>("Resolution")
 0423                        .HasColumnType("double precision");
 0424
 0425                    b.HasKey("Id");
 0426
 0427                    b.ToTable("Navigation.Realms");
 0428
 0429                    b.HasData(
 0430                        new
 0431                        {
 0432                            Id = 1,
 0433                            Description = "Please update this realm",
 0434                            Image = new byte[0],
 0435                            Name = "First Realm",
 0436                            OriginRotation = 0.0,
 0437                            OriginX = 0.0,
 0438                            OriginY = 0.0,
 0439                            Resolution = 0.0
 0440                        });
 0441                });
 442
 0443            modelBuilder.Entity("LGDXRobotCloud.Data.Entities.Robot", b =>
 0444                {
 0445                    b.Property<Guid>("Id")
 0446                        .ValueGeneratedOnAdd()
 0447                        .HasColumnType("uuid");
 0448
 0449                    b.Property<bool>("IsProtectingHardwareSerialNumber")
 0450                        .HasColumnType("boolean");
 0451
 0452                    b.Property<bool>("IsRealtimeExchange")
 0453                        .HasColumnType("boolean");
 0454
 0455                    b.Property<string>("Name")
 0456                        .IsRequired()
 0457                        .HasMaxLength(50)
 0458                        .HasColumnType("character varying(50)");
 0459
 0460                    b.Property<int>("RealmId")
 0461                        .HasColumnType("integer");
 0462
 0463                    b.HasKey("Id");
 0464
 0465                    b.HasIndex("RealmId");
 0466
 0467                    b.ToTable("Navigation.Robots");
 0468                });
 469
 0470            modelBuilder.Entity("LGDXRobotCloud.Data.Entities.RobotCertificate", b =>
 0471                {
 0472                    b.Property<Guid>("Id")
 0473                        .ValueGeneratedOnAdd()
 0474                        .HasColumnType("uuid");
 0475
 0476                    b.Property<DateTime>("NotAfter")
 0477                        .HasPrecision(0)
 0478                        .HasColumnType("timestamp(0) with time zone");
 0479
 0480                    b.Property<DateTime>("NotBefore")
 0481                        .HasPrecision(0)
 0482                        .HasColumnType("timestamp(0) with time zone");
 0483
 0484                    b.Property<Guid>("RobotId")
 0485                        .HasColumnType("uuid");
 0486
 0487                    b.Property<string>("Thumbprint")
 0488                        .IsRequired()
 0489                        .HasMaxLength(40)
 0490                        .HasColumnType("character varying(40)");
 0491
 0492                    b.Property<string>("ThumbprintBackup")
 0493                        .HasMaxLength(40)
 0494                        .HasColumnType("character varying(40)");
 0495
 0496                    b.HasKey("Id");
 0497
 0498                    b.HasIndex("RobotId")
 0499                        .IsUnique();
 0500
 0501                    b.ToTable("Navigation.RobotCertificates");
 0502                });
 503
 0504            modelBuilder.Entity("LGDXRobotCloud.Data.Entities.RobotChassisInfo", b =>
 0505                {
 0506                    b.Property<int>("Id")
 0507                        .ValueGeneratedOnAdd()
 0508                        .HasColumnType("integer");
 0509
 0510                    NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
 0511
 0512                    b.Property<int>("BatteryCount")
 0513                        .HasColumnType("integer");
 0514
 0515                    b.Property<double>("BatteryMaxVoltage")
 0516                        .HasColumnType("double precision");
 0517
 0518                    b.Property<double>("BatteryMinVoltage")
 0519                        .HasColumnType("double precision");
 0520
 0521                    b.Property<double>("ChassisLengthX")
 0522                        .HasColumnType("double precision");
 0523
 0524                    b.Property<double>("ChassisLengthY")
 0525                        .HasColumnType("double precision");
 0526
 0527                    b.Property<int>("ChassisWheelCount")
 0528                        .HasColumnType("integer");
 0529
 0530                    b.Property<double>("ChassisWheelRadius")
 0531                        .HasColumnType("double precision");
 0532
 0533                    b.Property<Guid>("RobotId")
 0534                        .HasColumnType("uuid");
 0535
 0536                    b.Property<int>("RobotTypeId")
 0537                        .HasColumnType("integer");
 0538
 0539                    b.HasKey("Id");
 0540
 0541                    b.HasIndex("RobotId")
 0542                        .IsUnique();
 0543
 0544                    b.ToTable("Navigation.RobotChassisInfos");
 0545                });
 546
 0547            modelBuilder.Entity("LGDXRobotCloud.Data.Entities.RobotSystemInfo", b =>
 0548                {
 0549                    b.Property<int>("Id")
 0550                        .ValueGeneratedOnAdd()
 0551                        .HasColumnType("integer");
 0552
 0553                    NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
 0554
 0555                    b.Property<string>("Cpu")
 0556                        .IsRequired()
 0557                        .HasMaxLength(100)
 0558                        .HasColumnType("character varying(100)");
 0559
 0560                    b.Property<string>("Gpu")
 0561                        .HasMaxLength(100)
 0562                        .HasColumnType("character varying(100)");
 0563
 0564                    b.Property<bool>("Is32Bit")
 0565                        .HasColumnType("boolean");
 0566
 0567                    b.Property<bool>("IsLittleEndian")
 0568                        .HasColumnType("boolean");
 0569
 0570                    b.Property<string>("McuSerialNumber")
 0571                        .HasMaxLength(100)
 0572                        .HasColumnType("character varying(100)");
 0573
 0574                    b.Property<string>("Motherboard")
 0575                        .IsRequired()
 0576                        .HasMaxLength(100)
 0577                        .HasColumnType("character varying(100)");
 0578
 0579                    b.Property<string>("MotherboardSerialNumber")
 0580                        .IsRequired()
 0581                        .HasMaxLength(100)
 0582                        .HasColumnType("character varying(100)");
 0583
 0584                    b.Property<string>("Os")
 0585                        .IsRequired()
 0586                        .HasMaxLength(100)
 0587                        .HasColumnType("character varying(100)");
 0588
 0589                    b.Property<int>("RamMiB")
 0590                        .HasColumnType("integer");
 0591
 0592                    b.Property<Guid>("RobotId")
 0593                        .HasColumnType("uuid");
 0594
 0595                    b.HasKey("Id");
 0596
 0597                    b.HasIndex("RobotId")
 0598                        .IsUnique();
 0599
 0600                    b.ToTable("Navigation.RobotSystemInfos");
 0601                });
 602
 0603            modelBuilder.Entity("LGDXRobotCloud.Data.Entities.Trigger", b =>
 0604                {
 0605                    b.Property<int>("Id")
 0606                        .ValueGeneratedOnAdd()
 0607                        .HasColumnType("integer");
 0608
 0609                    NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
 0610
 0611                    b.Property<string>("ApiKeyFieldName")
 0612                        .HasMaxLength(50)
 0613                        .HasColumnType("character varying(50)");
 0614
 0615                    b.Property<int?>("ApiKeyId")
 0616                        .HasColumnType("integer");
 0617
 0618                    b.Property<int?>("ApiKeyInsertLocationId")
 0619                        .HasColumnType("integer");
 0620
 0621                    b.Property<string>("Body")
 0622                        .HasColumnType("text");
 0623
 0624                    b.Property<int>("HttpMethodId")
 0625                        .HasColumnType("integer");
 0626
 0627                    b.Property<string>("Name")
 0628                        .IsRequired()
 0629                        .HasMaxLength(50)
 0630                        .HasColumnType("character varying(50)");
 0631
 0632                    b.Property<bool>("SkipOnFailure")
 0633                        .HasColumnType("boolean");
 0634
 0635                    b.Property<string>("Url")
 0636                        .IsRequired()
 0637                        .HasMaxLength(200)
 0638                        .HasColumnType("character varying(200)");
 0639
 0640                    b.HasKey("Id");
 0641
 0642                    b.HasIndex("ApiKeyId");
 0643
 0644                    b.HasIndex("ApiKeyInsertLocationId");
 0645
 0646                    b.ToTable("Automation.Triggers");
 0647                });
 648
 0649            modelBuilder.Entity("LGDXRobotCloud.Data.Entities.TriggerRetry", b =>
 0650                {
 0651                    b.Property<int>("Id")
 0652                        .ValueGeneratedOnAdd()
 0653                        .HasColumnType("integer");
 0654
 0655                    NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
 0656
 0657                    b.Property<int>("AutoTaskId")
 0658                        .HasColumnType("integer");
 0659
 0660                    b.Property<string>("Body")
 0661                        .IsRequired()
 0662                        .HasColumnType("TEXT");
 0663
 0664                    b.Property<DateTime>("CreatedAt")
 0665                        .HasPrecision(3)
 0666                        .HasColumnType("timestamp(3) with time zone");
 0667
 0668                    b.Property<int>("TriggerId")
 0669                        .HasColumnType("integer");
 0670
 0671                    b.HasKey("Id");
 0672
 0673                    b.HasIndex("AutoTaskId");
 0674
 0675                    b.HasIndex("TriggerId");
 0676
 0677                    b.ToTable("Automation.TriggerRetries");
 0678                });
 679
 0680            modelBuilder.Entity("LGDXRobotCloud.Data.Entities.Waypoint", b =>
 0681                {
 0682                    b.Property<int>("Id")
 0683                        .ValueGeneratedOnAdd()
 0684                        .HasColumnType("integer");
 0685
 0686                    NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
 0687
 0688                    b.Property<bool>("HasCharger")
 0689                        .HasColumnType("boolean");
 0690
 0691                    b.Property<bool>("IsParking")
 0692                        .HasColumnType("boolean");
 0693
 0694                    b.Property<bool>("IsReserved")
 0695                        .HasColumnType("boolean");
 0696
 0697                    b.Property<string>("Name")
 0698                        .IsRequired()
 0699                        .HasMaxLength(100)
 0700                        .HasColumnType("character varying(100)");
 0701
 0702                    b.Property<int>("RealmId")
 0703                        .HasColumnType("integer");
 0704
 0705                    b.Property<double>("Rotation")
 0706                        .HasColumnType("double precision");
 0707
 0708                    b.Property<double>("X")
 0709                        .HasColumnType("double precision");
 0710
 0711                    b.Property<double>("Y")
 0712                        .HasColumnType("double precision");
 0713
 0714                    b.HasKey("Id");
 0715
 0716                    b.HasIndex("RealmId");
 0717
 0718                    b.ToTable("Navigation.Waypoints");
 0719                });
 720
 0721            modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<string>", b =>
 0722                {
 0723                    b.Property<int>("Id")
 0724                        .ValueGeneratedOnAdd()
 0725                        .HasColumnType("integer");
 0726
 0727                    NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
 0728
 0729                    b.Property<string>("ClaimType")
 0730                        .HasColumnType("text");
 0731
 0732                    b.Property<string>("ClaimValue")
 0733                        .HasColumnType("text");
 0734
 0735                    b.Property<string>("RoleId")
 0736                        .IsRequired()
 0737                        .HasColumnType("text");
 0738
 0739                    b.HasKey("Id");
 0740
 0741                    b.HasIndex("RoleId");
 0742
 0743                    b.ToTable("AspNetRoleClaims", (string)null);
 0744                });
 745
 0746            modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<string>", b =>
 0747                {
 0748                    b.Property<int>("Id")
 0749                        .ValueGeneratedOnAdd()
 0750                        .HasColumnType("integer");
 0751
 0752                    NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
 0753
 0754                    b.Property<string>("ClaimType")
 0755                        .HasColumnType("text");
 0756
 0757                    b.Property<string>("ClaimValue")
 0758                        .HasColumnType("text");
 0759
 0760                    b.Property<string>("UserId")
 0761                        .IsRequired()
 0762                        .HasColumnType("text");
 0763
 0764                    b.HasKey("Id");
 0765
 0766                    b.HasIndex("UserId");
 0767
 0768                    b.ToTable("AspNetUserClaims", (string)null);
 0769                });
 770
 0771            modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<string>", b =>
 0772                {
 0773                    b.Property<string>("LoginProvider")
 0774                        .HasColumnType("text");
 0775
 0776                    b.Property<string>("ProviderKey")
 0777                        .HasColumnType("text");
 0778
 0779                    b.Property<string>("ProviderDisplayName")
 0780                        .HasColumnType("text");
 0781
 0782                    b.Property<string>("UserId")
 0783                        .IsRequired()
 0784                        .HasColumnType("text");
 0785
 0786                    b.HasKey("LoginProvider", "ProviderKey");
 0787
 0788                    b.HasIndex("UserId");
 0789
 0790                    b.ToTable("AspNetUserLogins", (string)null);
 0791                });
 792
 0793            modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole<string>", b =>
 0794                {
 0795                    b.Property<string>("UserId")
 0796                        .HasColumnType("text");
 0797
 0798                    b.Property<string>("RoleId")
 0799                        .HasColumnType("text");
 0800
 0801                    b.HasKey("UserId", "RoleId");
 0802
 0803                    b.HasIndex("RoleId");
 0804
 0805                    b.ToTable("AspNetUserRoles", (string)null);
 0806                });
 807
 0808            modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<string>", b =>
 0809                {
 0810                    b.Property<string>("UserId")
 0811                        .HasColumnType("text");
 0812
 0813                    b.Property<string>("LoginProvider")
 0814                        .HasColumnType("text");
 0815
 0816                    b.Property<string>("Name")
 0817                        .HasColumnType("text");
 0818
 0819                    b.Property<string>("Value")
 0820                        .HasColumnType("text");
 0821
 0822                    b.HasKey("UserId", "LoginProvider", "Name");
 0823
 0824                    b.ToTable("AspNetUserTokens", (string)null);
 0825                });
 826
 0827            modelBuilder.Entity("LGDXRobotCloud.Data.Entities.AutoTask", b =>
 0828                {
 0829                    b.HasOne("LGDXRobotCloud.Data.Entities.Robot", "AssignedRobot")
 0830                        .WithMany("AssignedTasks")
 0831                        .HasForeignKey("AssignedRobotId")
 0832                        .OnDelete(DeleteBehavior.SetNull);
 0833
 0834                    b.HasOne("LGDXRobotCloud.Data.Entities.Progress", "CurrentProgress")
 0835                        .WithMany()
 0836                        .HasForeignKey("CurrentProgressId")
 0837                        .OnDelete(DeleteBehavior.Restrict)
 0838                        .IsRequired();
 0839
 0840                    b.HasOne("LGDXRobotCloud.Data.Entities.Flow", "Flow")
 0841                        .WithMany()
 0842                        .HasForeignKey("FlowId")
 0843                        .OnDelete(DeleteBehavior.SetNull);
 0844
 0845                    b.HasOne("LGDXRobotCloud.Data.Entities.Realm", "Realm")
 0846                        .WithMany()
 0847                        .HasForeignKey("RealmId")
 0848                        .OnDelete(DeleteBehavior.Cascade)
 0849                        .IsRequired();
 0850
 0851                    b.Navigation("AssignedRobot");
 0852
 0853                    b.Navigation("CurrentProgress");
 0854
 0855                    b.Navigation("Flow");
 0856
 0857                    b.Navigation("Realm");
 0858                });
 859
 0860            modelBuilder.Entity("LGDXRobotCloud.Data.Entities.AutoTaskDetail", b =>
 0861                {
 0862                    b.HasOne("LGDXRobotCloud.Data.Entities.AutoTask", "AutoTask")
 0863                        .WithMany("AutoTaskDetails")
 0864                        .HasForeignKey("AutoTaskId")
 0865                        .OnDelete(DeleteBehavior.Cascade)
 0866                        .IsRequired();
 0867
 0868                    b.HasOne("LGDXRobotCloud.Data.Entities.Waypoint", "Waypoint")
 0869                        .WithMany()
 0870                        .HasForeignKey("WaypointId")
 0871                        .OnDelete(DeleteBehavior.SetNull);
 0872
 0873                    b.Navigation("AutoTask");
 0874
 0875                    b.Navigation("Waypoint");
 0876                });
 877
 0878            modelBuilder.Entity("LGDXRobotCloud.Data.Entities.FlowDetail", b =>
 0879                {
 0880                    b.HasOne("LGDXRobotCloud.Data.Entities.Flow", "Flow")
 0881                        .WithMany("FlowDetails")
 0882                        .HasForeignKey("FlowId")
 0883                        .OnDelete(DeleteBehavior.Cascade)
 0884                        .IsRequired();
 0885
 0886                    b.HasOne("LGDXRobotCloud.Data.Entities.Progress", "Progress")
 0887                        .WithMany()
 0888                        .HasForeignKey("ProgressId")
 0889                        .OnDelete(DeleteBehavior.Restrict)
 0890                        .IsRequired();
 0891
 0892                    b.HasOne("LGDXRobotCloud.Data.Entities.Trigger", "Trigger")
 0893                        .WithMany()
 0894                        .HasForeignKey("TriggerId")
 0895                        .OnDelete(DeleteBehavior.Restrict);
 0896
 0897                    b.Navigation("Flow");
 0898
 0899                    b.Navigation("Progress");
 0900
 0901                    b.Navigation("Trigger");
 0902                });
 903
 0904            modelBuilder.Entity("LGDXRobotCloud.Data.Entities.Robot", b =>
 0905                {
 0906                    b.HasOne("LGDXRobotCloud.Data.Entities.Realm", "Realm")
 0907                        .WithMany()
 0908                        .HasForeignKey("RealmId")
 0909                        .OnDelete(DeleteBehavior.Restrict)
 0910                        .IsRequired();
 0911
 0912                    b.Navigation("Realm");
 0913                });
 914
 0915            modelBuilder.Entity("LGDXRobotCloud.Data.Entities.RobotCertificate", b =>
 0916                {
 0917                    b.HasOne("LGDXRobotCloud.Data.Entities.Robot", "Robot")
 0918                        .WithOne("RobotCertificate")
 0919                        .HasForeignKey("LGDXRobotCloud.Data.Entities.RobotCertificate", "RobotId")
 0920                        .OnDelete(DeleteBehavior.Cascade)
 0921                        .IsRequired();
 0922
 0923                    b.Navigation("Robot");
 0924                });
 925
 0926            modelBuilder.Entity("LGDXRobotCloud.Data.Entities.RobotChassisInfo", b =>
 0927                {
 0928                    b.HasOne("LGDXRobotCloud.Data.Entities.Robot", "Robot")
 0929                        .WithOne("RobotChassisInfo")
 0930                        .HasForeignKey("LGDXRobotCloud.Data.Entities.RobotChassisInfo", "RobotId")
 0931                        .OnDelete(DeleteBehavior.Cascade);
 0932
 0933                    b.Navigation("Robot");
 0934                });
 935
 0936            modelBuilder.Entity("LGDXRobotCloud.Data.Entities.RobotSystemInfo", b =>
 0937                {
 0938                    b.HasOne("LGDXRobotCloud.Data.Entities.Robot", "Robot")
 0939                        .WithOne("RobotSystemInfo")
 0940                        .HasForeignKey("LGDXRobotCloud.Data.Entities.RobotSystemInfo", "RobotId")
 0941                        .OnDelete(DeleteBehavior.Cascade);
 0942
 0943                    b.Navigation("Robot");
 0944                });
 945
 0946            modelBuilder.Entity("LGDXRobotCloud.Data.Entities.Trigger", b =>
 0947                {
 0948                    b.HasOne("LGDXRobotCloud.Data.Entities.ApiKey", "ApiKey")
 0949                        .WithMany()
 0950                        .HasForeignKey("ApiKeyId")
 0951                        .OnDelete(DeleteBehavior.SetNull);
 0952
 0953                    b.Navigation("ApiKey");
 0954                });
 955
 0956            modelBuilder.Entity("LGDXRobotCloud.Data.Entities.TriggerRetry", b =>
 0957                {
 0958                    b.HasOne("LGDXRobotCloud.Data.Entities.AutoTask", "AutoTask")
 0959                        .WithMany()
 0960                        .HasForeignKey("AutoTaskId")
 0961                        .OnDelete(DeleteBehavior.Cascade)
 0962                        .IsRequired();
 0963
 0964                    b.HasOne("LGDXRobotCloud.Data.Entities.Trigger", "Trigger")
 0965                        .WithMany()
 0966                        .HasForeignKey("TriggerId")
 0967                        .OnDelete(DeleteBehavior.Cascade)
 0968                        .IsRequired();
 0969
 0970                    b.Navigation("AutoTask");
 0971
 0972                    b.Navigation("Trigger");
 0973                });
 974
 0975            modelBuilder.Entity("LGDXRobotCloud.Data.Entities.Waypoint", b =>
 0976                {
 0977                    b.HasOne("LGDXRobotCloud.Data.Entities.Realm", "Realm")
 0978                        .WithMany()
 0979                        .HasForeignKey("RealmId")
 0980                        .OnDelete(DeleteBehavior.Restrict)
 0981                        .IsRequired();
 0982
 0983                    b.Navigation("Realm");
 0984                });
 985
 0986            modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<string>", b =>
 0987                {
 0988                    b.HasOne("LGDXRobotCloud.Data.Entities.LgdxRole", null)
 0989                        .WithMany()
 0990                        .HasForeignKey("RoleId")
 0991                        .OnDelete(DeleteBehavior.Cascade)
 0992                        .IsRequired();
 0993                });
 994
 0995            modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<string>", b =>
 0996                {
 0997                    b.HasOne("LGDXRobotCloud.Data.Entities.LgdxUser", null)
 0998                        .WithMany()
 0999                        .HasForeignKey("UserId")
 01000                        .OnDelete(DeleteBehavior.Cascade)
 01001                        .IsRequired();
 01002                });
 1003
 01004            modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<string>", b =>
 01005                {
 01006                    b.HasOne("LGDXRobotCloud.Data.Entities.LgdxUser", null)
 01007                        .WithMany()
 01008                        .HasForeignKey("UserId")
 01009                        .OnDelete(DeleteBehavior.Cascade)
 01010                        .IsRequired();
 01011                });
 1012
 01013            modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole<string>", b =>
 01014                {
 01015                    b.HasOne("LGDXRobotCloud.Data.Entities.LgdxRole", null)
 01016                        .WithMany()
 01017                        .HasForeignKey("RoleId")
 01018                        .OnDelete(DeleteBehavior.Cascade)
 01019                        .IsRequired();
 01020
 01021                    b.HasOne("LGDXRobotCloud.Data.Entities.LgdxUser", null)
 01022                        .WithMany()
 01023                        .HasForeignKey("UserId")
 01024                        .OnDelete(DeleteBehavior.Cascade)
 01025                        .IsRequired();
 01026                });
 1027
 01028            modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<string>", b =>
 01029                {
 01030                    b.HasOne("LGDXRobotCloud.Data.Entities.LgdxUser", null)
 01031                        .WithMany()
 01032                        .HasForeignKey("UserId")
 01033                        .OnDelete(DeleteBehavior.Cascade)
 01034                        .IsRequired();
 01035                });
 1036
 01037            modelBuilder.Entity("LGDXRobotCloud.Data.Entities.AutoTask", b =>
 01038                {
 01039                    b.Navigation("AutoTaskDetails");
 01040                });
 1041
 01042            modelBuilder.Entity("LGDXRobotCloud.Data.Entities.Flow", b =>
 01043                {
 01044                    b.Navigation("FlowDetails");
 01045                });
 1046
 01047            modelBuilder.Entity("LGDXRobotCloud.Data.Entities.Robot", b =>
 01048                {
 01049                    b.Navigation("AssignedTasks");
 01050
 01051                    b.Navigation("RobotCertificate")
 01052                        .IsRequired();
 01053
 01054                    b.Navigation("RobotChassisInfo");
 01055
 01056                    b.Navigation("RobotSystemInfo");
 01057                });
 1058#pragma warning restore 612, 618
 01059        }
 1060    }
 1061}