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<
bool?>(
"StartProfiler")
205 .HasColumnType(
"INTEGER");
207 b.Property<uint?>(
"StartupTimeout")
209 .HasColumnType(
"INTEGER");
211 b.Property<uint?>(
"TopicRequestTimeout")
213 .HasColumnType(
"INTEGER");
215 b.Property<
int>(
"Visibility")
216 .HasColumnType(
"INTEGER");
220 b.HasIndex(
"InstanceId")
223 b.ToTable(
"DreamDaemonSettings");
226 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamMakerSettings", b =>
228 b.Property<
long>(
"Id")
229 .ValueGeneratedOnAdd()
230 .HasColumnType(
"INTEGER");
232 b.Property<ushort?>(
"ApiValidationPort")
234 .HasColumnType(
"INTEGER");
236 b.Property<
int>(
"ApiValidationSecurityLevel")
237 .HasColumnType(
"INTEGER");
239 b.Property<
long>(
"InstanceId")
240 .HasColumnType(
"INTEGER");
242 b.Property<
string>(
"ProjectName")
243 .HasColumnType(
"TEXT")
244 .HasMaxLength(10000);
246 b.Property<
bool?>(
"RequireDMApiValidation")
248 .HasColumnType(
"INTEGER");
250 b.Property<TimeSpan?>(
"Timeout")
252 .HasColumnType(
"TEXT");
256 b.HasIndex(
"InstanceId")
259 b.ToTable(
"DreamMakerSettings");
262 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Instance", b =>
264 b.Property<
long?>(
"Id")
265 .ValueGeneratedOnAdd()
266 .HasColumnType(
"INTEGER");
268 b.Property<uint?>(
"AutoUpdateInterval")
270 .HasColumnType(
"INTEGER");
272 b.Property<ushort?>(
"ChatBotLimit")
274 .HasColumnType(
"INTEGER");
276 b.Property<
int>(
"ConfigurationType")
277 .HasColumnType(
"INTEGER");
279 b.Property<
string>(
"Name")
281 .HasColumnType(
"TEXT")
284 b.Property<
bool?>(
"Online")
286 .HasColumnType(
"INTEGER");
288 b.Property<
string>(
"Path")
290 .HasColumnType(
"TEXT");
292 b.Property<
string>(
"SwarmIdentifer")
293 .HasColumnType(
"TEXT");
297 b.HasIndex(
"Path",
"SwarmIdentifer")
300 b.ToTable(
"Instances");
303 modelBuilder.Entity(
"Tgstation.Server.Host.Models.InstancePermissionSet", b =>
305 b.Property<
long>(
"Id")
306 .ValueGeneratedOnAdd()
307 .HasColumnType(
"INTEGER");
309 b.Property<ulong>(
"ByondRights")
310 .HasColumnType(
"INTEGER");
312 b.Property<ulong>(
"ChatBotRights")
313 .HasColumnType(
"INTEGER");
315 b.Property<ulong>(
"ConfigurationRights")
316 .HasColumnType(
"INTEGER");
318 b.Property<ulong>(
"DreamDaemonRights")
319 .HasColumnType(
"INTEGER");
321 b.Property<ulong>(
"DreamMakerRights")
322 .HasColumnType(
"INTEGER");
324 b.Property<
long>(
"InstanceId")
325 .HasColumnType(
"INTEGER");
327 b.Property<ulong>(
"InstancePermissionSetRights")
328 .HasColumnType(
"INTEGER");
330 b.Property<
long>(
"PermissionSetId")
331 .HasColumnType(
"INTEGER");
333 b.Property<ulong>(
"RepositoryRights")
334 .HasColumnType(
"INTEGER");
338 b.HasIndex(
"InstanceId");
340 b.HasIndex(
"PermissionSetId",
"InstanceId")
343 b.ToTable(
"InstancePermissionSets");
346 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Job", b =>
348 b.Property<
long?>(
"Id")
349 .ValueGeneratedOnAdd()
350 .HasColumnType(
"INTEGER");
352 b.Property<ulong?>(
"CancelRight")
353 .HasColumnType(
"INTEGER");
355 b.Property<ulong?>(
"CancelRightsType")
356 .HasColumnType(
"INTEGER");
358 b.Property<
bool?>(
"Cancelled")
360 .HasColumnType(
"INTEGER");
362 b.Property<
long?>(
"CancelledById")
363 .HasColumnType(
"INTEGER");
365 b.Property<
string>(
"Description")
367 .HasColumnType(
"TEXT");
369 b.Property<uint?>(
"ErrorCode")
370 .HasColumnType(
"INTEGER");
372 b.Property<
string>(
"ExceptionDetails")
373 .HasColumnType(
"TEXT");
375 b.Property<
long>(
"InstanceId")
376 .HasColumnType(
"INTEGER");
378 b.Property<DateTimeOffset?>(
"StartedAt")
380 .HasColumnType(
"TEXT");
382 b.Property<
long>(
"StartedById")
383 .HasColumnType(
"INTEGER");
385 b.Property<DateTimeOffset?>(
"StoppedAt")
386 .HasColumnType(
"TEXT");
390 b.HasIndex(
"CancelledById");
392 b.HasIndex(
"InstanceId");
394 b.HasIndex(
"StartedById");
399 modelBuilder.Entity(
"Tgstation.Server.Host.Models.OAuthConnection", b =>
401 b.Property<
long>(
"Id")
402 .ValueGeneratedOnAdd()
403 .HasColumnType(
"INTEGER");
405 b.Property<
string>(
"ExternalUserId")
407 .HasColumnType(
"TEXT")
410 b.Property<
int>(
"Provider")
411 .HasColumnType(
"INTEGER");
413 b.Property<
long?>(
"UserId")
414 .HasColumnType(
"INTEGER");
418 b.HasIndex(
"UserId");
420 b.HasIndex(
"Provider",
"ExternalUserId")
423 b.ToTable(
"OAuthConnections");
426 modelBuilder.Entity(
"Tgstation.Server.Host.Models.PermissionSet", b =>
428 b.Property<
long?>(
"Id")
429 .ValueGeneratedOnAdd()
430 .HasColumnType(
"INTEGER");
432 b.Property<ulong>(
"AdministrationRights")
433 .HasColumnType(
"INTEGER");
435 b.Property<
long?>(
"GroupId")
436 .HasColumnType(
"INTEGER");
438 b.Property<ulong>(
"InstanceManagerRights")
439 .HasColumnType(
"INTEGER");
441 b.Property<
long?>(
"UserId")
442 .HasColumnType(
"INTEGER");
446 b.HasIndex(
"GroupId")
452 b.ToTable(
"PermissionSets");
455 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ReattachInformation", b =>
457 b.Property<
long>(
"Id")
458 .ValueGeneratedOnAdd()
459 .HasColumnType(
"INTEGER");
461 b.Property<
string>(
"AccessIdentifier")
463 .HasColumnType(
"TEXT");
465 b.Property<
long>(
"CompileJobId")
466 .HasColumnType(
"INTEGER");
468 b.Property<
int>(
"LaunchSecurityLevel")
469 .HasColumnType(
"INTEGER");
471 b.Property<
int>(
"LaunchVisibility")
472 .HasColumnType(
"INTEGER");
474 b.Property<ushort>(
"Port")
475 .HasColumnType(
"INTEGER");
477 b.Property<
int>(
"ProcessId")
478 .HasColumnType(
"INTEGER");
480 b.Property<
int>(
"RebootState")
481 .HasColumnType(
"INTEGER");
485 b.HasIndex(
"CompileJobId");
487 b.ToTable(
"ReattachInformations");
490 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RepositorySettings", b =>
492 b.Property<
long>(
"Id")
493 .ValueGeneratedOnAdd()
494 .HasColumnType(
"INTEGER");
496 b.Property<
string>(
"AccessToken")
497 .HasColumnType(
"TEXT")
498 .HasMaxLength(10000);
500 b.Property<
string>(
"AccessUser")
501 .HasColumnType(
"TEXT")
502 .HasMaxLength(10000);
504 b.Property<
bool?>(
"AutoUpdatesKeepTestMerges")
506 .HasColumnType(
"INTEGER");
508 b.Property<
bool?>(
"AutoUpdatesSynchronize")
510 .HasColumnType(
"INTEGER");
512 b.Property<
string>(
"CommitterEmail")
514 .HasColumnType(
"TEXT")
515 .HasMaxLength(10000);
517 b.Property<
string>(
"CommitterName")
519 .HasColumnType(
"TEXT")
520 .HasMaxLength(10000);
522 b.Property<
bool?>(
"CreateGitHubDeployments")
524 .HasColumnType(
"INTEGER");
526 b.Property<
long>(
"InstanceId")
527 .HasColumnType(
"INTEGER");
529 b.Property<
bool?>(
"PostTestMergeComment")
531 .HasColumnType(
"INTEGER");
533 b.Property<
bool?>(
"PushTestMergeCommits")
535 .HasColumnType(
"INTEGER");
537 b.Property<
bool?>(
"ShowTestMergeCommitters")
539 .HasColumnType(
"INTEGER");
541 b.Property<
bool?>(
"UpdateSubmodules")
543 .HasColumnType(
"INTEGER");
547 b.HasIndex(
"InstanceId")
550 b.ToTable(
"RepositorySettings");
553 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
555 b.Property<
long>(
"Id")
556 .ValueGeneratedOnAdd()
557 .HasColumnType(
"INTEGER");
559 b.Property<
long>(
"RevisionInformationId")
560 .HasColumnType(
"INTEGER");
562 b.Property<
long>(
"TestMergeId")
563 .HasColumnType(
"INTEGER");
567 b.HasIndex(
"RevisionInformationId");
569 b.HasIndex(
"TestMergeId");
571 b.ToTable(
"RevInfoTestMerges");
574 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevisionInformation", b =>
576 b.Property<
long>(
"Id")
577 .ValueGeneratedOnAdd()
578 .HasColumnType(
"INTEGER");
580 b.Property<
string>(
"CommitSha")
582 .HasColumnType(
"TEXT")
585 b.Property<
long>(
"InstanceId")
586 .HasColumnType(
"INTEGER");
588 b.Property<
string>(
"OriginCommitSha")
590 .HasColumnType(
"TEXT")
593 b.Property<DateTimeOffset>(
"Timestamp")
594 .HasColumnType(
"TEXT");
598 b.HasIndex(
"InstanceId",
"CommitSha")
601 b.ToTable(
"RevisionInformations");
604 modelBuilder.Entity(
"Tgstation.Server.Host.Models.TestMerge", b =>
606 b.Property<
long>(
"Id")
607 .ValueGeneratedOnAdd()
608 .HasColumnType(
"INTEGER");
610 b.Property<
string>(
"Author")
612 .HasColumnType(
"TEXT");
614 b.Property<
string>(
"BodyAtMerge")
616 .HasColumnType(
"TEXT");
618 b.Property<
string>(
"Comment")
619 .HasColumnType(
"TEXT")
620 .HasMaxLength(10000);
622 b.Property<DateTimeOffset>(
"MergedAt")
623 .HasColumnType(
"TEXT");
625 b.Property<
long>(
"MergedById")
626 .HasColumnType(
"INTEGER");
628 b.Property<
int>(
"Number")
629 .HasColumnType(
"INTEGER");
631 b.Property<
long?>(
"PrimaryRevisionInformationId")
633 .HasColumnType(
"INTEGER");
635 b.Property<
string>(
"TargetCommitSha")
637 .HasColumnType(
"TEXT")
640 b.Property<
string>(
"TitleAtMerge")
642 .HasColumnType(
"TEXT");
644 b.Property<
string>(
"Url")
646 .HasColumnType(
"TEXT");
650 b.HasIndex(
"MergedById");
652 b.HasIndex(
"PrimaryRevisionInformationId")
655 b.ToTable(
"TestMerges");
658 modelBuilder.Entity(
"Tgstation.Server.Host.Models.User", b =>
660 b.Property<
long?>(
"Id")
661 .ValueGeneratedOnAdd()
662 .HasColumnType(
"INTEGER");
664 b.Property<
string>(
"CanonicalName")
666 .HasColumnType(
"TEXT")
669 b.Property<DateTimeOffset?>(
"CreatedAt")
671 .HasColumnType(
"TEXT");
673 b.Property<
long?>(
"CreatedById")
674 .HasColumnType(
"INTEGER");
676 b.Property<
bool?>(
"Enabled")
678 .HasColumnType(
"INTEGER");
680 b.Property<
long?>(
"GroupId")
681 .HasColumnType(
"INTEGER");
683 b.Property<DateTimeOffset?>(
"LastPasswordUpdate")
684 .HasColumnType(
"TEXT");
686 b.Property<
string>(
"Name")
688 .HasColumnType(
"TEXT")
691 b.Property<
string>(
"PasswordHash")
692 .HasColumnType(
"TEXT");
694 b.Property<
string>(
"SystemIdentifier")
695 .HasColumnType(
"TEXT")
700 b.HasIndex(
"CanonicalName")
703 b.HasIndex(
"CreatedById");
705 b.HasIndex(
"GroupId");
707 b.HasIndex(
"SystemIdentifier")
713 modelBuilder.Entity(
"Tgstation.Server.Host.Models.UserGroup", b =>
715 b.Property<
long?>(
"Id")
716 .ValueGeneratedOnAdd()
717 .HasColumnType(
"INTEGER");
719 b.Property<
string>(
"Name")
721 .HasColumnType(
"TEXT")
732 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatBot", b =>
734 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
735 .WithMany(
"ChatSettings")
736 .HasForeignKey(
"InstanceId")
737 .OnDelete(DeleteBehavior.Cascade)
741 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatChannel", b =>
743 b.HasOne(
"Tgstation.Server.Host.Models.ChatBot",
"ChatSettings")
744 .WithMany(
"Channels")
745 .HasForeignKey(
"ChatSettingsId")
746 .OnDelete(DeleteBehavior.Cascade)
750 modelBuilder.Entity(
"Tgstation.Server.Host.Models.CompileJob", b =>
752 b.HasOne(
"Tgstation.Server.Host.Models.Job",
"Job")
754 .HasForeignKey(
"Tgstation.Server.Host.Models.CompileJob",
"JobId")
755 .OnDelete(DeleteBehavior.Cascade)
758 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"RevisionInformation")
759 .WithMany(
"CompileJobs")
760 .HasForeignKey(
"RevisionInformationId")
761 .OnDelete(DeleteBehavior.ClientNoAction)
765 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamDaemonSettings", b =>
767 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
768 .WithOne(
"DreamDaemonSettings")
769 .HasForeignKey(
"Tgstation.Server.Host.Models.DreamDaemonSettings",
"InstanceId")
770 .OnDelete(DeleteBehavior.Cascade)
774 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamMakerSettings", b =>
776 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
777 .WithOne(
"DreamMakerSettings")
778 .HasForeignKey(
"Tgstation.Server.Host.Models.DreamMakerSettings",
"InstanceId")
779 .OnDelete(DeleteBehavior.Cascade)
783 modelBuilder.Entity(
"Tgstation.Server.Host.Models.InstancePermissionSet", b =>
785 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
786 .WithMany(
"InstancePermissionSets")
787 .HasForeignKey(
"InstanceId")
788 .OnDelete(DeleteBehavior.Cascade)
791 b.HasOne(
"Tgstation.Server.Host.Models.PermissionSet",
"PermissionSet")
792 .WithMany(
"InstancePermissionSets")
793 .HasForeignKey(
"PermissionSetId")
794 .OnDelete(DeleteBehavior.Cascade)
798 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Job", b =>
800 b.HasOne(
"Tgstation.Server.Host.Models.User",
"CancelledBy")
802 .HasForeignKey(
"CancelledById");
804 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
806 .HasForeignKey(
"InstanceId")
807 .OnDelete(DeleteBehavior.Cascade)
810 b.HasOne(
"Tgstation.Server.Host.Models.User",
"StartedBy")
812 .HasForeignKey(
"StartedById")
813 .OnDelete(DeleteBehavior.Cascade)
817 modelBuilder.Entity(
"Tgstation.Server.Host.Models.OAuthConnection", b =>
819 b.HasOne(
"Tgstation.Server.Host.Models.User",
"User")
820 .WithMany(
"OAuthConnections")
821 .HasForeignKey(
"UserId")
822 .OnDelete(DeleteBehavior.Cascade);
825 modelBuilder.Entity(
"Tgstation.Server.Host.Models.PermissionSet", b =>
827 b.HasOne(
"Tgstation.Server.Host.Models.UserGroup",
"Group")
828 .WithOne(
"PermissionSet")
829 .HasForeignKey(
"Tgstation.Server.Host.Models.PermissionSet",
"GroupId")
830 .OnDelete(DeleteBehavior.Cascade);
832 b.HasOne(
"Tgstation.Server.Host.Models.User",
"User")
833 .WithOne(
"PermissionSet")
834 .HasForeignKey(
"Tgstation.Server.Host.Models.PermissionSet",
"UserId")
835 .OnDelete(DeleteBehavior.Cascade);
838 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ReattachInformation", b =>
840 b.HasOne(
"Tgstation.Server.Host.Models.CompileJob",
"CompileJob")
842 .HasForeignKey(
"CompileJobId")
843 .OnDelete(DeleteBehavior.Cascade)
847 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RepositorySettings", b =>
849 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
850 .WithOne(
"RepositorySettings")
851 .HasForeignKey(
"Tgstation.Server.Host.Models.RepositorySettings",
"InstanceId")
852 .OnDelete(DeleteBehavior.Cascade)
856 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
858 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"RevisionInformation")
859 .WithMany(
"ActiveTestMerges")
860 .HasForeignKey(
"RevisionInformationId")
861 .OnDelete(DeleteBehavior.Cascade)
864 b.HasOne(
"Tgstation.Server.Host.Models.TestMerge",
"TestMerge")
865 .WithMany(
"RevisonInformations")
866 .HasForeignKey(
"TestMergeId")
867 .OnDelete(DeleteBehavior.ClientNoAction)
871 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevisionInformation", b =>
873 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
874 .WithMany(
"RevisionInformations")
875 .HasForeignKey(
"InstanceId")
876 .OnDelete(DeleteBehavior.Cascade)
880 modelBuilder.Entity(
"Tgstation.Server.Host.Models.TestMerge", b =>
882 b.HasOne(
"Tgstation.Server.Host.Models.User",
"MergedBy")
883 .WithMany(
"TestMerges")
884 .HasForeignKey(
"MergedById")
885 .OnDelete(DeleteBehavior.Restrict)
888 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"PrimaryRevisionInformation")
889 .WithOne(
"PrimaryTestMerge")
890 .HasForeignKey(
"Tgstation.Server.Host.Models.TestMerge",
"PrimaryRevisionInformationId")
891 .OnDelete(DeleteBehavior.Cascade)
895 modelBuilder.Entity(
"Tgstation.Server.Host.Models.User", b =>
897 b.HasOne(
"Tgstation.Server.Host.Models.User",
"CreatedBy")
898 .WithMany(
"CreatedUsers")
899 .HasForeignKey(
"CreatedById");
901 b.HasOne(
"Tgstation.Server.Host.Models.UserGroup",
"Group")
903 .HasForeignKey(
"GroupId");
905#pragma warning restore 612, 618