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");
533 b.Property<
bool?>(
"UpdateSubmodules")
535 .HasColumnType(
"INTEGER");
539 b.HasIndex(
"InstanceId")
542 b.ToTable(
"RepositorySettings");
545 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
547 b.Property<
long>(
"Id")
548 .ValueGeneratedOnAdd()
549 .HasColumnType(
"INTEGER");
551 b.Property<
long>(
"RevisionInformationId")
552 .HasColumnType(
"INTEGER");
554 b.Property<
long>(
"TestMergeId")
555 .HasColumnType(
"INTEGER");
559 b.HasIndex(
"RevisionInformationId");
561 b.HasIndex(
"TestMergeId");
563 b.ToTable(
"RevInfoTestMerges");
566 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevisionInformation", b =>
568 b.Property<
long>(
"Id")
569 .ValueGeneratedOnAdd()
570 .HasColumnType(
"INTEGER");
572 b.Property<
string>(
"CommitSha")
574 .HasColumnType(
"TEXT")
577 b.Property<
long>(
"InstanceId")
578 .HasColumnType(
"INTEGER");
580 b.Property<
string>(
"OriginCommitSha")
582 .HasColumnType(
"TEXT")
585 b.Property<DateTimeOffset>(
"Timestamp")
586 .HasColumnType(
"TEXT");
590 b.HasIndex(
"InstanceId",
"CommitSha")
593 b.ToTable(
"RevisionInformations");
596 modelBuilder.Entity(
"Tgstation.Server.Host.Models.TestMerge", b =>
598 b.Property<
long>(
"Id")
599 .ValueGeneratedOnAdd()
600 .HasColumnType(
"INTEGER");
602 b.Property<
string>(
"Author")
604 .HasColumnType(
"TEXT");
606 b.Property<
string>(
"BodyAtMerge")
608 .HasColumnType(
"TEXT");
610 b.Property<
string>(
"Comment")
611 .HasColumnType(
"TEXT")
612 .HasMaxLength(10000);
614 b.Property<DateTimeOffset>(
"MergedAt")
615 .HasColumnType(
"TEXT");
617 b.Property<
long>(
"MergedById")
618 .HasColumnType(
"INTEGER");
620 b.Property<
int>(
"Number")
621 .HasColumnType(
"INTEGER");
623 b.Property<
long?>(
"PrimaryRevisionInformationId")
625 .HasColumnType(
"INTEGER");
627 b.Property<
string>(
"TargetCommitSha")
629 .HasColumnType(
"TEXT")
632 b.Property<
string>(
"TitleAtMerge")
634 .HasColumnType(
"TEXT");
636 b.Property<
string>(
"Url")
638 .HasColumnType(
"TEXT");
642 b.HasIndex(
"MergedById");
644 b.HasIndex(
"PrimaryRevisionInformationId")
647 b.ToTable(
"TestMerges");
650 modelBuilder.Entity(
"Tgstation.Server.Host.Models.User", b =>
652 b.Property<
long?>(
"Id")
653 .ValueGeneratedOnAdd()
654 .HasColumnType(
"INTEGER");
656 b.Property<
string>(
"CanonicalName")
658 .HasColumnType(
"TEXT")
661 b.Property<DateTimeOffset?>(
"CreatedAt")
663 .HasColumnType(
"TEXT");
665 b.Property<
long?>(
"CreatedById")
666 .HasColumnType(
"INTEGER");
668 b.Property<
bool?>(
"Enabled")
670 .HasColumnType(
"INTEGER");
672 b.Property<
long?>(
"GroupId")
673 .HasColumnType(
"INTEGER");
675 b.Property<DateTimeOffset?>(
"LastPasswordUpdate")
676 .HasColumnType(
"TEXT");
678 b.Property<
string>(
"Name")
680 .HasColumnType(
"TEXT")
683 b.Property<
string>(
"PasswordHash")
684 .HasColumnType(
"TEXT");
686 b.Property<
string>(
"SystemIdentifier")
687 .HasColumnType(
"TEXT")
692 b.HasIndex(
"CanonicalName")
695 b.HasIndex(
"CreatedById");
697 b.HasIndex(
"GroupId");
699 b.HasIndex(
"SystemIdentifier")
705 modelBuilder.Entity(
"Tgstation.Server.Host.Models.UserGroup", b =>
707 b.Property<
long?>(
"Id")
708 .ValueGeneratedOnAdd()
709 .HasColumnType(
"INTEGER");
711 b.Property<
string>(
"Name")
713 .HasColumnType(
"TEXT")
724 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatBot", b =>
726 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
727 .WithMany(
"ChatSettings")
728 .HasForeignKey(
"InstanceId")
729 .OnDelete(DeleteBehavior.Cascade)
733 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatChannel", b =>
735 b.HasOne(
"Tgstation.Server.Host.Models.ChatBot",
"ChatSettings")
736 .WithMany(
"Channels")
737 .HasForeignKey(
"ChatSettingsId")
738 .OnDelete(DeleteBehavior.Cascade)
742 modelBuilder.Entity(
"Tgstation.Server.Host.Models.CompileJob", b =>
744 b.HasOne(
"Tgstation.Server.Host.Models.Job",
"Job")
746 .HasForeignKey(
"Tgstation.Server.Host.Models.CompileJob",
"JobId")
747 .OnDelete(DeleteBehavior.Cascade)
750 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"RevisionInformation")
751 .WithMany(
"CompileJobs")
752 .HasForeignKey(
"RevisionInformationId")
753 .OnDelete(DeleteBehavior.ClientNoAction)
757 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamDaemonSettings", b =>
759 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
760 .WithOne(
"DreamDaemonSettings")
761 .HasForeignKey(
"Tgstation.Server.Host.Models.DreamDaemonSettings",
"InstanceId")
762 .OnDelete(DeleteBehavior.Cascade)
766 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamMakerSettings", b =>
768 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
769 .WithOne(
"DreamMakerSettings")
770 .HasForeignKey(
"Tgstation.Server.Host.Models.DreamMakerSettings",
"InstanceId")
771 .OnDelete(DeleteBehavior.Cascade)
775 modelBuilder.Entity(
"Tgstation.Server.Host.Models.InstancePermissionSet", b =>
777 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
778 .WithMany(
"InstancePermissionSets")
779 .HasForeignKey(
"InstanceId")
780 .OnDelete(DeleteBehavior.Cascade)
783 b.HasOne(
"Tgstation.Server.Host.Models.PermissionSet",
"PermissionSet")
784 .WithMany(
"InstancePermissionSets")
785 .HasForeignKey(
"PermissionSetId")
786 .OnDelete(DeleteBehavior.Cascade)
790 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Job", b =>
792 b.HasOne(
"Tgstation.Server.Host.Models.User",
"CancelledBy")
794 .HasForeignKey(
"CancelledById");
796 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
798 .HasForeignKey(
"InstanceId")
799 .OnDelete(DeleteBehavior.Cascade)
802 b.HasOne(
"Tgstation.Server.Host.Models.User",
"StartedBy")
804 .HasForeignKey(
"StartedById")
805 .OnDelete(DeleteBehavior.Cascade)
809 modelBuilder.Entity(
"Tgstation.Server.Host.Models.OAuthConnection", b =>
811 b.HasOne(
"Tgstation.Server.Host.Models.User",
"User")
812 .WithMany(
"OAuthConnections")
813 .HasForeignKey(
"UserId")
814 .OnDelete(DeleteBehavior.Cascade);
817 modelBuilder.Entity(
"Tgstation.Server.Host.Models.PermissionSet", b =>
819 b.HasOne(
"Tgstation.Server.Host.Models.UserGroup",
"Group")
820 .WithOne(
"PermissionSet")
821 .HasForeignKey(
"Tgstation.Server.Host.Models.PermissionSet",
"GroupId")
822 .OnDelete(DeleteBehavior.Cascade);
824 b.HasOne(
"Tgstation.Server.Host.Models.User",
"User")
825 .WithOne(
"PermissionSet")
826 .HasForeignKey(
"Tgstation.Server.Host.Models.PermissionSet",
"UserId")
827 .OnDelete(DeleteBehavior.Cascade);
830 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ReattachInformation", b =>
832 b.HasOne(
"Tgstation.Server.Host.Models.CompileJob",
"CompileJob")
834 .HasForeignKey(
"CompileJobId")
835 .OnDelete(DeleteBehavior.Cascade)
839 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RepositorySettings", b =>
841 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
842 .WithOne(
"RepositorySettings")
843 .HasForeignKey(
"Tgstation.Server.Host.Models.RepositorySettings",
"InstanceId")
844 .OnDelete(DeleteBehavior.Cascade)
848 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
850 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"RevisionInformation")
851 .WithMany(
"ActiveTestMerges")
852 .HasForeignKey(
"RevisionInformationId")
853 .OnDelete(DeleteBehavior.Cascade)
856 b.HasOne(
"Tgstation.Server.Host.Models.TestMerge",
"TestMerge")
857 .WithMany(
"RevisonInformations")
858 .HasForeignKey(
"TestMergeId")
859 .OnDelete(DeleteBehavior.ClientNoAction)
863 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevisionInformation", b =>
865 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
866 .WithMany(
"RevisionInformations")
867 .HasForeignKey(
"InstanceId")
868 .OnDelete(DeleteBehavior.Cascade)
872 modelBuilder.Entity(
"Tgstation.Server.Host.Models.TestMerge", b =>
874 b.HasOne(
"Tgstation.Server.Host.Models.User",
"MergedBy")
875 .WithMany(
"TestMerges")
876 .HasForeignKey(
"MergedById")
877 .OnDelete(DeleteBehavior.Restrict)
880 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"PrimaryRevisionInformation")
881 .WithOne(
"PrimaryTestMerge")
882 .HasForeignKey(
"Tgstation.Server.Host.Models.TestMerge",
"PrimaryRevisionInformationId")
883 .OnDelete(DeleteBehavior.Cascade)
887 modelBuilder.Entity(
"Tgstation.Server.Host.Models.User", b =>
889 b.HasOne(
"Tgstation.Server.Host.Models.User",
"CreatedBy")
890 .WithMany(
"CreatedUsers")
891 .HasForeignKey(
"CreatedById");
893 b.HasOne(
"Tgstation.Server.Host.Models.UserGroup",
"Group")
895 .HasForeignKey(
"GroupId");
897#pragma warning restore 612, 618