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");
282 b.ToTable(
"Instances");
285 modelBuilder.Entity(
"Tgstation.Server.Host.Models.InstancePermissionSet", b =>
287 b.Property<
long>(
"Id")
288 .ValueGeneratedOnAdd()
289 .HasColumnType(
"bigint");
291 b.Property<ulong>(
"ByondRights")
292 .HasColumnType(
"bigint unsigned");
294 b.Property<ulong>(
"ChatBotRights")
295 .HasColumnType(
"bigint unsigned");
297 b.Property<ulong>(
"ConfigurationRights")
298 .HasColumnType(
"bigint unsigned");
300 b.Property<ulong>(
"DreamDaemonRights")
301 .HasColumnType(
"bigint unsigned");
303 b.Property<ulong>(
"DreamMakerRights")
304 .HasColumnType(
"bigint unsigned");
306 b.Property<
long>(
"InstanceId")
307 .HasColumnType(
"bigint");
309 b.Property<ulong>(
"InstancePermissionSetRights")
310 .HasColumnType(
"bigint unsigned");
312 b.Property<
long>(
"PermissionSetId")
313 .HasColumnType(
"bigint");
315 b.Property<ulong>(
"RepositoryRights")
316 .HasColumnType(
"bigint unsigned");
320 b.HasIndex(
"InstanceId");
322 b.HasIndex(
"PermissionSetId",
"InstanceId")
325 b.ToTable(
"InstancePermissionSets");
328 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Job", b =>
330 b.Property<
long>(
"Id")
331 .ValueGeneratedOnAdd()
332 .HasColumnType(
"bigint");
334 b.Property<ulong?>(
"CancelRight")
335 .HasColumnType(
"bigint unsigned");
337 b.Property<ulong?>(
"CancelRightsType")
338 .HasColumnType(
"bigint unsigned");
340 b.Property<
bool?>(
"Cancelled")
342 .HasColumnType(
"tinyint(1)");
344 b.Property<
long?>(
"CancelledById")
345 .HasColumnType(
"bigint");
347 b.Property<
string>(
"Description")
349 .HasColumnType(
"longtext CHARACTER SET utf8mb4");
351 b.Property<uint?>(
"ErrorCode")
352 .HasColumnType(
"int unsigned");
354 b.Property<
string>(
"ExceptionDetails")
355 .HasColumnType(
"longtext CHARACTER SET utf8mb4");
357 b.Property<
long>(
"InstanceId")
358 .HasColumnType(
"bigint");
360 b.Property<DateTimeOffset?>(
"StartedAt")
362 .HasColumnType(
"datetime(6)");
364 b.Property<
long>(
"StartedById")
365 .HasColumnType(
"bigint");
367 b.Property<DateTimeOffset?>(
"StoppedAt")
368 .HasColumnType(
"datetime(6)");
372 b.HasIndex(
"CancelledById");
374 b.HasIndex(
"InstanceId");
376 b.HasIndex(
"StartedById");
381 modelBuilder.Entity(
"Tgstation.Server.Host.Models.OAuthConnection", b =>
383 b.Property<
long>(
"Id")
384 .ValueGeneratedOnAdd()
385 .HasColumnType(
"bigint");
387 b.Property<
string>(
"ExternalUserId")
389 .HasColumnType(
"varchar(100) CHARACTER SET utf8mb4")
392 b.Property<
int>(
"Provider")
393 .HasColumnType(
"int");
395 b.Property<
long?>(
"UserId")
396 .HasColumnType(
"bigint");
400 b.HasIndex(
"UserId");
402 b.HasIndex(
"Provider",
"ExternalUserId")
405 b.ToTable(
"OAuthConnections");
408 modelBuilder.Entity(
"Tgstation.Server.Host.Models.PermissionSet", b =>
410 b.Property<
long?>(
"Id")
411 .ValueGeneratedOnAdd()
412 .HasColumnType(
"bigint");
414 b.Property<ulong>(
"AdministrationRights")
415 .HasColumnType(
"bigint unsigned");
417 b.Property<
long?>(
"GroupId")
418 .HasColumnType(
"bigint");
420 b.Property<ulong>(
"InstanceManagerRights")
421 .HasColumnType(
"bigint unsigned");
423 b.Property<
long?>(
"UserId")
424 .HasColumnType(
"bigint");
428 b.HasIndex(
"GroupId")
434 b.ToTable(
"PermissionSets");
437 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ReattachInformation", b =>
439 b.Property<
long>(
"Id")
440 .ValueGeneratedOnAdd()
441 .HasColumnType(
"bigint");
443 b.Property<
string>(
"AccessIdentifier")
445 .HasColumnType(
"longtext CHARACTER SET utf8mb4");
447 b.Property<
long>(
"CompileJobId")
448 .HasColumnType(
"bigint");
450 b.Property<
int>(
"LaunchSecurityLevel")
451 .HasColumnType(
"int");
453 b.Property<ushort>(
"Port")
454 .HasColumnType(
"smallint unsigned");
456 b.Property<
int>(
"ProcessId")
457 .HasColumnType(
"int");
459 b.Property<
int>(
"RebootState")
460 .HasColumnType(
"int");
464 b.HasIndex(
"CompileJobId");
466 b.ToTable(
"ReattachInformations");
469 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RepositorySettings", b =>
471 b.Property<
long>(
"Id")
472 .ValueGeneratedOnAdd()
473 .HasColumnType(
"bigint");
475 b.Property<
string>(
"AccessToken")
476 .HasColumnType(
"longtext CHARACTER SET utf8mb4")
477 .HasMaxLength(10000);
479 b.Property<
string>(
"AccessUser")
480 .HasColumnType(
"longtext CHARACTER SET utf8mb4")
481 .HasMaxLength(10000);
483 b.Property<
bool?>(
"AutoUpdatesKeepTestMerges")
485 .HasColumnType(
"tinyint(1)");
487 b.Property<
bool?>(
"AutoUpdatesSynchronize")
489 .HasColumnType(
"tinyint(1)");
491 b.Property<
string>(
"CommitterEmail")
493 .HasColumnType(
"longtext CHARACTER SET utf8mb4")
494 .HasMaxLength(10000);
496 b.Property<
string>(
"CommitterName")
498 .HasColumnType(
"longtext CHARACTER SET utf8mb4")
499 .HasMaxLength(10000);
501 b.Property<
bool?>(
"CreateGitHubDeployments")
503 .HasColumnType(
"tinyint(1)");
505 b.Property<
long>(
"InstanceId")
506 .HasColumnType(
"bigint");
508 b.Property<
bool?>(
"PostTestMergeComment")
510 .HasColumnType(
"tinyint(1)");
512 b.Property<
bool?>(
"PushTestMergeCommits")
514 .HasColumnType(
"tinyint(1)");
516 b.Property<
bool?>(
"ShowTestMergeCommitters")
518 .HasColumnType(
"tinyint(1)");
522 b.HasIndex(
"InstanceId")
525 b.ToTable(
"RepositorySettings");
528 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
530 b.Property<
long>(
"Id")
531 .ValueGeneratedOnAdd()
532 .HasColumnType(
"bigint");
534 b.Property<
long>(
"RevisionInformationId")
535 .HasColumnType(
"bigint");
537 b.Property<
long>(
"TestMergeId")
538 .HasColumnType(
"bigint");
542 b.HasIndex(
"RevisionInformationId");
544 b.HasIndex(
"TestMergeId");
546 b.ToTable(
"RevInfoTestMerges");
549 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevisionInformation", b =>
551 b.Property<
long>(
"Id")
552 .ValueGeneratedOnAdd()
553 .HasColumnType(
"bigint");
555 b.Property<
string>(
"CommitSha")
557 .HasColumnType(
"varchar(40) CHARACTER SET utf8mb4")
560 b.Property<
long>(
"InstanceId")
561 .HasColumnType(
"bigint");
563 b.Property<
string>(
"OriginCommitSha")
565 .HasColumnType(
"varchar(40) CHARACTER SET utf8mb4")
570 b.HasIndex(
"InstanceId",
"CommitSha")
573 b.ToTable(
"RevisionInformations");
576 modelBuilder.Entity(
"Tgstation.Server.Host.Models.TestMerge", b =>
578 b.Property<
long>(
"Id")
579 .ValueGeneratedOnAdd()
580 .HasColumnType(
"bigint");
582 b.Property<
string>(
"Author")
584 .HasColumnType(
"longtext CHARACTER SET utf8mb4");
586 b.Property<
string>(
"BodyAtMerge")
588 .HasColumnType(
"longtext CHARACTER SET utf8mb4");
590 b.Property<
string>(
"Comment")
591 .HasColumnType(
"longtext CHARACTER SET utf8mb4")
592 .HasMaxLength(10000);
594 b.Property<DateTimeOffset>(
"MergedAt")
595 .HasColumnType(
"datetime(6)");
597 b.Property<
long>(
"MergedById")
598 .HasColumnType(
"bigint");
600 b.Property<
int>(
"Number")
601 .HasColumnType(
"int");
603 b.Property<
long?>(
"PrimaryRevisionInformationId")
605 .HasColumnType(
"bigint");
607 b.Property<
string>(
"TargetCommitSha")
609 .HasColumnType(
"varchar(40) CHARACTER SET utf8mb4")
612 b.Property<
string>(
"TitleAtMerge")
614 .HasColumnType(
"longtext CHARACTER SET utf8mb4");
616 b.Property<
string>(
"Url")
618 .HasColumnType(
"longtext CHARACTER SET utf8mb4");
622 b.HasIndex(
"MergedById");
624 b.HasIndex(
"PrimaryRevisionInformationId")
627 b.ToTable(
"TestMerges");
630 modelBuilder.Entity(
"Tgstation.Server.Host.Models.User", b =>
632 b.Property<
long?>(
"Id")
633 .ValueGeneratedOnAdd()
634 .HasColumnType(
"bigint");
636 b.Property<
string>(
"CanonicalName")
638 .HasColumnType(
"varchar(100) CHARACTER SET utf8mb4")
641 b.Property<DateTimeOffset?>(
"CreatedAt")
643 .HasColumnType(
"datetime(6)");
645 b.Property<
long?>(
"CreatedById")
646 .HasColumnType(
"bigint");
648 b.Property<
bool?>(
"Enabled")
650 .HasColumnType(
"tinyint(1)");
652 b.Property<
long?>(
"GroupId")
653 .HasColumnType(
"bigint");
655 b.Property<DateTimeOffset?>(
"LastPasswordUpdate")
656 .HasColumnType(
"datetime(6)");
658 b.Property<
string>(
"Name")
660 .HasColumnType(
"varchar(100) CHARACTER SET utf8mb4")
663 b.Property<
string>(
"PasswordHash")
664 .HasColumnType(
"longtext CHARACTER SET utf8mb4");
666 b.Property<
string>(
"SystemIdentifier")
667 .HasColumnType(
"varchar(100) CHARACTER SET utf8mb4")
672 b.HasIndex(
"CanonicalName")
675 b.HasIndex(
"CreatedById");
677 b.HasIndex(
"GroupId");
679 b.HasIndex(
"SystemIdentifier")
685 modelBuilder.Entity(
"Tgstation.Server.Host.Models.UserGroup", b =>
687 b.Property<
long>(
"Id")
688 .ValueGeneratedOnAdd()
689 .HasColumnType(
"bigint");
691 b.Property<
string>(
"Name")
693 .HasColumnType(
"varchar(100) CHARACTER SET utf8mb4")
704 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatBot", b =>
706 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
707 .WithMany(
"ChatSettings")
708 .HasForeignKey(
"InstanceId")
709 .OnDelete(DeleteBehavior.Cascade)
713 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatChannel", b =>
715 b.HasOne(
"Tgstation.Server.Host.Models.ChatBot",
"ChatSettings")
716 .WithMany(
"Channels")
717 .HasForeignKey(
"ChatSettingsId")
718 .OnDelete(DeleteBehavior.Cascade)
722 modelBuilder.Entity(
"Tgstation.Server.Host.Models.CompileJob", b =>
724 b.HasOne(
"Tgstation.Server.Host.Models.Job",
"Job")
726 .HasForeignKey(
"Tgstation.Server.Host.Models.CompileJob",
"JobId")
727 .OnDelete(DeleteBehavior.Cascade)
730 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"RevisionInformation")
731 .WithMany(
"CompileJobs")
732 .HasForeignKey(
"RevisionInformationId")
733 .OnDelete(DeleteBehavior.Cascade)
737 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamDaemonSettings", b =>
739 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
740 .WithOne(
"DreamDaemonSettings")
741 .HasForeignKey(
"Tgstation.Server.Host.Models.DreamDaemonSettings",
"InstanceId")
742 .OnDelete(DeleteBehavior.Cascade)
746 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamMakerSettings", b =>
748 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
749 .WithOne(
"DreamMakerSettings")
750 .HasForeignKey(
"Tgstation.Server.Host.Models.DreamMakerSettings",
"InstanceId")
751 .OnDelete(DeleteBehavior.Cascade)
755 modelBuilder.Entity(
"Tgstation.Server.Host.Models.InstancePermissionSet", b =>
757 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
758 .WithMany(
"InstancePermissionSets")
759 .HasForeignKey(
"InstanceId")
760 .OnDelete(DeleteBehavior.Cascade)
763 b.HasOne(
"Tgstation.Server.Host.Models.PermissionSet",
"PermissionSet")
764 .WithMany(
"InstancePermissionSets")
765 .HasForeignKey(
"PermissionSetId")
766 .OnDelete(DeleteBehavior.Cascade)
770 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Job", b =>
772 b.HasOne(
"Tgstation.Server.Host.Models.User",
"CancelledBy")
774 .HasForeignKey(
"CancelledById");
776 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
778 .HasForeignKey(
"InstanceId")
779 .OnDelete(DeleteBehavior.Cascade)
782 b.HasOne(
"Tgstation.Server.Host.Models.User",
"StartedBy")
784 .HasForeignKey(
"StartedById")
785 .OnDelete(DeleteBehavior.Cascade)
789 modelBuilder.Entity(
"Tgstation.Server.Host.Models.OAuthConnection", b =>
791 b.HasOne(
"Tgstation.Server.Host.Models.User",
"User")
792 .WithMany(
"OAuthConnections")
793 .HasForeignKey(
"UserId")
794 .OnDelete(DeleteBehavior.Cascade);
797 modelBuilder.Entity(
"Tgstation.Server.Host.Models.PermissionSet", b =>
799 b.HasOne(
"Tgstation.Server.Host.Models.UserGroup",
"Group")
800 .WithOne(
"PermissionSet")
801 .HasForeignKey(
"Tgstation.Server.Host.Models.PermissionSet",
"GroupId")
802 .OnDelete(DeleteBehavior.Cascade);
804 b.HasOne(
"Tgstation.Server.Host.Models.User",
"User")
805 .WithOne(
"PermissionSet")
806 .HasForeignKey(
"Tgstation.Server.Host.Models.PermissionSet",
"UserId")
807 .OnDelete(DeleteBehavior.Cascade);
810 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ReattachInformation", b =>
812 b.HasOne(
"Tgstation.Server.Host.Models.CompileJob",
"CompileJob")
814 .HasForeignKey(
"CompileJobId")
815 .OnDelete(DeleteBehavior.Cascade)
819 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RepositorySettings", b =>
821 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
822 .WithOne(
"RepositorySettings")
823 .HasForeignKey(
"Tgstation.Server.Host.Models.RepositorySettings",
"InstanceId")
824 .OnDelete(DeleteBehavior.Cascade)
828 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
830 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"RevisionInformation")
831 .WithMany(
"ActiveTestMerges")
832 .HasForeignKey(
"RevisionInformationId")
833 .OnDelete(DeleteBehavior.Cascade)
836 b.HasOne(
"Tgstation.Server.Host.Models.TestMerge",
"TestMerge")
837 .WithMany(
"RevisonInformations")
838 .HasForeignKey(
"TestMergeId")
839 .OnDelete(DeleteBehavior.ClientNoAction)
843 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevisionInformation", b =>
845 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
846 .WithMany(
"RevisionInformations")
847 .HasForeignKey(
"InstanceId")
848 .OnDelete(DeleteBehavior.Cascade)
852 modelBuilder.Entity(
"Tgstation.Server.Host.Models.TestMerge", b =>
854 b.HasOne(
"Tgstation.Server.Host.Models.User",
"MergedBy")
855 .WithMany(
"TestMerges")
856 .HasForeignKey(
"MergedById")
857 .OnDelete(DeleteBehavior.Restrict)
860 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"PrimaryRevisionInformation")
861 .WithOne(
"PrimaryTestMerge")
862 .HasForeignKey(
"Tgstation.Server.Host.Models.TestMerge",
"PrimaryRevisionInformationId")
863 .OnDelete(DeleteBehavior.Cascade)
867 modelBuilder.Entity(
"Tgstation.Server.Host.Models.User", b =>
869 b.HasOne(
"Tgstation.Server.Host.Models.User",
"CreatedBy")
870 .WithMany(
"CreatedUsers")
871 .HasForeignKey(
"CreatedById");
873 b.HasOne(
"Tgstation.Server.Host.Models.UserGroup",
"Group")
875 .HasForeignKey(
"GroupId");
877#pragma warning restore 612, 618