16#pragma warning disable 612, 618
18 .HasAnnotation(
"ProductVersion",
"3.1.10");
20 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatBot", b =>
22 b.Property<
long>(
"Id")
23 .ValueGeneratedOnAdd()
24 .HasColumnType(
"INTEGER");
26 b.Property<ushort?>(
"ChannelLimit")
28 .HasColumnType(
"INTEGER");
30 b.Property<
string>(
"ConnectionString")
32 .HasColumnType(
"TEXT")
35 b.Property<
bool?>(
"Enabled")
36 .HasColumnType(
"INTEGER");
38 b.Property<
long>(
"InstanceId")
39 .HasColumnType(
"INTEGER");
41 b.Property<
string>(
"Name")
43 .HasColumnType(
"TEXT")
46 b.Property<
int>(
"Provider")
47 .HasColumnType(
"INTEGER");
49 b.Property<uint?>(
"ReconnectionInterval")
51 .HasColumnType(
"INTEGER");
55 b.HasIndex(
"InstanceId",
"Name")
58 b.ToTable(
"ChatBots");
61 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatChannel", b =>
63 b.Property<
long>(
"Id")
64 .ValueGeneratedOnAdd()
65 .HasColumnType(
"INTEGER");
67 b.Property<
long>(
"ChatSettingsId")
68 .HasColumnType(
"INTEGER");
70 b.Property<ulong?>(
"DiscordChannelId")
71 .HasColumnType(
"INTEGER");
73 b.Property<
string>(
"IrcChannel")
74 .HasColumnType(
"TEXT")
77 b.Property<
bool?>(
"IsAdminChannel")
79 .HasColumnType(
"INTEGER");
81 b.Property<
bool?>(
"IsUpdatesChannel")
83 .HasColumnType(
"INTEGER");
85 b.Property<
bool?>(
"IsWatchdogChannel")
87 .HasColumnType(
"INTEGER");
89 b.Property<
string>(
"Tag")
90 .HasColumnType(
"TEXT")
95 b.HasIndex(
"ChatSettingsId",
"DiscordChannelId")
98 b.HasIndex(
"ChatSettingsId",
"IrcChannel")
101 b.ToTable(
"ChatChannels");
104 modelBuilder.Entity(
"Tgstation.Server.Host.Models.CompileJob", b =>
106 b.Property<
long>(
"Id")
107 .ValueGeneratedOnAdd()
108 .HasColumnType(
"INTEGER");
110 b.Property<
string>(
"ByondVersion")
112 .HasColumnType(
"TEXT");
114 b.Property<
int?>(
"DMApiMajorVersion")
115 .HasColumnType(
"INTEGER");
117 b.Property<
int?>(
"DMApiMinorVersion")
118 .HasColumnType(
"INTEGER");
120 b.Property<
int?>(
"DMApiPatchVersion")
121 .HasColumnType(
"INTEGER");
123 b.Property<Guid?>(
"DirectoryName")
125 .HasColumnType(
"TEXT");
127 b.Property<
string>(
"DmeName")
129 .HasColumnType(
"TEXT");
131 b.Property<
int?>(
"GitHubDeploymentId")
132 .HasColumnType(
"INTEGER");
134 b.Property<
long?>(
"GitHubRepoId")
135 .HasColumnType(
"INTEGER");
137 b.Property<
long>(
"JobId")
138 .HasColumnType(
"INTEGER");
140 b.Property<
int?>(
"MinimumSecurityLevel")
141 .HasColumnType(
"INTEGER");
143 b.Property<
string>(
"Output")
145 .HasColumnType(
"TEXT");
147 b.Property<
string>(
"RepositoryOrigin")
148 .HasColumnType(
"TEXT");
150 b.Property<
long>(
"RevisionInformationId")
151 .HasColumnType(
"INTEGER");
155 b.HasIndex(
"DirectoryName");
160 b.HasIndex(
"RevisionInformationId");
162 b.ToTable(
"CompileJobs");
165 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamDaemonSettings", b =>
167 b.Property<
long>(
"Id")
168 .ValueGeneratedOnAdd()
169 .HasColumnType(
"INTEGER");
171 b.Property<
string>(
"AdditionalParameters")
173 .HasColumnType(
"TEXT")
174 .HasMaxLength(10000);
176 b.Property<
bool?>(
"AllowWebClient")
178 .HasColumnType(
"INTEGER");
180 b.Property<
bool?>(
"AutoStart")
182 .HasColumnType(
"INTEGER");
184 b.Property<uint?>(
"HeartbeatSeconds")
186 .HasColumnType(
"INTEGER");
188 b.Property<
long>(
"InstanceId")
189 .HasColumnType(
"INTEGER");
191 b.Property<ushort?>(
"Port")
193 .HasColumnType(
"INTEGER");
195 b.Property<
int>(
"SecurityLevel")
196 .HasColumnType(
"INTEGER");
198 b.Property<uint?>(
"StartupTimeout")
200 .HasColumnType(
"INTEGER");
202 b.Property<uint?>(
"TopicRequestTimeout")
204 .HasColumnType(
"INTEGER");
208 b.HasIndex(
"InstanceId")
211 b.ToTable(
"DreamDaemonSettings");
214 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamMakerSettings", b =>
216 b.Property<
long>(
"Id")
217 .ValueGeneratedOnAdd()
218 .HasColumnType(
"INTEGER");
220 b.Property<ushort?>(
"ApiValidationPort")
222 .HasColumnType(
"INTEGER");
224 b.Property<
int>(
"ApiValidationSecurityLevel")
225 .HasColumnType(
"INTEGER");
227 b.Property<
long>(
"InstanceId")
228 .HasColumnType(
"INTEGER");
230 b.Property<
string>(
"ProjectName")
231 .HasColumnType(
"TEXT")
232 .HasMaxLength(10000);
234 b.Property<
bool?>(
"RequireDMApiValidation")
236 .HasColumnType(
"INTEGER");
240 b.HasIndex(
"InstanceId")
243 b.ToTable(
"DreamMakerSettings");
246 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Instance", b =>
248 b.Property<
long>(
"Id")
249 .ValueGeneratedOnAdd()
250 .HasColumnType(
"INTEGER");
252 b.Property<uint?>(
"AutoUpdateInterval")
254 .HasColumnType(
"INTEGER");
256 b.Property<ushort?>(
"ChatBotLimit")
258 .HasColumnType(
"INTEGER");
260 b.Property<
int>(
"ConfigurationType")
261 .HasColumnType(
"INTEGER");
263 b.Property<
string>(
"Name")
265 .HasColumnType(
"TEXT")
266 .HasMaxLength(10000);
268 b.Property<
bool?>(
"Online")
270 .HasColumnType(
"INTEGER");
272 b.Property<
string>(
"Path")
274 .HasColumnType(
"TEXT");
276 b.Property<
string>(
"SwarmIdentifer")
277 .HasColumnType(
"TEXT");
281 b.HasIndex(
"Path",
"SwarmIdentifer")
284 b.ToTable(
"Instances");
287 modelBuilder.Entity(
"Tgstation.Server.Host.Models.InstancePermissionSet", b =>
289 b.Property<
long>(
"Id")
290 .ValueGeneratedOnAdd()
291 .HasColumnType(
"INTEGER");
293 b.Property<ulong>(
"ByondRights")
294 .HasColumnType(
"INTEGER");
296 b.Property<ulong>(
"ChatBotRights")
297 .HasColumnType(
"INTEGER");
299 b.Property<ulong>(
"ConfigurationRights")
300 .HasColumnType(
"INTEGER");
302 b.Property<ulong>(
"DreamDaemonRights")
303 .HasColumnType(
"INTEGER");
305 b.Property<ulong>(
"DreamMakerRights")
306 .HasColumnType(
"INTEGER");
308 b.Property<
long>(
"InstanceId")
309 .HasColumnType(
"INTEGER");
311 b.Property<ulong>(
"InstancePermissionSetRights")
312 .HasColumnType(
"INTEGER");
314 b.Property<
long>(
"PermissionSetId")
315 .HasColumnType(
"INTEGER");
317 b.Property<ulong>(
"RepositoryRights")
318 .HasColumnType(
"INTEGER");
322 b.HasIndex(
"InstanceId");
324 b.HasIndex(
"PermissionSetId",
"InstanceId")
327 b.ToTable(
"InstancePermissionSets");
330 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Job", b =>
332 b.Property<
long>(
"Id")
333 .ValueGeneratedOnAdd()
334 .HasColumnType(
"INTEGER");
336 b.Property<ulong?>(
"CancelRight")
337 .HasColumnType(
"INTEGER");
339 b.Property<ulong?>(
"CancelRightsType")
340 .HasColumnType(
"INTEGER");
342 b.Property<
bool?>(
"Cancelled")
344 .HasColumnType(
"INTEGER");
346 b.Property<
long?>(
"CancelledById")
347 .HasColumnType(
"INTEGER");
349 b.Property<
string>(
"Description")
351 .HasColumnType(
"TEXT");
353 b.Property<uint?>(
"ErrorCode")
354 .HasColumnType(
"INTEGER");
356 b.Property<
string>(
"ExceptionDetails")
357 .HasColumnType(
"TEXT");
359 b.Property<
long>(
"InstanceId")
360 .HasColumnType(
"INTEGER");
362 b.Property<DateTimeOffset?>(
"StartedAt")
364 .HasColumnType(
"TEXT");
366 b.Property<
long>(
"StartedById")
367 .HasColumnType(
"INTEGER");
369 b.Property<DateTimeOffset?>(
"StoppedAt")
370 .HasColumnType(
"TEXT");
374 b.HasIndex(
"CancelledById");
376 b.HasIndex(
"InstanceId");
378 b.HasIndex(
"StartedById");
383 modelBuilder.Entity(
"Tgstation.Server.Host.Models.OAuthConnection", b =>
385 b.Property<
long>(
"Id")
386 .ValueGeneratedOnAdd()
387 .HasColumnType(
"INTEGER");
389 b.Property<
string>(
"ExternalUserId")
391 .HasColumnType(
"TEXT")
394 b.Property<
int>(
"Provider")
395 .HasColumnType(
"INTEGER");
397 b.Property<
long?>(
"UserId")
398 .HasColumnType(
"INTEGER");
402 b.HasIndex(
"UserId");
404 b.HasIndex(
"Provider",
"ExternalUserId")
407 b.ToTable(
"OAuthConnections");
410 modelBuilder.Entity(
"Tgstation.Server.Host.Models.PermissionSet", b =>
412 b.Property<
long?>(
"Id")
413 .ValueGeneratedOnAdd()
414 .HasColumnType(
"INTEGER");
416 b.Property<ulong>(
"AdministrationRights")
417 .HasColumnType(
"INTEGER");
419 b.Property<
long?>(
"GroupId")
420 .HasColumnType(
"INTEGER");
422 b.Property<ulong>(
"InstanceManagerRights")
423 .HasColumnType(
"INTEGER");
425 b.Property<
long?>(
"UserId")
426 .HasColumnType(
"INTEGER");
430 b.HasIndex(
"GroupId")
436 b.ToTable(
"PermissionSets");
439 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ReattachInformation", b =>
441 b.Property<
long>(
"Id")
442 .ValueGeneratedOnAdd()
443 .HasColumnType(
"INTEGER");
445 b.Property<
string>(
"AccessIdentifier")
447 .HasColumnType(
"TEXT");
449 b.Property<
long>(
"CompileJobId")
450 .HasColumnType(
"INTEGER");
452 b.Property<
int>(
"LaunchSecurityLevel")
453 .HasColumnType(
"INTEGER");
455 b.Property<ushort>(
"Port")
456 .HasColumnType(
"INTEGER");
458 b.Property<
int>(
"ProcessId")
459 .HasColumnType(
"INTEGER");
461 b.Property<
int>(
"RebootState")
462 .HasColumnType(
"INTEGER");
466 b.HasIndex(
"CompileJobId");
468 b.ToTable(
"ReattachInformations");
471 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RepositorySettings", b =>
473 b.Property<
long>(
"Id")
474 .ValueGeneratedOnAdd()
475 .HasColumnType(
"INTEGER");
477 b.Property<
string>(
"AccessToken")
478 .HasColumnType(
"TEXT")
479 .HasMaxLength(10000);
481 b.Property<
string>(
"AccessUser")
482 .HasColumnType(
"TEXT")
483 .HasMaxLength(10000);
485 b.Property<
bool?>(
"AutoUpdatesKeepTestMerges")
487 .HasColumnType(
"INTEGER");
489 b.Property<
bool?>(
"AutoUpdatesSynchronize")
491 .HasColumnType(
"INTEGER");
493 b.Property<
string>(
"CommitterEmail")
495 .HasColumnType(
"TEXT")
496 .HasMaxLength(10000);
498 b.Property<
string>(
"CommitterName")
500 .HasColumnType(
"TEXT")
501 .HasMaxLength(10000);
503 b.Property<
bool?>(
"CreateGitHubDeployments")
505 .HasColumnType(
"INTEGER");
507 b.Property<
long>(
"InstanceId")
508 .HasColumnType(
"INTEGER");
510 b.Property<
bool?>(
"PostTestMergeComment")
512 .HasColumnType(
"INTEGER");
514 b.Property<
bool?>(
"PushTestMergeCommits")
516 .HasColumnType(
"INTEGER");
518 b.Property<
bool?>(
"ShowTestMergeCommitters")
520 .HasColumnType(
"INTEGER");
524 b.HasIndex(
"InstanceId")
527 b.ToTable(
"RepositorySettings");
530 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
532 b.Property<
long>(
"Id")
533 .ValueGeneratedOnAdd()
534 .HasColumnType(
"INTEGER");
536 b.Property<
long>(
"RevisionInformationId")
537 .HasColumnType(
"INTEGER");
539 b.Property<
long>(
"TestMergeId")
540 .HasColumnType(
"INTEGER");
544 b.HasIndex(
"RevisionInformationId");
546 b.HasIndex(
"TestMergeId");
548 b.ToTable(
"RevInfoTestMerges");
551 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevisionInformation", b =>
553 b.Property<
long>(
"Id")
554 .ValueGeneratedOnAdd()
555 .HasColumnType(
"INTEGER");
557 b.Property<
string>(
"CommitSha")
559 .HasColumnType(
"TEXT")
562 b.Property<
long>(
"InstanceId")
563 .HasColumnType(
"INTEGER");
565 b.Property<
string>(
"OriginCommitSha")
567 .HasColumnType(
"TEXT")
570 b.Property<DateTimeOffset>(
"Timestamp")
571 .HasColumnType(
"TEXT");
575 b.HasIndex(
"InstanceId",
"CommitSha")
578 b.ToTable(
"RevisionInformations");
581 modelBuilder.Entity(
"Tgstation.Server.Host.Models.TestMerge", b =>
583 b.Property<
long>(
"Id")
584 .ValueGeneratedOnAdd()
585 .HasColumnType(
"INTEGER");
587 b.Property<
string>(
"Author")
589 .HasColumnType(
"TEXT");
591 b.Property<
string>(
"BodyAtMerge")
593 .HasColumnType(
"TEXT");
595 b.Property<
string>(
"Comment")
596 .HasColumnType(
"TEXT")
597 .HasMaxLength(10000);
599 b.Property<DateTimeOffset>(
"MergedAt")
600 .HasColumnType(
"TEXT");
602 b.Property<
long>(
"MergedById")
603 .HasColumnType(
"INTEGER");
605 b.Property<
int>(
"Number")
606 .HasColumnType(
"INTEGER");
608 b.Property<
long?>(
"PrimaryRevisionInformationId")
610 .HasColumnType(
"INTEGER");
612 b.Property<
string>(
"TargetCommitSha")
614 .HasColumnType(
"TEXT")
617 b.Property<
string>(
"TitleAtMerge")
619 .HasColumnType(
"TEXT");
621 b.Property<
string>(
"Url")
623 .HasColumnType(
"TEXT");
627 b.HasIndex(
"MergedById");
629 b.HasIndex(
"PrimaryRevisionInformationId")
632 b.ToTable(
"TestMerges");
635 modelBuilder.Entity(
"Tgstation.Server.Host.Models.User", b =>
637 b.Property<
long?>(
"Id")
638 .ValueGeneratedOnAdd()
639 .HasColumnType(
"INTEGER");
641 b.Property<
string>(
"CanonicalName")
643 .HasColumnType(
"TEXT")
646 b.Property<DateTimeOffset?>(
"CreatedAt")
648 .HasColumnType(
"TEXT");
650 b.Property<
long?>(
"CreatedById")
651 .HasColumnType(
"INTEGER");
653 b.Property<
bool?>(
"Enabled")
655 .HasColumnType(
"INTEGER");
657 b.Property<
long?>(
"GroupId")
658 .HasColumnType(
"INTEGER");
660 b.Property<DateTimeOffset?>(
"LastPasswordUpdate")
661 .HasColumnType(
"TEXT");
663 b.Property<
string>(
"Name")
665 .HasColumnType(
"TEXT")
668 b.Property<
string>(
"PasswordHash")
669 .HasColumnType(
"TEXT");
671 b.Property<
string>(
"SystemIdentifier")
672 .HasColumnType(
"TEXT")
677 b.HasIndex(
"CanonicalName")
680 b.HasIndex(
"CreatedById");
682 b.HasIndex(
"GroupId");
684 b.HasIndex(
"SystemIdentifier")
690 modelBuilder.Entity(
"Tgstation.Server.Host.Models.UserGroup", b =>
692 b.Property<
long>(
"Id")
693 .ValueGeneratedOnAdd()
694 .HasColumnType(
"INTEGER");
696 b.Property<
string>(
"Name")
698 .HasColumnType(
"TEXT")
709 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatBot", b =>
711 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
712 .WithMany(
"ChatSettings")
713 .HasForeignKey(
"InstanceId")
714 .OnDelete(DeleteBehavior.Cascade)
718 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatChannel", b =>
720 b.HasOne(
"Tgstation.Server.Host.Models.ChatBot",
"ChatSettings")
721 .WithMany(
"Channels")
722 .HasForeignKey(
"ChatSettingsId")
723 .OnDelete(DeleteBehavior.Cascade)
727 modelBuilder.Entity(
"Tgstation.Server.Host.Models.CompileJob", b =>
729 b.HasOne(
"Tgstation.Server.Host.Models.Job",
"Job")
731 .HasForeignKey(
"Tgstation.Server.Host.Models.CompileJob",
"JobId")
732 .OnDelete(DeleteBehavior.Cascade)
735 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"RevisionInformation")
736 .WithMany(
"CompileJobs")
737 .HasForeignKey(
"RevisionInformationId")
738 .OnDelete(DeleteBehavior.ClientNoAction)
742 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamDaemonSettings", b =>
744 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
745 .WithOne(
"DreamDaemonSettings")
746 .HasForeignKey(
"Tgstation.Server.Host.Models.DreamDaemonSettings",
"InstanceId")
747 .OnDelete(DeleteBehavior.Cascade)
751 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamMakerSettings", b =>
753 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
754 .WithOne(
"DreamMakerSettings")
755 .HasForeignKey(
"Tgstation.Server.Host.Models.DreamMakerSettings",
"InstanceId")
756 .OnDelete(DeleteBehavior.Cascade)
760 modelBuilder.Entity(
"Tgstation.Server.Host.Models.InstancePermissionSet", b =>
762 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
763 .WithMany(
"InstancePermissionSets")
764 .HasForeignKey(
"InstanceId")
765 .OnDelete(DeleteBehavior.Cascade)
768 b.HasOne(
"Tgstation.Server.Host.Models.PermissionSet",
"PermissionSet")
769 .WithMany(
"InstancePermissionSets")
770 .HasForeignKey(
"PermissionSetId")
771 .OnDelete(DeleteBehavior.Cascade)
775 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Job", b =>
777 b.HasOne(
"Tgstation.Server.Host.Models.User",
"CancelledBy")
779 .HasForeignKey(
"CancelledById");
781 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
783 .HasForeignKey(
"InstanceId")
784 .OnDelete(DeleteBehavior.Cascade)
787 b.HasOne(
"Tgstation.Server.Host.Models.User",
"StartedBy")
789 .HasForeignKey(
"StartedById")
790 .OnDelete(DeleteBehavior.Cascade)
794 modelBuilder.Entity(
"Tgstation.Server.Host.Models.OAuthConnection", b =>
796 b.HasOne(
"Tgstation.Server.Host.Models.User",
"User")
797 .WithMany(
"OAuthConnections")
798 .HasForeignKey(
"UserId")
799 .OnDelete(DeleteBehavior.Cascade);
802 modelBuilder.Entity(
"Tgstation.Server.Host.Models.PermissionSet", b =>
804 b.HasOne(
"Tgstation.Server.Host.Models.UserGroup",
"Group")
805 .WithOne(
"PermissionSet")
806 .HasForeignKey(
"Tgstation.Server.Host.Models.PermissionSet",
"GroupId")
807 .OnDelete(DeleteBehavior.Cascade);
809 b.HasOne(
"Tgstation.Server.Host.Models.User",
"User")
810 .WithOne(
"PermissionSet")
811 .HasForeignKey(
"Tgstation.Server.Host.Models.PermissionSet",
"UserId")
812 .OnDelete(DeleteBehavior.Cascade);
815 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ReattachInformation", b =>
817 b.HasOne(
"Tgstation.Server.Host.Models.CompileJob",
"CompileJob")
819 .HasForeignKey(
"CompileJobId")
820 .OnDelete(DeleteBehavior.Cascade)
824 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RepositorySettings", b =>
826 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
827 .WithOne(
"RepositorySettings")
828 .HasForeignKey(
"Tgstation.Server.Host.Models.RepositorySettings",
"InstanceId")
829 .OnDelete(DeleteBehavior.Cascade)
833 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
835 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"RevisionInformation")
836 .WithMany(
"ActiveTestMerges")
837 .HasForeignKey(
"RevisionInformationId")
838 .OnDelete(DeleteBehavior.Cascade)
841 b.HasOne(
"Tgstation.Server.Host.Models.TestMerge",
"TestMerge")
842 .WithMany(
"RevisonInformations")
843 .HasForeignKey(
"TestMergeId")
844 .OnDelete(DeleteBehavior.ClientNoAction)
848 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevisionInformation", b =>
850 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
851 .WithMany(
"RevisionInformations")
852 .HasForeignKey(
"InstanceId")
853 .OnDelete(DeleteBehavior.Cascade)
857 modelBuilder.Entity(
"Tgstation.Server.Host.Models.TestMerge", b =>
859 b.HasOne(
"Tgstation.Server.Host.Models.User",
"MergedBy")
860 .WithMany(
"TestMerges")
861 .HasForeignKey(
"MergedById")
862 .OnDelete(DeleteBehavior.Restrict)
865 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"PrimaryRevisionInformation")
866 .WithOne(
"PrimaryTestMerge")
867 .HasForeignKey(
"Tgstation.Server.Host.Models.TestMerge",
"PrimaryRevisionInformationId")
868 .OnDelete(DeleteBehavior.Cascade)
872 modelBuilder.Entity(
"Tgstation.Server.Host.Models.User", b =>
874 b.HasOne(
"Tgstation.Server.Host.Models.User",
"CreatedBy")
875 .WithMany(
"CreatedUsers")
876 .HasForeignKey(
"CreatedById");
878 b.HasOne(
"Tgstation.Server.Host.Models.UserGroup",
"Group")
880 .HasForeignKey(
"GroupId");
882#pragma warning restore 612, 618