17#pragma warning disable 612, 618
18 modelBuilder.HasAnnotation(
"ProductVersion",
"8.0.1");
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<
int?>(
"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?>(
"Port")
213 .HasColumnType(
"INTEGER");
215 b.Property<
int>(
"SecurityLevel")
216 .HasColumnType(
"INTEGER");
218 b.Property<
bool?>(
"StartProfiler")
220 .HasColumnType(
"INTEGER");
222 b.Property<uint?>(
"StartupTimeout")
224 .HasColumnType(
"INTEGER");
226 b.Property<uint?>(
"TopicRequestTimeout")
228 .HasColumnType(
"INTEGER");
230 b.Property<
int>(
"Visibility")
231 .HasColumnType(
"INTEGER");
235 b.HasIndex(
"InstanceId")
238 b.ToTable(
"DreamDaemonSettings");
241 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamMakerSettings", b =>
243 b.Property<
long>(
"Id")
244 .ValueGeneratedOnAdd()
245 .HasColumnType(
"INTEGER");
247 b.Property<ushort?>(
"ApiValidationPort")
249 .HasColumnType(
"INTEGER");
251 b.Property<
int>(
"ApiValidationSecurityLevel")
252 .HasColumnType(
"INTEGER");
254 b.Property<
long>(
"InstanceId")
255 .HasColumnType(
"INTEGER");
257 b.Property<
string>(
"ProjectName")
259 .HasColumnType(
"TEXT");
261 b.Property<
bool?>(
"RequireDMApiValidation")
263 .HasColumnType(
"INTEGER");
265 b.Property<TimeSpan?>(
"Timeout")
267 .HasColumnType(
"TEXT");
271 b.HasIndex(
"InstanceId")
274 b.ToTable(
"DreamMakerSettings");
277 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Instance", b =>
279 b.Property<
long?>(
"Id")
280 .ValueGeneratedOnAdd()
281 .HasColumnType(
"INTEGER");
283 b.Property<uint?>(
"AutoUpdateInterval")
285 .HasColumnType(
"INTEGER");
287 b.Property<ushort?>(
"ChatBotLimit")
289 .HasColumnType(
"INTEGER");
291 b.Property<
int>(
"ConfigurationType")
292 .HasColumnType(
"INTEGER");
294 b.Property<
string>(
"Name")
297 .HasColumnType(
"TEXT");
299 b.Property<
bool?>(
"Online")
301 .HasColumnType(
"INTEGER");
303 b.Property<
string>(
"Path")
305 .HasColumnType(
"TEXT");
307 b.Property<
string>(
"SwarmIdentifer")
308 .HasColumnType(
"TEXT");
312 b.HasIndex(
"Path",
"SwarmIdentifer")
315 b.ToTable(
"Instances");
318 modelBuilder.Entity(
"Tgstation.Server.Host.Models.InstancePermissionSet", b =>
320 b.Property<
long>(
"Id")
321 .ValueGeneratedOnAdd()
322 .HasColumnType(
"INTEGER");
324 b.Property<ulong>(
"ChatBotRights")
325 .HasColumnType(
"INTEGER");
327 b.Property<ulong>(
"ConfigurationRights")
328 .HasColumnType(
"INTEGER");
330 b.Property<ulong>(
"DreamDaemonRights")
331 .HasColumnType(
"INTEGER");
333 b.Property<ulong>(
"DreamMakerRights")
334 .HasColumnType(
"INTEGER");
336 b.Property<ulong>(
"EngineRights")
337 .HasColumnType(
"INTEGER");
339 b.Property<
long>(
"InstanceId")
340 .HasColumnType(
"INTEGER");
342 b.Property<ulong>(
"InstancePermissionSetRights")
343 .HasColumnType(
"INTEGER");
345 b.Property<
long>(
"PermissionSetId")
346 .HasColumnType(
"INTEGER");
348 b.Property<ulong>(
"RepositoryRights")
349 .HasColumnType(
"INTEGER");
353 b.HasIndex(
"InstanceId");
355 b.HasIndex(
"PermissionSetId",
"InstanceId")
358 b.ToTable(
"InstancePermissionSets");
361 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Job", b =>
363 b.Property<
long?>(
"Id")
364 .ValueGeneratedOnAdd()
365 .HasColumnType(
"INTEGER");
367 b.Property<ulong?>(
"CancelRight")
368 .HasColumnType(
"INTEGER");
370 b.Property<ulong?>(
"CancelRightsType")
371 .HasColumnType(
"INTEGER");
373 b.Property<
bool?>(
"Cancelled")
375 .HasColumnType(
"INTEGER");
377 b.Property<
long?>(
"CancelledById")
378 .HasColumnType(
"INTEGER");
380 b.Property<
string>(
"Description")
382 .HasColumnType(
"TEXT");
384 b.Property<uint?>(
"ErrorCode")
385 .HasColumnType(
"INTEGER");
387 b.Property<
string>(
"ExceptionDetails")
388 .HasColumnType(
"TEXT");
390 b.Property<
long>(
"InstanceId")
391 .HasColumnType(
"INTEGER");
393 b.Property<
byte>(
"JobCode")
394 .HasColumnType(
"INTEGER");
396 b.Property<DateTimeOffset?>(
"StartedAt")
398 .HasColumnType(
"TEXT");
400 b.Property<
long>(
"StartedById")
401 .HasColumnType(
"INTEGER");
403 b.Property<DateTimeOffset?>(
"StoppedAt")
404 .HasColumnType(
"TEXT");
408 b.HasIndex(
"CancelledById");
410 b.HasIndex(
"InstanceId");
412 b.HasIndex(
"StartedById");
417 modelBuilder.Entity(
"Tgstation.Server.Host.Models.OAuthConnection", b =>
419 b.Property<
long>(
"Id")
420 .ValueGeneratedOnAdd()
421 .HasColumnType(
"INTEGER");
423 b.Property<
string>(
"ExternalUserId")
426 .HasColumnType(
"TEXT");
428 b.Property<
int>(
"Provider")
429 .HasColumnType(
"INTEGER");
431 b.Property<
long?>(
"UserId")
432 .HasColumnType(
"INTEGER");
436 b.HasIndex(
"UserId");
438 b.HasIndex(
"Provider",
"ExternalUserId")
441 b.ToTable(
"OAuthConnections");
444 modelBuilder.Entity(
"Tgstation.Server.Host.Models.PermissionSet", b =>
446 b.Property<
long?>(
"Id")
447 .ValueGeneratedOnAdd()
448 .HasColumnType(
"INTEGER");
450 b.Property<ulong>(
"AdministrationRights")
451 .HasColumnType(
"INTEGER");
453 b.Property<
long?>(
"GroupId")
454 .HasColumnType(
"INTEGER");
456 b.Property<ulong>(
"InstanceManagerRights")
457 .HasColumnType(
"INTEGER");
459 b.Property<
long?>(
"UserId")
460 .HasColumnType(
"INTEGER");
464 b.HasIndex(
"GroupId")
470 b.ToTable(
"PermissionSets");
473 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ReattachInformation", b =>
475 b.Property<
long?>(
"Id")
476 .ValueGeneratedOnAdd()
477 .HasColumnType(
"INTEGER");
479 b.Property<
string>(
"AccessIdentifier")
481 .HasColumnType(
"TEXT");
483 b.Property<
long>(
"CompileJobId")
484 .HasColumnType(
"INTEGER");
486 b.Property<
long?>(
"InitialCompileJobId")
487 .HasColumnType(
"INTEGER");
489 b.Property<
int>(
"LaunchSecurityLevel")
490 .HasColumnType(
"INTEGER");
492 b.Property<
int>(
"LaunchVisibility")
493 .HasColumnType(
"INTEGER");
495 b.Property<ushort>(
"Port")
496 .HasColumnType(
"INTEGER");
498 b.Property<
int>(
"ProcessId")
499 .HasColumnType(
"INTEGER");
501 b.Property<
int>(
"RebootState")
502 .HasColumnType(
"INTEGER");
504 b.Property<ushort?>(
"TopicPort")
505 .HasColumnType(
"INTEGER");
509 b.HasIndex(
"CompileJobId");
511 b.HasIndex(
"InitialCompileJobId");
513 b.ToTable(
"ReattachInformations");
516 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RepositorySettings", b =>
518 b.Property<
long>(
"Id")
519 .ValueGeneratedOnAdd()
520 .HasColumnType(
"INTEGER");
522 b.Property<
string>(
"AccessToken")
524 .HasColumnType(
"TEXT");
526 b.Property<
string>(
"AccessUser")
528 .HasColumnType(
"TEXT");
530 b.Property<
bool?>(
"AutoUpdatesKeepTestMerges")
532 .HasColumnType(
"INTEGER");
534 b.Property<
bool?>(
"AutoUpdatesSynchronize")
536 .HasColumnType(
"INTEGER");
538 b.Property<
string>(
"CommitterEmail")
541 .HasColumnType(
"TEXT");
543 b.Property<
string>(
"CommitterName")
546 .HasColumnType(
"TEXT");
548 b.Property<
bool?>(
"CreateGitHubDeployments")
550 .HasColumnType(
"INTEGER");
552 b.Property<
long>(
"InstanceId")
553 .HasColumnType(
"INTEGER");
555 b.Property<
bool?>(
"PostTestMergeComment")
557 .HasColumnType(
"INTEGER");
559 b.Property<
bool?>(
"PushTestMergeCommits")
561 .HasColumnType(
"INTEGER");
563 b.Property<
bool?>(
"ShowTestMergeCommitters")
565 .HasColumnType(
"INTEGER");
567 b.Property<
bool?>(
"UpdateSubmodules")
569 .HasColumnType(
"INTEGER");
573 b.HasIndex(
"InstanceId")
576 b.ToTable(
"RepositorySettings");
579 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
581 b.Property<
long>(
"Id")
582 .ValueGeneratedOnAdd()
583 .HasColumnType(
"INTEGER");
585 b.Property<
long>(
"RevisionInformationId")
586 .HasColumnType(
"INTEGER");
588 b.Property<
long>(
"TestMergeId")
589 .HasColumnType(
"INTEGER");
593 b.HasIndex(
"RevisionInformationId");
595 b.HasIndex(
"TestMergeId");
597 b.ToTable(
"RevInfoTestMerges");
600 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevisionInformation", b =>
602 b.Property<
long>(
"Id")
603 .ValueGeneratedOnAdd()
604 .HasColumnType(
"INTEGER");
606 b.Property<
string>(
"CommitSha")
609 .HasColumnType(
"TEXT");
611 b.Property<
long>(
"InstanceId")
612 .HasColumnType(
"INTEGER");
614 b.Property<
string>(
"OriginCommitSha")
617 .HasColumnType(
"TEXT");
619 b.Property<DateTimeOffset>(
"Timestamp")
620 .HasColumnType(
"TEXT");
624 b.HasIndex(
"InstanceId",
"CommitSha")
627 b.ToTable(
"RevisionInformations");
630 modelBuilder.Entity(
"Tgstation.Server.Host.Models.TestMerge", b =>
632 b.Property<
long>(
"Id")
633 .ValueGeneratedOnAdd()
634 .HasColumnType(
"INTEGER");
636 b.Property<
string>(
"Author")
638 .HasColumnType(
"TEXT");
640 b.Property<
string>(
"BodyAtMerge")
642 .HasColumnType(
"TEXT");
644 b.Property<
string>(
"Comment")
646 .HasColumnType(
"TEXT");
648 b.Property<DateTimeOffset>(
"MergedAt")
649 .HasColumnType(
"TEXT");
651 b.Property<
long>(
"MergedById")
652 .HasColumnType(
"INTEGER");
654 b.Property<
int>(
"Number")
655 .HasColumnType(
"INTEGER");
657 b.Property<
long?>(
"PrimaryRevisionInformationId")
659 .HasColumnType(
"INTEGER");
661 b.Property<
string>(
"TargetCommitSha")
664 .HasColumnType(
"TEXT");
666 b.Property<
string>(
"TitleAtMerge")
668 .HasColumnType(
"TEXT");
670 b.Property<
string>(
"Url")
672 .HasColumnType(
"TEXT");
676 b.HasIndex(
"MergedById");
678 b.HasIndex(
"PrimaryRevisionInformationId")
681 b.ToTable(
"TestMerges");
684 modelBuilder.Entity(
"Tgstation.Server.Host.Models.User", b =>
686 b.Property<
long?>(
"Id")
687 .ValueGeneratedOnAdd()
688 .HasColumnType(
"INTEGER");
690 b.Property<
string>(
"CanonicalName")
693 .HasColumnType(
"TEXT");
695 b.Property<DateTimeOffset?>(
"CreatedAt")
697 .HasColumnType(
"TEXT");
699 b.Property<
long?>(
"CreatedById")
700 .HasColumnType(
"INTEGER");
702 b.Property<
bool?>(
"Enabled")
704 .HasColumnType(
"INTEGER");
706 b.Property<
long?>(
"GroupId")
707 .HasColumnType(
"INTEGER");
709 b.Property<DateTimeOffset?>(
"LastPasswordUpdate")
710 .HasColumnType(
"TEXT");
712 b.Property<
string>(
"Name")
715 .HasColumnType(
"TEXT");
717 b.Property<
string>(
"PasswordHash")
718 .HasColumnType(
"TEXT");
720 b.Property<
string>(
"SystemIdentifier")
722 .HasColumnType(
"TEXT");
726 b.HasIndex(
"CanonicalName")
729 b.HasIndex(
"CreatedById");
731 b.HasIndex(
"GroupId");
733 b.HasIndex(
"SystemIdentifier")
739 modelBuilder.Entity(
"Tgstation.Server.Host.Models.UserGroup", b =>
741 b.Property<
long?>(
"Id")
742 .ValueGeneratedOnAdd()
743 .HasColumnType(
"INTEGER");
745 b.Property<
string>(
"Name")
748 .HasColumnType(
"TEXT");
758 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatBot", b =>
760 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
761 .WithMany(
"ChatSettings")
762 .HasForeignKey(
"InstanceId")
763 .OnDelete(DeleteBehavior.Cascade)
766 b.Navigation(
"Instance");
769 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatChannel", b =>
771 b.HasOne(
"Tgstation.Server.Host.Models.ChatBot",
"ChatSettings")
772 .WithMany(
"Channels")
773 .HasForeignKey(
"ChatSettingsId")
774 .OnDelete(DeleteBehavior.Cascade)
777 b.Navigation(
"ChatSettings");
780 modelBuilder.Entity(
"Tgstation.Server.Host.Models.CompileJob", b =>
782 b.HasOne(
"Tgstation.Server.Host.Models.Job",
"Job")
784 .HasForeignKey(
"Tgstation.Server.Host.Models.CompileJob",
"JobId")
785 .OnDelete(DeleteBehavior.Cascade)
788 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"RevisionInformation")
789 .WithMany(
"CompileJobs")
790 .HasForeignKey(
"RevisionInformationId")
791 .OnDelete(DeleteBehavior.ClientNoAction)
796 b.Navigation(
"RevisionInformation");
799 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamDaemonSettings", b =>
801 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
802 .WithOne(
"DreamDaemonSettings")
803 .HasForeignKey(
"Tgstation.Server.Host.Models.DreamDaemonSettings",
"InstanceId")
804 .OnDelete(DeleteBehavior.Cascade)
807 b.Navigation(
"Instance");
810 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamMakerSettings", b =>
812 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
813 .WithOne(
"DreamMakerSettings")
814 .HasForeignKey(
"Tgstation.Server.Host.Models.DreamMakerSettings",
"InstanceId")
815 .OnDelete(DeleteBehavior.Cascade)
818 b.Navigation(
"Instance");
821 modelBuilder.Entity(
"Tgstation.Server.Host.Models.InstancePermissionSet", b =>
823 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
824 .WithMany(
"InstancePermissionSets")
825 .HasForeignKey(
"InstanceId")
826 .OnDelete(DeleteBehavior.Cascade)
829 b.HasOne(
"Tgstation.Server.Host.Models.PermissionSet",
"PermissionSet")
830 .WithMany(
"InstancePermissionSets")
831 .HasForeignKey(
"PermissionSetId")
832 .OnDelete(DeleteBehavior.Cascade)
835 b.Navigation(
"Instance");
837 b.Navigation(
"PermissionSet");
840 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Job", b =>
842 b.HasOne(
"Tgstation.Server.Host.Models.User",
"CancelledBy")
844 .HasForeignKey(
"CancelledById");
846 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
848 .HasForeignKey(
"InstanceId")
849 .OnDelete(DeleteBehavior.Cascade)
852 b.HasOne(
"Tgstation.Server.Host.Models.User",
"StartedBy")
854 .HasForeignKey(
"StartedById")
855 .OnDelete(DeleteBehavior.Cascade)
858 b.Navigation(
"CancelledBy");
860 b.Navigation(
"Instance");
862 b.Navigation(
"StartedBy");
865 modelBuilder.Entity(
"Tgstation.Server.Host.Models.OAuthConnection", b =>
867 b.HasOne(
"Tgstation.Server.Host.Models.User",
"User")
868 .WithMany(
"OAuthConnections")
869 .HasForeignKey(
"UserId")
870 .OnDelete(DeleteBehavior.Cascade);
872 b.Navigation(
"User");
875 modelBuilder.Entity(
"Tgstation.Server.Host.Models.PermissionSet", b =>
877 b.HasOne(
"Tgstation.Server.Host.Models.UserGroup",
"Group")
878 .WithOne(
"PermissionSet")
879 .HasForeignKey(
"Tgstation.Server.Host.Models.PermissionSet",
"GroupId")
880 .OnDelete(DeleteBehavior.Cascade);
882 b.HasOne(
"Tgstation.Server.Host.Models.User",
"User")
883 .WithOne(
"PermissionSet")
884 .HasForeignKey(
"Tgstation.Server.Host.Models.PermissionSet",
"UserId")
885 .OnDelete(DeleteBehavior.Cascade);
887 b.Navigation(
"Group");
889 b.Navigation(
"User");
892 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ReattachInformation", b =>
894 b.HasOne(
"Tgstation.Server.Host.Models.CompileJob",
"CompileJob")
896 .HasForeignKey(
"CompileJobId")
897 .OnDelete(DeleteBehavior.Cascade)
900 b.HasOne(
"Tgstation.Server.Host.Models.CompileJob",
"InitialCompileJob")
902 .HasForeignKey(
"InitialCompileJobId");
904 b.Navigation(
"CompileJob");
906 b.Navigation(
"InitialCompileJob");
909 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RepositorySettings", b =>
911 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
912 .WithOne(
"RepositorySettings")
913 .HasForeignKey(
"Tgstation.Server.Host.Models.RepositorySettings",
"InstanceId")
914 .OnDelete(DeleteBehavior.Cascade)
917 b.Navigation(
"Instance");
920 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
922 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"RevisionInformation")
923 .WithMany(
"ActiveTestMerges")
924 .HasForeignKey(
"RevisionInformationId")
925 .OnDelete(DeleteBehavior.Cascade)
928 b.HasOne(
"Tgstation.Server.Host.Models.TestMerge",
"TestMerge")
929 .WithMany(
"RevisonInformations")
930 .HasForeignKey(
"TestMergeId")
931 .OnDelete(DeleteBehavior.ClientNoAction)
934 b.Navigation(
"RevisionInformation");
936 b.Navigation(
"TestMerge");
939 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevisionInformation", b =>
941 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
942 .WithMany(
"RevisionInformations")
943 .HasForeignKey(
"InstanceId")
944 .OnDelete(DeleteBehavior.Cascade)
947 b.Navigation(
"Instance");
950 modelBuilder.Entity(
"Tgstation.Server.Host.Models.TestMerge", b =>
952 b.HasOne(
"Tgstation.Server.Host.Models.User",
"MergedBy")
953 .WithMany(
"TestMerges")
954 .HasForeignKey(
"MergedById")
955 .OnDelete(DeleteBehavior.Restrict)
958 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"PrimaryRevisionInformation")
959 .WithOne(
"PrimaryTestMerge")
960 .HasForeignKey(
"Tgstation.Server.Host.Models.TestMerge",
"PrimaryRevisionInformationId")
961 .OnDelete(DeleteBehavior.Cascade)
964 b.Navigation(
"MergedBy");
966 b.Navigation(
"PrimaryRevisionInformation");
969 modelBuilder.Entity(
"Tgstation.Server.Host.Models.User", b =>
971 b.HasOne(
"Tgstation.Server.Host.Models.User",
"CreatedBy")
972 .WithMany(
"CreatedUsers")
973 .HasForeignKey(
"CreatedById");
975 b.HasOne(
"Tgstation.Server.Host.Models.UserGroup",
"Group")
977 .HasForeignKey(
"GroupId");
979 b.Navigation(
"CreatedBy");
981 b.Navigation(
"Group");
984 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatBot", b =>
986 b.Navigation(
"Channels");
989 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Instance", b =>
991 b.Navigation(
"ChatSettings");
993 b.Navigation(
"DreamDaemonSettings");
995 b.Navigation(
"DreamMakerSettings");
997 b.Navigation(
"InstancePermissionSets");
999 b.Navigation(
"Jobs");
1001 b.Navigation(
"RepositorySettings");
1003 b.Navigation(
"RevisionInformations");
1006 modelBuilder.Entity(
"Tgstation.Server.Host.Models.PermissionSet", b =>
1008 b.Navigation(
"InstancePermissionSets");
1011 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevisionInformation", b =>
1013 b.Navigation(
"ActiveTestMerges");
1015 b.Navigation(
"CompileJobs");
1017 b.Navigation(
"PrimaryTestMerge");
1020 modelBuilder.Entity(
"Tgstation.Server.Host.Models.TestMerge", b =>
1022 b.Navigation(
"RevisonInformations");
1025 modelBuilder.Entity(
"Tgstation.Server.Host.Models.User", b =>
1027 b.Navigation(
"CreatedUsers");
1029 b.Navigation(
"OAuthConnections");
1031 b.Navigation(
"PermissionSet");
1033 b.Navigation(
"TestMerges");
1036 modelBuilder.Entity(
"Tgstation.Server.Host.Models.UserGroup", b =>
1038 b.Navigation(
"PermissionSet")
1041 b.Navigation(
"Users");
1043#pragma warning restore 612, 618