17#pragma warning disable 612, 618
18 modelBuilder.HasAnnotation(
"ProductVersion",
"8.0.7");
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<
long>(
"InstanceId")
263 .HasColumnType(
"INTEGER");
265 b.Property<
string>(
"ProjectName")
267 .HasColumnType(
"TEXT");
269 b.Property<
bool?>(
"RequireDMApiValidation")
271 .HasColumnType(
"INTEGER");
273 b.Property<TimeSpan?>(
"Timeout")
275 .HasColumnType(
"TEXT");
279 b.HasIndex(
"InstanceId")
282 b.ToTable(
"DreamMakerSettings");
285 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Instance", b =>
287 b.Property<
long?>(
"Id")
288 .ValueGeneratedOnAdd()
289 .HasColumnType(
"INTEGER");
291 b.Property<
string>(
"AutoUpdateCron")
294 .HasColumnType(
"TEXT");
296 b.Property<uint?>(
"AutoUpdateInterval")
298 .HasColumnType(
"INTEGER");
300 b.Property<ushort?>(
"ChatBotLimit")
302 .HasColumnType(
"INTEGER");
304 b.Property<
int>(
"ConfigurationType")
305 .HasColumnType(
"INTEGER");
307 b.Property<
string>(
"Name")
310 .HasColumnType(
"TEXT");
312 b.Property<
bool?>(
"Online")
314 .HasColumnType(
"INTEGER");
316 b.Property<
string>(
"Path")
318 .HasColumnType(
"TEXT");
320 b.Property<
string>(
"SwarmIdentifer")
321 .HasColumnType(
"TEXT");
325 b.HasIndex(
"Path",
"SwarmIdentifer")
328 b.ToTable(
"Instances");
331 modelBuilder.Entity(
"Tgstation.Server.Host.Models.InstancePermissionSet", b =>
333 b.Property<
long>(
"Id")
334 .ValueGeneratedOnAdd()
335 .HasColumnType(
"INTEGER");
337 b.Property<ulong>(
"ChatBotRights")
338 .HasColumnType(
"INTEGER");
340 b.Property<ulong>(
"ConfigurationRights")
341 .HasColumnType(
"INTEGER");
343 b.Property<ulong>(
"DreamDaemonRights")
344 .HasColumnType(
"INTEGER");
346 b.Property<ulong>(
"DreamMakerRights")
347 .HasColumnType(
"INTEGER");
349 b.Property<ulong>(
"EngineRights")
350 .HasColumnType(
"INTEGER");
352 b.Property<
long>(
"InstanceId")
353 .HasColumnType(
"INTEGER");
355 b.Property<ulong>(
"InstancePermissionSetRights")
356 .HasColumnType(
"INTEGER");
358 b.Property<
long>(
"PermissionSetId")
359 .HasColumnType(
"INTEGER");
361 b.Property<ulong>(
"RepositoryRights")
362 .HasColumnType(
"INTEGER");
366 b.HasIndex(
"InstanceId");
368 b.HasIndex(
"PermissionSetId",
"InstanceId")
371 b.ToTable(
"InstancePermissionSets");
374 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Job", b =>
376 b.Property<
long?>(
"Id")
377 .ValueGeneratedOnAdd()
378 .HasColumnType(
"INTEGER");
380 b.Property<ulong?>(
"CancelRight")
381 .HasColumnType(
"INTEGER");
383 b.Property<ulong?>(
"CancelRightsType")
384 .HasColumnType(
"INTEGER");
386 b.Property<
bool?>(
"Cancelled")
388 .HasColumnType(
"INTEGER");
390 b.Property<
long?>(
"CancelledById")
391 .HasColumnType(
"INTEGER");
393 b.Property<
string>(
"Description")
395 .HasColumnType(
"TEXT");
397 b.Property<uint?>(
"ErrorCode")
398 .HasColumnType(
"INTEGER");
400 b.Property<
string>(
"ExceptionDetails")
401 .HasColumnType(
"TEXT");
403 b.Property<
long>(
"InstanceId")
404 .HasColumnType(
"INTEGER");
406 b.Property<
byte>(
"JobCode")
407 .HasColumnType(
"INTEGER");
409 b.Property<DateTimeOffset?>(
"StartedAt")
411 .HasColumnType(
"TEXT");
413 b.Property<
long>(
"StartedById")
414 .HasColumnType(
"INTEGER");
416 b.Property<DateTimeOffset?>(
"StoppedAt")
417 .HasColumnType(
"TEXT");
421 b.HasIndex(
"CancelledById");
423 b.HasIndex(
"InstanceId");
425 b.HasIndex(
"StartedById");
430 modelBuilder.Entity(
"Tgstation.Server.Host.Models.OAuthConnection", b =>
432 b.Property<
long>(
"Id")
433 .ValueGeneratedOnAdd()
434 .HasColumnType(
"INTEGER");
436 b.Property<
string>(
"ExternalUserId")
439 .HasColumnType(
"TEXT");
441 b.Property<
int>(
"Provider")
442 .HasColumnType(
"INTEGER");
444 b.Property<
long?>(
"UserId")
445 .HasColumnType(
"INTEGER");
449 b.HasIndex(
"UserId");
451 b.HasIndex(
"Provider",
"ExternalUserId")
454 b.ToTable(
"OAuthConnections");
457 modelBuilder.Entity(
"Tgstation.Server.Host.Models.PermissionSet", b =>
459 b.Property<
long?>(
"Id")
460 .ValueGeneratedOnAdd()
461 .HasColumnType(
"INTEGER");
463 b.Property<ulong>(
"AdministrationRights")
464 .HasColumnType(
"INTEGER");
466 b.Property<
long?>(
"GroupId")
467 .HasColumnType(
"INTEGER");
469 b.Property<ulong>(
"InstanceManagerRights")
470 .HasColumnType(
"INTEGER");
472 b.Property<
long?>(
"UserId")
473 .HasColumnType(
"INTEGER");
477 b.HasIndex(
"GroupId")
483 b.ToTable(
"PermissionSets");
486 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ReattachInformation", b =>
488 b.Property<
long?>(
"Id")
489 .ValueGeneratedOnAdd()
490 .HasColumnType(
"INTEGER");
492 b.Property<
string>(
"AccessIdentifier")
494 .HasColumnType(
"TEXT");
496 b.Property<
long>(
"CompileJobId")
497 .HasColumnType(
"INTEGER");
499 b.Property<
long?>(
"InitialCompileJobId")
500 .HasColumnType(
"INTEGER");
502 b.Property<
int>(
"LaunchSecurityLevel")
503 .HasColumnType(
"INTEGER");
505 b.Property<
int>(
"LaunchVisibility")
506 .HasColumnType(
"INTEGER");
508 b.Property<ushort>(
"Port")
509 .HasColumnType(
"INTEGER");
511 b.Property<
int>(
"ProcessId")
512 .HasColumnType(
"INTEGER");
514 b.Property<
int>(
"RebootState")
515 .HasColumnType(
"INTEGER");
517 b.Property<ushort?>(
"TopicPort")
518 .HasColumnType(
"INTEGER");
522 b.HasIndex(
"CompileJobId");
524 b.HasIndex(
"InitialCompileJobId");
526 b.ToTable(
"ReattachInformations");
529 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RepositorySettings", b =>
531 b.Property<
long>(
"Id")
532 .ValueGeneratedOnAdd()
533 .HasColumnType(
"INTEGER");
535 b.Property<
string>(
"AccessToken")
537 .HasColumnType(
"TEXT");
539 b.Property<
string>(
"AccessUser")
541 .HasColumnType(
"TEXT");
543 b.Property<
bool?>(
"AutoUpdatesKeepTestMerges")
545 .HasColumnType(
"INTEGER");
547 b.Property<
bool?>(
"AutoUpdatesSynchronize")
549 .HasColumnType(
"INTEGER");
551 b.Property<
string>(
"CommitterEmail")
554 .HasColumnType(
"TEXT");
556 b.Property<
string>(
"CommitterName")
559 .HasColumnType(
"TEXT");
561 b.Property<
bool?>(
"CreateGitHubDeployments")
563 .HasColumnType(
"INTEGER");
565 b.Property<
long>(
"InstanceId")
566 .HasColumnType(
"INTEGER");
568 b.Property<
bool?>(
"PostTestMergeComment")
570 .HasColumnType(
"INTEGER");
572 b.Property<
bool?>(
"PushTestMergeCommits")
574 .HasColumnType(
"INTEGER");
576 b.Property<
bool?>(
"ShowTestMergeCommitters")
578 .HasColumnType(
"INTEGER");
580 b.Property<
bool?>(
"UpdateSubmodules")
582 .HasColumnType(
"INTEGER");
586 b.HasIndex(
"InstanceId")
589 b.ToTable(
"RepositorySettings");
592 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
594 b.Property<
long>(
"Id")
595 .ValueGeneratedOnAdd()
596 .HasColumnType(
"INTEGER");
598 b.Property<
long>(
"RevisionInformationId")
599 .HasColumnType(
"INTEGER");
601 b.Property<
long>(
"TestMergeId")
602 .HasColumnType(
"INTEGER");
606 b.HasIndex(
"RevisionInformationId");
608 b.HasIndex(
"TestMergeId");
610 b.ToTable(
"RevInfoTestMerges");
613 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevisionInformation", b =>
615 b.Property<
long>(
"Id")
616 .ValueGeneratedOnAdd()
617 .HasColumnType(
"INTEGER");
619 b.Property<
string>(
"CommitSha")
622 .HasColumnType(
"TEXT");
624 b.Property<
long>(
"InstanceId")
625 .HasColumnType(
"INTEGER");
627 b.Property<
string>(
"OriginCommitSha")
630 .HasColumnType(
"TEXT");
632 b.Property<DateTimeOffset>(
"Timestamp")
633 .HasColumnType(
"TEXT");
637 b.HasIndex(
"InstanceId",
"CommitSha")
640 b.ToTable(
"RevisionInformations");
643 modelBuilder.Entity(
"Tgstation.Server.Host.Models.TestMerge", b =>
645 b.Property<
long>(
"Id")
646 .ValueGeneratedOnAdd()
647 .HasColumnType(
"INTEGER");
649 b.Property<
string>(
"Author")
651 .HasColumnType(
"TEXT");
653 b.Property<
string>(
"BodyAtMerge")
655 .HasColumnType(
"TEXT");
657 b.Property<
string>(
"Comment")
659 .HasColumnType(
"TEXT");
661 b.Property<DateTimeOffset>(
"MergedAt")
662 .HasColumnType(
"TEXT");
664 b.Property<
long>(
"MergedById")
665 .HasColumnType(
"INTEGER");
667 b.Property<
int>(
"Number")
668 .HasColumnType(
"INTEGER");
670 b.Property<
long?>(
"PrimaryRevisionInformationId")
672 .HasColumnType(
"INTEGER");
674 b.Property<
string>(
"TargetCommitSha")
677 .HasColumnType(
"TEXT");
679 b.Property<
string>(
"TitleAtMerge")
681 .HasColumnType(
"TEXT");
683 b.Property<
string>(
"Url")
685 .HasColumnType(
"TEXT");
689 b.HasIndex(
"MergedById");
691 b.HasIndex(
"PrimaryRevisionInformationId")
694 b.ToTable(
"TestMerges");
697 modelBuilder.Entity(
"Tgstation.Server.Host.Models.User", b =>
699 b.Property<
long?>(
"Id")
700 .ValueGeneratedOnAdd()
701 .HasColumnType(
"INTEGER");
703 b.Property<
string>(
"CanonicalName")
706 .HasColumnType(
"TEXT");
708 b.Property<DateTimeOffset?>(
"CreatedAt")
710 .HasColumnType(
"TEXT");
712 b.Property<
long?>(
"CreatedById")
713 .HasColumnType(
"INTEGER");
715 b.Property<
bool?>(
"Enabled")
717 .HasColumnType(
"INTEGER");
719 b.Property<
long?>(
"GroupId")
720 .HasColumnType(
"INTEGER");
722 b.Property<DateTimeOffset?>(
"LastPasswordUpdate")
723 .HasColumnType(
"TEXT");
725 b.Property<
string>(
"Name")
728 .HasColumnType(
"TEXT");
730 b.Property<
string>(
"PasswordHash")
731 .HasColumnType(
"TEXT");
733 b.Property<
string>(
"SystemIdentifier")
735 .HasColumnType(
"TEXT");
739 b.HasIndex(
"CanonicalName")
742 b.HasIndex(
"CreatedById");
744 b.HasIndex(
"GroupId");
746 b.HasIndex(
"SystemIdentifier")
752 modelBuilder.Entity(
"Tgstation.Server.Host.Models.UserGroup", b =>
754 b.Property<
long?>(
"Id")
755 .ValueGeneratedOnAdd()
756 .HasColumnType(
"INTEGER");
758 b.Property<
string>(
"Name")
761 .HasColumnType(
"TEXT");
771 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatBot", b =>
773 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
774 .WithMany(
"ChatSettings")
775 .HasForeignKey(
"InstanceId")
776 .OnDelete(DeleteBehavior.Cascade)
779 b.Navigation(
"Instance");
782 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatChannel", b =>
784 b.HasOne(
"Tgstation.Server.Host.Models.ChatBot",
"ChatSettings")
785 .WithMany(
"Channels")
786 .HasForeignKey(
"ChatSettingsId")
787 .OnDelete(DeleteBehavior.Cascade)
790 b.Navigation(
"ChatSettings");
793 modelBuilder.Entity(
"Tgstation.Server.Host.Models.CompileJob", b =>
795 b.HasOne(
"Tgstation.Server.Host.Models.Job",
"Job")
797 .HasForeignKey(
"Tgstation.Server.Host.Models.CompileJob",
"JobId")
798 .OnDelete(DeleteBehavior.Cascade)
801 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"RevisionInformation")
802 .WithMany(
"CompileJobs")
803 .HasForeignKey(
"RevisionInformationId")
804 .OnDelete(DeleteBehavior.ClientNoAction)
809 b.Navigation(
"RevisionInformation");
812 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamDaemonSettings", b =>
814 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
815 .WithOne(
"DreamDaemonSettings")
816 .HasForeignKey(
"Tgstation.Server.Host.Models.DreamDaemonSettings",
"InstanceId")
817 .OnDelete(DeleteBehavior.Cascade)
820 b.Navigation(
"Instance");
823 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamMakerSettings", b =>
825 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
826 .WithOne(
"DreamMakerSettings")
827 .HasForeignKey(
"Tgstation.Server.Host.Models.DreamMakerSettings",
"InstanceId")
828 .OnDelete(DeleteBehavior.Cascade)
831 b.Navigation(
"Instance");
834 modelBuilder.Entity(
"Tgstation.Server.Host.Models.InstancePermissionSet", b =>
836 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
837 .WithMany(
"InstancePermissionSets")
838 .HasForeignKey(
"InstanceId")
839 .OnDelete(DeleteBehavior.Cascade)
842 b.HasOne(
"Tgstation.Server.Host.Models.PermissionSet",
"PermissionSet")
843 .WithMany(
"InstancePermissionSets")
844 .HasForeignKey(
"PermissionSetId")
845 .OnDelete(DeleteBehavior.Cascade)
848 b.Navigation(
"Instance");
850 b.Navigation(
"PermissionSet");
853 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Job", b =>
855 b.HasOne(
"Tgstation.Server.Host.Models.User",
"CancelledBy")
857 .HasForeignKey(
"CancelledById");
859 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
861 .HasForeignKey(
"InstanceId")
862 .OnDelete(DeleteBehavior.Cascade)
865 b.HasOne(
"Tgstation.Server.Host.Models.User",
"StartedBy")
867 .HasForeignKey(
"StartedById")
868 .OnDelete(DeleteBehavior.Cascade)
871 b.Navigation(
"CancelledBy");
873 b.Navigation(
"Instance");
875 b.Navigation(
"StartedBy");
878 modelBuilder.Entity(
"Tgstation.Server.Host.Models.OAuthConnection", b =>
880 b.HasOne(
"Tgstation.Server.Host.Models.User",
"User")
881 .WithMany(
"OAuthConnections")
882 .HasForeignKey(
"UserId")
883 .OnDelete(DeleteBehavior.Cascade);
885 b.Navigation(
"User");
888 modelBuilder.Entity(
"Tgstation.Server.Host.Models.PermissionSet", b =>
890 b.HasOne(
"Tgstation.Server.Host.Models.UserGroup",
"Group")
891 .WithOne(
"PermissionSet")
892 .HasForeignKey(
"Tgstation.Server.Host.Models.PermissionSet",
"GroupId")
893 .OnDelete(DeleteBehavior.Cascade);
895 b.HasOne(
"Tgstation.Server.Host.Models.User",
"User")
896 .WithOne(
"PermissionSet")
897 .HasForeignKey(
"Tgstation.Server.Host.Models.PermissionSet",
"UserId")
898 .OnDelete(DeleteBehavior.Cascade);
900 b.Navigation(
"Group");
902 b.Navigation(
"User");
905 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ReattachInformation", b =>
907 b.HasOne(
"Tgstation.Server.Host.Models.CompileJob",
"CompileJob")
909 .HasForeignKey(
"CompileJobId")
910 .OnDelete(DeleteBehavior.Cascade)
913 b.HasOne(
"Tgstation.Server.Host.Models.CompileJob",
"InitialCompileJob")
915 .HasForeignKey(
"InitialCompileJobId");
917 b.Navigation(
"CompileJob");
919 b.Navigation(
"InitialCompileJob");
922 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RepositorySettings", b =>
924 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
925 .WithOne(
"RepositorySettings")
926 .HasForeignKey(
"Tgstation.Server.Host.Models.RepositorySettings",
"InstanceId")
927 .OnDelete(DeleteBehavior.Cascade)
930 b.Navigation(
"Instance");
933 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
935 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"RevisionInformation")
936 .WithMany(
"ActiveTestMerges")
937 .HasForeignKey(
"RevisionInformationId")
938 .OnDelete(DeleteBehavior.Cascade)
941 b.HasOne(
"Tgstation.Server.Host.Models.TestMerge",
"TestMerge")
942 .WithMany(
"RevisonInformations")
943 .HasForeignKey(
"TestMergeId")
944 .OnDelete(DeleteBehavior.ClientNoAction)
947 b.Navigation(
"RevisionInformation");
949 b.Navigation(
"TestMerge");
952 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevisionInformation", b =>
954 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
955 .WithMany(
"RevisionInformations")
956 .HasForeignKey(
"InstanceId")
957 .OnDelete(DeleteBehavior.Cascade)
960 b.Navigation(
"Instance");
963 modelBuilder.Entity(
"Tgstation.Server.Host.Models.TestMerge", b =>
965 b.HasOne(
"Tgstation.Server.Host.Models.User",
"MergedBy")
966 .WithMany(
"TestMerges")
967 .HasForeignKey(
"MergedById")
968 .OnDelete(DeleteBehavior.Restrict)
971 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"PrimaryRevisionInformation")
972 .WithOne(
"PrimaryTestMerge")
973 .HasForeignKey(
"Tgstation.Server.Host.Models.TestMerge",
"PrimaryRevisionInformationId")
974 .OnDelete(DeleteBehavior.Cascade)
977 b.Navigation(
"MergedBy");
979 b.Navigation(
"PrimaryRevisionInformation");
982 modelBuilder.Entity(
"Tgstation.Server.Host.Models.User", b =>
984 b.HasOne(
"Tgstation.Server.Host.Models.User",
"CreatedBy")
985 .WithMany(
"CreatedUsers")
986 .HasForeignKey(
"CreatedById");
988 b.HasOne(
"Tgstation.Server.Host.Models.UserGroup",
"Group")
990 .HasForeignKey(
"GroupId");
992 b.Navigation(
"CreatedBy");
994 b.Navigation(
"Group");
997 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatBot", b =>
999 b.Navigation(
"Channels");
1002 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Instance", b =>
1004 b.Navigation(
"ChatSettings");
1006 b.Navigation(
"DreamDaemonSettings");
1008 b.Navigation(
"DreamMakerSettings");
1010 b.Navigation(
"InstancePermissionSets");
1012 b.Navigation(
"Jobs");
1014 b.Navigation(
"RepositorySettings");
1016 b.Navigation(
"RevisionInformations");
1019 modelBuilder.Entity(
"Tgstation.Server.Host.Models.PermissionSet", b =>
1021 b.Navigation(
"InstancePermissionSets");
1024 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevisionInformation", b =>
1026 b.Navigation(
"ActiveTestMerges");
1028 b.Navigation(
"CompileJobs");
1030 b.Navigation(
"PrimaryTestMerge");
1033 modelBuilder.Entity(
"Tgstation.Server.Host.Models.TestMerge", b =>
1035 b.Navigation(
"RevisonInformations");
1038 modelBuilder.Entity(
"Tgstation.Server.Host.Models.User", b =>
1040 b.Navigation(
"CreatedUsers");
1042 b.Navigation(
"OAuthConnections");
1044 b.Navigation(
"PermissionSet");
1046 b.Navigation(
"TestMerges");
1049 modelBuilder.Entity(
"Tgstation.Server.Host.Models.UserGroup", b =>
1051 b.Navigation(
"PermissionSet")
1054 b.Navigation(
"Users");
1056#pragma warning restore 612, 618