16#pragma warning disable 612, 618 
   18                .HasAnnotation(
"ProductVersion", 
"3.1.10")
 
   19                .HasAnnotation(
"Relational:MaxIdentifierLength", 64);
 
   21            modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatBot", b =>
 
   23                b.Property<
long>(
"Id")
 
   24                    .ValueGeneratedOnAdd()
 
   25                    .HasColumnType(
"bigint");
 
   27                b.Property<ushort?>(
"ChannelLimit")
 
   29                    .HasColumnType(
"smallint unsigned");
 
   31                b.Property<
string>(
"ConnectionString")
 
   33                    .HasColumnType(
"longtext CHARACTER SET utf8mb4")
 
   36                b.Property<
bool?>(
"Enabled")
 
   37                    .HasColumnType(
"tinyint(1)");
 
   39                b.Property<
long>(
"InstanceId")
 
   40                    .HasColumnType(
"bigint");
 
   42                b.Property<
string>(
"Name")
 
   44                    .HasColumnType(
"varchar(100) CHARACTER SET utf8mb4")
 
   47                b.Property<
int>(
"Provider")
 
   48                    .HasColumnType(
"int");
 
   50                b.Property<uint?>(
"ReconnectionInterval")
 
   52                    .HasColumnType(
"int unsigned");
 
   56                b.HasIndex(
"InstanceId", 
"Name")
 
   59                b.ToTable(
"ChatBots");
 
   62            modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatChannel", b =>
 
   64                b.Property<
long>(
"Id")
 
   65                    .ValueGeneratedOnAdd()
 
   66                    .HasColumnType(
"bigint");
 
   68                b.Property<
long>(
"ChatSettingsId")
 
   69                    .HasColumnType(
"bigint");
 
   71                b.Property<ulong?>(
"DiscordChannelId")
 
   72                    .HasColumnType(
"bigint unsigned");
 
   74                b.Property<
string>(
"IrcChannel")
 
   75                    .HasColumnType(
"varchar(100) CHARACTER SET utf8mb4")
 
   78                b.Property<
bool?>(
"IsAdminChannel")
 
   80                    .HasColumnType(
"tinyint(1)");
 
   82                b.Property<
bool?>(
"IsUpdatesChannel")
 
   84                    .HasColumnType(
"tinyint(1)");
 
   86                b.Property<
bool?>(
"IsWatchdogChannel")
 
   88                    .HasColumnType(
"tinyint(1)");
 
   90                b.Property<
string>(
"Tag")
 
   91                    .HasColumnType(
"longtext CHARACTER SET utf8mb4")
 
   96                b.HasIndex(
"ChatSettingsId", 
"DiscordChannelId")
 
   99                b.HasIndex(
"ChatSettingsId", 
"IrcChannel")
 
  102                b.ToTable(
"ChatChannels");
 
  105            modelBuilder.Entity(
"Tgstation.Server.Host.Models.CompileJob", b =>
 
  107                b.Property<
long>(
"Id")
 
  108                    .ValueGeneratedOnAdd()
 
  109                    .HasColumnType(
"bigint");
 
  111                b.Property<
string>(
"ByondVersion")
 
  113                    .HasColumnType(
"longtext CHARACTER SET utf8mb4");
 
  115                b.Property<
int?>(
"DMApiMajorVersion")
 
  116                    .HasColumnType(
"int");
 
  118                b.Property<
int?>(
"DMApiMinorVersion")
 
  119                    .HasColumnType(
"int");
 
  121                b.Property<
int?>(
"DMApiPatchVersion")
 
  122                    .HasColumnType(
"int");
 
  124                b.Property<Guid?>(
"DirectoryName")
 
  126                    .HasColumnType(
"char(36)");
 
  128                b.Property<
string>(
"DmeName")
 
  130                    .HasColumnType(
"longtext CHARACTER SET utf8mb4");
 
  132                b.Property<
int?>(
"GitHubDeploymentId")
 
  133                    .HasColumnType(
"int");
 
  135                b.Property<
long?>(
"GitHubRepoId")
 
  136                    .HasColumnType(
"bigint");
 
  138                b.Property<
long>(
"JobId")
 
  139                    .HasColumnType(
"bigint");
 
  141                b.Property<
int?>(
"MinimumSecurityLevel")
 
  142                    .HasColumnType(
"int");
 
  144                b.Property<
string>(
"Output")
 
  146                    .HasColumnType(
"longtext CHARACTER SET utf8mb4");
 
  148                b.Property<
string>(
"RepositoryOrigin")
 
  149                    .HasColumnType(
"longtext CHARACTER SET utf8mb4");
 
  151                b.Property<
long>(
"RevisionInformationId")
 
  152                    .HasColumnType(
"bigint");
 
  156                b.HasIndex(
"DirectoryName");
 
  161                b.HasIndex(
"RevisionInformationId");
 
  163                b.ToTable(
"CompileJobs");
 
  166            modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamDaemonSettings", b =>
 
  168                b.Property<
long>(
"Id")
 
  169                    .ValueGeneratedOnAdd()
 
  170                    .HasColumnType(
"bigint");
 
  172                b.Property<
string>(
"AdditionalParameters")
 
  174                    .HasColumnType(
"longtext CHARACTER SET utf8mb4")
 
  175                    .HasMaxLength(10000);
 
  177                b.Property<
bool?>(
"AllowWebClient")
 
  179                    .HasColumnType(
"tinyint(1)");
 
  181                b.Property<
bool?>(
"AutoStart")
 
  183                    .HasColumnType(
"tinyint(1)");
 
  185                b.Property<uint?>(
"HeartbeatSeconds")
 
  187                    .HasColumnType(
"int unsigned");
 
  189                b.Property<
long>(
"InstanceId")
 
  190                    .HasColumnType(
"bigint");
 
  192                b.Property<ushort?>(
"Port")
 
  194                    .HasColumnType(
"smallint unsigned");
 
  196                b.Property<
int>(
"SecurityLevel")
 
  197                    .HasColumnType(
"int");
 
  199                b.Property<uint?>(
"StartupTimeout")
 
  201                    .HasColumnType(
"int unsigned");
 
  203                b.Property<uint?>(
"TopicRequestTimeout")
 
  205                    .HasColumnType(
"int unsigned");
 
  209                b.HasIndex(
"InstanceId")
 
  212                b.ToTable(
"DreamDaemonSettings");
 
  215            modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamMakerSettings", b =>
 
  217                b.Property<
long>(
"Id")
 
  218                    .ValueGeneratedOnAdd()
 
  219                    .HasColumnType(
"bigint");
 
  221                b.Property<ushort?>(
"ApiValidationPort")
 
  223                    .HasColumnType(
"smallint unsigned");
 
  225                b.Property<
int>(
"ApiValidationSecurityLevel")
 
  226                    .HasColumnType(
"int");
 
  228                b.Property<
long>(
"InstanceId")
 
  229                    .HasColumnType(
"bigint");
 
  231                b.Property<
string>(
"ProjectName")
 
  232                    .HasColumnType(
"longtext CHARACTER SET utf8mb4")
 
  233                    .HasMaxLength(10000);
 
  235                b.Property<
bool?>(
"RequireDMApiValidation")
 
  237                    .HasColumnType(
"tinyint(1)");
 
  241                b.HasIndex(
"InstanceId")
 
  244                b.ToTable(
"DreamMakerSettings");
 
  247            modelBuilder.Entity(
"Tgstation.Server.Host.Models.Instance", b =>
 
  249                b.Property<
long>(
"Id")
 
  250                    .ValueGeneratedOnAdd()
 
  251                    .HasColumnType(
"bigint");
 
  253                b.Property<uint?>(
"AutoUpdateInterval")
 
  255                    .HasColumnType(
"int unsigned");
 
  257                b.Property<ushort?>(
"ChatBotLimit")
 
  259                    .HasColumnType(
"smallint unsigned");
 
  261                b.Property<
int>(
"ConfigurationType")
 
  262                    .HasColumnType(
"int");
 
  264                b.Property<
string>(
"Name")
 
  266                    .HasColumnType(
"longtext CHARACTER SET utf8mb4")
 
  267                    .HasMaxLength(10000);
 
  269                b.Property<
bool?>(
"Online")
 
  271                    .HasColumnType(
"tinyint(1)");
 
  273                b.Property<
string>(
"Path")
 
  275                    .HasColumnType(
"varchar(255) CHARACTER SET utf8mb4");
 
  277                b.Property<
string>(
"SwarmIdentifer")
 
  278                    .HasColumnType(
"varchar(255) CHARACTER SET utf8mb4");
 
  282                b.HasIndex(
"Path", 
"SwarmIdentifer")
 
  285                b.ToTable(
"Instances");
 
  288            modelBuilder.Entity(
"Tgstation.Server.Host.Models.InstancePermissionSet", b =>
 
  290                b.Property<
long>(
"Id")
 
  291                    .ValueGeneratedOnAdd()
 
  292                    .HasColumnType(
"bigint");
 
  294                b.Property<ulong>(
"ByondRights")
 
  295                    .HasColumnType(
"bigint unsigned");
 
  297                b.Property<ulong>(
"ChatBotRights")
 
  298                    .HasColumnType(
"bigint unsigned");
 
  300                b.Property<ulong>(
"ConfigurationRights")
 
  301                    .HasColumnType(
"bigint unsigned");
 
  303                b.Property<ulong>(
"DreamDaemonRights")
 
  304                    .HasColumnType(
"bigint unsigned");
 
  306                b.Property<ulong>(
"DreamMakerRights")
 
  307                    .HasColumnType(
"bigint unsigned");
 
  309                b.Property<
long>(
"InstanceId")
 
  310                    .HasColumnType(
"bigint");
 
  312                b.Property<ulong>(
"InstancePermissionSetRights")
 
  313                    .HasColumnType(
"bigint unsigned");
 
  315                b.Property<
long>(
"PermissionSetId")
 
  316                    .HasColumnType(
"bigint");
 
  318                b.Property<ulong>(
"RepositoryRights")
 
  319                    .HasColumnType(
"bigint unsigned");
 
  323                b.HasIndex(
"InstanceId");
 
  325                b.HasIndex(
"PermissionSetId", 
"InstanceId")
 
  328                b.ToTable(
"InstancePermissionSets");
 
  331            modelBuilder.Entity(
"Tgstation.Server.Host.Models.Job", b =>
 
  333                b.Property<
long>(
"Id")
 
  334                    .ValueGeneratedOnAdd()
 
  335                    .HasColumnType(
"bigint");
 
  337                b.Property<ulong?>(
"CancelRight")
 
  338                    .HasColumnType(
"bigint unsigned");
 
  340                b.Property<ulong?>(
"CancelRightsType")
 
  341                    .HasColumnType(
"bigint unsigned");
 
  343                b.Property<
bool?>(
"Cancelled")
 
  345                    .HasColumnType(
"tinyint(1)");
 
  347                b.Property<
long?>(
"CancelledById")
 
  348                    .HasColumnType(
"bigint");
 
  350                b.Property<
string>(
"Description")
 
  352                    .HasColumnType(
"longtext CHARACTER SET utf8mb4");
 
  354                b.Property<uint?>(
"ErrorCode")
 
  355                    .HasColumnType(
"int unsigned");
 
  357                b.Property<
string>(
"ExceptionDetails")
 
  358                    .HasColumnType(
"longtext CHARACTER SET utf8mb4");
 
  360                b.Property<
long>(
"InstanceId")
 
  361                    .HasColumnType(
"bigint");
 
  363                b.Property<DateTimeOffset?>(
"StartedAt")
 
  365                    .HasColumnType(
"datetime(6)");
 
  367                b.Property<
long>(
"StartedById")
 
  368                    .HasColumnType(
"bigint");
 
  370                b.Property<DateTimeOffset?>(
"StoppedAt")
 
  371                    .HasColumnType(
"datetime(6)");
 
  375                b.HasIndex(
"CancelledById");
 
  377                b.HasIndex(
"InstanceId");
 
  379                b.HasIndex(
"StartedById");
 
  384            modelBuilder.Entity(
"Tgstation.Server.Host.Models.OAuthConnection", b =>
 
  386                b.Property<
long>(
"Id")
 
  387                    .ValueGeneratedOnAdd()
 
  388                    .HasColumnType(
"bigint");
 
  390                b.Property<
string>(
"ExternalUserId")
 
  392                    .HasColumnType(
"varchar(100) CHARACTER SET utf8mb4")
 
  395                b.Property<
int>(
"Provider")
 
  396                    .HasColumnType(
"int");
 
  398                b.Property<
long?>(
"UserId")
 
  399                    .HasColumnType(
"bigint");
 
  403                b.HasIndex(
"UserId");
 
  405                b.HasIndex(
"Provider", 
"ExternalUserId")
 
  408                b.ToTable(
"OAuthConnections");
 
  411            modelBuilder.Entity(
"Tgstation.Server.Host.Models.PermissionSet", b =>
 
  413                b.Property<
long?>(
"Id")
 
  414                    .ValueGeneratedOnAdd()
 
  415                    .HasColumnType(
"bigint");
 
  417                b.Property<ulong>(
"AdministrationRights")
 
  418                    .HasColumnType(
"bigint unsigned");
 
  420                b.Property<
long?>(
"GroupId")
 
  421                    .HasColumnType(
"bigint");
 
  423                b.Property<ulong>(
"InstanceManagerRights")
 
  424                    .HasColumnType(
"bigint unsigned");
 
  426                b.Property<
long?>(
"UserId")
 
  427                    .HasColumnType(
"bigint");
 
  431                b.HasIndex(
"GroupId")
 
  437                b.ToTable(
"PermissionSets");
 
  440            modelBuilder.Entity(
"Tgstation.Server.Host.Models.ReattachInformation", b =>
 
  442                b.Property<
long>(
"Id")
 
  443                    .ValueGeneratedOnAdd()
 
  444                    .HasColumnType(
"bigint");
 
  446                b.Property<
string>(
"AccessIdentifier")
 
  448                    .HasColumnType(
"longtext CHARACTER SET utf8mb4");
 
  450                b.Property<
long>(
"CompileJobId")
 
  451                    .HasColumnType(
"bigint");
 
  453                b.Property<
int>(
"LaunchSecurityLevel")
 
  454                    .HasColumnType(
"int");
 
  456                b.Property<ushort>(
"Port")
 
  457                    .HasColumnType(
"smallint unsigned");
 
  459                b.Property<
int>(
"ProcessId")
 
  460                    .HasColumnType(
"int");
 
  462                b.Property<
int>(
"RebootState")
 
  463                    .HasColumnType(
"int");
 
  467                b.HasIndex(
"CompileJobId");
 
  469                b.ToTable(
"ReattachInformations");
 
  472            modelBuilder.Entity(
"Tgstation.Server.Host.Models.RepositorySettings", b =>
 
  474                b.Property<
long>(
"Id")
 
  475                    .ValueGeneratedOnAdd()
 
  476                    .HasColumnType(
"bigint");
 
  478                b.Property<
string>(
"AccessToken")
 
  479                    .HasColumnType(
"longtext CHARACTER SET utf8mb4")
 
  480                    .HasMaxLength(10000);
 
  482                b.Property<
string>(
"AccessUser")
 
  483                    .HasColumnType(
"longtext CHARACTER SET utf8mb4")
 
  484                    .HasMaxLength(10000);
 
  486                b.Property<
bool?>(
"AutoUpdatesKeepTestMerges")
 
  488                    .HasColumnType(
"tinyint(1)");
 
  490                b.Property<
bool?>(
"AutoUpdatesSynchronize")
 
  492                    .HasColumnType(
"tinyint(1)");
 
  494                b.Property<
string>(
"CommitterEmail")
 
  496                    .HasColumnType(
"longtext CHARACTER SET utf8mb4")
 
  497                    .HasMaxLength(10000);
 
  499                b.Property<
string>(
"CommitterName")
 
  501                    .HasColumnType(
"longtext CHARACTER SET utf8mb4")
 
  502                    .HasMaxLength(10000);
 
  504                b.Property<
bool?>(
"CreateGitHubDeployments")
 
  506                    .HasColumnType(
"tinyint(1)");
 
  508                b.Property<
long>(
"InstanceId")
 
  509                    .HasColumnType(
"bigint");
 
  511                b.Property<
bool?>(
"PostTestMergeComment")
 
  513                    .HasColumnType(
"tinyint(1)");
 
  515                b.Property<
bool?>(
"PushTestMergeCommits")
 
  517                    .HasColumnType(
"tinyint(1)");
 
  519                b.Property<
bool?>(
"ShowTestMergeCommitters")
 
  521                    .HasColumnType(
"tinyint(1)");
 
  525                b.HasIndex(
"InstanceId")
 
  528                b.ToTable(
"RepositorySettings");
 
  531            modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
 
  533                b.Property<
long>(
"Id")
 
  534                    .ValueGeneratedOnAdd()
 
  535                    .HasColumnType(
"bigint");
 
  537                b.Property<
long>(
"RevisionInformationId")
 
  538                    .HasColumnType(
"bigint");
 
  540                b.Property<
long>(
"TestMergeId")
 
  541                    .HasColumnType(
"bigint");
 
  545                b.HasIndex(
"RevisionInformationId");
 
  547                b.HasIndex(
"TestMergeId");
 
  549                b.ToTable(
"RevInfoTestMerges");
 
  552            modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevisionInformation", b =>
 
  554                b.Property<
long>(
"Id")
 
  555                    .ValueGeneratedOnAdd()
 
  556                    .HasColumnType(
"bigint");
 
  558                b.Property<
string>(
"CommitSha")
 
  560                    .HasColumnType(
"varchar(40) CHARACTER SET utf8mb4")
 
  563                b.Property<
long>(
"InstanceId")
 
  564                    .HasColumnType(
"bigint");
 
  566                b.Property<
string>(
"OriginCommitSha")
 
  568                    .HasColumnType(
"varchar(40) CHARACTER SET utf8mb4")
 
  571                b.Property<DateTimeOffset>(
"Timestamp")
 
  572                    .HasColumnType(
"datetime(6)");
 
  576                b.HasIndex(
"InstanceId", 
"CommitSha")
 
  579                b.ToTable(
"RevisionInformations");
 
  582            modelBuilder.Entity(
"Tgstation.Server.Host.Models.TestMerge", b =>
 
  584                b.Property<
long>(
"Id")
 
  585                    .ValueGeneratedOnAdd()
 
  586                    .HasColumnType(
"bigint");
 
  588                b.Property<
string>(
"Author")
 
  590                    .HasColumnType(
"longtext CHARACTER SET utf8mb4");
 
  592                b.Property<
string>(
"BodyAtMerge")
 
  594                    .HasColumnType(
"longtext CHARACTER SET utf8mb4");
 
  596                b.Property<
string>(
"Comment")
 
  597                    .HasColumnType(
"longtext CHARACTER SET utf8mb4")
 
  598                    .HasMaxLength(10000);
 
  600                b.Property<DateTimeOffset>(
"MergedAt")
 
  601                    .HasColumnType(
"datetime(6)");
 
  603                b.Property<
long>(
"MergedById")
 
  604                    .HasColumnType(
"bigint");
 
  606                b.Property<
int>(
"Number")
 
  607                    .HasColumnType(
"int");
 
  609                b.Property<
long?>(
"PrimaryRevisionInformationId")
 
  611                    .HasColumnType(
"bigint");
 
  613                b.Property<
string>(
"TargetCommitSha")
 
  615                    .HasColumnType(
"varchar(40) CHARACTER SET utf8mb4")
 
  618                b.Property<
string>(
"TitleAtMerge")
 
  620                    .HasColumnType(
"longtext CHARACTER SET utf8mb4");
 
  622                b.Property<
string>(
"Url")
 
  624                    .HasColumnType(
"longtext CHARACTER SET utf8mb4");
 
  628                b.HasIndex(
"MergedById");
 
  630                b.HasIndex(
"PrimaryRevisionInformationId")
 
  633                b.ToTable(
"TestMerges");
 
  636            modelBuilder.Entity(
"Tgstation.Server.Host.Models.User", b =>
 
  638                b.Property<
long?>(
"Id")
 
  639                    .ValueGeneratedOnAdd()
 
  640                    .HasColumnType(
"bigint");
 
  642                b.Property<
string>(
"CanonicalName")
 
  644                    .HasColumnType(
"varchar(100) CHARACTER SET utf8mb4")
 
  647                b.Property<DateTimeOffset?>(
"CreatedAt")
 
  649                    .HasColumnType(
"datetime(6)");
 
  651                b.Property<
long?>(
"CreatedById")
 
  652                    .HasColumnType(
"bigint");
 
  654                b.Property<
bool?>(
"Enabled")
 
  656                    .HasColumnType(
"tinyint(1)");
 
  658                b.Property<
long?>(
"GroupId")
 
  659                    .HasColumnType(
"bigint");
 
  661                b.Property<DateTimeOffset?>(
"LastPasswordUpdate")
 
  662                    .HasColumnType(
"datetime(6)");
 
  664                b.Property<
string>(
"Name")
 
  666                    .HasColumnType(
"varchar(100) CHARACTER SET utf8mb4")
 
  669                b.Property<
string>(
"PasswordHash")
 
  670                    .HasColumnType(
"longtext CHARACTER SET utf8mb4");
 
  672                b.Property<
string>(
"SystemIdentifier")
 
  673                    .HasColumnType(
"varchar(100) CHARACTER SET utf8mb4")
 
  678                b.HasIndex(
"CanonicalName")
 
  681                b.HasIndex(
"CreatedById");
 
  683                b.HasIndex(
"GroupId");
 
  685                b.HasIndex(
"SystemIdentifier")
 
  691            modelBuilder.Entity(
"Tgstation.Server.Host.Models.UserGroup", b =>
 
  693                b.Property<
long>(
"Id")
 
  694                    .ValueGeneratedOnAdd()
 
  695                    .HasColumnType(
"bigint");
 
  697                b.Property<
string>(
"Name")
 
  699                    .HasColumnType(
"varchar(100) CHARACTER SET utf8mb4")
 
  710            modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatBot", b =>
 
  712                b.HasOne(
"Tgstation.Server.Host.Models.Instance", 
"Instance")
 
  713                    .WithMany(
"ChatSettings")
 
  714                    .HasForeignKey(
"InstanceId")
 
  715                    .OnDelete(DeleteBehavior.Cascade)
 
  719            modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatChannel", b =>
 
  721                b.HasOne(
"Tgstation.Server.Host.Models.ChatBot", 
"ChatSettings")
 
  722                    .WithMany(
"Channels")
 
  723                    .HasForeignKey(
"ChatSettingsId")
 
  724                    .OnDelete(DeleteBehavior.Cascade)
 
  728            modelBuilder.Entity(
"Tgstation.Server.Host.Models.CompileJob", b =>
 
  730                b.HasOne(
"Tgstation.Server.Host.Models.Job", 
"Job")
 
  732                    .HasForeignKey(
"Tgstation.Server.Host.Models.CompileJob", 
"JobId")
 
  733                    .OnDelete(DeleteBehavior.Cascade)
 
  736                b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation", 
"RevisionInformation")
 
  737                    .WithMany(
"CompileJobs")
 
  738                    .HasForeignKey(
"RevisionInformationId")
 
  739                    .OnDelete(DeleteBehavior.Cascade)
 
  743            modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamDaemonSettings", b =>
 
  745                b.HasOne(
"Tgstation.Server.Host.Models.Instance", 
"Instance")
 
  746                    .WithOne(
"DreamDaemonSettings")
 
  747                    .HasForeignKey(
"Tgstation.Server.Host.Models.DreamDaemonSettings", 
"InstanceId")
 
  748                    .OnDelete(DeleteBehavior.Cascade)
 
  752            modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamMakerSettings", b =>
 
  754                b.HasOne(
"Tgstation.Server.Host.Models.Instance", 
"Instance")
 
  755                    .WithOne(
"DreamMakerSettings")
 
  756                    .HasForeignKey(
"Tgstation.Server.Host.Models.DreamMakerSettings", 
"InstanceId")
 
  757                    .OnDelete(DeleteBehavior.Cascade)
 
  761            modelBuilder.Entity(
"Tgstation.Server.Host.Models.InstancePermissionSet", b =>
 
  763                b.HasOne(
"Tgstation.Server.Host.Models.Instance", 
"Instance")
 
  764                    .WithMany(
"InstancePermissionSets")
 
  765                    .HasForeignKey(
"InstanceId")
 
  766                    .OnDelete(DeleteBehavior.Cascade)
 
  769                b.HasOne(
"Tgstation.Server.Host.Models.PermissionSet", 
"PermissionSet")
 
  770                    .WithMany(
"InstancePermissionSets")
 
  771                    .HasForeignKey(
"PermissionSetId")
 
  772                    .OnDelete(DeleteBehavior.Cascade)
 
  776            modelBuilder.Entity(
"Tgstation.Server.Host.Models.Job", b =>
 
  778                b.HasOne(
"Tgstation.Server.Host.Models.User", 
"CancelledBy")
 
  780                    .HasForeignKey(
"CancelledById");
 
  782                b.HasOne(
"Tgstation.Server.Host.Models.Instance", 
"Instance")
 
  784                    .HasForeignKey(
"InstanceId")
 
  785                    .OnDelete(DeleteBehavior.Cascade)
 
  788                b.HasOne(
"Tgstation.Server.Host.Models.User", 
"StartedBy")
 
  790                    .HasForeignKey(
"StartedById")
 
  791                    .OnDelete(DeleteBehavior.Cascade)
 
  795            modelBuilder.Entity(
"Tgstation.Server.Host.Models.OAuthConnection", b =>
 
  797                b.HasOne(
"Tgstation.Server.Host.Models.User", 
"User")
 
  798                    .WithMany(
"OAuthConnections")
 
  799                    .HasForeignKey(
"UserId")
 
  800                    .OnDelete(DeleteBehavior.Cascade);
 
  803            modelBuilder.Entity(
"Tgstation.Server.Host.Models.PermissionSet", b =>
 
  805                b.HasOne(
"Tgstation.Server.Host.Models.UserGroup", 
"Group")
 
  806                    .WithOne(
"PermissionSet")
 
  807                    .HasForeignKey(
"Tgstation.Server.Host.Models.PermissionSet", 
"GroupId")
 
  808                    .OnDelete(DeleteBehavior.Cascade);
 
  810                b.HasOne(
"Tgstation.Server.Host.Models.User", 
"User")
 
  811                    .WithOne(
"PermissionSet")
 
  812                    .HasForeignKey(
"Tgstation.Server.Host.Models.PermissionSet", 
"UserId")
 
  813                    .OnDelete(DeleteBehavior.Cascade);
 
  816            modelBuilder.Entity(
"Tgstation.Server.Host.Models.ReattachInformation", b =>
 
  818                b.HasOne(
"Tgstation.Server.Host.Models.CompileJob", 
"CompileJob")
 
  820                    .HasForeignKey(
"CompileJobId")
 
  821                    .OnDelete(DeleteBehavior.Cascade)
 
  825            modelBuilder.Entity(
"Tgstation.Server.Host.Models.RepositorySettings", b =>
 
  827                b.HasOne(
"Tgstation.Server.Host.Models.Instance", 
"Instance")
 
  828                    .WithOne(
"RepositorySettings")
 
  829                    .HasForeignKey(
"Tgstation.Server.Host.Models.RepositorySettings", 
"InstanceId")
 
  830                    .OnDelete(DeleteBehavior.Cascade)
 
  834            modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
 
  836                b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation", 
"RevisionInformation")
 
  837                    .WithMany(
"ActiveTestMerges")
 
  838                    .HasForeignKey(
"RevisionInformationId")
 
  839                    .OnDelete(DeleteBehavior.Cascade)
 
  842                b.HasOne(
"Tgstation.Server.Host.Models.TestMerge", 
"TestMerge")
 
  843                    .WithMany(
"RevisonInformations")
 
  844                    .HasForeignKey(
"TestMergeId")
 
  845                    .OnDelete(DeleteBehavior.ClientNoAction)
 
  849            modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevisionInformation", b =>
 
  851                b.HasOne(
"Tgstation.Server.Host.Models.Instance", 
"Instance")
 
  852                    .WithMany(
"RevisionInformations")
 
  853                    .HasForeignKey(
"InstanceId")
 
  854                    .OnDelete(DeleteBehavior.Cascade)
 
  858            modelBuilder.Entity(
"Tgstation.Server.Host.Models.TestMerge", b =>
 
  860                b.HasOne(
"Tgstation.Server.Host.Models.User", 
"MergedBy")
 
  861                    .WithMany(
"TestMerges")
 
  862                    .HasForeignKey(
"MergedById")
 
  863                    .OnDelete(DeleteBehavior.Restrict)
 
  866                b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation", 
"PrimaryRevisionInformation")
 
  867                    .WithOne(
"PrimaryTestMerge")
 
  868                    .HasForeignKey(
"Tgstation.Server.Host.Models.TestMerge", 
"PrimaryRevisionInformationId")
 
  869                    .OnDelete(DeleteBehavior.Cascade)
 
  873            modelBuilder.Entity(
"Tgstation.Server.Host.Models.User", b =>
 
  875                b.HasOne(
"Tgstation.Server.Host.Models.User", 
"CreatedBy")
 
  876                    .WithMany(
"CreatedUsers")
 
  877                    .HasForeignKey(
"CreatedById");
 
  879                b.HasOne(
"Tgstation.Server.Host.Models.UserGroup", 
"Group")
 
  881                    .HasForeignKey(
"GroupId");
 
  883#pragma warning restore 612, 618