< 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: 1043
Coverable lines: 1043
Total lines: 1105
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.4")
 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.AutoTaskJourney", b =>
 0136                {
 0137                    b.Property<int>("Id")
 0138                        .ValueGeneratedOnAdd()
 0139                        .HasColumnType("integer");
 0140
 0141                    NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
 0142
 0143                    b.Property<int>("AutoTaskId")
 0144                        .HasColumnType("integer");
 0145
 0146                    b.Property<DateTime>("CreatedAt")
 0147                        .HasPrecision(0)
 0148                        .HasColumnType("timestamp(0) with time zone");
 0149
 0150                    b.Property<int?>("CurrentProgressId")
 0151                        .HasColumnType("integer");
 0152
 0153                    b.HasKey("Id");
 0154
 0155                    b.HasIndex("AutoTaskId");
 0156
 0157                    b.HasIndex("CurrentProgressId");
 0158
 0159                    b.ToTable("Automation.AutoTaskJourney");
 0160                });
 161
 0162            modelBuilder.Entity("LGDXRobotCloud.Data.Entities.Flow", b =>
 0163                {
 0164                    b.Property<int>("Id")
 0165                        .ValueGeneratedOnAdd()
 0166                        .HasColumnType("integer");
 0167
 0168                    NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
 0169
 0170                    b.Property<string>("Name")
 0171                        .IsRequired()
 0172                        .HasMaxLength(50)
 0173                        .HasColumnType("character varying(50)");
 0174
 0175                    b.HasKey("Id");
 0176
 0177                    b.ToTable("Automation.Flows");
 0178                });
 179
 0180            modelBuilder.Entity("LGDXRobotCloud.Data.Entities.FlowDetail", b =>
 0181                {
 0182                    b.Property<int>("Id")
 0183                        .ValueGeneratedOnAdd()
 0184                        .HasColumnType("integer");
 0185
 0186                    NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
 0187
 0188                    b.Property<int>("AutoTaskNextControllerId")
 0189                        .HasColumnType("integer");
 0190
 0191                    b.Property<int>("FlowId")
 0192                        .HasColumnType("integer");
 0193
 0194                    b.Property<int>("Order")
 0195                        .HasColumnType("integer");
 0196
 0197                    b.Property<int>("ProgressId")
 0198                        .HasColumnType("integer");
 0199
 0200                    b.Property<int?>("TriggerId")
 0201                        .HasColumnType("integer");
 0202
 0203                    b.HasKey("Id");
 0204
 0205                    b.HasIndex("FlowId");
 0206
 0207                    b.HasIndex("Order");
 0208
 0209                    b.HasIndex("ProgressId");
 0210
 0211                    b.HasIndex("TriggerId");
 0212
 0213                    b.ToTable("Automation.FlowDetails");
 0214                });
 215
 0216            modelBuilder.Entity("LGDXRobotCloud.Data.Entities.LgdxRole", b =>
 0217                {
 0218                    b.Property<string>("Id")
 0219                        .HasColumnType("text");
 0220
 0221                    b.Property<string>("ConcurrencyStamp")
 0222                        .IsConcurrencyToken()
 0223                        .HasColumnType("text");
 0224
 0225                    b.Property<string>("Description")
 0226                        .HasColumnType("text");
 0227
 0228                    b.Property<string>("Name")
 0229                        .HasMaxLength(256)
 0230                        .HasColumnType("character varying(256)");
 0231
 0232                    b.Property<string>("NormalizedName")
 0233                        .HasMaxLength(256)
 0234                        .HasColumnType("character varying(256)");
 0235
 0236                    b.HasKey("Id");
 0237
 0238                    b.HasIndex("NormalizedName")
 0239                        .IsUnique()
 0240                        .HasDatabaseName("RoleNameIndex");
 0241
 0242                    b.ToTable("AspNetRoles", (string)null);
 0243                });
 244
 0245            modelBuilder.Entity("LGDXRobotCloud.Data.Entities.LgdxUser", b =>
 0246                {
 0247                    b.Property<string>("Id")
 0248                        .HasColumnType("text");
 0249
 0250                    b.Property<int>("AccessFailedCount")
 0251                        .HasColumnType("integer");
 0252
 0253                    b.Property<string>("ConcurrencyStamp")
 0254                        .IsConcurrencyToken()
 0255                        .HasColumnType("text");
 0256
 0257                    b.Property<string>("Email")
 0258                        .HasMaxLength(256)
 0259                        .HasColumnType("character varying(256)");
 0260
 0261                    b.Property<bool>("EmailConfirmed")
 0262                        .HasColumnType("boolean");
 0263
 0264                    b.Property<bool>("LockoutEnabled")
 0265                        .HasColumnType("boolean");
 0266
 0267                    b.Property<DateTimeOffset?>("LockoutEnd")
 0268                        .HasColumnType("timestamp with time zone");
 0269
 0270                    b.Property<string>("Name")
 0271                        .HasColumnType("text");
 0272
 0273                    b.Property<string>("NormalizedEmail")
 0274                        .HasMaxLength(256)
 0275                        .HasColumnType("character varying(256)");
 0276
 0277                    b.Property<string>("NormalizedUserName")
 0278                        .HasMaxLength(256)
 0279                        .HasColumnType("character varying(256)");
 0280
 0281                    b.Property<string>("PasswordHash")
 0282                        .HasColumnType("text");
 0283
 0284                    b.Property<string>("PhoneNumber")
 0285                        .HasColumnType("text");
 0286
 0287                    b.Property<bool>("PhoneNumberConfirmed")
 0288                        .HasColumnType("boolean");
 0289
 0290                    b.Property<string>("RefreshTokenHash")
 0291                        .HasMaxLength(64)
 0292                        .HasColumnType("character varying(64)");
 0293
 0294                    b.Property<string>("SecurityStamp")
 0295                        .HasColumnType("text");
 0296
 0297                    b.Property<bool>("TwoFactorEnabled")
 0298                        .HasColumnType("boolean");
 0299
 0300                    b.Property<string>("UserName")
 0301                        .HasMaxLength(256)
 0302                        .HasColumnType("character varying(256)");
 0303
 0304                    b.HasKey("Id");
 0305
 0306                    b.HasIndex("NormalizedEmail")
 0307                        .HasDatabaseName("EmailIndex");
 0308
 0309                    b.HasIndex("NormalizedUserName")
 0310                        .IsUnique()
 0311                        .HasDatabaseName("UserNameIndex");
 0312
 0313                    b.ToTable("AspNetUsers", (string)null);
 0314                });
 315
 0316            modelBuilder.Entity("LGDXRobotCloud.Data.Entities.Progress", b =>
 0317                {
 0318                    b.Property<int>("Id")
 0319                        .ValueGeneratedOnAdd()
 0320                        .HasColumnType("integer");
 0321
 0322                    NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
 0323
 0324                    b.Property<string>("Name")
 0325                        .IsRequired()
 0326                        .HasMaxLength(50)
 0327                        .HasColumnType("character varying(50)");
 0328
 0329                    b.Property<bool>("Reserved")
 0330                        .HasColumnType("boolean");
 0331
 0332                    b.Property<bool>("System")
 0333                        .HasColumnType("boolean");
 0334
 0335                    b.HasKey("Id");
 0336
 0337                    b.ToTable("Automation.Progresses");
 0338
 0339                    b.HasData(
 0340                        new
 0341                        {
 0342                            Id = 1,
 0343                            Name = "Template",
 0344                            Reserved = true,
 0345                            System = true
 0346                        },
 0347                        new
 0348                        {
 0349                            Id = 2,
 0350                            Name = "Waiting",
 0351                            Reserved = true,
 0352                            System = true
 0353                        },
 0354                        new
 0355                        {
 0356                            Id = 3,
 0357                            Name = "Completed",
 0358                            Reserved = true,
 0359                            System = true
 0360                        },
 0361                        new
 0362                        {
 0363                            Id = 4,
 0364                            Name = "Aborted",
 0365                            Reserved = true,
 0366                            System = true
 0367                        },
 0368                        new
 0369                        {
 0370                            Id = 5,
 0371                            Name = "Starting",
 0372                            Reserved = false,
 0373                            System = true
 0374                        },
 0375                        new
 0376                        {
 0377                            Id = 6,
 0378                            Name = "Loading",
 0379                            Reserved = false,
 0380                            System = true
 0381                        },
 0382                        new
 0383                        {
 0384                            Id = 7,
 0385                            Name = "PreMoving",
 0386                            Reserved = false,
 0387                            System = true
 0388                        },
 0389                        new
 0390                        {
 0391                            Id = 8,
 0392                            Name = "Moving",
 0393                            Reserved = false,
 0394                            System = true
 0395                        },
 0396                        new
 0397                        {
 0398                            Id = 9,
 0399                            Name = "Unloading",
 0400                            Reserved = false,
 0401                            System = true
 0402                        },
 0403                        new
 0404                        {
 0405                            Id = 10,
 0406                            Name = "Completing",
 0407                            Reserved = false,
 0408                            System = true
 0409                        },
 0410                        new
 0411                        {
 0412                            Id = 99,
 0413                            Name = "Reserved",
 0414                            Reserved = true,
 0415                            System = true
 0416                        });
 0417                });
 418
 0419            modelBuilder.Entity("LGDXRobotCloud.Data.Entities.Realm", b =>
 0420                {
 0421                    b.Property<int>("Id")
 0422                        .ValueGeneratedOnAdd()
 0423                        .HasColumnType("integer");
 0424
 0425                    NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
 0426
 0427                    b.Property<string>("Description")
 0428                        .HasMaxLength(200)
 0429                        .HasColumnType("character varying(200)");
 0430
 0431                    b.Property<byte[]>("Image")
 0432                        .IsRequired()
 0433                        .HasColumnType("bytea");
 0434
 0435                    b.Property<string>("Name")
 0436                        .IsRequired()
 0437                        .HasMaxLength(50)
 0438                        .HasColumnType("character varying(50)");
 0439
 0440                    b.Property<double>("OriginRotation")
 0441                        .HasColumnType("double precision");
 0442
 0443                    b.Property<double>("OriginX")
 0444                        .HasColumnType("double precision");
 0445
 0446                    b.Property<double>("OriginY")
 0447                        .HasColumnType("double precision");
 0448
 0449                    b.Property<double>("Resolution")
 0450                        .HasColumnType("double precision");
 0451
 0452                    b.HasKey("Id");
 0453
 0454                    b.ToTable("Navigation.Realms");
 0455
 0456                    b.HasData(
 0457                        new
 0458                        {
 0459                            Id = 1,
 0460                            Description = "Please update this realm",
 0461                            Image = new byte[0],
 0462                            Name = "First Realm",
 0463                            OriginRotation = 0.0,
 0464                            OriginX = 0.0,
 0465                            OriginY = 0.0,
 0466                            Resolution = 0.0
 0467                        });
 0468                });
 469
 0470            modelBuilder.Entity("LGDXRobotCloud.Data.Entities.Robot", b =>
 0471                {
 0472                    b.Property<Guid>("Id")
 0473                        .ValueGeneratedOnAdd()
 0474                        .HasColumnType("uuid");
 0475
 0476                    b.Property<bool>("IsProtectingHardwareSerialNumber")
 0477                        .HasColumnType("boolean");
 0478
 0479                    b.Property<bool>("IsRealtimeExchange")
 0480                        .HasColumnType("boolean");
 0481
 0482                    b.Property<string>("Name")
 0483                        .IsRequired()
 0484                        .HasMaxLength(50)
 0485                        .HasColumnType("character varying(50)");
 0486
 0487                    b.Property<int>("RealmId")
 0488                        .HasColumnType("integer");
 0489
 0490                    b.HasKey("Id");
 0491
 0492                    b.HasIndex("RealmId");
 0493
 0494                    b.ToTable("Navigation.Robots");
 0495                });
 496
 0497            modelBuilder.Entity("LGDXRobotCloud.Data.Entities.RobotCertificate", b =>
 0498                {
 0499                    b.Property<Guid>("Id")
 0500                        .ValueGeneratedOnAdd()
 0501                        .HasColumnType("uuid");
 0502
 0503                    b.Property<DateTime>("NotAfter")
 0504                        .HasPrecision(0)
 0505                        .HasColumnType("timestamp(0) with time zone");
 0506
 0507                    b.Property<DateTime>("NotBefore")
 0508                        .HasPrecision(0)
 0509                        .HasColumnType("timestamp(0) with time zone");
 0510
 0511                    b.Property<Guid>("RobotId")
 0512                        .HasColumnType("uuid");
 0513
 0514                    b.Property<string>("Thumbprint")
 0515                        .IsRequired()
 0516                        .HasMaxLength(40)
 0517                        .HasColumnType("character varying(40)");
 0518
 0519                    b.Property<string>("ThumbprintBackup")
 0520                        .HasMaxLength(40)
 0521                        .HasColumnType("character varying(40)");
 0522
 0523                    b.HasKey("Id");
 0524
 0525                    b.HasIndex("RobotId")
 0526                        .IsUnique();
 0527
 0528                    b.ToTable("Navigation.RobotCertificates");
 0529                });
 530
 0531            modelBuilder.Entity("LGDXRobotCloud.Data.Entities.RobotChassisInfo", b =>
 0532                {
 0533                    b.Property<int>("Id")
 0534                        .ValueGeneratedOnAdd()
 0535                        .HasColumnType("integer");
 0536
 0537                    NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
 0538
 0539                    b.Property<int>("BatteryCount")
 0540                        .HasColumnType("integer");
 0541
 0542                    b.Property<double>("BatteryMaxVoltage")
 0543                        .HasColumnType("double precision");
 0544
 0545                    b.Property<double>("BatteryMinVoltage")
 0546                        .HasColumnType("double precision");
 0547
 0548                    b.Property<double>("ChassisLengthX")
 0549                        .HasColumnType("double precision");
 0550
 0551                    b.Property<double>("ChassisLengthY")
 0552                        .HasColumnType("double precision");
 0553
 0554                    b.Property<int>("ChassisWheelCount")
 0555                        .HasColumnType("integer");
 0556
 0557                    b.Property<double>("ChassisWheelRadius")
 0558                        .HasColumnType("double precision");
 0559
 0560                    b.Property<Guid>("RobotId")
 0561                        .HasColumnType("uuid");
 0562
 0563                    b.Property<int>("RobotTypeId")
 0564                        .HasColumnType("integer");
 0565
 0566                    b.HasKey("Id");
 0567
 0568                    b.HasIndex("RobotId")
 0569                        .IsUnique();
 0570
 0571                    b.ToTable("Navigation.RobotChassisInfos");
 0572                });
 573
 0574            modelBuilder.Entity("LGDXRobotCloud.Data.Entities.RobotSystemInfo", b =>
 0575                {
 0576                    b.Property<int>("Id")
 0577                        .ValueGeneratedOnAdd()
 0578                        .HasColumnType("integer");
 0579
 0580                    NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
 0581
 0582                    b.Property<string>("Cpu")
 0583                        .IsRequired()
 0584                        .HasMaxLength(100)
 0585                        .HasColumnType("character varying(100)");
 0586
 0587                    b.Property<string>("Gpu")
 0588                        .HasMaxLength(100)
 0589                        .HasColumnType("character varying(100)");
 0590
 0591                    b.Property<bool>("Is32Bit")
 0592                        .HasColumnType("boolean");
 0593
 0594                    b.Property<bool>("IsLittleEndian")
 0595                        .HasColumnType("boolean");
 0596
 0597                    b.Property<string>("McuSerialNumber")
 0598                        .HasMaxLength(100)
 0599                        .HasColumnType("character varying(100)");
 0600
 0601                    b.Property<string>("Motherboard")
 0602                        .IsRequired()
 0603                        .HasMaxLength(100)
 0604                        .HasColumnType("character varying(100)");
 0605
 0606                    b.Property<string>("MotherboardSerialNumber")
 0607                        .IsRequired()
 0608                        .HasMaxLength(100)
 0609                        .HasColumnType("character varying(100)");
 0610
 0611                    b.Property<string>("Os")
 0612                        .IsRequired()
 0613                        .HasMaxLength(100)
 0614                        .HasColumnType("character varying(100)");
 0615
 0616                    b.Property<int>("RamMiB")
 0617                        .HasColumnType("integer");
 0618
 0619                    b.Property<Guid>("RobotId")
 0620                        .HasColumnType("uuid");
 0621
 0622                    b.HasKey("Id");
 0623
 0624                    b.HasIndex("RobotId")
 0625                        .IsUnique();
 0626
 0627                    b.ToTable("Navigation.RobotSystemInfos");
 0628                });
 629
 0630            modelBuilder.Entity("LGDXRobotCloud.Data.Entities.Trigger", b =>
 0631                {
 0632                    b.Property<int>("Id")
 0633                        .ValueGeneratedOnAdd()
 0634                        .HasColumnType("integer");
 0635
 0636                    NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
 0637
 0638                    b.Property<string>("ApiKeyFieldName")
 0639                        .HasMaxLength(50)
 0640                        .HasColumnType("character varying(50)");
 0641
 0642                    b.Property<int?>("ApiKeyId")
 0643                        .HasColumnType("integer");
 0644
 0645                    b.Property<int?>("ApiKeyInsertLocationId")
 0646                        .HasColumnType("integer");
 0647
 0648                    b.Property<string>("Body")
 0649                        .HasColumnType("text");
 0650
 0651                    b.Property<int>("HttpMethodId")
 0652                        .HasColumnType("integer");
 0653
 0654                    b.Property<string>("Name")
 0655                        .IsRequired()
 0656                        .HasMaxLength(50)
 0657                        .HasColumnType("character varying(50)");
 0658
 0659                    b.Property<string>("Url")
 0660                        .IsRequired()
 0661                        .HasMaxLength(200)
 0662                        .HasColumnType("character varying(200)");
 0663
 0664                    b.HasKey("Id");
 0665
 0666                    b.HasIndex("ApiKeyId");
 0667
 0668                    b.HasIndex("ApiKeyInsertLocationId");
 0669
 0670                    b.ToTable("Automation.Triggers");
 0671                });
 672
 0673            modelBuilder.Entity("LGDXRobotCloud.Data.Entities.TriggerRetry", b =>
 0674                {
 0675                    b.Property<int>("Id")
 0676                        .ValueGeneratedOnAdd()
 0677                        .HasColumnType("integer");
 0678
 0679                    NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
 0680
 0681                    b.Property<int>("AutoTaskId")
 0682                        .HasColumnType("integer");
 0683
 0684                    b.Property<string>("Body")
 0685                        .IsRequired()
 0686                        .HasColumnType("TEXT");
 0687
 0688                    b.Property<DateTime>("CreatedAt")
 0689                        .HasPrecision(3)
 0690                        .HasColumnType("timestamp(3) with time zone");
 0691
 0692                    b.Property<int>("TriggerId")
 0693                        .HasColumnType("integer");
 0694
 0695                    b.HasKey("Id");
 0696
 0697                    b.HasIndex("AutoTaskId");
 0698
 0699                    b.HasIndex("TriggerId");
 0700
 0701                    b.ToTable("Automation.TriggerRetries");
 0702                });
 703
 0704            modelBuilder.Entity("LGDXRobotCloud.Data.Entities.Waypoint", b =>
 0705                {
 0706                    b.Property<int>("Id")
 0707                        .ValueGeneratedOnAdd()
 0708                        .HasColumnType("integer");
 0709
 0710                    NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
 0711
 0712                    b.Property<bool>("HasCharger")
 0713                        .HasColumnType("boolean");
 0714
 0715                    b.Property<bool>("IsParking")
 0716                        .HasColumnType("boolean");
 0717
 0718                    b.Property<bool>("IsReserved")
 0719                        .HasColumnType("boolean");
 0720
 0721                    b.Property<string>("Name")
 0722                        .IsRequired()
 0723                        .HasMaxLength(100)
 0724                        .HasColumnType("character varying(100)");
 0725
 0726                    b.Property<int>("RealmId")
 0727                        .HasColumnType("integer");
 0728
 0729                    b.Property<double>("Rotation")
 0730                        .HasColumnType("double precision");
 0731
 0732                    b.Property<double>("X")
 0733                        .HasColumnType("double precision");
 0734
 0735                    b.Property<double>("Y")
 0736                        .HasColumnType("double precision");
 0737
 0738                    b.HasKey("Id");
 0739
 0740                    b.HasIndex("RealmId");
 0741
 0742                    b.ToTable("Navigation.Waypoints");
 0743                });
 744
 0745            modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<string>", b =>
 0746                {
 0747                    b.Property<int>("Id")
 0748                        .ValueGeneratedOnAdd()
 0749                        .HasColumnType("integer");
 0750
 0751                    NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
 0752
 0753                    b.Property<string>("ClaimType")
 0754                        .HasColumnType("text");
 0755
 0756                    b.Property<string>("ClaimValue")
 0757                        .HasColumnType("text");
 0758
 0759                    b.Property<string>("RoleId")
 0760                        .IsRequired()
 0761                        .HasColumnType("text");
 0762
 0763                    b.HasKey("Id");
 0764
 0765                    b.HasIndex("RoleId");
 0766
 0767                    b.ToTable("AspNetRoleClaims", (string)null);
 0768                });
 769
 0770            modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<string>", b =>
 0771                {
 0772                    b.Property<int>("Id")
 0773                        .ValueGeneratedOnAdd()
 0774                        .HasColumnType("integer");
 0775
 0776                    NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
 0777
 0778                    b.Property<string>("ClaimType")
 0779                        .HasColumnType("text");
 0780
 0781                    b.Property<string>("ClaimValue")
 0782                        .HasColumnType("text");
 0783
 0784                    b.Property<string>("UserId")
 0785                        .IsRequired()
 0786                        .HasColumnType("text");
 0787
 0788                    b.HasKey("Id");
 0789
 0790                    b.HasIndex("UserId");
 0791
 0792                    b.ToTable("AspNetUserClaims", (string)null);
 0793                });
 794
 0795            modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<string>", b =>
 0796                {
 0797                    b.Property<string>("LoginProvider")
 0798                        .HasColumnType("text");
 0799
 0800                    b.Property<string>("ProviderKey")
 0801                        .HasColumnType("text");
 0802
 0803                    b.Property<string>("ProviderDisplayName")
 0804                        .HasColumnType("text");
 0805
 0806                    b.Property<string>("UserId")
 0807                        .IsRequired()
 0808                        .HasColumnType("text");
 0809
 0810                    b.HasKey("LoginProvider", "ProviderKey");
 0811
 0812                    b.HasIndex("UserId");
 0813
 0814                    b.ToTable("AspNetUserLogins", (string)null);
 0815                });
 816
 0817            modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole<string>", b =>
 0818                {
 0819                    b.Property<string>("UserId")
 0820                        .HasColumnType("text");
 0821
 0822                    b.Property<string>("RoleId")
 0823                        .HasColumnType("text");
 0824
 0825                    b.HasKey("UserId", "RoleId");
 0826
 0827                    b.HasIndex("RoleId");
 0828
 0829                    b.ToTable("AspNetUserRoles", (string)null);
 0830                });
 831
 0832            modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<string>", b =>
 0833                {
 0834                    b.Property<string>("UserId")
 0835                        .HasColumnType("text");
 0836
 0837                    b.Property<string>("LoginProvider")
 0838                        .HasColumnType("text");
 0839
 0840                    b.Property<string>("Name")
 0841                        .HasColumnType("text");
 0842
 0843                    b.Property<string>("Value")
 0844                        .HasColumnType("text");
 0845
 0846                    b.HasKey("UserId", "LoginProvider", "Name");
 0847
 0848                    b.ToTable("AspNetUserTokens", (string)null);
 0849                });
 850
 0851            modelBuilder.Entity("LGDXRobotCloud.Data.Entities.AutoTask", b =>
 0852                {
 0853                    b.HasOne("LGDXRobotCloud.Data.Entities.Robot", "AssignedRobot")
 0854                        .WithMany("AssignedTasks")
 0855                        .HasForeignKey("AssignedRobotId")
 0856                        .OnDelete(DeleteBehavior.SetNull);
 0857
 0858                    b.HasOne("LGDXRobotCloud.Data.Entities.Progress", "CurrentProgress")
 0859                        .WithMany()
 0860                        .HasForeignKey("CurrentProgressId")
 0861                        .OnDelete(DeleteBehavior.Restrict)
 0862                        .IsRequired();
 0863
 0864                    b.HasOne("LGDXRobotCloud.Data.Entities.Flow", "Flow")
 0865                        .WithMany()
 0866                        .HasForeignKey("FlowId")
 0867                        .OnDelete(DeleteBehavior.SetNull);
 0868
 0869                    b.HasOne("LGDXRobotCloud.Data.Entities.Realm", "Realm")
 0870                        .WithMany()
 0871                        .HasForeignKey("RealmId")
 0872                        .OnDelete(DeleteBehavior.Cascade)
 0873                        .IsRequired();
 0874
 0875                    b.Navigation("AssignedRobot");
 0876
 0877                    b.Navigation("CurrentProgress");
 0878
 0879                    b.Navigation("Flow");
 0880
 0881                    b.Navigation("Realm");
 0882                });
 883
 0884            modelBuilder.Entity("LGDXRobotCloud.Data.Entities.AutoTaskDetail", b =>
 0885                {
 0886                    b.HasOne("LGDXRobotCloud.Data.Entities.AutoTask", "AutoTask")
 0887                        .WithMany("AutoTaskDetails")
 0888                        .HasForeignKey("AutoTaskId")
 0889                        .OnDelete(DeleteBehavior.Cascade)
 0890                        .IsRequired();
 0891
 0892                    b.HasOne("LGDXRobotCloud.Data.Entities.Waypoint", "Waypoint")
 0893                        .WithMany()
 0894                        .HasForeignKey("WaypointId")
 0895                        .OnDelete(DeleteBehavior.SetNull);
 0896
 0897                    b.Navigation("AutoTask");
 0898
 0899                    b.Navigation("Waypoint");
 0900                });
 901
 0902            modelBuilder.Entity("LGDXRobotCloud.Data.Entities.AutoTaskJourney", b =>
 0903                {
 0904                    b.HasOne("LGDXRobotCloud.Data.Entities.AutoTask", "AutoTask")
 0905                        .WithMany("AutoTaskJourneys")
 0906                        .HasForeignKey("AutoTaskId")
 0907                        .OnDelete(DeleteBehavior.Restrict)
 0908                        .IsRequired();
 0909
 0910                    b.HasOne("LGDXRobotCloud.Data.Entities.Progress", "CurrentProgress")
 0911                        .WithMany()
 0912                        .HasForeignKey("CurrentProgressId")
 0913                        .OnDelete(DeleteBehavior.SetNull);
 0914
 0915                    b.Navigation("AutoTask");
 0916
 0917                    b.Navigation("CurrentProgress");
 0918                });
 919
 0920            modelBuilder.Entity("LGDXRobotCloud.Data.Entities.FlowDetail", b =>
 0921                {
 0922                    b.HasOne("LGDXRobotCloud.Data.Entities.Flow", "Flow")
 0923                        .WithMany("FlowDetails")
 0924                        .HasForeignKey("FlowId")
 0925                        .OnDelete(DeleteBehavior.Cascade)
 0926                        .IsRequired();
 0927
 0928                    b.HasOne("LGDXRobotCloud.Data.Entities.Progress", "Progress")
 0929                        .WithMany()
 0930                        .HasForeignKey("ProgressId")
 0931                        .OnDelete(DeleteBehavior.Restrict)
 0932                        .IsRequired();
 0933
 0934                    b.HasOne("LGDXRobotCloud.Data.Entities.Trigger", "Trigger")
 0935                        .WithMany()
 0936                        .HasForeignKey("TriggerId")
 0937                        .OnDelete(DeleteBehavior.Restrict);
 0938
 0939                    b.Navigation("Flow");
 0940
 0941                    b.Navigation("Progress");
 0942
 0943                    b.Navigation("Trigger");
 0944                });
 945
 0946            modelBuilder.Entity("LGDXRobotCloud.Data.Entities.Robot", b =>
 0947                {
 0948                    b.HasOne("LGDXRobotCloud.Data.Entities.Realm", "Realm")
 0949                        .WithMany()
 0950                        .HasForeignKey("RealmId")
 0951                        .OnDelete(DeleteBehavior.Restrict)
 0952                        .IsRequired();
 0953
 0954                    b.Navigation("Realm");
 0955                });
 956
 0957            modelBuilder.Entity("LGDXRobotCloud.Data.Entities.RobotCertificate", b =>
 0958                {
 0959                    b.HasOne("LGDXRobotCloud.Data.Entities.Robot", "Robot")
 0960                        .WithOne("RobotCertificate")
 0961                        .HasForeignKey("LGDXRobotCloud.Data.Entities.RobotCertificate", "RobotId")
 0962                        .OnDelete(DeleteBehavior.Cascade)
 0963                        .IsRequired();
 0964
 0965                    b.Navigation("Robot");
 0966                });
 967
 0968            modelBuilder.Entity("LGDXRobotCloud.Data.Entities.RobotChassisInfo", b =>
 0969                {
 0970                    b.HasOne("LGDXRobotCloud.Data.Entities.Robot", "Robot")
 0971                        .WithOne("RobotChassisInfo")
 0972                        .HasForeignKey("LGDXRobotCloud.Data.Entities.RobotChassisInfo", "RobotId")
 0973                        .OnDelete(DeleteBehavior.Cascade);
 0974
 0975                    b.Navigation("Robot");
 0976                });
 977
 0978            modelBuilder.Entity("LGDXRobotCloud.Data.Entities.RobotSystemInfo", b =>
 0979                {
 0980                    b.HasOne("LGDXRobotCloud.Data.Entities.Robot", "Robot")
 0981                        .WithOne("RobotSystemInfo")
 0982                        .HasForeignKey("LGDXRobotCloud.Data.Entities.RobotSystemInfo", "RobotId")
 0983                        .OnDelete(DeleteBehavior.Cascade);
 0984
 0985                    b.Navigation("Robot");
 0986                });
 987
 0988            modelBuilder.Entity("LGDXRobotCloud.Data.Entities.Trigger", b =>
 0989                {
 0990                    b.HasOne("LGDXRobotCloud.Data.Entities.ApiKey", "ApiKey")
 0991                        .WithMany()
 0992                        .HasForeignKey("ApiKeyId")
 0993                        .OnDelete(DeleteBehavior.SetNull);
 0994
 0995                    b.Navigation("ApiKey");
 0996                });
 997
 0998            modelBuilder.Entity("LGDXRobotCloud.Data.Entities.TriggerRetry", b =>
 0999                {
 01000                    b.HasOne("LGDXRobotCloud.Data.Entities.AutoTask", "AutoTask")
 01001                        .WithMany()
 01002                        .HasForeignKey("AutoTaskId")
 01003                        .OnDelete(DeleteBehavior.Cascade)
 01004                        .IsRequired();
 01005
 01006                    b.HasOne("LGDXRobotCloud.Data.Entities.Trigger", "Trigger")
 01007                        .WithMany()
 01008                        .HasForeignKey("TriggerId")
 01009                        .OnDelete(DeleteBehavior.Cascade)
 01010                        .IsRequired();
 01011
 01012                    b.Navigation("AutoTask");
 01013
 01014                    b.Navigation("Trigger");
 01015                });
 1016
 01017            modelBuilder.Entity("LGDXRobotCloud.Data.Entities.Waypoint", b =>
 01018                {
 01019                    b.HasOne("LGDXRobotCloud.Data.Entities.Realm", "Realm")
 01020                        .WithMany()
 01021                        .HasForeignKey("RealmId")
 01022                        .OnDelete(DeleteBehavior.Restrict)
 01023                        .IsRequired();
 01024
 01025                    b.Navigation("Realm");
 01026                });
 1027
 01028            modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<string>", b =>
 01029                {
 01030                    b.HasOne("LGDXRobotCloud.Data.Entities.LgdxRole", null)
 01031                        .WithMany()
 01032                        .HasForeignKey("RoleId")
 01033                        .OnDelete(DeleteBehavior.Cascade)
 01034                        .IsRequired();
 01035                });
 1036
 01037            modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<string>", b =>
 01038                {
 01039                    b.HasOne("LGDXRobotCloud.Data.Entities.LgdxUser", null)
 01040                        .WithMany()
 01041                        .HasForeignKey("UserId")
 01042                        .OnDelete(DeleteBehavior.Cascade)
 01043                        .IsRequired();
 01044                });
 1045
 01046            modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<string>", b =>
 01047                {
 01048                    b.HasOne("LGDXRobotCloud.Data.Entities.LgdxUser", null)
 01049                        .WithMany()
 01050                        .HasForeignKey("UserId")
 01051                        .OnDelete(DeleteBehavior.Cascade)
 01052                        .IsRequired();
 01053                });
 1054
 01055            modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole<string>", b =>
 01056                {
 01057                    b.HasOne("LGDXRobotCloud.Data.Entities.LgdxRole", null)
 01058                        .WithMany()
 01059                        .HasForeignKey("RoleId")
 01060                        .OnDelete(DeleteBehavior.Cascade)
 01061                        .IsRequired();
 01062
 01063                    b.HasOne("LGDXRobotCloud.Data.Entities.LgdxUser", null)
 01064                        .WithMany()
 01065                        .HasForeignKey("UserId")
 01066                        .OnDelete(DeleteBehavior.Cascade)
 01067                        .IsRequired();
 01068                });
 1069
 01070            modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<string>", b =>
 01071                {
 01072                    b.HasOne("LGDXRobotCloud.Data.Entities.LgdxUser", null)
 01073                        .WithMany()
 01074                        .HasForeignKey("UserId")
 01075                        .OnDelete(DeleteBehavior.Cascade)
 01076                        .IsRequired();
 01077                });
 1078
 01079            modelBuilder.Entity("LGDXRobotCloud.Data.Entities.AutoTask", b =>
 01080                {
 01081                    b.Navigation("AutoTaskDetails");
 01082
 01083                    b.Navigation("AutoTaskJourneys");
 01084                });
 1085
 01086            modelBuilder.Entity("LGDXRobotCloud.Data.Entities.Flow", b =>
 01087                {
 01088                    b.Navigation("FlowDetails");
 01089                });
 1090
 01091            modelBuilder.Entity("LGDXRobotCloud.Data.Entities.Robot", b =>
 01092                {
 01093                    b.Navigation("AssignedTasks");
 01094
 01095                    b.Navigation("RobotCertificate")
 01096                        .IsRequired();
 01097
 01098                    b.Navigation("RobotChassisInfo");
 01099
 01100                    b.Navigation("RobotSystemInfo");
 01101                });
 1102#pragma warning restore 612, 618
 01103        }
 1104    }
 1105}