17#pragma warning disable 612, 618
18 modelBuilder.HasAnnotation(
"ProductVersion",
"8.0.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")
33 .HasColumnType(
"TEXT");
35 b.Property<
bool?>(
"Enabled")
36 .HasColumnType(
"INTEGER");
38 b.Property<
long>(
"InstanceId")
39 .HasColumnType(
"INTEGER");
41 b.Property<
string>(
"Name")
44 .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")
75 .HasColumnType(
"TEXT");
77 b.Property<
bool?>(
"IsAdminChannel")
79 .HasColumnType(
"INTEGER");
81 b.Property<
bool?>(
"IsSystemChannel")
83 .HasColumnType(
"INTEGER");
85 b.Property<
bool?>(
"IsUpdatesChannel")
87 .HasColumnType(
"INTEGER");
89 b.Property<
bool?>(
"IsWatchdogChannel")
91 .HasColumnType(
"INTEGER");
93 b.Property<
string>(
"Tag")
95 .HasColumnType(
"TEXT");
99 b.HasIndex(
"ChatSettingsId",
"DiscordChannelId")
102 b.HasIndex(
"ChatSettingsId",
"IrcChannel")
105 b.ToTable(
"ChatChannels");
108 modelBuilder.Entity(
"Tgstation.Server.Host.Models.CompileJob", b =>
110 b.Property<
long?>(
"Id")
111 .ValueGeneratedOnAdd()
112 .HasColumnType(
"INTEGER");
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<
string>(
"EngineVersion")
133 .HasColumnType(
"TEXT");
135 b.Property<
long?>(
"GitHubDeploymentId")
136 .HasColumnType(
"INTEGER");
138 b.Property<
long?>(
"GitHubRepoId")
139 .HasColumnType(
"INTEGER");
141 b.Property<
long>(
"JobId")
142 .HasColumnType(
"INTEGER");
144 b.Property<
int?>(
"MinimumSecurityLevel")
145 .HasColumnType(
"INTEGER");
147 b.Property<
string>(
"Output")
149 .HasColumnType(
"TEXT");
151 b.Property<
string>(
"RepositoryOrigin")
152 .HasColumnType(
"TEXT");
154 b.Property<
long>(
"RevisionInformationId")
155 .HasColumnType(
"INTEGER");
159 b.HasIndex(
"DirectoryName");
164 b.HasIndex(
"RevisionInformationId");
166 b.ToTable(
"CompileJobs");
169 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamDaemonSettings", b =>
171 b.Property<
long>(
"Id")
172 .ValueGeneratedOnAdd()
173 .HasColumnType(
"INTEGER");
175 b.Property<
string>(
"AdditionalParameters")
178 .HasColumnType(
"TEXT");
180 b.Property<
bool?>(
"AllowWebClient")
182 .HasColumnType(
"INTEGER");
184 b.Property<
bool?>(
"AutoStart")
186 .HasColumnType(
"INTEGER");
188 b.Property<
bool?>(
"DumpOnHealthCheckRestart")
190 .HasColumnType(
"INTEGER");
192 b.Property<uint?>(
"HealthCheckSeconds")
194 .HasColumnType(
"INTEGER");
196 b.Property<
long>(
"InstanceId")
197 .HasColumnType(
"INTEGER");
199 b.Property<
bool?>(
"LogOutput")
201 .HasColumnType(
"INTEGER");
203 b.Property<uint?>(
"MapThreads")
205 .HasColumnType(
"INTEGER");
207 b.Property<
bool?>(
"Minidumps")
209 .HasColumnType(
"INTEGER");
211 b.Property<ushort?>(
"OpenDreamTopicPort")
213 .HasColumnType(
"INTEGER");
215 b.Property<ushort?>(
"Port")
217 .HasColumnType(
"INTEGER");
219 b.Property<
int>(
"SecurityLevel")
220 .HasColumnType(
"INTEGER");
222 b.Property<
bool?>(
"StartProfiler")
224 .HasColumnType(
"INTEGER");
226 b.Property<uint?>(
"StartupTimeout")
228 .HasColumnType(
"INTEGER");
230 b.Property<uint?>(
"TopicRequestTimeout")
232 .HasColumnType(
"INTEGER");
234 b.Property<
int>(
"Visibility")
235 .HasColumnType(
"INTEGER");
239 b.HasIndex(
"InstanceId")
242 b.ToTable(
"DreamDaemonSettings");
245 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamMakerSettings", b =>
247 b.Property<
long>(
"Id")
248 .ValueGeneratedOnAdd()
249 .HasColumnType(
"INTEGER");
251 b.Property<ushort?>(
"ApiValidationPort")
253 .HasColumnType(
"INTEGER");
255 b.Property<
int>(
"ApiValidationSecurityLevel")
256 .HasColumnType(
"INTEGER");
258 b.Property<
string>(
"CompilerAdditionalArguments")
260 .HasColumnType(
"TEXT");
262 b.Property<
int>(
"DMApiValidationMode")
263 .HasColumnType(
"INTEGER");
265 b.Property<
long>(
"InstanceId")
266 .HasColumnType(
"INTEGER");
268 b.Property<
string>(
"ProjectName")
270 .HasColumnType(
"TEXT");
272 b.Property<TimeSpan?>(
"Timeout")
274 .HasColumnType(
"TEXT");
278 b.HasIndex(
"InstanceId")
281 b.ToTable(
"DreamMakerSettings");
284 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Instance", b =>
286 b.Property<
long?>(
"Id")
287 .ValueGeneratedOnAdd()
288 .HasColumnType(
"INTEGER");
290 b.Property<
string>(
"AutoStartCron")
293 .HasColumnType(
"TEXT");
295 b.Property<
string>(
"AutoStopCron")
298 .HasColumnType(
"TEXT");
300 b.Property<
string>(
"AutoUpdateCron")
303 .HasColumnType(
"TEXT");
305 b.Property<uint?>(
"AutoUpdateInterval")
307 .HasColumnType(
"INTEGER");
309 b.Property<ushort?>(
"ChatBotLimit")
311 .HasColumnType(
"INTEGER");
313 b.Property<
int>(
"ConfigurationType")
314 .HasColumnType(
"INTEGER");
316 b.Property<
string>(
"Name")
319 .HasColumnType(
"TEXT");
321 b.Property<
bool?>(
"Online")
323 .HasColumnType(
"INTEGER");
325 b.Property<
string>(
"Path")
327 .HasColumnType(
"TEXT");
329 b.Property<
string>(
"SwarmIdentifer")
330 .HasColumnType(
"TEXT");
334 b.HasIndex(
"Path",
"SwarmIdentifer")
337 b.ToTable(
"Instances");
340 modelBuilder.Entity(
"Tgstation.Server.Host.Models.InstancePermissionSet", b =>
342 b.Property<
long>(
"Id")
343 .ValueGeneratedOnAdd()
344 .HasColumnType(
"INTEGER");
346 b.Property<ulong>(
"ChatBotRights")
347 .HasColumnType(
"INTEGER");
349 b.Property<ulong>(
"ConfigurationRights")
350 .HasColumnType(
"INTEGER");
352 b.Property<ulong>(
"DreamDaemonRights")
353 .HasColumnType(
"INTEGER");
355 b.Property<ulong>(
"DreamMakerRights")
356 .HasColumnType(
"INTEGER");
358 b.Property<ulong>(
"EngineRights")
359 .HasColumnType(
"INTEGER");
361 b.Property<
long>(
"InstanceId")
362 .HasColumnType(
"INTEGER");
364 b.Property<ulong>(
"InstancePermissionSetRights")
365 .HasColumnType(
"INTEGER");
367 b.Property<
long>(
"PermissionSetId")
368 .HasColumnType(
"INTEGER");
370 b.Property<ulong>(
"RepositoryRights")
371 .HasColumnType(
"INTEGER");
375 b.HasIndex(
"InstanceId");
377 b.HasIndex(
"PermissionSetId",
"InstanceId")
380 b.ToTable(
"InstancePermissionSets");
383 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Job", b =>
385 b.Property<
long?>(
"Id")
386 .ValueGeneratedOnAdd()
387 .HasColumnType(
"INTEGER");
389 b.Property<ulong?>(
"CancelRight")
390 .HasColumnType(
"INTEGER");
392 b.Property<ulong?>(
"CancelRightsType")
393 .HasColumnType(
"INTEGER");
395 b.Property<
bool?>(
"Cancelled")
397 .HasColumnType(
"INTEGER");
399 b.Property<
long?>(
"CancelledById")
400 .HasColumnType(
"INTEGER");
402 b.Property<
string>(
"Description")
404 .HasColumnType(
"TEXT");
406 b.Property<uint?>(
"ErrorCode")
407 .HasColumnType(
"INTEGER");
409 b.Property<
string>(
"ExceptionDetails")
410 .HasColumnType(
"TEXT");
412 b.Property<
long>(
"InstanceId")
413 .HasColumnType(
"INTEGER");
415 b.Property<
byte>(
"JobCode")
416 .HasColumnType(
"INTEGER");
418 b.Property<DateTimeOffset?>(
"StartedAt")
420 .HasColumnType(
"TEXT");
422 b.Property<
long>(
"StartedById")
423 .HasColumnType(
"INTEGER");
425 b.Property<DateTimeOffset?>(
"StoppedAt")
426 .HasColumnType(
"TEXT");
430 b.HasIndex(
"CancelledById");
432 b.HasIndex(
"InstanceId");
434 b.HasIndex(
"StartedById");
439 modelBuilder.Entity(
"Tgstation.Server.Host.Models.OAuthConnection", b =>
441 b.Property<
long>(
"Id")
442 .ValueGeneratedOnAdd()
443 .HasColumnType(
"INTEGER");
445 b.Property<
string>(
"ExternalUserId")
448 .HasColumnType(
"TEXT");
450 b.Property<
int>(
"Provider")
451 .HasColumnType(
"INTEGER");
453 b.Property<
long>(
"UserId")
454 .HasColumnType(
"INTEGER");
458 b.HasIndex(
"UserId");
460 b.HasIndex(
"Provider",
"ExternalUserId")
463 b.ToTable(
"OAuthConnections");
466 modelBuilder.Entity(
"Tgstation.Server.Host.Models.PermissionSet", b =>
468 b.Property<
long?>(
"Id")
469 .ValueGeneratedOnAdd()
470 .HasColumnType(
"INTEGER");
472 b.Property<ulong>(
"AdministrationRights")
473 .HasColumnType(
"INTEGER");
475 b.Property<
long?>(
"GroupId")
476 .HasColumnType(
"INTEGER");
478 b.Property<ulong>(
"InstanceManagerRights")
479 .HasColumnType(
"INTEGER");
481 b.Property<
long?>(
"UserId")
482 .HasColumnType(
"INTEGER");
486 b.HasIndex(
"GroupId")
492 b.ToTable(
"PermissionSets");
495 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ReattachInformation", b =>
497 b.Property<
long?>(
"Id")
498 .ValueGeneratedOnAdd()
499 .HasColumnType(
"INTEGER");
501 b.Property<
string>(
"AccessIdentifier")
503 .HasColumnType(
"TEXT");
505 b.Property<
long>(
"CompileJobId")
506 .HasColumnType(
"INTEGER");
508 b.Property<
long?>(
"InitialCompileJobId")
509 .HasColumnType(
"INTEGER");
511 b.Property<
int>(
"LaunchSecurityLevel")
512 .HasColumnType(
"INTEGER");
514 b.Property<
int>(
"LaunchVisibility")
515 .HasColumnType(
"INTEGER");
517 b.Property<ushort>(
"Port")
518 .HasColumnType(
"INTEGER");
520 b.Property<
int>(
"ProcessId")
521 .HasColumnType(
"INTEGER");
523 b.Property<
int>(
"RebootState")
524 .HasColumnType(
"INTEGER");
526 b.Property<ushort?>(
"TopicPort")
527 .HasColumnType(
"INTEGER");
531 b.HasIndex(
"CompileJobId");
533 b.HasIndex(
"InitialCompileJobId");
535 b.ToTable(
"ReattachInformations");
538 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RepositorySettings", b =>
540 b.Property<
long>(
"Id")
541 .ValueGeneratedOnAdd()
542 .HasColumnType(
"INTEGER");
544 b.Property<
string>(
"AccessToken")
546 .HasColumnType(
"TEXT");
548 b.Property<
string>(
"AccessUser")
550 .HasColumnType(
"TEXT");
552 b.Property<
bool?>(
"AutoUpdatesKeepTestMerges")
554 .HasColumnType(
"INTEGER");
556 b.Property<
bool?>(
"AutoUpdatesSynchronize")
558 .HasColumnType(
"INTEGER");
560 b.Property<
string>(
"CommitterEmail")
563 .HasColumnType(
"TEXT");
565 b.Property<
string>(
"CommitterName")
568 .HasColumnType(
"TEXT");
570 b.Property<
bool?>(
"CreateGitHubDeployments")
572 .HasColumnType(
"INTEGER");
574 b.Property<
long>(
"InstanceId")
575 .HasColumnType(
"INTEGER");
577 b.Property<
bool?>(
"PostTestMergeComment")
579 .HasColumnType(
"INTEGER");
581 b.Property<
bool?>(
"PushTestMergeCommits")
583 .HasColumnType(
"INTEGER");
585 b.Property<
bool?>(
"ShowTestMergeCommitters")
587 .HasColumnType(
"INTEGER");
589 b.Property<
bool?>(
"UpdateSubmodules")
591 .HasColumnType(
"INTEGER");
595 b.HasIndex(
"InstanceId")
598 b.ToTable(
"RepositorySettings");
601 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
603 b.Property<
long>(
"Id")
604 .ValueGeneratedOnAdd()
605 .HasColumnType(
"INTEGER");
607 b.Property<
long>(
"RevisionInformationId")
608 .HasColumnType(
"INTEGER");
610 b.Property<
long>(
"TestMergeId")
611 .HasColumnType(
"INTEGER");
615 b.HasIndex(
"RevisionInformationId");
617 b.HasIndex(
"TestMergeId");
619 b.ToTable(
"RevInfoTestMerges");
622 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevisionInformation", b =>
624 b.Property<
long>(
"Id")
625 .ValueGeneratedOnAdd()
626 .HasColumnType(
"INTEGER");
628 b.Property<
string>(
"CommitSha")
631 .HasColumnType(
"TEXT");
633 b.Property<
long>(
"InstanceId")
634 .HasColumnType(
"INTEGER");
636 b.Property<
string>(
"OriginCommitSha")
639 .HasColumnType(
"TEXT");
641 b.Property<DateTimeOffset>(
"Timestamp")
642 .HasColumnType(
"TEXT");
646 b.HasIndex(
"InstanceId",
"CommitSha")
649 b.ToTable(
"RevisionInformations");
652 modelBuilder.Entity(
"Tgstation.Server.Host.Models.TestMerge", b =>
654 b.Property<
long>(
"Id")
655 .ValueGeneratedOnAdd()
656 .HasColumnType(
"INTEGER");
658 b.Property<
string>(
"Author")
660 .HasColumnType(
"TEXT");
662 b.Property<
string>(
"BodyAtMerge")
664 .HasColumnType(
"TEXT");
666 b.Property<
string>(
"Comment")
668 .HasColumnType(
"TEXT");
670 b.Property<DateTimeOffset>(
"MergedAt")
671 .HasColumnType(
"TEXT");
673 b.Property<
long>(
"MergedById")
674 .HasColumnType(
"INTEGER");
676 b.Property<
int>(
"Number")
677 .HasColumnType(
"INTEGER");
679 b.Property<
long?>(
"PrimaryRevisionInformationId")
681 .HasColumnType(
"INTEGER");
683 b.Property<
string>(
"TargetCommitSha")
686 .HasColumnType(
"TEXT");
688 b.Property<
string>(
"TitleAtMerge")
690 .HasColumnType(
"TEXT");
692 b.Property<
string>(
"Url")
694 .HasColumnType(
"TEXT");
698 b.HasIndex(
"MergedById");
700 b.HasIndex(
"PrimaryRevisionInformationId")
703 b.ToTable(
"TestMerges");
706 modelBuilder.Entity(
"Tgstation.Server.Host.Models.User", b =>
708 b.Property<
long?>(
"Id")
709 .ValueGeneratedOnAdd()
710 .HasColumnType(
"INTEGER");
712 b.Property<
string>(
"CanonicalName")
715 .HasColumnType(
"TEXT");
717 b.Property<DateTimeOffset?>(
"CreatedAt")
719 .HasColumnType(
"TEXT");
721 b.Property<
long?>(
"CreatedById")
722 .HasColumnType(
"INTEGER");
724 b.Property<
bool?>(
"Enabled")
726 .HasColumnType(
"INTEGER");
728 b.Property<
long?>(
"GroupId")
729 .HasColumnType(
"INTEGER");
731 b.Property<DateTimeOffset?>(
"LastPasswordUpdate")
732 .HasColumnType(
"TEXT");
734 b.Property<
string>(
"Name")
737 .HasColumnType(
"TEXT");
739 b.Property<
string>(
"PasswordHash")
740 .HasColumnType(
"TEXT");
742 b.Property<
string>(
"SystemIdentifier")
744 .HasColumnType(
"TEXT");
748 b.HasIndex(
"CanonicalName")
751 b.HasIndex(
"CreatedById");
753 b.HasIndex(
"GroupId");
755 b.HasIndex(
"SystemIdentifier")
761 modelBuilder.Entity(
"Tgstation.Server.Host.Models.UserGroup", b =>
763 b.Property<
long?>(
"Id")
764 .ValueGeneratedOnAdd()
765 .HasColumnType(
"INTEGER");
767 b.Property<
string>(
"Name")
770 .HasColumnType(
"TEXT");
780 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatBot", b =>
782 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
783 .WithMany(
"ChatSettings")
784 .HasForeignKey(
"InstanceId")
785 .OnDelete(DeleteBehavior.Cascade)
788 b.Navigation(
"Instance");
791 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatChannel", b =>
793 b.HasOne(
"Tgstation.Server.Host.Models.ChatBot",
"ChatSettings")
794 .WithMany(
"Channels")
795 .HasForeignKey(
"ChatSettingsId")
796 .OnDelete(DeleteBehavior.Cascade)
799 b.Navigation(
"ChatSettings");
802 modelBuilder.Entity(
"Tgstation.Server.Host.Models.CompileJob", b =>
804 b.HasOne(
"Tgstation.Server.Host.Models.Job",
"Job")
806 .HasForeignKey(
"Tgstation.Server.Host.Models.CompileJob",
"JobId")
807 .OnDelete(DeleteBehavior.Cascade)
810 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"RevisionInformation")
811 .WithMany(
"CompileJobs")
812 .HasForeignKey(
"RevisionInformationId")
813 .OnDelete(DeleteBehavior.ClientNoAction)
818 b.Navigation(
"RevisionInformation");
821 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamDaemonSettings", b =>
823 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
824 .WithOne(
"DreamDaemonSettings")
825 .HasForeignKey(
"Tgstation.Server.Host.Models.DreamDaemonSettings",
"InstanceId")
826 .OnDelete(DeleteBehavior.Cascade)
829 b.Navigation(
"Instance");
832 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamMakerSettings", b =>
834 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
835 .WithOne(
"DreamMakerSettings")
836 .HasForeignKey(
"Tgstation.Server.Host.Models.DreamMakerSettings",
"InstanceId")
837 .OnDelete(DeleteBehavior.Cascade)
840 b.Navigation(
"Instance");
843 modelBuilder.Entity(
"Tgstation.Server.Host.Models.InstancePermissionSet", b =>
845 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
846 .WithMany(
"InstancePermissionSets")
847 .HasForeignKey(
"InstanceId")
848 .OnDelete(DeleteBehavior.Cascade)
851 b.HasOne(
"Tgstation.Server.Host.Models.PermissionSet",
"PermissionSet")
852 .WithMany(
"InstancePermissionSets")
853 .HasForeignKey(
"PermissionSetId")
854 .OnDelete(DeleteBehavior.Cascade)
857 b.Navigation(
"Instance");
859 b.Navigation(
"PermissionSet");
862 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Job", b =>
864 b.HasOne(
"Tgstation.Server.Host.Models.User",
"CancelledBy")
866 .HasForeignKey(
"CancelledById");
868 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
870 .HasForeignKey(
"InstanceId")
871 .OnDelete(DeleteBehavior.Cascade)
874 b.HasOne(
"Tgstation.Server.Host.Models.User",
"StartedBy")
876 .HasForeignKey(
"StartedById")
877 .OnDelete(DeleteBehavior.Cascade)
880 b.Navigation(
"CancelledBy");
882 b.Navigation(
"Instance");
884 b.Navigation(
"StartedBy");
887 modelBuilder.Entity(
"Tgstation.Server.Host.Models.OAuthConnection", b =>
889 b.HasOne(
"Tgstation.Server.Host.Models.User",
"User")
890 .WithMany(
"OAuthConnections")
891 .HasForeignKey(
"UserId")
892 .OnDelete(DeleteBehavior.Cascade)
895 b.Navigation(
"User");
898 modelBuilder.Entity(
"Tgstation.Server.Host.Models.PermissionSet", b =>
900 b.HasOne(
"Tgstation.Server.Host.Models.UserGroup",
"Group")
901 .WithOne(
"PermissionSet")
902 .HasForeignKey(
"Tgstation.Server.Host.Models.PermissionSet",
"GroupId")
903 .OnDelete(DeleteBehavior.Cascade);
905 b.HasOne(
"Tgstation.Server.Host.Models.User",
"User")
906 .WithOne(
"PermissionSet")
907 .HasForeignKey(
"Tgstation.Server.Host.Models.PermissionSet",
"UserId")
908 .OnDelete(DeleteBehavior.Cascade);
910 b.Navigation(
"Group");
912 b.Navigation(
"User");
915 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ReattachInformation", b =>
917 b.HasOne(
"Tgstation.Server.Host.Models.CompileJob",
"CompileJob")
919 .HasForeignKey(
"CompileJobId")
920 .OnDelete(DeleteBehavior.Cascade)
923 b.HasOne(
"Tgstation.Server.Host.Models.CompileJob",
"InitialCompileJob")
925 .HasForeignKey(
"InitialCompileJobId");
927 b.Navigation(
"CompileJob");
929 b.Navigation(
"InitialCompileJob");
932 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RepositorySettings", b =>
934 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
935 .WithOne(
"RepositorySettings")
936 .HasForeignKey(
"Tgstation.Server.Host.Models.RepositorySettings",
"InstanceId")
937 .OnDelete(DeleteBehavior.Cascade)
940 b.Navigation(
"Instance");
943 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
945 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"RevisionInformation")
946 .WithMany(
"ActiveTestMerges")
947 .HasForeignKey(
"RevisionInformationId")
948 .OnDelete(DeleteBehavior.Cascade)
951 b.HasOne(
"Tgstation.Server.Host.Models.TestMerge",
"TestMerge")
952 .WithMany(
"RevisonInformations")
953 .HasForeignKey(
"TestMergeId")
954 .OnDelete(DeleteBehavior.ClientNoAction)
957 b.Navigation(
"RevisionInformation");
959 b.Navigation(
"TestMerge");
962 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevisionInformation", b =>
964 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
965 .WithMany(
"RevisionInformations")
966 .HasForeignKey(
"InstanceId")
967 .OnDelete(DeleteBehavior.Cascade)
970 b.Navigation(
"Instance");
973 modelBuilder.Entity(
"Tgstation.Server.Host.Models.TestMerge", b =>
975 b.HasOne(
"Tgstation.Server.Host.Models.User",
"MergedBy")
976 .WithMany(
"TestMerges")
977 .HasForeignKey(
"MergedById")
978 .OnDelete(DeleteBehavior.Restrict)
981 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"PrimaryRevisionInformation")
982 .WithOne(
"PrimaryTestMerge")
983 .HasForeignKey(
"Tgstation.Server.Host.Models.TestMerge",
"PrimaryRevisionInformationId")
984 .OnDelete(DeleteBehavior.Cascade)
987 b.Navigation(
"MergedBy");
989 b.Navigation(
"PrimaryRevisionInformation");
992 modelBuilder.Entity(
"Tgstation.Server.Host.Models.User", b =>
994 b.HasOne(
"Tgstation.Server.Host.Models.User",
"CreatedBy")
995 .WithMany(
"CreatedUsers")
996 .HasForeignKey(
"CreatedById");
998 b.HasOne(
"Tgstation.Server.Host.Models.UserGroup",
"Group")
1000 .HasForeignKey(
"GroupId");
1002 b.Navigation(
"CreatedBy");
1004 b.Navigation(
"Group");
1007 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatBot", b =>
1009 b.Navigation(
"Channels");
1012 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Instance", b =>
1014 b.Navigation(
"ChatSettings");
1016 b.Navigation(
"DreamDaemonSettings");
1018 b.Navigation(
"DreamMakerSettings");
1020 b.Navigation(
"InstancePermissionSets");
1022 b.Navigation(
"Jobs");
1024 b.Navigation(
"RepositorySettings");
1026 b.Navigation(
"RevisionInformations");
1029 modelBuilder.Entity(
"Tgstation.Server.Host.Models.PermissionSet", b =>
1031 b.Navigation(
"InstancePermissionSets");
1034 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevisionInformation", b =>
1036 b.Navigation(
"ActiveTestMerges");
1038 b.Navigation(
"CompileJobs");
1040 b.Navigation(
"PrimaryTestMerge");
1043 modelBuilder.Entity(
"Tgstation.Server.Host.Models.TestMerge", b =>
1045 b.Navigation(
"RevisonInformations");
1048 modelBuilder.Entity(
"Tgstation.Server.Host.Models.User", b =>
1050 b.Navigation(
"CreatedUsers");
1052 b.Navigation(
"OAuthConnections");
1054 b.Navigation(
"PermissionSet");
1056 b.Navigation(
"TestMerges");
1059 modelBuilder.Entity(
"Tgstation.Server.Host.Models.UserGroup", b =>
1061 b.Navigation(
"PermissionSet")
1064 b.Navigation(
"Users");
1066#pragma warning restore 612, 618