17#pragma warning disable 612, 618
19 .HasAnnotation(
"ProductVersion",
"3.1.20");
21 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatBot", b =>
23 b.Property<
long?>(
"Id")
24 .ValueGeneratedOnAdd()
25 .HasColumnType(
"INTEGER");
27 b.Property<ushort?>(
"ChannelLimit")
29 .HasColumnType(
"INTEGER");
31 b.Property<
string>(
"ConnectionString")
33 .HasColumnType(
"TEXT")
36 b.Property<
bool?>(
"Enabled")
37 .HasColumnType(
"INTEGER");
39 b.Property<
long>(
"InstanceId")
40 .HasColumnType(
"INTEGER");
42 b.Property<
string>(
"Name")
44 .HasColumnType(
"TEXT")
47 b.Property<
int>(
"Provider")
48 .HasColumnType(
"INTEGER");
50 b.Property<uint?>(
"ReconnectionInterval")
52 .HasColumnType(
"INTEGER");
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(
"INTEGER");
68 b.Property<
long>(
"ChatSettingsId")
69 .HasColumnType(
"INTEGER");
71 b.Property<ulong?>(
"DiscordChannelId")
72 .HasColumnType(
"INTEGER");
74 b.Property<
string>(
"IrcChannel")
75 .HasColumnType(
"TEXT")
78 b.Property<
bool?>(
"IsAdminChannel")
80 .HasColumnType(
"INTEGER");
82 b.Property<
bool?>(
"IsUpdatesChannel")
84 .HasColumnType(
"INTEGER");
86 b.Property<
bool?>(
"IsWatchdogChannel")
88 .HasColumnType(
"INTEGER");
90 b.Property<
string>(
"Tag")
91 .HasColumnType(
"TEXT")
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(
"INTEGER");
111 b.Property<
string>(
"ByondVersion")
113 .HasColumnType(
"TEXT");
115 b.Property<
int?>(
"DMApiMajorVersion")
116 .HasColumnType(
"INTEGER");
118 b.Property<
int?>(
"DMApiMinorVersion")
119 .HasColumnType(
"INTEGER");
121 b.Property<
int?>(
"DMApiPatchVersion")
122 .HasColumnType(
"INTEGER");
124 b.Property<Guid?>(
"DirectoryName")
126 .HasColumnType(
"TEXT");
128 b.Property<
string>(
"DmeName")
130 .HasColumnType(
"TEXT");
132 b.Property<
int?>(
"GitHubDeploymentId")
133 .HasColumnType(
"INTEGER");
135 b.Property<
long?>(
"GitHubRepoId")
136 .HasColumnType(
"INTEGER");
138 b.Property<
long>(
"JobId")
139 .HasColumnType(
"INTEGER");
141 b.Property<
int?>(
"MinimumSecurityLevel")
142 .HasColumnType(
"INTEGER");
144 b.Property<
string>(
"Output")
146 .HasColumnType(
"TEXT");
148 b.Property<
string>(
"RepositoryOrigin")
149 .HasColumnType(
"TEXT");
151 b.Property<
long>(
"RevisionInformationId")
152 .HasColumnType(
"INTEGER");
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(
"INTEGER");
172 b.Property<
string>(
"AdditionalParameters")
174 .HasColumnType(
"TEXT")
175 .HasMaxLength(10000);
177 b.Property<
bool?>(
"AllowWebClient")
179 .HasColumnType(
"INTEGER");
181 b.Property<
bool?>(
"AutoStart")
183 .HasColumnType(
"INTEGER");
185 b.Property<
bool?>(
"DumpOnHeartbeatRestart")
187 .HasColumnType(
"INTEGER");
189 b.Property<uint?>(
"HeartbeatSeconds")
191 .HasColumnType(
"INTEGER");
193 b.Property<
long>(
"InstanceId")
194 .HasColumnType(
"INTEGER");
196 b.Property<ushort?>(
"Port")
198 .HasColumnType(
"INTEGER");
200 b.Property<
int>(
"SecurityLevel")
201 .HasColumnType(
"INTEGER");
203 b.Property<uint?>(
"StartupTimeout")
205 .HasColumnType(
"INTEGER");
207 b.Property<uint?>(
"TopicRequestTimeout")
209 .HasColumnType(
"INTEGER");
211 b.Property<
int>(
"Visibility")
212 .HasColumnType(
"INTEGER");
216 b.HasIndex(
"InstanceId")
219 b.ToTable(
"DreamDaemonSettings");
222 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamMakerSettings", b =>
224 b.Property<
long>(
"Id")
225 .ValueGeneratedOnAdd()
226 .HasColumnType(
"INTEGER");
228 b.Property<ushort?>(
"ApiValidationPort")
230 .HasColumnType(
"INTEGER");
232 b.Property<
int>(
"ApiValidationSecurityLevel")
233 .HasColumnType(
"INTEGER");
235 b.Property<
long>(
"InstanceId")
236 .HasColumnType(
"INTEGER");
238 b.Property<
string>(
"ProjectName")
239 .HasColumnType(
"TEXT")
240 .HasMaxLength(10000);
242 b.Property<
bool?>(
"RequireDMApiValidation")
244 .HasColumnType(
"INTEGER");
246 b.Property<TimeSpan?>(
"Timeout")
248 .HasColumnType(
"TEXT");
252 b.HasIndex(
"InstanceId")
255 b.ToTable(
"DreamMakerSettings");
258 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Instance", b =>
260 b.Property<
long?>(
"Id")
261 .ValueGeneratedOnAdd()
262 .HasColumnType(
"INTEGER");
264 b.Property<uint?>(
"AutoUpdateInterval")
266 .HasColumnType(
"INTEGER");
268 b.Property<ushort?>(
"ChatBotLimit")
270 .HasColumnType(
"INTEGER");
272 b.Property<
int>(
"ConfigurationType")
273 .HasColumnType(
"INTEGER");
275 b.Property<
string>(
"Name")
277 .HasColumnType(
"TEXT")
280 b.Property<
bool?>(
"Online")
282 .HasColumnType(
"INTEGER");
284 b.Property<
string>(
"Path")
286 .HasColumnType(
"TEXT");
288 b.Property<
string>(
"SwarmIdentifer")
289 .HasColumnType(
"TEXT");
293 b.HasIndex(
"Path",
"SwarmIdentifer")
296 b.ToTable(
"Instances");
299 modelBuilder.Entity(
"Tgstation.Server.Host.Models.InstancePermissionSet", b =>
301 b.Property<
long>(
"Id")
302 .ValueGeneratedOnAdd()
303 .HasColumnType(
"INTEGER");
305 b.Property<ulong>(
"ByondRights")
306 .HasColumnType(
"INTEGER");
308 b.Property<ulong>(
"ChatBotRights")
309 .HasColumnType(
"INTEGER");
311 b.Property<ulong>(
"ConfigurationRights")
312 .HasColumnType(
"INTEGER");
314 b.Property<ulong>(
"DreamDaemonRights")
315 .HasColumnType(
"INTEGER");
317 b.Property<ulong>(
"DreamMakerRights")
318 .HasColumnType(
"INTEGER");
320 b.Property<
long>(
"InstanceId")
321 .HasColumnType(
"INTEGER");
323 b.Property<ulong>(
"InstancePermissionSetRights")
324 .HasColumnType(
"INTEGER");
326 b.Property<
long>(
"PermissionSetId")
327 .HasColumnType(
"INTEGER");
329 b.Property<ulong>(
"RepositoryRights")
330 .HasColumnType(
"INTEGER");
334 b.HasIndex(
"InstanceId");
336 b.HasIndex(
"PermissionSetId",
"InstanceId")
339 b.ToTable(
"InstancePermissionSets");
342 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Job", b =>
344 b.Property<
long?>(
"Id")
345 .ValueGeneratedOnAdd()
346 .HasColumnType(
"INTEGER");
348 b.Property<ulong?>(
"CancelRight")
349 .HasColumnType(
"INTEGER");
351 b.Property<ulong?>(
"CancelRightsType")
352 .HasColumnType(
"INTEGER");
354 b.Property<
bool?>(
"Cancelled")
356 .HasColumnType(
"INTEGER");
358 b.Property<
long?>(
"CancelledById")
359 .HasColumnType(
"INTEGER");
361 b.Property<
string>(
"Description")
363 .HasColumnType(
"TEXT");
365 b.Property<uint?>(
"ErrorCode")
366 .HasColumnType(
"INTEGER");
368 b.Property<
string>(
"ExceptionDetails")
369 .HasColumnType(
"TEXT");
371 b.Property<
long>(
"InstanceId")
372 .HasColumnType(
"INTEGER");
374 b.Property<DateTimeOffset?>(
"StartedAt")
376 .HasColumnType(
"TEXT");
378 b.Property<
long>(
"StartedById")
379 .HasColumnType(
"INTEGER");
381 b.Property<DateTimeOffset?>(
"StoppedAt")
382 .HasColumnType(
"TEXT");
386 b.HasIndex(
"CancelledById");
388 b.HasIndex(
"InstanceId");
390 b.HasIndex(
"StartedById");
395 modelBuilder.Entity(
"Tgstation.Server.Host.Models.OAuthConnection", b =>
397 b.Property<
long>(
"Id")
398 .ValueGeneratedOnAdd()
399 .HasColumnType(
"INTEGER");
401 b.Property<
string>(
"ExternalUserId")
403 .HasColumnType(
"TEXT")
406 b.Property<
int>(
"Provider")
407 .HasColumnType(
"INTEGER");
409 b.Property<
long?>(
"UserId")
410 .HasColumnType(
"INTEGER");
414 b.HasIndex(
"UserId");
416 b.HasIndex(
"Provider",
"ExternalUserId")
419 b.ToTable(
"OAuthConnections");
422 modelBuilder.Entity(
"Tgstation.Server.Host.Models.PermissionSet", b =>
424 b.Property<
long?>(
"Id")
425 .ValueGeneratedOnAdd()
426 .HasColumnType(
"INTEGER");
428 b.Property<ulong>(
"AdministrationRights")
429 .HasColumnType(
"INTEGER");
431 b.Property<
long?>(
"GroupId")
432 .HasColumnType(
"INTEGER");
434 b.Property<ulong>(
"InstanceManagerRights")
435 .HasColumnType(
"INTEGER");
437 b.Property<
long?>(
"UserId")
438 .HasColumnType(
"INTEGER");
442 b.HasIndex(
"GroupId")
448 b.ToTable(
"PermissionSets");
451 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ReattachInformation", b =>
453 b.Property<
long>(
"Id")
454 .ValueGeneratedOnAdd()
455 .HasColumnType(
"INTEGER");
457 b.Property<
string>(
"AccessIdentifier")
459 .HasColumnType(
"TEXT");
461 b.Property<
long>(
"CompileJobId")
462 .HasColumnType(
"INTEGER");
464 b.Property<
int>(
"LaunchSecurityLevel")
465 .HasColumnType(
"INTEGER");
467 b.Property<
int>(
"LaunchVisibility")
468 .HasColumnType(
"INTEGER");
470 b.Property<ushort>(
"Port")
471 .HasColumnType(
"INTEGER");
473 b.Property<
int>(
"ProcessId")
474 .HasColumnType(
"INTEGER");
476 b.Property<
int>(
"RebootState")
477 .HasColumnType(
"INTEGER");
481 b.HasIndex(
"CompileJobId");
483 b.ToTable(
"ReattachInformations");
486 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RepositorySettings", b =>
488 b.Property<
long>(
"Id")
489 .ValueGeneratedOnAdd()
490 .HasColumnType(
"INTEGER");
492 b.Property<
string>(
"AccessToken")
493 .HasColumnType(
"TEXT")
494 .HasMaxLength(10000);
496 b.Property<
string>(
"AccessUser")
497 .HasColumnType(
"TEXT")
498 .HasMaxLength(10000);
500 b.Property<
bool?>(
"AutoUpdatesKeepTestMerges")
502 .HasColumnType(
"INTEGER");
504 b.Property<
bool?>(
"AutoUpdatesSynchronize")
506 .HasColumnType(
"INTEGER");
508 b.Property<
string>(
"CommitterEmail")
510 .HasColumnType(
"TEXT")
511 .HasMaxLength(10000);
513 b.Property<
string>(
"CommitterName")
515 .HasColumnType(
"TEXT")
516 .HasMaxLength(10000);
518 b.Property<
bool?>(
"CreateGitHubDeployments")
520 .HasColumnType(
"INTEGER");
522 b.Property<
long>(
"InstanceId")
523 .HasColumnType(
"INTEGER");
525 b.Property<
bool?>(
"PostTestMergeComment")
527 .HasColumnType(
"INTEGER");
529 b.Property<
bool?>(
"PushTestMergeCommits")
531 .HasColumnType(
"INTEGER");
533 b.Property<
bool?>(
"ShowTestMergeCommitters")
535 .HasColumnType(
"INTEGER");
537 b.Property<
bool?>(
"UpdateSubmodules")
539 .HasColumnType(
"INTEGER");
543 b.HasIndex(
"InstanceId")
546 b.ToTable(
"RepositorySettings");
549 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
551 b.Property<
long>(
"Id")
552 .ValueGeneratedOnAdd()
553 .HasColumnType(
"INTEGER");
555 b.Property<
long>(
"RevisionInformationId")
556 .HasColumnType(
"INTEGER");
558 b.Property<
long>(
"TestMergeId")
559 .HasColumnType(
"INTEGER");
563 b.HasIndex(
"RevisionInformationId");
565 b.HasIndex(
"TestMergeId");
567 b.ToTable(
"RevInfoTestMerges");
570 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevisionInformation", b =>
572 b.Property<
long>(
"Id")
573 .ValueGeneratedOnAdd()
574 .HasColumnType(
"INTEGER");
576 b.Property<
string>(
"CommitSha")
578 .HasColumnType(
"TEXT")
581 b.Property<
long>(
"InstanceId")
582 .HasColumnType(
"INTEGER");
584 b.Property<
string>(
"OriginCommitSha")
586 .HasColumnType(
"TEXT")
589 b.Property<DateTimeOffset>(
"Timestamp")
590 .HasColumnType(
"TEXT");
594 b.HasIndex(
"InstanceId",
"CommitSha")
597 b.ToTable(
"RevisionInformations");
600 modelBuilder.Entity(
"Tgstation.Server.Host.Models.TestMerge", b =>
602 b.Property<
long>(
"Id")
603 .ValueGeneratedOnAdd()
604 .HasColumnType(
"INTEGER");
606 b.Property<
string>(
"Author")
608 .HasColumnType(
"TEXT");
610 b.Property<
string>(
"BodyAtMerge")
612 .HasColumnType(
"TEXT");
614 b.Property<
string>(
"Comment")
615 .HasColumnType(
"TEXT")
616 .HasMaxLength(10000);
618 b.Property<DateTimeOffset>(
"MergedAt")
619 .HasColumnType(
"TEXT");
621 b.Property<
long>(
"MergedById")
622 .HasColumnType(
"INTEGER");
624 b.Property<
int>(
"Number")
625 .HasColumnType(
"INTEGER");
627 b.Property<
long?>(
"PrimaryRevisionInformationId")
629 .HasColumnType(
"INTEGER");
631 b.Property<
string>(
"TargetCommitSha")
633 .HasColumnType(
"TEXT")
636 b.Property<
string>(
"TitleAtMerge")
638 .HasColumnType(
"TEXT");
640 b.Property<
string>(
"Url")
642 .HasColumnType(
"TEXT");
646 b.HasIndex(
"MergedById");
648 b.HasIndex(
"PrimaryRevisionInformationId")
651 b.ToTable(
"TestMerges");
654 modelBuilder.Entity(
"Tgstation.Server.Host.Models.User", b =>
656 b.Property<
long?>(
"Id")
657 .ValueGeneratedOnAdd()
658 .HasColumnType(
"INTEGER");
660 b.Property<
string>(
"CanonicalName")
662 .HasColumnType(
"TEXT")
665 b.Property<DateTimeOffset?>(
"CreatedAt")
667 .HasColumnType(
"TEXT");
669 b.Property<
long?>(
"CreatedById")
670 .HasColumnType(
"INTEGER");
672 b.Property<
bool?>(
"Enabled")
674 .HasColumnType(
"INTEGER");
676 b.Property<
long?>(
"GroupId")
677 .HasColumnType(
"INTEGER");
679 b.Property<DateTimeOffset?>(
"LastPasswordUpdate")
680 .HasColumnType(
"TEXT");
682 b.Property<
string>(
"Name")
684 .HasColumnType(
"TEXT")
687 b.Property<
string>(
"PasswordHash")
688 .HasColumnType(
"TEXT");
690 b.Property<
string>(
"SystemIdentifier")
691 .HasColumnType(
"TEXT")
696 b.HasIndex(
"CanonicalName")
699 b.HasIndex(
"CreatedById");
701 b.HasIndex(
"GroupId");
703 b.HasIndex(
"SystemIdentifier")
709 modelBuilder.Entity(
"Tgstation.Server.Host.Models.UserGroup", b =>
711 b.Property<
long?>(
"Id")
712 .ValueGeneratedOnAdd()
713 .HasColumnType(
"INTEGER");
715 b.Property<
string>(
"Name")
717 .HasColumnType(
"TEXT")
728 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatBot", b =>
730 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
731 .WithMany(
"ChatSettings")
732 .HasForeignKey(
"InstanceId")
733 .OnDelete(DeleteBehavior.Cascade)
737 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatChannel", b =>
739 b.HasOne(
"Tgstation.Server.Host.Models.ChatBot",
"ChatSettings")
740 .WithMany(
"Channels")
741 .HasForeignKey(
"ChatSettingsId")
742 .OnDelete(DeleteBehavior.Cascade)
746 modelBuilder.Entity(
"Tgstation.Server.Host.Models.CompileJob", b =>
748 b.HasOne(
"Tgstation.Server.Host.Models.Job",
"Job")
750 .HasForeignKey(
"Tgstation.Server.Host.Models.CompileJob",
"JobId")
751 .OnDelete(DeleteBehavior.Cascade)
754 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"RevisionInformation")
755 .WithMany(
"CompileJobs")
756 .HasForeignKey(
"RevisionInformationId")
757 .OnDelete(DeleteBehavior.ClientNoAction)
761 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamDaemonSettings", b =>
763 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
764 .WithOne(
"DreamDaemonSettings")
765 .HasForeignKey(
"Tgstation.Server.Host.Models.DreamDaemonSettings",
"InstanceId")
766 .OnDelete(DeleteBehavior.Cascade)
770 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamMakerSettings", b =>
772 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
773 .WithOne(
"DreamMakerSettings")
774 .HasForeignKey(
"Tgstation.Server.Host.Models.DreamMakerSettings",
"InstanceId")
775 .OnDelete(DeleteBehavior.Cascade)
779 modelBuilder.Entity(
"Tgstation.Server.Host.Models.InstancePermissionSet", b =>
781 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
782 .WithMany(
"InstancePermissionSets")
783 .HasForeignKey(
"InstanceId")
784 .OnDelete(DeleteBehavior.Cascade)
787 b.HasOne(
"Tgstation.Server.Host.Models.PermissionSet",
"PermissionSet")
788 .WithMany(
"InstancePermissionSets")
789 .HasForeignKey(
"PermissionSetId")
790 .OnDelete(DeleteBehavior.Cascade)
794 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Job", b =>
796 b.HasOne(
"Tgstation.Server.Host.Models.User",
"CancelledBy")
798 .HasForeignKey(
"CancelledById");
800 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
802 .HasForeignKey(
"InstanceId")
803 .OnDelete(DeleteBehavior.Cascade)
806 b.HasOne(
"Tgstation.Server.Host.Models.User",
"StartedBy")
808 .HasForeignKey(
"StartedById")
809 .OnDelete(DeleteBehavior.Cascade)
813 modelBuilder.Entity(
"Tgstation.Server.Host.Models.OAuthConnection", b =>
815 b.HasOne(
"Tgstation.Server.Host.Models.User",
"User")
816 .WithMany(
"OAuthConnections")
817 .HasForeignKey(
"UserId")
818 .OnDelete(DeleteBehavior.Cascade);
821 modelBuilder.Entity(
"Tgstation.Server.Host.Models.PermissionSet", b =>
823 b.HasOne(
"Tgstation.Server.Host.Models.UserGroup",
"Group")
824 .WithOne(
"PermissionSet")
825 .HasForeignKey(
"Tgstation.Server.Host.Models.PermissionSet",
"GroupId")
826 .OnDelete(DeleteBehavior.Cascade);
828 b.HasOne(
"Tgstation.Server.Host.Models.User",
"User")
829 .WithOne(
"PermissionSet")
830 .HasForeignKey(
"Tgstation.Server.Host.Models.PermissionSet",
"UserId")
831 .OnDelete(DeleteBehavior.Cascade);
834 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ReattachInformation", b =>
836 b.HasOne(
"Tgstation.Server.Host.Models.CompileJob",
"CompileJob")
838 .HasForeignKey(
"CompileJobId")
839 .OnDelete(DeleteBehavior.Cascade)
843 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RepositorySettings", b =>
845 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
846 .WithOne(
"RepositorySettings")
847 .HasForeignKey(
"Tgstation.Server.Host.Models.RepositorySettings",
"InstanceId")
848 .OnDelete(DeleteBehavior.Cascade)
852 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
854 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"RevisionInformation")
855 .WithMany(
"ActiveTestMerges")
856 .HasForeignKey(
"RevisionInformationId")
857 .OnDelete(DeleteBehavior.Cascade)
860 b.HasOne(
"Tgstation.Server.Host.Models.TestMerge",
"TestMerge")
861 .WithMany(
"RevisonInformations")
862 .HasForeignKey(
"TestMergeId")
863 .OnDelete(DeleteBehavior.ClientNoAction)
867 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevisionInformation", b =>
869 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
870 .WithMany(
"RevisionInformations")
871 .HasForeignKey(
"InstanceId")
872 .OnDelete(DeleteBehavior.Cascade)
876 modelBuilder.Entity(
"Tgstation.Server.Host.Models.TestMerge", b =>
878 b.HasOne(
"Tgstation.Server.Host.Models.User",
"MergedBy")
879 .WithMany(
"TestMerges")
880 .HasForeignKey(
"MergedById")
881 .OnDelete(DeleteBehavior.Restrict)
884 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"PrimaryRevisionInformation")
885 .WithOne(
"PrimaryTestMerge")
886 .HasForeignKey(
"Tgstation.Server.Host.Models.TestMerge",
"PrimaryRevisionInformationId")
887 .OnDelete(DeleteBehavior.Cascade)
891 modelBuilder.Entity(
"Tgstation.Server.Host.Models.User", b =>
893 b.HasOne(
"Tgstation.Server.Host.Models.User",
"CreatedBy")
894 .WithMany(
"CreatedUsers")
895 .HasForeignKey(
"CreatedById");
897 b.HasOne(
"Tgstation.Server.Host.Models.UserGroup",
"Group")
899 .HasForeignKey(
"GroupId");
901#pragma warning restore 612, 618