17#pragma warning disable 612, 618
19 .HasAnnotation(
"ProductVersion",
"3.1.18");
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<uint?>(
"HeartbeatSeconds")
187 .HasColumnType(
"INTEGER");
189 b.Property<
long>(
"InstanceId")
190 .HasColumnType(
"INTEGER");
192 b.Property<ushort?>(
"Port")
194 .HasColumnType(
"INTEGER");
196 b.Property<
int>(
"SecurityLevel")
197 .HasColumnType(
"INTEGER");
199 b.Property<uint?>(
"StartupTimeout")
201 .HasColumnType(
"INTEGER");
203 b.Property<uint?>(
"TopicRequestTimeout")
205 .HasColumnType(
"INTEGER");
207 b.Property<
int>(
"Visibility")
208 .HasColumnType(
"INTEGER");
212 b.HasIndex(
"InstanceId")
215 b.ToTable(
"DreamDaemonSettings");
218 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamMakerSettings", b =>
220 b.Property<
long>(
"Id")
221 .ValueGeneratedOnAdd()
222 .HasColumnType(
"INTEGER");
224 b.Property<ushort?>(
"ApiValidationPort")
226 .HasColumnType(
"INTEGER");
228 b.Property<
int>(
"ApiValidationSecurityLevel")
229 .HasColumnType(
"INTEGER");
231 b.Property<
long>(
"InstanceId")
232 .HasColumnType(
"INTEGER");
234 b.Property<
string>(
"ProjectName")
235 .HasColumnType(
"TEXT")
236 .HasMaxLength(10000);
238 b.Property<
bool?>(
"RequireDMApiValidation")
240 .HasColumnType(
"INTEGER");
242 b.Property<TimeSpan?>(
"Timeout")
244 .HasColumnType(
"TEXT");
248 b.HasIndex(
"InstanceId")
251 b.ToTable(
"DreamMakerSettings");
254 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Instance", b =>
256 b.Property<
long?>(
"Id")
257 .ValueGeneratedOnAdd()
258 .HasColumnType(
"INTEGER");
260 b.Property<uint?>(
"AutoUpdateInterval")
262 .HasColumnType(
"INTEGER");
264 b.Property<ushort?>(
"ChatBotLimit")
266 .HasColumnType(
"INTEGER");
268 b.Property<
int>(
"ConfigurationType")
269 .HasColumnType(
"INTEGER");
271 b.Property<
string>(
"Name")
273 .HasColumnType(
"TEXT")
276 b.Property<
bool?>(
"Online")
278 .HasColumnType(
"INTEGER");
280 b.Property<
string>(
"Path")
282 .HasColumnType(
"TEXT");
284 b.Property<
string>(
"SwarmIdentifer")
285 .HasColumnType(
"TEXT");
289 b.HasIndex(
"Path",
"SwarmIdentifer")
292 b.ToTable(
"Instances");
295 modelBuilder.Entity(
"Tgstation.Server.Host.Models.InstancePermissionSet", b =>
297 b.Property<
long>(
"Id")
298 .ValueGeneratedOnAdd()
299 .HasColumnType(
"INTEGER");
301 b.Property<ulong>(
"ByondRights")
302 .HasColumnType(
"INTEGER");
304 b.Property<ulong>(
"ChatBotRights")
305 .HasColumnType(
"INTEGER");
307 b.Property<ulong>(
"ConfigurationRights")
308 .HasColumnType(
"INTEGER");
310 b.Property<ulong>(
"DreamDaemonRights")
311 .HasColumnType(
"INTEGER");
313 b.Property<ulong>(
"DreamMakerRights")
314 .HasColumnType(
"INTEGER");
316 b.Property<
long>(
"InstanceId")
317 .HasColumnType(
"INTEGER");
319 b.Property<ulong>(
"InstancePermissionSetRights")
320 .HasColumnType(
"INTEGER");
322 b.Property<
long>(
"PermissionSetId")
323 .HasColumnType(
"INTEGER");
325 b.Property<ulong>(
"RepositoryRights")
326 .HasColumnType(
"INTEGER");
330 b.HasIndex(
"InstanceId");
332 b.HasIndex(
"PermissionSetId",
"InstanceId")
335 b.ToTable(
"InstancePermissionSets");
338 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Job", b =>
340 b.Property<
long?>(
"Id")
341 .ValueGeneratedOnAdd()
342 .HasColumnType(
"INTEGER");
344 b.Property<ulong?>(
"CancelRight")
345 .HasColumnType(
"INTEGER");
347 b.Property<ulong?>(
"CancelRightsType")
348 .HasColumnType(
"INTEGER");
350 b.Property<
bool?>(
"Cancelled")
352 .HasColumnType(
"INTEGER");
354 b.Property<
long?>(
"CancelledById")
355 .HasColumnType(
"INTEGER");
357 b.Property<
string>(
"Description")
359 .HasColumnType(
"TEXT");
361 b.Property<uint?>(
"ErrorCode")
362 .HasColumnType(
"INTEGER");
364 b.Property<
string>(
"ExceptionDetails")
365 .HasColumnType(
"TEXT");
367 b.Property<
long>(
"InstanceId")
368 .HasColumnType(
"INTEGER");
370 b.Property<DateTimeOffset?>(
"StartedAt")
372 .HasColumnType(
"TEXT");
374 b.Property<
long>(
"StartedById")
375 .HasColumnType(
"INTEGER");
377 b.Property<DateTimeOffset?>(
"StoppedAt")
378 .HasColumnType(
"TEXT");
382 b.HasIndex(
"CancelledById");
384 b.HasIndex(
"InstanceId");
386 b.HasIndex(
"StartedById");
391 modelBuilder.Entity(
"Tgstation.Server.Host.Models.OAuthConnection", b =>
393 b.Property<
long>(
"Id")
394 .ValueGeneratedOnAdd()
395 .HasColumnType(
"INTEGER");
397 b.Property<
string>(
"ExternalUserId")
399 .HasColumnType(
"TEXT")
402 b.Property<
int>(
"Provider")
403 .HasColumnType(
"INTEGER");
405 b.Property<
long?>(
"UserId")
406 .HasColumnType(
"INTEGER");
410 b.HasIndex(
"UserId");
412 b.HasIndex(
"Provider",
"ExternalUserId")
415 b.ToTable(
"OAuthConnections");
418 modelBuilder.Entity(
"Tgstation.Server.Host.Models.PermissionSet", b =>
420 b.Property<
long?>(
"Id")
421 .ValueGeneratedOnAdd()
422 .HasColumnType(
"INTEGER");
424 b.Property<ulong>(
"AdministrationRights")
425 .HasColumnType(
"INTEGER");
427 b.Property<
long?>(
"GroupId")
428 .HasColumnType(
"INTEGER");
430 b.Property<ulong>(
"InstanceManagerRights")
431 .HasColumnType(
"INTEGER");
433 b.Property<
long?>(
"UserId")
434 .HasColumnType(
"INTEGER");
438 b.HasIndex(
"GroupId")
444 b.ToTable(
"PermissionSets");
447 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ReattachInformation", b =>
449 b.Property<
long>(
"Id")
450 .ValueGeneratedOnAdd()
451 .HasColumnType(
"INTEGER");
453 b.Property<
string>(
"AccessIdentifier")
455 .HasColumnType(
"TEXT");
457 b.Property<
long>(
"CompileJobId")
458 .HasColumnType(
"INTEGER");
460 b.Property<
int>(
"LaunchSecurityLevel")
461 .HasColumnType(
"INTEGER");
463 b.Property<
int>(
"LaunchVisibility")
464 .HasColumnType(
"INTEGER");
466 b.Property<ushort>(
"Port")
467 .HasColumnType(
"INTEGER");
469 b.Property<
int>(
"ProcessId")
470 .HasColumnType(
"INTEGER");
472 b.Property<
int>(
"RebootState")
473 .HasColumnType(
"INTEGER");
477 b.HasIndex(
"CompileJobId");
479 b.ToTable(
"ReattachInformations");
482 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RepositorySettings", b =>
484 b.Property<
long>(
"Id")
485 .ValueGeneratedOnAdd()
486 .HasColumnType(
"INTEGER");
488 b.Property<
string>(
"AccessToken")
489 .HasColumnType(
"TEXT")
490 .HasMaxLength(10000);
492 b.Property<
string>(
"AccessUser")
493 .HasColumnType(
"TEXT")
494 .HasMaxLength(10000);
496 b.Property<
bool?>(
"AutoUpdatesKeepTestMerges")
498 .HasColumnType(
"INTEGER");
500 b.Property<
bool?>(
"AutoUpdatesSynchronize")
502 .HasColumnType(
"INTEGER");
504 b.Property<
string>(
"CommitterEmail")
506 .HasColumnType(
"TEXT")
507 .HasMaxLength(10000);
509 b.Property<
string>(
"CommitterName")
511 .HasColumnType(
"TEXT")
512 .HasMaxLength(10000);
514 b.Property<
bool?>(
"CreateGitHubDeployments")
516 .HasColumnType(
"INTEGER");
518 b.Property<
long>(
"InstanceId")
519 .HasColumnType(
"INTEGER");
521 b.Property<
bool?>(
"PostTestMergeComment")
523 .HasColumnType(
"INTEGER");
525 b.Property<
bool?>(
"PushTestMergeCommits")
527 .HasColumnType(
"INTEGER");
529 b.Property<
bool?>(
"ShowTestMergeCommitters")
531 .HasColumnType(
"INTEGER");
535 b.HasIndex(
"InstanceId")
538 b.ToTable(
"RepositorySettings");
541 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
543 b.Property<
long>(
"Id")
544 .ValueGeneratedOnAdd()
545 .HasColumnType(
"INTEGER");
547 b.Property<
long>(
"RevisionInformationId")
548 .HasColumnType(
"INTEGER");
550 b.Property<
long>(
"TestMergeId")
551 .HasColumnType(
"INTEGER");
555 b.HasIndex(
"RevisionInformationId");
557 b.HasIndex(
"TestMergeId");
559 b.ToTable(
"RevInfoTestMerges");
562 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevisionInformation", b =>
564 b.Property<
long>(
"Id")
565 .ValueGeneratedOnAdd()
566 .HasColumnType(
"INTEGER");
568 b.Property<
string>(
"CommitSha")
570 .HasColumnType(
"TEXT")
573 b.Property<
long>(
"InstanceId")
574 .HasColumnType(
"INTEGER");
576 b.Property<
string>(
"OriginCommitSha")
578 .HasColumnType(
"TEXT")
581 b.Property<DateTimeOffset>(
"Timestamp")
582 .HasColumnType(
"TEXT");
586 b.HasIndex(
"InstanceId",
"CommitSha")
589 b.ToTable(
"RevisionInformations");
592 modelBuilder.Entity(
"Tgstation.Server.Host.Models.TestMerge", b =>
594 b.Property<
long>(
"Id")
595 .ValueGeneratedOnAdd()
596 .HasColumnType(
"INTEGER");
598 b.Property<
string>(
"Author")
600 .HasColumnType(
"TEXT");
602 b.Property<
string>(
"BodyAtMerge")
604 .HasColumnType(
"TEXT");
606 b.Property<
string>(
"Comment")
607 .HasColumnType(
"TEXT")
608 .HasMaxLength(10000);
610 b.Property<DateTimeOffset>(
"MergedAt")
611 .HasColumnType(
"TEXT");
613 b.Property<
long>(
"MergedById")
614 .HasColumnType(
"INTEGER");
616 b.Property<
int>(
"Number")
617 .HasColumnType(
"INTEGER");
619 b.Property<
long?>(
"PrimaryRevisionInformationId")
621 .HasColumnType(
"INTEGER");
623 b.Property<
string>(
"TargetCommitSha")
625 .HasColumnType(
"TEXT")
628 b.Property<
string>(
"TitleAtMerge")
630 .HasColumnType(
"TEXT");
632 b.Property<
string>(
"Url")
634 .HasColumnType(
"TEXT");
638 b.HasIndex(
"MergedById");
640 b.HasIndex(
"PrimaryRevisionInformationId")
643 b.ToTable(
"TestMerges");
646 modelBuilder.Entity(
"Tgstation.Server.Host.Models.User", b =>
648 b.Property<
long?>(
"Id")
649 .ValueGeneratedOnAdd()
650 .HasColumnType(
"INTEGER");
652 b.Property<
string>(
"CanonicalName")
654 .HasColumnType(
"TEXT")
657 b.Property<DateTimeOffset?>(
"CreatedAt")
659 .HasColumnType(
"TEXT");
661 b.Property<
long?>(
"CreatedById")
662 .HasColumnType(
"INTEGER");
664 b.Property<
bool?>(
"Enabled")
666 .HasColumnType(
"INTEGER");
668 b.Property<
long?>(
"GroupId")
669 .HasColumnType(
"INTEGER");
671 b.Property<DateTimeOffset?>(
"LastPasswordUpdate")
672 .HasColumnType(
"TEXT");
674 b.Property<
string>(
"Name")
676 .HasColumnType(
"TEXT")
679 b.Property<
string>(
"PasswordHash")
680 .HasColumnType(
"TEXT");
682 b.Property<
string>(
"SystemIdentifier")
683 .HasColumnType(
"TEXT")
688 b.HasIndex(
"CanonicalName")
691 b.HasIndex(
"CreatedById");
693 b.HasIndex(
"GroupId");
695 b.HasIndex(
"SystemIdentifier")
701 modelBuilder.Entity(
"Tgstation.Server.Host.Models.UserGroup", b =>
703 b.Property<
long?>(
"Id")
704 .ValueGeneratedOnAdd()
705 .HasColumnType(
"INTEGER");
707 b.Property<
string>(
"Name")
709 .HasColumnType(
"TEXT")
720 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatBot", b =>
722 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
723 .WithMany(
"ChatSettings")
724 .HasForeignKey(
"InstanceId")
725 .OnDelete(DeleteBehavior.Cascade)
729 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatChannel", b =>
731 b.HasOne(
"Tgstation.Server.Host.Models.ChatBot",
"ChatSettings")
732 .WithMany(
"Channels")
733 .HasForeignKey(
"ChatSettingsId")
734 .OnDelete(DeleteBehavior.Cascade)
738 modelBuilder.Entity(
"Tgstation.Server.Host.Models.CompileJob", b =>
740 b.HasOne(
"Tgstation.Server.Host.Models.Job",
"Job")
742 .HasForeignKey(
"Tgstation.Server.Host.Models.CompileJob",
"JobId")
743 .OnDelete(DeleteBehavior.Cascade)
746 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"RevisionInformation")
747 .WithMany(
"CompileJobs")
748 .HasForeignKey(
"RevisionInformationId")
749 .OnDelete(DeleteBehavior.ClientNoAction)
753 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamDaemonSettings", b =>
755 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
756 .WithOne(
"DreamDaemonSettings")
757 .HasForeignKey(
"Tgstation.Server.Host.Models.DreamDaemonSettings",
"InstanceId")
758 .OnDelete(DeleteBehavior.Cascade)
762 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamMakerSettings", b =>
764 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
765 .WithOne(
"DreamMakerSettings")
766 .HasForeignKey(
"Tgstation.Server.Host.Models.DreamMakerSettings",
"InstanceId")
767 .OnDelete(DeleteBehavior.Cascade)
771 modelBuilder.Entity(
"Tgstation.Server.Host.Models.InstancePermissionSet", b =>
773 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
774 .WithMany(
"InstancePermissionSets")
775 .HasForeignKey(
"InstanceId")
776 .OnDelete(DeleteBehavior.Cascade)
779 b.HasOne(
"Tgstation.Server.Host.Models.PermissionSet",
"PermissionSet")
780 .WithMany(
"InstancePermissionSets")
781 .HasForeignKey(
"PermissionSetId")
782 .OnDelete(DeleteBehavior.Cascade)
786 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Job", b =>
788 b.HasOne(
"Tgstation.Server.Host.Models.User",
"CancelledBy")
790 .HasForeignKey(
"CancelledById");
792 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
794 .HasForeignKey(
"InstanceId")
795 .OnDelete(DeleteBehavior.Cascade)
798 b.HasOne(
"Tgstation.Server.Host.Models.User",
"StartedBy")
800 .HasForeignKey(
"StartedById")
801 .OnDelete(DeleteBehavior.Cascade)
805 modelBuilder.Entity(
"Tgstation.Server.Host.Models.OAuthConnection", b =>
807 b.HasOne(
"Tgstation.Server.Host.Models.User",
"User")
808 .WithMany(
"OAuthConnections")
809 .HasForeignKey(
"UserId")
810 .OnDelete(DeleteBehavior.Cascade);
813 modelBuilder.Entity(
"Tgstation.Server.Host.Models.PermissionSet", b =>
815 b.HasOne(
"Tgstation.Server.Host.Models.UserGroup",
"Group")
816 .WithOne(
"PermissionSet")
817 .HasForeignKey(
"Tgstation.Server.Host.Models.PermissionSet",
"GroupId")
818 .OnDelete(DeleteBehavior.Cascade);
820 b.HasOne(
"Tgstation.Server.Host.Models.User",
"User")
821 .WithOne(
"PermissionSet")
822 .HasForeignKey(
"Tgstation.Server.Host.Models.PermissionSet",
"UserId")
823 .OnDelete(DeleteBehavior.Cascade);
826 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ReattachInformation", b =>
828 b.HasOne(
"Tgstation.Server.Host.Models.CompileJob",
"CompileJob")
830 .HasForeignKey(
"CompileJobId")
831 .OnDelete(DeleteBehavior.Cascade)
835 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RepositorySettings", b =>
837 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
838 .WithOne(
"RepositorySettings")
839 .HasForeignKey(
"Tgstation.Server.Host.Models.RepositorySettings",
"InstanceId")
840 .OnDelete(DeleteBehavior.Cascade)
844 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
846 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"RevisionInformation")
847 .WithMany(
"ActiveTestMerges")
848 .HasForeignKey(
"RevisionInformationId")
849 .OnDelete(DeleteBehavior.Cascade)
852 b.HasOne(
"Tgstation.Server.Host.Models.TestMerge",
"TestMerge")
853 .WithMany(
"RevisonInformations")
854 .HasForeignKey(
"TestMergeId")
855 .OnDelete(DeleteBehavior.ClientNoAction)
859 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevisionInformation", b =>
861 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
862 .WithMany(
"RevisionInformations")
863 .HasForeignKey(
"InstanceId")
864 .OnDelete(DeleteBehavior.Cascade)
868 modelBuilder.Entity(
"Tgstation.Server.Host.Models.TestMerge", b =>
870 b.HasOne(
"Tgstation.Server.Host.Models.User",
"MergedBy")
871 .WithMany(
"TestMerges")
872 .HasForeignKey(
"MergedById")
873 .OnDelete(DeleteBehavior.Restrict)
876 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"PrimaryRevisionInformation")
877 .WithOne(
"PrimaryTestMerge")
878 .HasForeignKey(
"Tgstation.Server.Host.Models.TestMerge",
"PrimaryRevisionInformationId")
879 .OnDelete(DeleteBehavior.Cascade)
883 modelBuilder.Entity(
"Tgstation.Server.Host.Models.User", b =>
885 b.HasOne(
"Tgstation.Server.Host.Models.User",
"CreatedBy")
886 .WithMany(
"CreatedUsers")
887 .HasForeignKey(
"CreatedById");
889 b.HasOne(
"Tgstation.Server.Host.Models.UserGroup",
"Group")
891 .HasForeignKey(
"GroupId");
893#pragma warning restore 612, 618