17#pragma warning disable 612, 618
18 modelBuilder.HasAnnotation(
"ProductVersion",
"6.0.16");
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<
string>(
"ByondVersion")
116 .HasColumnType(
"TEXT");
118 b.Property<
int?>(
"DMApiMajorVersion")
119 .HasColumnType(
"INTEGER");
121 b.Property<
int?>(
"DMApiMinorVersion")
122 .HasColumnType(
"INTEGER");
124 b.Property<
int?>(
"DMApiPatchVersion")
125 .HasColumnType(
"INTEGER");
127 b.Property<Guid?>(
"DirectoryName")
129 .HasColumnType(
"TEXT");
131 b.Property<
string>(
"DmeName")
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?>(
"DumpOnHeartbeatRestart")
190 .HasColumnType(
"INTEGER");
192 b.Property<uint?>(
"HeartbeatSeconds")
194 .HasColumnType(
"INTEGER");
196 b.Property<
long>(
"InstanceId")
197 .HasColumnType(
"INTEGER");
199 b.Property<
bool?>(
"LogOutput")
201 .HasColumnType(
"INTEGER");
203 b.Property<ushort?>(
"Port")
205 .HasColumnType(
"INTEGER");
207 b.Property<
int>(
"SecurityLevel")
208 .HasColumnType(
"INTEGER");
210 b.Property<
bool?>(
"StartProfiler")
212 .HasColumnType(
"INTEGER");
214 b.Property<uint?>(
"StartupTimeout")
216 .HasColumnType(
"INTEGER");
218 b.Property<uint?>(
"TopicRequestTimeout")
220 .HasColumnType(
"INTEGER");
222 b.Property<
int>(
"Visibility")
223 .HasColumnType(
"INTEGER");
227 b.HasIndex(
"InstanceId")
230 b.ToTable(
"DreamDaemonSettings");
233 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamMakerSettings", b =>
235 b.Property<
long>(
"Id")
236 .ValueGeneratedOnAdd()
237 .HasColumnType(
"INTEGER");
239 b.Property<ushort?>(
"ApiValidationPort")
241 .HasColumnType(
"INTEGER");
243 b.Property<
int>(
"ApiValidationSecurityLevel")
244 .HasColumnType(
"INTEGER");
246 b.Property<
long>(
"InstanceId")
247 .HasColumnType(
"INTEGER");
249 b.Property<
string>(
"ProjectName")
251 .HasColumnType(
"TEXT");
253 b.Property<
bool?>(
"RequireDMApiValidation")
255 .HasColumnType(
"INTEGER");
257 b.Property<TimeSpan?>(
"Timeout")
259 .HasColumnType(
"TEXT");
263 b.HasIndex(
"InstanceId")
266 b.ToTable(
"DreamMakerSettings");
269 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Instance", b =>
271 b.Property<
long?>(
"Id")
272 .ValueGeneratedOnAdd()
273 .HasColumnType(
"INTEGER");
275 b.Property<uint?>(
"AutoUpdateInterval")
277 .HasColumnType(
"INTEGER");
279 b.Property<ushort?>(
"ChatBotLimit")
281 .HasColumnType(
"INTEGER");
283 b.Property<
int>(
"ConfigurationType")
284 .HasColumnType(
"INTEGER");
286 b.Property<
string>(
"Name")
289 .HasColumnType(
"TEXT");
291 b.Property<
bool?>(
"Online")
293 .HasColumnType(
"INTEGER");
295 b.Property<
string>(
"Path")
297 .HasColumnType(
"TEXT");
299 b.Property<
string>(
"SwarmIdentifer")
300 .HasColumnType(
"TEXT");
304 b.HasIndex(
"Path",
"SwarmIdentifer")
307 b.ToTable(
"Instances");
310 modelBuilder.Entity(
"Tgstation.Server.Host.Models.InstancePermissionSet", b =>
312 b.Property<
long>(
"Id")
313 .ValueGeneratedOnAdd()
314 .HasColumnType(
"INTEGER");
316 b.Property<ulong>(
"ByondRights")
317 .HasColumnType(
"INTEGER");
319 b.Property<ulong>(
"ChatBotRights")
320 .HasColumnType(
"INTEGER");
322 b.Property<ulong>(
"ConfigurationRights")
323 .HasColumnType(
"INTEGER");
325 b.Property<ulong>(
"DreamDaemonRights")
326 .HasColumnType(
"INTEGER");
328 b.Property<ulong>(
"DreamMakerRights")
329 .HasColumnType(
"INTEGER");
331 b.Property<
long>(
"InstanceId")
332 .HasColumnType(
"INTEGER");
334 b.Property<ulong>(
"InstancePermissionSetRights")
335 .HasColumnType(
"INTEGER");
337 b.Property<
long>(
"PermissionSetId")
338 .HasColumnType(
"INTEGER");
340 b.Property<ulong>(
"RepositoryRights")
341 .HasColumnType(
"INTEGER");
345 b.HasIndex(
"InstanceId");
347 b.HasIndex(
"PermissionSetId",
"InstanceId")
350 b.ToTable(
"InstancePermissionSets");
353 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Job", b =>
355 b.Property<
long?>(
"Id")
356 .ValueGeneratedOnAdd()
357 .HasColumnType(
"INTEGER");
359 b.Property<ulong?>(
"CancelRight")
360 .HasColumnType(
"INTEGER");
362 b.Property<ulong?>(
"CancelRightsType")
363 .HasColumnType(
"INTEGER");
365 b.Property<
bool?>(
"Cancelled")
367 .HasColumnType(
"INTEGER");
369 b.Property<
long?>(
"CancelledById")
370 .HasColumnType(
"INTEGER");
372 b.Property<
string>(
"Description")
374 .HasColumnType(
"TEXT");
376 b.Property<uint?>(
"ErrorCode")
377 .HasColumnType(
"INTEGER");
379 b.Property<
string>(
"ExceptionDetails")
380 .HasColumnType(
"TEXT");
382 b.Property<
long>(
"InstanceId")
383 .HasColumnType(
"INTEGER");
385 b.Property<DateTimeOffset?>(
"StartedAt")
387 .HasColumnType(
"TEXT");
389 b.Property<
long>(
"StartedById")
390 .HasColumnType(
"INTEGER");
392 b.Property<DateTimeOffset?>(
"StoppedAt")
393 .HasColumnType(
"TEXT");
397 b.HasIndex(
"CancelledById");
399 b.HasIndex(
"InstanceId");
401 b.HasIndex(
"StartedById");
406 modelBuilder.Entity(
"Tgstation.Server.Host.Models.OAuthConnection", b =>
408 b.Property<
long>(
"Id")
409 .ValueGeneratedOnAdd()
410 .HasColumnType(
"INTEGER");
412 b.Property<
string>(
"ExternalUserId")
415 .HasColumnType(
"TEXT");
417 b.Property<
int>(
"Provider")
418 .HasColumnType(
"INTEGER");
420 b.Property<
long?>(
"UserId")
421 .HasColumnType(
"INTEGER");
425 b.HasIndex(
"UserId");
427 b.HasIndex(
"Provider",
"ExternalUserId")
430 b.ToTable(
"OAuthConnections");
433 modelBuilder.Entity(
"Tgstation.Server.Host.Models.PermissionSet", b =>
435 b.Property<
long?>(
"Id")
436 .ValueGeneratedOnAdd()
437 .HasColumnType(
"INTEGER");
439 b.Property<ulong>(
"AdministrationRights")
440 .HasColumnType(
"INTEGER");
442 b.Property<
long?>(
"GroupId")
443 .HasColumnType(
"INTEGER");
445 b.Property<ulong>(
"InstanceManagerRights")
446 .HasColumnType(
"INTEGER");
448 b.Property<
long?>(
"UserId")
449 .HasColumnType(
"INTEGER");
453 b.HasIndex(
"GroupId")
459 b.ToTable(
"PermissionSets");
462 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ReattachInformation", b =>
464 b.Property<
long>(
"Id")
465 .ValueGeneratedOnAdd()
466 .HasColumnType(
"INTEGER");
468 b.Property<
string>(
"AccessIdentifier")
470 .HasColumnType(
"TEXT");
472 b.Property<
long>(
"CompileJobId")
473 .HasColumnType(
"INTEGER");
475 b.Property<
long?>(
"InitialCompileJobId")
476 .HasColumnType(
"INTEGER");
478 b.Property<
int>(
"LaunchSecurityLevel")
479 .HasColumnType(
"INTEGER");
481 b.Property<
int>(
"LaunchVisibility")
482 .HasColumnType(
"INTEGER");
484 b.Property<ushort>(
"Port")
485 .HasColumnType(
"INTEGER");
487 b.Property<
int>(
"ProcessId")
488 .HasColumnType(
"INTEGER");
490 b.Property<
int>(
"RebootState")
491 .HasColumnType(
"INTEGER");
495 b.HasIndex(
"CompileJobId");
497 b.HasIndex(
"InitialCompileJobId");
499 b.ToTable(
"ReattachInformations");
502 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RepositorySettings", b =>
504 b.Property<
long>(
"Id")
505 .ValueGeneratedOnAdd()
506 .HasColumnType(
"INTEGER");
508 b.Property<
string>(
"AccessToken")
510 .HasColumnType(
"TEXT");
512 b.Property<
string>(
"AccessUser")
514 .HasColumnType(
"TEXT");
516 b.Property<
bool?>(
"AutoUpdatesKeepTestMerges")
518 .HasColumnType(
"INTEGER");
520 b.Property<
bool?>(
"AutoUpdatesSynchronize")
522 .HasColumnType(
"INTEGER");
524 b.Property<
string>(
"CommitterEmail")
527 .HasColumnType(
"TEXT");
529 b.Property<
string>(
"CommitterName")
532 .HasColumnType(
"TEXT");
534 b.Property<
bool?>(
"CreateGitHubDeployments")
536 .HasColumnType(
"INTEGER");
538 b.Property<
long>(
"InstanceId")
539 .HasColumnType(
"INTEGER");
541 b.Property<
bool?>(
"PostTestMergeComment")
543 .HasColumnType(
"INTEGER");
545 b.Property<
bool?>(
"PushTestMergeCommits")
547 .HasColumnType(
"INTEGER");
549 b.Property<
bool?>(
"ShowTestMergeCommitters")
551 .HasColumnType(
"INTEGER");
553 b.Property<
bool?>(
"UpdateSubmodules")
555 .HasColumnType(
"INTEGER");
559 b.HasIndex(
"InstanceId")
562 b.ToTable(
"RepositorySettings");
565 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
567 b.Property<
long>(
"Id")
568 .ValueGeneratedOnAdd()
569 .HasColumnType(
"INTEGER");
571 b.Property<
long>(
"RevisionInformationId")
572 .HasColumnType(
"INTEGER");
574 b.Property<
long>(
"TestMergeId")
575 .HasColumnType(
"INTEGER");
579 b.HasIndex(
"RevisionInformationId");
581 b.HasIndex(
"TestMergeId");
583 b.ToTable(
"RevInfoTestMerges");
586 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevisionInformation", b =>
588 b.Property<
long>(
"Id")
589 .ValueGeneratedOnAdd()
590 .HasColumnType(
"INTEGER");
592 b.Property<
string>(
"CommitSha")
595 .HasColumnType(
"TEXT");
597 b.Property<
long>(
"InstanceId")
598 .HasColumnType(
"INTEGER");
600 b.Property<
string>(
"OriginCommitSha")
603 .HasColumnType(
"TEXT");
605 b.Property<DateTimeOffset>(
"Timestamp")
606 .HasColumnType(
"TEXT");
610 b.HasIndex(
"InstanceId",
"CommitSha")
613 b.ToTable(
"RevisionInformations");
616 modelBuilder.Entity(
"Tgstation.Server.Host.Models.TestMerge", b =>
618 b.Property<
long>(
"Id")
619 .ValueGeneratedOnAdd()
620 .HasColumnType(
"INTEGER");
622 b.Property<
string>(
"Author")
624 .HasColumnType(
"TEXT");
626 b.Property<
string>(
"BodyAtMerge")
628 .HasColumnType(
"TEXT");
630 b.Property<
string>(
"Comment")
632 .HasColumnType(
"TEXT");
634 b.Property<DateTimeOffset>(
"MergedAt")
635 .HasColumnType(
"TEXT");
637 b.Property<
long>(
"MergedById")
638 .HasColumnType(
"INTEGER");
640 b.Property<
int>(
"Number")
641 .HasColumnType(
"INTEGER");
643 b.Property<
long?>(
"PrimaryRevisionInformationId")
645 .HasColumnType(
"INTEGER");
647 b.Property<
string>(
"TargetCommitSha")
650 .HasColumnType(
"TEXT");
652 b.Property<
string>(
"TitleAtMerge")
654 .HasColumnType(
"TEXT");
656 b.Property<
string>(
"Url")
658 .HasColumnType(
"TEXT");
662 b.HasIndex(
"MergedById");
664 b.HasIndex(
"PrimaryRevisionInformationId")
667 b.ToTable(
"TestMerges");
670 modelBuilder.Entity(
"Tgstation.Server.Host.Models.User", b =>
672 b.Property<
long?>(
"Id")
673 .ValueGeneratedOnAdd()
674 .HasColumnType(
"INTEGER");
676 b.Property<
string>(
"CanonicalName")
679 .HasColumnType(
"TEXT");
681 b.Property<DateTimeOffset?>(
"CreatedAt")
683 .HasColumnType(
"TEXT");
685 b.Property<
long?>(
"CreatedById")
686 .HasColumnType(
"INTEGER");
688 b.Property<
bool?>(
"Enabled")
690 .HasColumnType(
"INTEGER");
692 b.Property<
long?>(
"GroupId")
693 .HasColumnType(
"INTEGER");
695 b.Property<DateTimeOffset?>(
"LastPasswordUpdate")
696 .HasColumnType(
"TEXT");
698 b.Property<
string>(
"Name")
701 .HasColumnType(
"TEXT");
703 b.Property<
string>(
"PasswordHash")
704 .HasColumnType(
"TEXT");
706 b.Property<
string>(
"SystemIdentifier")
708 .HasColumnType(
"TEXT");
712 b.HasIndex(
"CanonicalName")
715 b.HasIndex(
"CreatedById");
717 b.HasIndex(
"GroupId");
719 b.HasIndex(
"SystemIdentifier")
725 modelBuilder.Entity(
"Tgstation.Server.Host.Models.UserGroup", b =>
727 b.Property<
long?>(
"Id")
728 .ValueGeneratedOnAdd()
729 .HasColumnType(
"INTEGER");
731 b.Property<
string>(
"Name")
734 .HasColumnType(
"TEXT");
744 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatBot", b =>
746 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
747 .WithMany(
"ChatSettings")
748 .HasForeignKey(
"InstanceId")
749 .OnDelete(DeleteBehavior.Cascade)
752 b.Navigation(
"Instance");
755 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatChannel", b =>
757 b.HasOne(
"Tgstation.Server.Host.Models.ChatBot",
"ChatSettings")
758 .WithMany(
"Channels")
759 .HasForeignKey(
"ChatSettingsId")
760 .OnDelete(DeleteBehavior.Cascade)
763 b.Navigation(
"ChatSettings");
766 modelBuilder.Entity(
"Tgstation.Server.Host.Models.CompileJob", b =>
768 b.HasOne(
"Tgstation.Server.Host.Models.Job",
"Job")
770 .HasForeignKey(
"Tgstation.Server.Host.Models.CompileJob",
"JobId")
771 .OnDelete(DeleteBehavior.Cascade)
774 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"RevisionInformation")
775 .WithMany(
"CompileJobs")
776 .HasForeignKey(
"RevisionInformationId")
777 .OnDelete(DeleteBehavior.ClientNoAction)
782 b.Navigation(
"RevisionInformation");
785 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamDaemonSettings", b =>
787 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
788 .WithOne(
"DreamDaemonSettings")
789 .HasForeignKey(
"Tgstation.Server.Host.Models.DreamDaemonSettings",
"InstanceId")
790 .OnDelete(DeleteBehavior.Cascade)
793 b.Navigation(
"Instance");
796 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamMakerSettings", b =>
798 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
799 .WithOne(
"DreamMakerSettings")
800 .HasForeignKey(
"Tgstation.Server.Host.Models.DreamMakerSettings",
"InstanceId")
801 .OnDelete(DeleteBehavior.Cascade)
804 b.Navigation(
"Instance");
807 modelBuilder.Entity(
"Tgstation.Server.Host.Models.InstancePermissionSet", b =>
809 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
810 .WithMany(
"InstancePermissionSets")
811 .HasForeignKey(
"InstanceId")
812 .OnDelete(DeleteBehavior.Cascade)
815 b.HasOne(
"Tgstation.Server.Host.Models.PermissionSet",
"PermissionSet")
816 .WithMany(
"InstancePermissionSets")
817 .HasForeignKey(
"PermissionSetId")
818 .OnDelete(DeleteBehavior.Cascade)
821 b.Navigation(
"Instance");
823 b.Navigation(
"PermissionSet");
826 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Job", b =>
828 b.HasOne(
"Tgstation.Server.Host.Models.User",
"CancelledBy")
830 .HasForeignKey(
"CancelledById");
832 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
834 .HasForeignKey(
"InstanceId")
835 .OnDelete(DeleteBehavior.Cascade)
838 b.HasOne(
"Tgstation.Server.Host.Models.User",
"StartedBy")
840 .HasForeignKey(
"StartedById")
841 .OnDelete(DeleteBehavior.Cascade)
844 b.Navigation(
"CancelledBy");
846 b.Navigation(
"Instance");
848 b.Navigation(
"StartedBy");
851 modelBuilder.Entity(
"Tgstation.Server.Host.Models.OAuthConnection", b =>
853 b.HasOne(
"Tgstation.Server.Host.Models.User",
"User")
854 .WithMany(
"OAuthConnections")
855 .HasForeignKey(
"UserId")
856 .OnDelete(DeleteBehavior.Cascade);
858 b.Navigation(
"User");
861 modelBuilder.Entity(
"Tgstation.Server.Host.Models.PermissionSet", b =>
863 b.HasOne(
"Tgstation.Server.Host.Models.UserGroup",
"Group")
864 .WithOne(
"PermissionSet")
865 .HasForeignKey(
"Tgstation.Server.Host.Models.PermissionSet",
"GroupId")
866 .OnDelete(DeleteBehavior.Cascade);
868 b.HasOne(
"Tgstation.Server.Host.Models.User",
"User")
869 .WithOne(
"PermissionSet")
870 .HasForeignKey(
"Tgstation.Server.Host.Models.PermissionSet",
"UserId")
871 .OnDelete(DeleteBehavior.Cascade);
873 b.Navigation(
"Group");
875 b.Navigation(
"User");
878 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ReattachInformation", b =>
880 b.HasOne(
"Tgstation.Server.Host.Models.CompileJob",
"CompileJob")
882 .HasForeignKey(
"CompileJobId")
883 .OnDelete(DeleteBehavior.Cascade)
886 b.HasOne(
"Tgstation.Server.Host.Models.CompileJob",
"InitialCompileJob")
888 .HasForeignKey(
"InitialCompileJobId");
890 b.Navigation(
"CompileJob");
892 b.Navigation(
"InitialCompileJob");
895 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RepositorySettings", b =>
897 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
898 .WithOne(
"RepositorySettings")
899 .HasForeignKey(
"Tgstation.Server.Host.Models.RepositorySettings",
"InstanceId")
900 .OnDelete(DeleteBehavior.Cascade)
903 b.Navigation(
"Instance");
906 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
908 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"RevisionInformation")
909 .WithMany(
"ActiveTestMerges")
910 .HasForeignKey(
"RevisionInformationId")
911 .OnDelete(DeleteBehavior.Cascade)
914 b.HasOne(
"Tgstation.Server.Host.Models.TestMerge",
"TestMerge")
915 .WithMany(
"RevisonInformations")
916 .HasForeignKey(
"TestMergeId")
917 .OnDelete(DeleteBehavior.ClientNoAction)
920 b.Navigation(
"RevisionInformation");
922 b.Navigation(
"TestMerge");
925 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevisionInformation", b =>
927 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
928 .WithMany(
"RevisionInformations")
929 .HasForeignKey(
"InstanceId")
930 .OnDelete(DeleteBehavior.Cascade)
933 b.Navigation(
"Instance");
936 modelBuilder.Entity(
"Tgstation.Server.Host.Models.TestMerge", b =>
938 b.HasOne(
"Tgstation.Server.Host.Models.User",
"MergedBy")
939 .WithMany(
"TestMerges")
940 .HasForeignKey(
"MergedById")
941 .OnDelete(DeleteBehavior.Restrict)
944 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"PrimaryRevisionInformation")
945 .WithOne(
"PrimaryTestMerge")
946 .HasForeignKey(
"Tgstation.Server.Host.Models.TestMerge",
"PrimaryRevisionInformationId")
947 .OnDelete(DeleteBehavior.Cascade)
950 b.Navigation(
"MergedBy");
952 b.Navigation(
"PrimaryRevisionInformation");
955 modelBuilder.Entity(
"Tgstation.Server.Host.Models.User", b =>
957 b.HasOne(
"Tgstation.Server.Host.Models.User",
"CreatedBy")
958 .WithMany(
"CreatedUsers")
959 .HasForeignKey(
"CreatedById");
961 b.HasOne(
"Tgstation.Server.Host.Models.UserGroup",
"Group")
963 .HasForeignKey(
"GroupId");
965 b.Navigation(
"CreatedBy");
967 b.Navigation(
"Group");
970 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatBot", b =>
972 b.Navigation(
"Channels");
975 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Instance", b =>
977 b.Navigation(
"ChatSettings");
979 b.Navigation(
"DreamDaemonSettings");
981 b.Navigation(
"DreamMakerSettings");
983 b.Navigation(
"InstancePermissionSets");
985 b.Navigation(
"Jobs");
987 b.Navigation(
"RepositorySettings");
989 b.Navigation(
"RevisionInformations");
992 modelBuilder.Entity(
"Tgstation.Server.Host.Models.PermissionSet", b =>
994 b.Navigation(
"InstancePermissionSets");
997 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevisionInformation", b =>
999 b.Navigation(
"ActiveTestMerges");
1001 b.Navigation(
"CompileJobs");
1003 b.Navigation(
"PrimaryTestMerge");
1006 modelBuilder.Entity(
"Tgstation.Server.Host.Models.TestMerge", b =>
1008 b.Navigation(
"RevisonInformations");
1011 modelBuilder.Entity(
"Tgstation.Server.Host.Models.User", b =>
1013 b.Navigation(
"CreatedUsers");
1015 b.Navigation(
"OAuthConnections");
1017 b.Navigation(
"PermissionSet");
1019 b.Navigation(
"TestMerges");
1022 modelBuilder.Entity(
"Tgstation.Server.Host.Models.UserGroup", b =>
1024 b.Navigation(
"PermissionSet")
1027 b.Navigation(
"Users");
1029#pragma warning restore 612, 618