17#pragma warning disable 612, 618
18 modelBuilder.HasAnnotation(
"ProductVersion",
"8.0.4");
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<
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<uint?>(
"AutoUpdateInterval")
289 .HasColumnType(
"INTEGER");
291 b.Property<ushort?>(
"ChatBotLimit")
293 .HasColumnType(
"INTEGER");
295 b.Property<
int>(
"ConfigurationType")
296 .HasColumnType(
"INTEGER");
298 b.Property<
string>(
"Name")
301 .HasColumnType(
"TEXT");
303 b.Property<
bool?>(
"Online")
305 .HasColumnType(
"INTEGER");
307 b.Property<
string>(
"Path")
309 .HasColumnType(
"TEXT");
311 b.Property<
string>(
"SwarmIdentifer")
312 .HasColumnType(
"TEXT");
316 b.HasIndex(
"Path",
"SwarmIdentifer")
319 b.ToTable(
"Instances");
322 modelBuilder.Entity(
"Tgstation.Server.Host.Models.InstancePermissionSet", b =>
324 b.Property<
long>(
"Id")
325 .ValueGeneratedOnAdd()
326 .HasColumnType(
"INTEGER");
328 b.Property<ulong>(
"ChatBotRights")
329 .HasColumnType(
"INTEGER");
331 b.Property<ulong>(
"ConfigurationRights")
332 .HasColumnType(
"INTEGER");
334 b.Property<ulong>(
"DreamDaemonRights")
335 .HasColumnType(
"INTEGER");
337 b.Property<ulong>(
"DreamMakerRights")
338 .HasColumnType(
"INTEGER");
340 b.Property<ulong>(
"EngineRights")
341 .HasColumnType(
"INTEGER");
343 b.Property<
long>(
"InstanceId")
344 .HasColumnType(
"INTEGER");
346 b.Property<ulong>(
"InstancePermissionSetRights")
347 .HasColumnType(
"INTEGER");
349 b.Property<
long>(
"PermissionSetId")
350 .HasColumnType(
"INTEGER");
352 b.Property<ulong>(
"RepositoryRights")
353 .HasColumnType(
"INTEGER");
357 b.HasIndex(
"InstanceId");
359 b.HasIndex(
"PermissionSetId",
"InstanceId")
362 b.ToTable(
"InstancePermissionSets");
365 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Job", b =>
367 b.Property<
long?>(
"Id")
368 .ValueGeneratedOnAdd()
369 .HasColumnType(
"INTEGER");
371 b.Property<ulong?>(
"CancelRight")
372 .HasColumnType(
"INTEGER");
374 b.Property<ulong?>(
"CancelRightsType")
375 .HasColumnType(
"INTEGER");
377 b.Property<
bool?>(
"Cancelled")
379 .HasColumnType(
"INTEGER");
381 b.Property<
long?>(
"CancelledById")
382 .HasColumnType(
"INTEGER");
384 b.Property<
string>(
"Description")
386 .HasColumnType(
"TEXT");
388 b.Property<uint?>(
"ErrorCode")
389 .HasColumnType(
"INTEGER");
391 b.Property<
string>(
"ExceptionDetails")
392 .HasColumnType(
"TEXT");
394 b.Property<
long>(
"InstanceId")
395 .HasColumnType(
"INTEGER");
397 b.Property<
byte>(
"JobCode")
398 .HasColumnType(
"INTEGER");
400 b.Property<DateTimeOffset?>(
"StartedAt")
402 .HasColumnType(
"TEXT");
404 b.Property<
long>(
"StartedById")
405 .HasColumnType(
"INTEGER");
407 b.Property<DateTimeOffset?>(
"StoppedAt")
408 .HasColumnType(
"TEXT");
412 b.HasIndex(
"CancelledById");
414 b.HasIndex(
"InstanceId");
416 b.HasIndex(
"StartedById");
421 modelBuilder.Entity(
"Tgstation.Server.Host.Models.OAuthConnection", b =>
423 b.Property<
long>(
"Id")
424 .ValueGeneratedOnAdd()
425 .HasColumnType(
"INTEGER");
427 b.Property<
string>(
"ExternalUserId")
430 .HasColumnType(
"TEXT");
432 b.Property<
int>(
"Provider")
433 .HasColumnType(
"INTEGER");
435 b.Property<
long?>(
"UserId")
436 .HasColumnType(
"INTEGER");
440 b.HasIndex(
"UserId");
442 b.HasIndex(
"Provider",
"ExternalUserId")
445 b.ToTable(
"OAuthConnections");
448 modelBuilder.Entity(
"Tgstation.Server.Host.Models.PermissionSet", b =>
450 b.Property<
long?>(
"Id")
451 .ValueGeneratedOnAdd()
452 .HasColumnType(
"INTEGER");
454 b.Property<ulong>(
"AdministrationRights")
455 .HasColumnType(
"INTEGER");
457 b.Property<
long?>(
"GroupId")
458 .HasColumnType(
"INTEGER");
460 b.Property<ulong>(
"InstanceManagerRights")
461 .HasColumnType(
"INTEGER");
463 b.Property<
long?>(
"UserId")
464 .HasColumnType(
"INTEGER");
468 b.HasIndex(
"GroupId")
474 b.ToTable(
"PermissionSets");
477 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ReattachInformation", b =>
479 b.Property<
long?>(
"Id")
480 .ValueGeneratedOnAdd()
481 .HasColumnType(
"INTEGER");
483 b.Property<
string>(
"AccessIdentifier")
485 .HasColumnType(
"TEXT");
487 b.Property<
long>(
"CompileJobId")
488 .HasColumnType(
"INTEGER");
490 b.Property<
long?>(
"InitialCompileJobId")
491 .HasColumnType(
"INTEGER");
493 b.Property<
int>(
"LaunchSecurityLevel")
494 .HasColumnType(
"INTEGER");
496 b.Property<
int>(
"LaunchVisibility")
497 .HasColumnType(
"INTEGER");
499 b.Property<ushort>(
"Port")
500 .HasColumnType(
"INTEGER");
502 b.Property<
int>(
"ProcessId")
503 .HasColumnType(
"INTEGER");
505 b.Property<
int>(
"RebootState")
506 .HasColumnType(
"INTEGER");
508 b.Property<ushort?>(
"TopicPort")
509 .HasColumnType(
"INTEGER");
513 b.HasIndex(
"CompileJobId");
515 b.HasIndex(
"InitialCompileJobId");
517 b.ToTable(
"ReattachInformations");
520 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RepositorySettings", b =>
522 b.Property<
long>(
"Id")
523 .ValueGeneratedOnAdd()
524 .HasColumnType(
"INTEGER");
526 b.Property<
string>(
"AccessToken")
528 .HasColumnType(
"TEXT");
530 b.Property<
string>(
"AccessUser")
532 .HasColumnType(
"TEXT");
534 b.Property<
bool?>(
"AutoUpdatesKeepTestMerges")
536 .HasColumnType(
"INTEGER");
538 b.Property<
bool?>(
"AutoUpdatesSynchronize")
540 .HasColumnType(
"INTEGER");
542 b.Property<
string>(
"CommitterEmail")
545 .HasColumnType(
"TEXT");
547 b.Property<
string>(
"CommitterName")
550 .HasColumnType(
"TEXT");
552 b.Property<
bool?>(
"CreateGitHubDeployments")
554 .HasColumnType(
"INTEGER");
556 b.Property<
long>(
"InstanceId")
557 .HasColumnType(
"INTEGER");
559 b.Property<
bool?>(
"PostTestMergeComment")
561 .HasColumnType(
"INTEGER");
563 b.Property<
bool?>(
"PushTestMergeCommits")
565 .HasColumnType(
"INTEGER");
567 b.Property<
bool?>(
"ShowTestMergeCommitters")
569 .HasColumnType(
"INTEGER");
571 b.Property<
bool?>(
"UpdateSubmodules")
573 .HasColumnType(
"INTEGER");
577 b.HasIndex(
"InstanceId")
580 b.ToTable(
"RepositorySettings");
583 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
585 b.Property<
long>(
"Id")
586 .ValueGeneratedOnAdd()
587 .HasColumnType(
"INTEGER");
589 b.Property<
long>(
"RevisionInformationId")
590 .HasColumnType(
"INTEGER");
592 b.Property<
long>(
"TestMergeId")
593 .HasColumnType(
"INTEGER");
597 b.HasIndex(
"RevisionInformationId");
599 b.HasIndex(
"TestMergeId");
601 b.ToTable(
"RevInfoTestMerges");
604 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevisionInformation", b =>
606 b.Property<
long>(
"Id")
607 .ValueGeneratedOnAdd()
608 .HasColumnType(
"INTEGER");
610 b.Property<
string>(
"CommitSha")
613 .HasColumnType(
"TEXT");
615 b.Property<
long>(
"InstanceId")
616 .HasColumnType(
"INTEGER");
618 b.Property<
string>(
"OriginCommitSha")
621 .HasColumnType(
"TEXT");
623 b.Property<DateTimeOffset>(
"Timestamp")
624 .HasColumnType(
"TEXT");
628 b.HasIndex(
"InstanceId",
"CommitSha")
631 b.ToTable(
"RevisionInformations");
634 modelBuilder.Entity(
"Tgstation.Server.Host.Models.TestMerge", b =>
636 b.Property<
long>(
"Id")
637 .ValueGeneratedOnAdd()
638 .HasColumnType(
"INTEGER");
640 b.Property<
string>(
"Author")
642 .HasColumnType(
"TEXT");
644 b.Property<
string>(
"BodyAtMerge")
646 .HasColumnType(
"TEXT");
648 b.Property<
string>(
"Comment")
650 .HasColumnType(
"TEXT");
652 b.Property<DateTimeOffset>(
"MergedAt")
653 .HasColumnType(
"TEXT");
655 b.Property<
long>(
"MergedById")
656 .HasColumnType(
"INTEGER");
658 b.Property<
int>(
"Number")
659 .HasColumnType(
"INTEGER");
661 b.Property<
long?>(
"PrimaryRevisionInformationId")
663 .HasColumnType(
"INTEGER");
665 b.Property<
string>(
"TargetCommitSha")
668 .HasColumnType(
"TEXT");
670 b.Property<
string>(
"TitleAtMerge")
672 .HasColumnType(
"TEXT");
674 b.Property<
string>(
"Url")
676 .HasColumnType(
"TEXT");
680 b.HasIndex(
"MergedById");
682 b.HasIndex(
"PrimaryRevisionInformationId")
685 b.ToTable(
"TestMerges");
688 modelBuilder.Entity(
"Tgstation.Server.Host.Models.User", b =>
690 b.Property<
long?>(
"Id")
691 .ValueGeneratedOnAdd()
692 .HasColumnType(
"INTEGER");
694 b.Property<
string>(
"CanonicalName")
697 .HasColumnType(
"TEXT");
699 b.Property<DateTimeOffset?>(
"CreatedAt")
701 .HasColumnType(
"TEXT");
703 b.Property<
long?>(
"CreatedById")
704 .HasColumnType(
"INTEGER");
706 b.Property<
bool?>(
"Enabled")
708 .HasColumnType(
"INTEGER");
710 b.Property<
long?>(
"GroupId")
711 .HasColumnType(
"INTEGER");
713 b.Property<DateTimeOffset?>(
"LastPasswordUpdate")
714 .HasColumnType(
"TEXT");
716 b.Property<
string>(
"Name")
719 .HasColumnType(
"TEXT");
721 b.Property<
string>(
"PasswordHash")
722 .HasColumnType(
"TEXT");
724 b.Property<
string>(
"SystemIdentifier")
726 .HasColumnType(
"TEXT");
730 b.HasIndex(
"CanonicalName")
733 b.HasIndex(
"CreatedById");
735 b.HasIndex(
"GroupId");
737 b.HasIndex(
"SystemIdentifier")
743 modelBuilder.Entity(
"Tgstation.Server.Host.Models.UserGroup", b =>
745 b.Property<
long?>(
"Id")
746 .ValueGeneratedOnAdd()
747 .HasColumnType(
"INTEGER");
749 b.Property<
string>(
"Name")
752 .HasColumnType(
"TEXT");
762 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatBot", b =>
764 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
765 .WithMany(
"ChatSettings")
766 .HasForeignKey(
"InstanceId")
767 .OnDelete(DeleteBehavior.Cascade)
770 b.Navigation(
"Instance");
773 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatChannel", b =>
775 b.HasOne(
"Tgstation.Server.Host.Models.ChatBot",
"ChatSettings")
776 .WithMany(
"Channels")
777 .HasForeignKey(
"ChatSettingsId")
778 .OnDelete(DeleteBehavior.Cascade)
781 b.Navigation(
"ChatSettings");
784 modelBuilder.Entity(
"Tgstation.Server.Host.Models.CompileJob", b =>
786 b.HasOne(
"Tgstation.Server.Host.Models.Job",
"Job")
788 .HasForeignKey(
"Tgstation.Server.Host.Models.CompileJob",
"JobId")
789 .OnDelete(DeleteBehavior.Cascade)
792 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"RevisionInformation")
793 .WithMany(
"CompileJobs")
794 .HasForeignKey(
"RevisionInformationId")
795 .OnDelete(DeleteBehavior.ClientNoAction)
800 b.Navigation(
"RevisionInformation");
803 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamDaemonSettings", b =>
805 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
806 .WithOne(
"DreamDaemonSettings")
807 .HasForeignKey(
"Tgstation.Server.Host.Models.DreamDaemonSettings",
"InstanceId")
808 .OnDelete(DeleteBehavior.Cascade)
811 b.Navigation(
"Instance");
814 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamMakerSettings", b =>
816 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
817 .WithOne(
"DreamMakerSettings")
818 .HasForeignKey(
"Tgstation.Server.Host.Models.DreamMakerSettings",
"InstanceId")
819 .OnDelete(DeleteBehavior.Cascade)
822 b.Navigation(
"Instance");
825 modelBuilder.Entity(
"Tgstation.Server.Host.Models.InstancePermissionSet", b =>
827 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
828 .WithMany(
"InstancePermissionSets")
829 .HasForeignKey(
"InstanceId")
830 .OnDelete(DeleteBehavior.Cascade)
833 b.HasOne(
"Tgstation.Server.Host.Models.PermissionSet",
"PermissionSet")
834 .WithMany(
"InstancePermissionSets")
835 .HasForeignKey(
"PermissionSetId")
836 .OnDelete(DeleteBehavior.Cascade)
839 b.Navigation(
"Instance");
841 b.Navigation(
"PermissionSet");
844 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Job", b =>
846 b.HasOne(
"Tgstation.Server.Host.Models.User",
"CancelledBy")
848 .HasForeignKey(
"CancelledById");
850 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
852 .HasForeignKey(
"InstanceId")
853 .OnDelete(DeleteBehavior.Cascade)
856 b.HasOne(
"Tgstation.Server.Host.Models.User",
"StartedBy")
858 .HasForeignKey(
"StartedById")
859 .OnDelete(DeleteBehavior.Cascade)
862 b.Navigation(
"CancelledBy");
864 b.Navigation(
"Instance");
866 b.Navigation(
"StartedBy");
869 modelBuilder.Entity(
"Tgstation.Server.Host.Models.OAuthConnection", b =>
871 b.HasOne(
"Tgstation.Server.Host.Models.User",
"User")
872 .WithMany(
"OAuthConnections")
873 .HasForeignKey(
"UserId")
874 .OnDelete(DeleteBehavior.Cascade);
876 b.Navigation(
"User");
879 modelBuilder.Entity(
"Tgstation.Server.Host.Models.PermissionSet", b =>
881 b.HasOne(
"Tgstation.Server.Host.Models.UserGroup",
"Group")
882 .WithOne(
"PermissionSet")
883 .HasForeignKey(
"Tgstation.Server.Host.Models.PermissionSet",
"GroupId")
884 .OnDelete(DeleteBehavior.Cascade);
886 b.HasOne(
"Tgstation.Server.Host.Models.User",
"User")
887 .WithOne(
"PermissionSet")
888 .HasForeignKey(
"Tgstation.Server.Host.Models.PermissionSet",
"UserId")
889 .OnDelete(DeleteBehavior.Cascade);
891 b.Navigation(
"Group");
893 b.Navigation(
"User");
896 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ReattachInformation", b =>
898 b.HasOne(
"Tgstation.Server.Host.Models.CompileJob",
"CompileJob")
900 .HasForeignKey(
"CompileJobId")
901 .OnDelete(DeleteBehavior.Cascade)
904 b.HasOne(
"Tgstation.Server.Host.Models.CompileJob",
"InitialCompileJob")
906 .HasForeignKey(
"InitialCompileJobId");
908 b.Navigation(
"CompileJob");
910 b.Navigation(
"InitialCompileJob");
913 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RepositorySettings", b =>
915 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
916 .WithOne(
"RepositorySettings")
917 .HasForeignKey(
"Tgstation.Server.Host.Models.RepositorySettings",
"InstanceId")
918 .OnDelete(DeleteBehavior.Cascade)
921 b.Navigation(
"Instance");
924 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
926 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"RevisionInformation")
927 .WithMany(
"ActiveTestMerges")
928 .HasForeignKey(
"RevisionInformationId")
929 .OnDelete(DeleteBehavior.Cascade)
932 b.HasOne(
"Tgstation.Server.Host.Models.TestMerge",
"TestMerge")
933 .WithMany(
"RevisonInformations")
934 .HasForeignKey(
"TestMergeId")
935 .OnDelete(DeleteBehavior.ClientNoAction)
938 b.Navigation(
"RevisionInformation");
940 b.Navigation(
"TestMerge");
943 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevisionInformation", b =>
945 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
946 .WithMany(
"RevisionInformations")
947 .HasForeignKey(
"InstanceId")
948 .OnDelete(DeleteBehavior.Cascade)
951 b.Navigation(
"Instance");
954 modelBuilder.Entity(
"Tgstation.Server.Host.Models.TestMerge", b =>
956 b.HasOne(
"Tgstation.Server.Host.Models.User",
"MergedBy")
957 .WithMany(
"TestMerges")
958 .HasForeignKey(
"MergedById")
959 .OnDelete(DeleteBehavior.Restrict)
962 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"PrimaryRevisionInformation")
963 .WithOne(
"PrimaryTestMerge")
964 .HasForeignKey(
"Tgstation.Server.Host.Models.TestMerge",
"PrimaryRevisionInformationId")
965 .OnDelete(DeleteBehavior.Cascade)
968 b.Navigation(
"MergedBy");
970 b.Navigation(
"PrimaryRevisionInformation");
973 modelBuilder.Entity(
"Tgstation.Server.Host.Models.User", b =>
975 b.HasOne(
"Tgstation.Server.Host.Models.User",
"CreatedBy")
976 .WithMany(
"CreatedUsers")
977 .HasForeignKey(
"CreatedById");
979 b.HasOne(
"Tgstation.Server.Host.Models.UserGroup",
"Group")
981 .HasForeignKey(
"GroupId");
983 b.Navigation(
"CreatedBy");
985 b.Navigation(
"Group");
988 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatBot", b =>
990 b.Navigation(
"Channels");
993 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Instance", b =>
995 b.Navigation(
"ChatSettings");
997 b.Navigation(
"DreamDaemonSettings");
999 b.Navigation(
"DreamMakerSettings");
1001 b.Navigation(
"InstancePermissionSets");
1003 b.Navigation(
"Jobs");
1005 b.Navigation(
"RepositorySettings");
1007 b.Navigation(
"RevisionInformations");
1010 modelBuilder.Entity(
"Tgstation.Server.Host.Models.PermissionSet", b =>
1012 b.Navigation(
"InstancePermissionSets");
1015 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevisionInformation", b =>
1017 b.Navigation(
"ActiveTestMerges");
1019 b.Navigation(
"CompileJobs");
1021 b.Navigation(
"PrimaryTestMerge");
1024 modelBuilder.Entity(
"Tgstation.Server.Host.Models.TestMerge", b =>
1026 b.Navigation(
"RevisonInformations");
1029 modelBuilder.Entity(
"Tgstation.Server.Host.Models.User", b =>
1031 b.Navigation(
"CreatedUsers");
1033 b.Navigation(
"OAuthConnections");
1035 b.Navigation(
"PermissionSet");
1037 b.Navigation(
"TestMerges");
1040 modelBuilder.Entity(
"Tgstation.Server.Host.Models.UserGroup", b =>
1042 b.Navigation(
"PermissionSet")
1045 b.Navigation(
"Users");
1047#pragma warning restore 612, 618