16#pragma warning disable 612, 618
18 .HasAnnotation(
"ProductVersion",
"3.1.18");
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");
206 b.Property<
int>(
"Visibility")
207 .HasColumnType(
"INTEGER");
211 b.HasIndex(
"InstanceId")
214 b.ToTable(
"DreamDaemonSettings");
217 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamMakerSettings", b =>
219 b.Property<
long>(
"Id")
220 .ValueGeneratedOnAdd()
221 .HasColumnType(
"INTEGER");
223 b.Property<ushort?>(
"ApiValidationPort")
225 .HasColumnType(
"INTEGER");
227 b.Property<
int>(
"ApiValidationSecurityLevel")
228 .HasColumnType(
"INTEGER");
230 b.Property<
long>(
"InstanceId")
231 .HasColumnType(
"INTEGER");
233 b.Property<
string>(
"ProjectName")
234 .HasColumnType(
"TEXT")
235 .HasMaxLength(10000);
237 b.Property<
bool?>(
"RequireDMApiValidation")
239 .HasColumnType(
"INTEGER");
243 b.HasIndex(
"InstanceId")
246 b.ToTable(
"DreamMakerSettings");
249 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Instance", b =>
251 b.Property<
long?>(
"Id")
252 .ValueGeneratedOnAdd()
253 .HasColumnType(
"INTEGER");
255 b.Property<uint?>(
"AutoUpdateInterval")
257 .HasColumnType(
"INTEGER");
259 b.Property<ushort?>(
"ChatBotLimit")
261 .HasColumnType(
"INTEGER");
263 b.Property<
int>(
"ConfigurationType")
264 .HasColumnType(
"INTEGER");
266 b.Property<
string>(
"Name")
268 .HasColumnType(
"TEXT")
271 b.Property<
bool?>(
"Online")
273 .HasColumnType(
"INTEGER");
275 b.Property<
string>(
"Path")
277 .HasColumnType(
"TEXT");
279 b.Property<
string>(
"SwarmIdentifer")
280 .HasColumnType(
"TEXT");
284 b.HasIndex(
"Path",
"SwarmIdentifer")
287 b.ToTable(
"Instances");
290 modelBuilder.Entity(
"Tgstation.Server.Host.Models.InstancePermissionSet", b =>
292 b.Property<
long>(
"Id")
293 .ValueGeneratedOnAdd()
294 .HasColumnType(
"INTEGER");
296 b.Property<ulong>(
"ByondRights")
297 .HasColumnType(
"INTEGER");
299 b.Property<ulong>(
"ChatBotRights")
300 .HasColumnType(
"INTEGER");
302 b.Property<ulong>(
"ConfigurationRights")
303 .HasColumnType(
"INTEGER");
305 b.Property<ulong>(
"DreamDaemonRights")
306 .HasColumnType(
"INTEGER");
308 b.Property<ulong>(
"DreamMakerRights")
309 .HasColumnType(
"INTEGER");
311 b.Property<
long>(
"InstanceId")
312 .HasColumnType(
"INTEGER");
314 b.Property<ulong>(
"InstancePermissionSetRights")
315 .HasColumnType(
"INTEGER");
317 b.Property<
long>(
"PermissionSetId")
318 .HasColumnType(
"INTEGER");
320 b.Property<ulong>(
"RepositoryRights")
321 .HasColumnType(
"INTEGER");
325 b.HasIndex(
"InstanceId");
327 b.HasIndex(
"PermissionSetId",
"InstanceId")
330 b.ToTable(
"InstancePermissionSets");
333 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Job", b =>
335 b.Property<
long?>(
"Id")
336 .ValueGeneratedOnAdd()
337 .HasColumnType(
"INTEGER");
339 b.Property<ulong?>(
"CancelRight")
340 .HasColumnType(
"INTEGER");
342 b.Property<ulong?>(
"CancelRightsType")
343 .HasColumnType(
"INTEGER");
345 b.Property<
bool?>(
"Cancelled")
347 .HasColumnType(
"INTEGER");
349 b.Property<
long?>(
"CancelledById")
350 .HasColumnType(
"INTEGER");
352 b.Property<
string>(
"Description")
354 .HasColumnType(
"TEXT");
356 b.Property<uint?>(
"ErrorCode")
357 .HasColumnType(
"INTEGER");
359 b.Property<
string>(
"ExceptionDetails")
360 .HasColumnType(
"TEXT");
362 b.Property<
long>(
"InstanceId")
363 .HasColumnType(
"INTEGER");
365 b.Property<DateTimeOffset?>(
"StartedAt")
367 .HasColumnType(
"TEXT");
369 b.Property<
long>(
"StartedById")
370 .HasColumnType(
"INTEGER");
372 b.Property<DateTimeOffset?>(
"StoppedAt")
373 .HasColumnType(
"TEXT");
377 b.HasIndex(
"CancelledById");
379 b.HasIndex(
"InstanceId");
381 b.HasIndex(
"StartedById");
386 modelBuilder.Entity(
"Tgstation.Server.Host.Models.OAuthConnection", b =>
388 b.Property<
long>(
"Id")
389 .ValueGeneratedOnAdd()
390 .HasColumnType(
"INTEGER");
392 b.Property<
string>(
"ExternalUserId")
394 .HasColumnType(
"TEXT")
397 b.Property<
int>(
"Provider")
398 .HasColumnType(
"INTEGER");
400 b.Property<
long?>(
"UserId")
401 .HasColumnType(
"INTEGER");
405 b.HasIndex(
"UserId");
407 b.HasIndex(
"Provider",
"ExternalUserId")
410 b.ToTable(
"OAuthConnections");
413 modelBuilder.Entity(
"Tgstation.Server.Host.Models.PermissionSet", b =>
415 b.Property<
long?>(
"Id")
416 .ValueGeneratedOnAdd()
417 .HasColumnType(
"INTEGER");
419 b.Property<ulong>(
"AdministrationRights")
420 .HasColumnType(
"INTEGER");
422 b.Property<
long?>(
"GroupId")
423 .HasColumnType(
"INTEGER");
425 b.Property<ulong>(
"InstanceManagerRights")
426 .HasColumnType(
"INTEGER");
428 b.Property<
long?>(
"UserId")
429 .HasColumnType(
"INTEGER");
433 b.HasIndex(
"GroupId")
439 b.ToTable(
"PermissionSets");
442 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ReattachInformation", b =>
444 b.Property<
long>(
"Id")
445 .ValueGeneratedOnAdd()
446 .HasColumnType(
"INTEGER");
448 b.Property<
string>(
"AccessIdentifier")
450 .HasColumnType(
"TEXT");
452 b.Property<
long>(
"CompileJobId")
453 .HasColumnType(
"INTEGER");
455 b.Property<
int>(
"LaunchSecurityLevel")
456 .HasColumnType(
"INTEGER");
458 b.Property<
int>(
"LaunchVisibility")
459 .HasColumnType(
"INTEGER");
461 b.Property<ushort>(
"Port")
462 .HasColumnType(
"INTEGER");
464 b.Property<
int>(
"ProcessId")
465 .HasColumnType(
"INTEGER");
467 b.Property<
int>(
"RebootState")
468 .HasColumnType(
"INTEGER");
472 b.HasIndex(
"CompileJobId");
474 b.ToTable(
"ReattachInformations");
477 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RepositorySettings", b =>
479 b.Property<
long>(
"Id")
480 .ValueGeneratedOnAdd()
481 .HasColumnType(
"INTEGER");
483 b.Property<
string>(
"AccessToken")
484 .HasColumnType(
"TEXT")
485 .HasMaxLength(10000);
487 b.Property<
string>(
"AccessUser")
488 .HasColumnType(
"TEXT")
489 .HasMaxLength(10000);
491 b.Property<
bool?>(
"AutoUpdatesKeepTestMerges")
493 .HasColumnType(
"INTEGER");
495 b.Property<
bool?>(
"AutoUpdatesSynchronize")
497 .HasColumnType(
"INTEGER");
499 b.Property<
string>(
"CommitterEmail")
501 .HasColumnType(
"TEXT")
502 .HasMaxLength(10000);
504 b.Property<
string>(
"CommitterName")
506 .HasColumnType(
"TEXT")
507 .HasMaxLength(10000);
509 b.Property<
bool?>(
"CreateGitHubDeployments")
511 .HasColumnType(
"INTEGER");
513 b.Property<
long>(
"InstanceId")
514 .HasColumnType(
"INTEGER");
516 b.Property<
bool?>(
"PostTestMergeComment")
518 .HasColumnType(
"INTEGER");
520 b.Property<
bool?>(
"PushTestMergeCommits")
522 .HasColumnType(
"INTEGER");
524 b.Property<
bool?>(
"ShowTestMergeCommitters")
526 .HasColumnType(
"INTEGER");
530 b.HasIndex(
"InstanceId")
533 b.ToTable(
"RepositorySettings");
536 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
538 b.Property<
long>(
"Id")
539 .ValueGeneratedOnAdd()
540 .HasColumnType(
"INTEGER");
542 b.Property<
long>(
"RevisionInformationId")
543 .HasColumnType(
"INTEGER");
545 b.Property<
long>(
"TestMergeId")
546 .HasColumnType(
"INTEGER");
550 b.HasIndex(
"RevisionInformationId");
552 b.HasIndex(
"TestMergeId");
554 b.ToTable(
"RevInfoTestMerges");
557 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevisionInformation", b =>
559 b.Property<
long>(
"Id")
560 .ValueGeneratedOnAdd()
561 .HasColumnType(
"INTEGER");
563 b.Property<
string>(
"CommitSha")
565 .HasColumnType(
"TEXT")
568 b.Property<
long>(
"InstanceId")
569 .HasColumnType(
"INTEGER");
571 b.Property<
string>(
"OriginCommitSha")
573 .HasColumnType(
"TEXT")
576 b.Property<DateTimeOffset>(
"Timestamp")
577 .HasColumnType(
"TEXT");
581 b.HasIndex(
"InstanceId",
"CommitSha")
584 b.ToTable(
"RevisionInformations");
587 modelBuilder.Entity(
"Tgstation.Server.Host.Models.TestMerge", b =>
589 b.Property<
long>(
"Id")
590 .ValueGeneratedOnAdd()
591 .HasColumnType(
"INTEGER");
593 b.Property<
string>(
"Author")
595 .HasColumnType(
"TEXT");
597 b.Property<
string>(
"BodyAtMerge")
599 .HasColumnType(
"TEXT");
601 b.Property<
string>(
"Comment")
602 .HasColumnType(
"TEXT")
603 .HasMaxLength(10000);
605 b.Property<DateTimeOffset>(
"MergedAt")
606 .HasColumnType(
"TEXT");
608 b.Property<
long>(
"MergedById")
609 .HasColumnType(
"INTEGER");
611 b.Property<
int>(
"Number")
612 .HasColumnType(
"INTEGER");
614 b.Property<
long?>(
"PrimaryRevisionInformationId")
616 .HasColumnType(
"INTEGER");
618 b.Property<
string>(
"TargetCommitSha")
620 .HasColumnType(
"TEXT")
623 b.Property<
string>(
"TitleAtMerge")
625 .HasColumnType(
"TEXT");
627 b.Property<
string>(
"Url")
629 .HasColumnType(
"TEXT");
633 b.HasIndex(
"MergedById");
635 b.HasIndex(
"PrimaryRevisionInformationId")
638 b.ToTable(
"TestMerges");
641 modelBuilder.Entity(
"Tgstation.Server.Host.Models.User", b =>
643 b.Property<
long?>(
"Id")
644 .ValueGeneratedOnAdd()
645 .HasColumnType(
"INTEGER");
647 b.Property<
string>(
"CanonicalName")
649 .HasColumnType(
"TEXT")
652 b.Property<DateTimeOffset?>(
"CreatedAt")
654 .HasColumnType(
"TEXT");
656 b.Property<
long?>(
"CreatedById")
657 .HasColumnType(
"INTEGER");
659 b.Property<
bool?>(
"Enabled")
661 .HasColumnType(
"INTEGER");
663 b.Property<
long?>(
"GroupId")
664 .HasColumnType(
"INTEGER");
666 b.Property<DateTimeOffset?>(
"LastPasswordUpdate")
667 .HasColumnType(
"TEXT");
669 b.Property<
string>(
"Name")
671 .HasColumnType(
"TEXT")
674 b.Property<
string>(
"PasswordHash")
675 .HasColumnType(
"TEXT");
677 b.Property<
string>(
"SystemIdentifier")
678 .HasColumnType(
"TEXT")
683 b.HasIndex(
"CanonicalName")
686 b.HasIndex(
"CreatedById");
688 b.HasIndex(
"GroupId");
690 b.HasIndex(
"SystemIdentifier")
696 modelBuilder.Entity(
"Tgstation.Server.Host.Models.UserGroup", b =>
698 b.Property<
long?>(
"Id")
699 .ValueGeneratedOnAdd()
700 .HasColumnType(
"INTEGER");
702 b.Property<
string>(
"Name")
704 .HasColumnType(
"TEXT")
715 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatBot", b =>
717 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
718 .WithMany(
"ChatSettings")
719 .HasForeignKey(
"InstanceId")
720 .OnDelete(DeleteBehavior.Cascade)
724 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatChannel", b =>
726 b.HasOne(
"Tgstation.Server.Host.Models.ChatBot",
"ChatSettings")
727 .WithMany(
"Channels")
728 .HasForeignKey(
"ChatSettingsId")
729 .OnDelete(DeleteBehavior.Cascade)
733 modelBuilder.Entity(
"Tgstation.Server.Host.Models.CompileJob", b =>
735 b.HasOne(
"Tgstation.Server.Host.Models.Job",
"Job")
737 .HasForeignKey(
"Tgstation.Server.Host.Models.CompileJob",
"JobId")
738 .OnDelete(DeleteBehavior.Cascade)
741 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"RevisionInformation")
742 .WithMany(
"CompileJobs")
743 .HasForeignKey(
"RevisionInformationId")
744 .OnDelete(DeleteBehavior.ClientNoAction)
748 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamDaemonSettings", b =>
750 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
751 .WithOne(
"DreamDaemonSettings")
752 .HasForeignKey(
"Tgstation.Server.Host.Models.DreamDaemonSettings",
"InstanceId")
753 .OnDelete(DeleteBehavior.Cascade)
757 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamMakerSettings", b =>
759 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
760 .WithOne(
"DreamMakerSettings")
761 .HasForeignKey(
"Tgstation.Server.Host.Models.DreamMakerSettings",
"InstanceId")
762 .OnDelete(DeleteBehavior.Cascade)
766 modelBuilder.Entity(
"Tgstation.Server.Host.Models.InstancePermissionSet", b =>
768 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
769 .WithMany(
"InstancePermissionSets")
770 .HasForeignKey(
"InstanceId")
771 .OnDelete(DeleteBehavior.Cascade)
774 b.HasOne(
"Tgstation.Server.Host.Models.PermissionSet",
"PermissionSet")
775 .WithMany(
"InstancePermissionSets")
776 .HasForeignKey(
"PermissionSetId")
777 .OnDelete(DeleteBehavior.Cascade)
781 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Job", b =>
783 b.HasOne(
"Tgstation.Server.Host.Models.User",
"CancelledBy")
785 .HasForeignKey(
"CancelledById");
787 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
789 .HasForeignKey(
"InstanceId")
790 .OnDelete(DeleteBehavior.Cascade)
793 b.HasOne(
"Tgstation.Server.Host.Models.User",
"StartedBy")
795 .HasForeignKey(
"StartedById")
796 .OnDelete(DeleteBehavior.Cascade)
800 modelBuilder.Entity(
"Tgstation.Server.Host.Models.OAuthConnection", b =>
802 b.HasOne(
"Tgstation.Server.Host.Models.User",
"User")
803 .WithMany(
"OAuthConnections")
804 .HasForeignKey(
"UserId")
805 .OnDelete(DeleteBehavior.Cascade);
808 modelBuilder.Entity(
"Tgstation.Server.Host.Models.PermissionSet", b =>
810 b.HasOne(
"Tgstation.Server.Host.Models.UserGroup",
"Group")
811 .WithOne(
"PermissionSet")
812 .HasForeignKey(
"Tgstation.Server.Host.Models.PermissionSet",
"GroupId")
813 .OnDelete(DeleteBehavior.Cascade);
815 b.HasOne(
"Tgstation.Server.Host.Models.User",
"User")
816 .WithOne(
"PermissionSet")
817 .HasForeignKey(
"Tgstation.Server.Host.Models.PermissionSet",
"UserId")
818 .OnDelete(DeleteBehavior.Cascade);
821 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ReattachInformation", b =>
823 b.HasOne(
"Tgstation.Server.Host.Models.CompileJob",
"CompileJob")
825 .HasForeignKey(
"CompileJobId")
826 .OnDelete(DeleteBehavior.Cascade)
830 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RepositorySettings", b =>
832 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
833 .WithOne(
"RepositorySettings")
834 .HasForeignKey(
"Tgstation.Server.Host.Models.RepositorySettings",
"InstanceId")
835 .OnDelete(DeleteBehavior.Cascade)
839 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
841 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"RevisionInformation")
842 .WithMany(
"ActiveTestMerges")
843 .HasForeignKey(
"RevisionInformationId")
844 .OnDelete(DeleteBehavior.Cascade)
847 b.HasOne(
"Tgstation.Server.Host.Models.TestMerge",
"TestMerge")
848 .WithMany(
"RevisonInformations")
849 .HasForeignKey(
"TestMergeId")
850 .OnDelete(DeleteBehavior.ClientNoAction)
854 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevisionInformation", b =>
856 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
857 .WithMany(
"RevisionInformations")
858 .HasForeignKey(
"InstanceId")
859 .OnDelete(DeleteBehavior.Cascade)
863 modelBuilder.Entity(
"Tgstation.Server.Host.Models.TestMerge", b =>
865 b.HasOne(
"Tgstation.Server.Host.Models.User",
"MergedBy")
866 .WithMany(
"TestMerges")
867 .HasForeignKey(
"MergedById")
868 .OnDelete(DeleteBehavior.Restrict)
871 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"PrimaryRevisionInformation")
872 .WithOne(
"PrimaryTestMerge")
873 .HasForeignKey(
"Tgstation.Server.Host.Models.TestMerge",
"PrimaryRevisionInformationId")
874 .OnDelete(DeleteBehavior.Cascade)
878 modelBuilder.Entity(
"Tgstation.Server.Host.Models.User", b =>
880 b.HasOne(
"Tgstation.Server.Host.Models.User",
"CreatedBy")
881 .WithMany(
"CreatedUsers")
882 .HasForeignKey(
"CreatedById");
884 b.HasOne(
"Tgstation.Server.Host.Models.UserGroup",
"Group")
886 .HasForeignKey(
"GroupId");
888#pragma warning restore 612, 618