17#pragma warning disable 612, 618
18 modelBuilder.HasAnnotation(
"ProductVersion",
"8.0.6");
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?>(
"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<
string>(
"CompilerAdditionalArguments")
256 .HasColumnType(
"TEXT");
258 b.Property<
long>(
"InstanceId")
259 .HasColumnType(
"INTEGER");
261 b.Property<
string>(
"ProjectName")
263 .HasColumnType(
"TEXT");
265 b.Property<
bool?>(
"RequireDMApiValidation")
267 .HasColumnType(
"INTEGER");
269 b.Property<TimeSpan?>(
"Timeout")
271 .HasColumnType(
"TEXT");
275 b.HasIndex(
"InstanceId")
278 b.ToTable(
"DreamMakerSettings");
281 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Instance", b =>
283 b.Property<
long?>(
"Id")
284 .ValueGeneratedOnAdd()
285 .HasColumnType(
"INTEGER");
287 b.Property<
string>(
"AutoUpdateCron")
290 .HasColumnType(
"TEXT");
292 b.Property<uint?>(
"AutoUpdateInterval")
294 .HasColumnType(
"INTEGER");
296 b.Property<ushort?>(
"ChatBotLimit")
298 .HasColumnType(
"INTEGER");
300 b.Property<
int>(
"ConfigurationType")
301 .HasColumnType(
"INTEGER");
303 b.Property<
string>(
"Name")
306 .HasColumnType(
"TEXT");
308 b.Property<
bool?>(
"Online")
310 .HasColumnType(
"INTEGER");
312 b.Property<
string>(
"Path")
314 .HasColumnType(
"TEXT");
316 b.Property<
string>(
"SwarmIdentifer")
317 .HasColumnType(
"TEXT");
321 b.HasIndex(
"Path",
"SwarmIdentifer")
324 b.ToTable(
"Instances");
327 modelBuilder.Entity(
"Tgstation.Server.Host.Models.InstancePermissionSet", b =>
329 b.Property<
long>(
"Id")
330 .ValueGeneratedOnAdd()
331 .HasColumnType(
"INTEGER");
333 b.Property<ulong>(
"ChatBotRights")
334 .HasColumnType(
"INTEGER");
336 b.Property<ulong>(
"ConfigurationRights")
337 .HasColumnType(
"INTEGER");
339 b.Property<ulong>(
"DreamDaemonRights")
340 .HasColumnType(
"INTEGER");
342 b.Property<ulong>(
"DreamMakerRights")
343 .HasColumnType(
"INTEGER");
345 b.Property<ulong>(
"EngineRights")
346 .HasColumnType(
"INTEGER");
348 b.Property<
long>(
"InstanceId")
349 .HasColumnType(
"INTEGER");
351 b.Property<ulong>(
"InstancePermissionSetRights")
352 .HasColumnType(
"INTEGER");
354 b.Property<
long>(
"PermissionSetId")
355 .HasColumnType(
"INTEGER");
357 b.Property<ulong>(
"RepositoryRights")
358 .HasColumnType(
"INTEGER");
362 b.HasIndex(
"InstanceId");
364 b.HasIndex(
"PermissionSetId",
"InstanceId")
367 b.ToTable(
"InstancePermissionSets");
370 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Job", b =>
372 b.Property<
long?>(
"Id")
373 .ValueGeneratedOnAdd()
374 .HasColumnType(
"INTEGER");
376 b.Property<ulong?>(
"CancelRight")
377 .HasColumnType(
"INTEGER");
379 b.Property<ulong?>(
"CancelRightsType")
380 .HasColumnType(
"INTEGER");
382 b.Property<
bool?>(
"Cancelled")
384 .HasColumnType(
"INTEGER");
386 b.Property<
long?>(
"CancelledById")
387 .HasColumnType(
"INTEGER");
389 b.Property<
string>(
"Description")
391 .HasColumnType(
"TEXT");
393 b.Property<uint?>(
"ErrorCode")
394 .HasColumnType(
"INTEGER");
396 b.Property<
string>(
"ExceptionDetails")
397 .HasColumnType(
"TEXT");
399 b.Property<
long>(
"InstanceId")
400 .HasColumnType(
"INTEGER");
402 b.Property<
byte>(
"JobCode")
403 .HasColumnType(
"INTEGER");
405 b.Property<DateTimeOffset?>(
"StartedAt")
407 .HasColumnType(
"TEXT");
409 b.Property<
long>(
"StartedById")
410 .HasColumnType(
"INTEGER");
412 b.Property<DateTimeOffset?>(
"StoppedAt")
413 .HasColumnType(
"TEXT");
417 b.HasIndex(
"CancelledById");
419 b.HasIndex(
"InstanceId");
421 b.HasIndex(
"StartedById");
426 modelBuilder.Entity(
"Tgstation.Server.Host.Models.OAuthConnection", b =>
428 b.Property<
long>(
"Id")
429 .ValueGeneratedOnAdd()
430 .HasColumnType(
"INTEGER");
432 b.Property<
string>(
"ExternalUserId")
435 .HasColumnType(
"TEXT");
437 b.Property<
int>(
"Provider")
438 .HasColumnType(
"INTEGER");
440 b.Property<
long?>(
"UserId")
441 .HasColumnType(
"INTEGER");
445 b.HasIndex(
"UserId");
447 b.HasIndex(
"Provider",
"ExternalUserId")
450 b.ToTable(
"OAuthConnections");
453 modelBuilder.Entity(
"Tgstation.Server.Host.Models.PermissionSet", b =>
455 b.Property<
long?>(
"Id")
456 .ValueGeneratedOnAdd()
457 .HasColumnType(
"INTEGER");
459 b.Property<ulong>(
"AdministrationRights")
460 .HasColumnType(
"INTEGER");
462 b.Property<
long?>(
"GroupId")
463 .HasColumnType(
"INTEGER");
465 b.Property<ulong>(
"InstanceManagerRights")
466 .HasColumnType(
"INTEGER");
468 b.Property<
long?>(
"UserId")
469 .HasColumnType(
"INTEGER");
473 b.HasIndex(
"GroupId")
479 b.ToTable(
"PermissionSets");
482 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ReattachInformation", b =>
484 b.Property<
long?>(
"Id")
485 .ValueGeneratedOnAdd()
486 .HasColumnType(
"INTEGER");
488 b.Property<
string>(
"AccessIdentifier")
490 .HasColumnType(
"TEXT");
492 b.Property<
long>(
"CompileJobId")
493 .HasColumnType(
"INTEGER");
495 b.Property<
long?>(
"InitialCompileJobId")
496 .HasColumnType(
"INTEGER");
498 b.Property<
int>(
"LaunchSecurityLevel")
499 .HasColumnType(
"INTEGER");
501 b.Property<
int>(
"LaunchVisibility")
502 .HasColumnType(
"INTEGER");
504 b.Property<ushort>(
"Port")
505 .HasColumnType(
"INTEGER");
507 b.Property<
int>(
"ProcessId")
508 .HasColumnType(
"INTEGER");
510 b.Property<
int>(
"RebootState")
511 .HasColumnType(
"INTEGER");
513 b.Property<ushort?>(
"TopicPort")
514 .HasColumnType(
"INTEGER");
518 b.HasIndex(
"CompileJobId");
520 b.HasIndex(
"InitialCompileJobId");
522 b.ToTable(
"ReattachInformations");
525 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RepositorySettings", b =>
527 b.Property<
long>(
"Id")
528 .ValueGeneratedOnAdd()
529 .HasColumnType(
"INTEGER");
531 b.Property<
string>(
"AccessToken")
533 .HasColumnType(
"TEXT");
535 b.Property<
string>(
"AccessUser")
537 .HasColumnType(
"TEXT");
539 b.Property<
bool?>(
"AutoUpdatesKeepTestMerges")
541 .HasColumnType(
"INTEGER");
543 b.Property<
bool?>(
"AutoUpdatesSynchronize")
545 .HasColumnType(
"INTEGER");
547 b.Property<
string>(
"CommitterEmail")
550 .HasColumnType(
"TEXT");
552 b.Property<
string>(
"CommitterName")
555 .HasColumnType(
"TEXT");
557 b.Property<
bool?>(
"CreateGitHubDeployments")
559 .HasColumnType(
"INTEGER");
561 b.Property<
long>(
"InstanceId")
562 .HasColumnType(
"INTEGER");
564 b.Property<
bool?>(
"PostTestMergeComment")
566 .HasColumnType(
"INTEGER");
568 b.Property<
bool?>(
"PushTestMergeCommits")
570 .HasColumnType(
"INTEGER");
572 b.Property<
bool?>(
"ShowTestMergeCommitters")
574 .HasColumnType(
"INTEGER");
576 b.Property<
bool?>(
"UpdateSubmodules")
578 .HasColumnType(
"INTEGER");
582 b.HasIndex(
"InstanceId")
585 b.ToTable(
"RepositorySettings");
588 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
590 b.Property<
long>(
"Id")
591 .ValueGeneratedOnAdd()
592 .HasColumnType(
"INTEGER");
594 b.Property<
long>(
"RevisionInformationId")
595 .HasColumnType(
"INTEGER");
597 b.Property<
long>(
"TestMergeId")
598 .HasColumnType(
"INTEGER");
602 b.HasIndex(
"RevisionInformationId");
604 b.HasIndex(
"TestMergeId");
606 b.ToTable(
"RevInfoTestMerges");
609 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevisionInformation", b =>
611 b.Property<
long>(
"Id")
612 .ValueGeneratedOnAdd()
613 .HasColumnType(
"INTEGER");
615 b.Property<
string>(
"CommitSha")
618 .HasColumnType(
"TEXT");
620 b.Property<
long>(
"InstanceId")
621 .HasColumnType(
"INTEGER");
623 b.Property<
string>(
"OriginCommitSha")
626 .HasColumnType(
"TEXT");
628 b.Property<DateTimeOffset>(
"Timestamp")
629 .HasColumnType(
"TEXT");
633 b.HasIndex(
"InstanceId",
"CommitSha")
636 b.ToTable(
"RevisionInformations");
639 modelBuilder.Entity(
"Tgstation.Server.Host.Models.TestMerge", b =>
641 b.Property<
long>(
"Id")
642 .ValueGeneratedOnAdd()
643 .HasColumnType(
"INTEGER");
645 b.Property<
string>(
"Author")
647 .HasColumnType(
"TEXT");
649 b.Property<
string>(
"BodyAtMerge")
651 .HasColumnType(
"TEXT");
653 b.Property<
string>(
"Comment")
655 .HasColumnType(
"TEXT");
657 b.Property<DateTimeOffset>(
"MergedAt")
658 .HasColumnType(
"TEXT");
660 b.Property<
long>(
"MergedById")
661 .HasColumnType(
"INTEGER");
663 b.Property<
int>(
"Number")
664 .HasColumnType(
"INTEGER");
666 b.Property<
long?>(
"PrimaryRevisionInformationId")
668 .HasColumnType(
"INTEGER");
670 b.Property<
string>(
"TargetCommitSha")
673 .HasColumnType(
"TEXT");
675 b.Property<
string>(
"TitleAtMerge")
677 .HasColumnType(
"TEXT");
679 b.Property<
string>(
"Url")
681 .HasColumnType(
"TEXT");
685 b.HasIndex(
"MergedById");
687 b.HasIndex(
"PrimaryRevisionInformationId")
690 b.ToTable(
"TestMerges");
693 modelBuilder.Entity(
"Tgstation.Server.Host.Models.User", b =>
695 b.Property<
long?>(
"Id")
696 .ValueGeneratedOnAdd()
697 .HasColumnType(
"INTEGER");
699 b.Property<
string>(
"CanonicalName")
702 .HasColumnType(
"TEXT");
704 b.Property<DateTimeOffset?>(
"CreatedAt")
706 .HasColumnType(
"TEXT");
708 b.Property<
long?>(
"CreatedById")
709 .HasColumnType(
"INTEGER");
711 b.Property<
bool?>(
"Enabled")
713 .HasColumnType(
"INTEGER");
715 b.Property<
long?>(
"GroupId")
716 .HasColumnType(
"INTEGER");
718 b.Property<DateTimeOffset?>(
"LastPasswordUpdate")
719 .HasColumnType(
"TEXT");
721 b.Property<
string>(
"Name")
724 .HasColumnType(
"TEXT");
726 b.Property<
string>(
"PasswordHash")
727 .HasColumnType(
"TEXT");
729 b.Property<
string>(
"SystemIdentifier")
731 .HasColumnType(
"TEXT");
735 b.HasIndex(
"CanonicalName")
738 b.HasIndex(
"CreatedById");
740 b.HasIndex(
"GroupId");
742 b.HasIndex(
"SystemIdentifier")
748 modelBuilder.Entity(
"Tgstation.Server.Host.Models.UserGroup", b =>
750 b.Property<
long?>(
"Id")
751 .ValueGeneratedOnAdd()
752 .HasColumnType(
"INTEGER");
754 b.Property<
string>(
"Name")
757 .HasColumnType(
"TEXT");
767 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatBot", b =>
769 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
770 .WithMany(
"ChatSettings")
771 .HasForeignKey(
"InstanceId")
772 .OnDelete(DeleteBehavior.Cascade)
775 b.Navigation(
"Instance");
778 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatChannel", b =>
780 b.HasOne(
"Tgstation.Server.Host.Models.ChatBot",
"ChatSettings")
781 .WithMany(
"Channels")
782 .HasForeignKey(
"ChatSettingsId")
783 .OnDelete(DeleteBehavior.Cascade)
786 b.Navigation(
"ChatSettings");
789 modelBuilder.Entity(
"Tgstation.Server.Host.Models.CompileJob", b =>
791 b.HasOne(
"Tgstation.Server.Host.Models.Job",
"Job")
793 .HasForeignKey(
"Tgstation.Server.Host.Models.CompileJob",
"JobId")
794 .OnDelete(DeleteBehavior.Cascade)
797 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"RevisionInformation")
798 .WithMany(
"CompileJobs")
799 .HasForeignKey(
"RevisionInformationId")
800 .OnDelete(DeleteBehavior.ClientNoAction)
805 b.Navigation(
"RevisionInformation");
808 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamDaemonSettings", b =>
810 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
811 .WithOne(
"DreamDaemonSettings")
812 .HasForeignKey(
"Tgstation.Server.Host.Models.DreamDaemonSettings",
"InstanceId")
813 .OnDelete(DeleteBehavior.Cascade)
816 b.Navigation(
"Instance");
819 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamMakerSettings", b =>
821 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
822 .WithOne(
"DreamMakerSettings")
823 .HasForeignKey(
"Tgstation.Server.Host.Models.DreamMakerSettings",
"InstanceId")
824 .OnDelete(DeleteBehavior.Cascade)
827 b.Navigation(
"Instance");
830 modelBuilder.Entity(
"Tgstation.Server.Host.Models.InstancePermissionSet", b =>
832 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
833 .WithMany(
"InstancePermissionSets")
834 .HasForeignKey(
"InstanceId")
835 .OnDelete(DeleteBehavior.Cascade)
838 b.HasOne(
"Tgstation.Server.Host.Models.PermissionSet",
"PermissionSet")
839 .WithMany(
"InstancePermissionSets")
840 .HasForeignKey(
"PermissionSetId")
841 .OnDelete(DeleteBehavior.Cascade)
844 b.Navigation(
"Instance");
846 b.Navigation(
"PermissionSet");
849 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Job", b =>
851 b.HasOne(
"Tgstation.Server.Host.Models.User",
"CancelledBy")
853 .HasForeignKey(
"CancelledById");
855 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
857 .HasForeignKey(
"InstanceId")
858 .OnDelete(DeleteBehavior.Cascade)
861 b.HasOne(
"Tgstation.Server.Host.Models.User",
"StartedBy")
863 .HasForeignKey(
"StartedById")
864 .OnDelete(DeleteBehavior.Cascade)
867 b.Navigation(
"CancelledBy");
869 b.Navigation(
"Instance");
871 b.Navigation(
"StartedBy");
874 modelBuilder.Entity(
"Tgstation.Server.Host.Models.OAuthConnection", b =>
876 b.HasOne(
"Tgstation.Server.Host.Models.User",
"User")
877 .WithMany(
"OAuthConnections")
878 .HasForeignKey(
"UserId")
879 .OnDelete(DeleteBehavior.Cascade);
881 b.Navigation(
"User");
884 modelBuilder.Entity(
"Tgstation.Server.Host.Models.PermissionSet", b =>
886 b.HasOne(
"Tgstation.Server.Host.Models.UserGroup",
"Group")
887 .WithOne(
"PermissionSet")
888 .HasForeignKey(
"Tgstation.Server.Host.Models.PermissionSet",
"GroupId")
889 .OnDelete(DeleteBehavior.Cascade);
891 b.HasOne(
"Tgstation.Server.Host.Models.User",
"User")
892 .WithOne(
"PermissionSet")
893 .HasForeignKey(
"Tgstation.Server.Host.Models.PermissionSet",
"UserId")
894 .OnDelete(DeleteBehavior.Cascade);
896 b.Navigation(
"Group");
898 b.Navigation(
"User");
901 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ReattachInformation", b =>
903 b.HasOne(
"Tgstation.Server.Host.Models.CompileJob",
"CompileJob")
905 .HasForeignKey(
"CompileJobId")
906 .OnDelete(DeleteBehavior.Cascade)
909 b.HasOne(
"Tgstation.Server.Host.Models.CompileJob",
"InitialCompileJob")
911 .HasForeignKey(
"InitialCompileJobId");
913 b.Navigation(
"CompileJob");
915 b.Navigation(
"InitialCompileJob");
918 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RepositorySettings", b =>
920 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
921 .WithOne(
"RepositorySettings")
922 .HasForeignKey(
"Tgstation.Server.Host.Models.RepositorySettings",
"InstanceId")
923 .OnDelete(DeleteBehavior.Cascade)
926 b.Navigation(
"Instance");
929 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
931 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"RevisionInformation")
932 .WithMany(
"ActiveTestMerges")
933 .HasForeignKey(
"RevisionInformationId")
934 .OnDelete(DeleteBehavior.Cascade)
937 b.HasOne(
"Tgstation.Server.Host.Models.TestMerge",
"TestMerge")
938 .WithMany(
"RevisonInformations")
939 .HasForeignKey(
"TestMergeId")
940 .OnDelete(DeleteBehavior.ClientNoAction)
943 b.Navigation(
"RevisionInformation");
945 b.Navigation(
"TestMerge");
948 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevisionInformation", b =>
950 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
951 .WithMany(
"RevisionInformations")
952 .HasForeignKey(
"InstanceId")
953 .OnDelete(DeleteBehavior.Cascade)
956 b.Navigation(
"Instance");
959 modelBuilder.Entity(
"Tgstation.Server.Host.Models.TestMerge", b =>
961 b.HasOne(
"Tgstation.Server.Host.Models.User",
"MergedBy")
962 .WithMany(
"TestMerges")
963 .HasForeignKey(
"MergedById")
964 .OnDelete(DeleteBehavior.Restrict)
967 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"PrimaryRevisionInformation")
968 .WithOne(
"PrimaryTestMerge")
969 .HasForeignKey(
"Tgstation.Server.Host.Models.TestMerge",
"PrimaryRevisionInformationId")
970 .OnDelete(DeleteBehavior.Cascade)
973 b.Navigation(
"MergedBy");
975 b.Navigation(
"PrimaryRevisionInformation");
978 modelBuilder.Entity(
"Tgstation.Server.Host.Models.User", b =>
980 b.HasOne(
"Tgstation.Server.Host.Models.User",
"CreatedBy")
981 .WithMany(
"CreatedUsers")
982 .HasForeignKey(
"CreatedById");
984 b.HasOne(
"Tgstation.Server.Host.Models.UserGroup",
"Group")
986 .HasForeignKey(
"GroupId");
988 b.Navigation(
"CreatedBy");
990 b.Navigation(
"Group");
993 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatBot", b =>
995 b.Navigation(
"Channels");
998 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Instance", b =>
1000 b.Navigation(
"ChatSettings");
1002 b.Navigation(
"DreamDaemonSettings");
1004 b.Navigation(
"DreamMakerSettings");
1006 b.Navigation(
"InstancePermissionSets");
1008 b.Navigation(
"Jobs");
1010 b.Navigation(
"RepositorySettings");
1012 b.Navigation(
"RevisionInformations");
1015 modelBuilder.Entity(
"Tgstation.Server.Host.Models.PermissionSet", b =>
1017 b.Navigation(
"InstancePermissionSets");
1020 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevisionInformation", b =>
1022 b.Navigation(
"ActiveTestMerges");
1024 b.Navigation(
"CompileJobs");
1026 b.Navigation(
"PrimaryTestMerge");
1029 modelBuilder.Entity(
"Tgstation.Server.Host.Models.TestMerge", b =>
1031 b.Navigation(
"RevisonInformations");
1034 modelBuilder.Entity(
"Tgstation.Server.Host.Models.User", b =>
1036 b.Navigation(
"CreatedUsers");
1038 b.Navigation(
"OAuthConnections");
1040 b.Navigation(
"PermissionSet");
1042 b.Navigation(
"TestMerges");
1045 modelBuilder.Entity(
"Tgstation.Server.Host.Models.UserGroup", b =>
1047 b.Navigation(
"PermissionSet")
1050 b.Navigation(
"Users");
1052#pragma warning restore 612, 618