17#pragma warning disable 612, 618
18 modelBuilder.HasAnnotation(
"ProductVersion",
"6.0.15");
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?>(
"IsUpdatesChannel")
83 .HasColumnType(
"INTEGER");
85 b.Property<
bool?>(
"IsWatchdogChannel")
87 .HasColumnType(
"INTEGER");
89 b.Property<
string>(
"Tag")
91 .HasColumnType(
"TEXT");
95 b.HasIndex(
"ChatSettingsId",
"DiscordChannelId")
98 b.HasIndex(
"ChatSettingsId",
"IrcChannel")
101 b.ToTable(
"ChatChannels");
104 modelBuilder.Entity(
"Tgstation.Server.Host.Models.CompileJob", b =>
106 b.Property<
long?>(
"Id")
107 .ValueGeneratedOnAdd()
108 .HasColumnType(
"INTEGER");
110 b.Property<
string>(
"ByondVersion")
112 .HasColumnType(
"TEXT");
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<
int?>(
"GitHubDeploymentId")
132 .HasColumnType(
"INTEGER");
134 b.Property<
long?>(
"GitHubRepoId")
135 .HasColumnType(
"INTEGER");
137 b.Property<
long>(
"JobId")
138 .HasColumnType(
"INTEGER");
140 b.Property<
int?>(
"MinimumSecurityLevel")
141 .HasColumnType(
"INTEGER");
143 b.Property<
string>(
"Output")
145 .HasColumnType(
"TEXT");
147 b.Property<
string>(
"RepositoryOrigin")
148 .HasColumnType(
"TEXT");
150 b.Property<
long>(
"RevisionInformationId")
151 .HasColumnType(
"INTEGER");
155 b.HasIndex(
"DirectoryName");
160 b.HasIndex(
"RevisionInformationId");
162 b.ToTable(
"CompileJobs");
165 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamDaemonSettings", b =>
167 b.Property<
long>(
"Id")
168 .ValueGeneratedOnAdd()
169 .HasColumnType(
"INTEGER");
171 b.Property<
string>(
"AdditionalParameters")
174 .HasColumnType(
"TEXT");
176 b.Property<
bool?>(
"AllowWebClient")
178 .HasColumnType(
"INTEGER");
180 b.Property<
bool?>(
"AutoStart")
182 .HasColumnType(
"INTEGER");
184 b.Property<
bool?>(
"DumpOnHeartbeatRestart")
186 .HasColumnType(
"INTEGER");
188 b.Property<uint?>(
"HeartbeatSeconds")
190 .HasColumnType(
"INTEGER");
192 b.Property<
long>(
"InstanceId")
193 .HasColumnType(
"INTEGER");
195 b.Property<
bool?>(
"LogOutput")
197 .HasColumnType(
"INTEGER");
199 b.Property<ushort?>(
"Port")
201 .HasColumnType(
"INTEGER");
203 b.Property<
int>(
"SecurityLevel")
204 .HasColumnType(
"INTEGER");
206 b.Property<
bool?>(
"StartProfiler")
208 .HasColumnType(
"INTEGER");
210 b.Property<uint?>(
"StartupTimeout")
212 .HasColumnType(
"INTEGER");
214 b.Property<uint?>(
"TopicRequestTimeout")
216 .HasColumnType(
"INTEGER");
218 b.Property<
int>(
"Visibility")
219 .HasColumnType(
"INTEGER");
223 b.HasIndex(
"InstanceId")
226 b.ToTable(
"DreamDaemonSettings");
229 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamMakerSettings", b =>
231 b.Property<
long>(
"Id")
232 .ValueGeneratedOnAdd()
233 .HasColumnType(
"INTEGER");
235 b.Property<ushort?>(
"ApiValidationPort")
237 .HasColumnType(
"INTEGER");
239 b.Property<
int>(
"ApiValidationSecurityLevel")
240 .HasColumnType(
"INTEGER");
242 b.Property<
long>(
"InstanceId")
243 .HasColumnType(
"INTEGER");
245 b.Property<
string>(
"ProjectName")
247 .HasColumnType(
"TEXT");
249 b.Property<
bool?>(
"RequireDMApiValidation")
251 .HasColumnType(
"INTEGER");
253 b.Property<TimeSpan?>(
"Timeout")
255 .HasColumnType(
"TEXT");
259 b.HasIndex(
"InstanceId")
262 b.ToTable(
"DreamMakerSettings");
265 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Instance", b =>
267 b.Property<
long?>(
"Id")
268 .ValueGeneratedOnAdd()
269 .HasColumnType(
"INTEGER");
271 b.Property<uint?>(
"AutoUpdateInterval")
273 .HasColumnType(
"INTEGER");
275 b.Property<ushort?>(
"ChatBotLimit")
277 .HasColumnType(
"INTEGER");
279 b.Property<
int>(
"ConfigurationType")
280 .HasColumnType(
"INTEGER");
282 b.Property<
string>(
"Name")
285 .HasColumnType(
"TEXT");
287 b.Property<
bool?>(
"Online")
289 .HasColumnType(
"INTEGER");
291 b.Property<
string>(
"Path")
293 .HasColumnType(
"TEXT");
295 b.Property<
string>(
"SwarmIdentifer")
296 .HasColumnType(
"TEXT");
300 b.HasIndex(
"Path",
"SwarmIdentifer")
303 b.ToTable(
"Instances");
306 modelBuilder.Entity(
"Tgstation.Server.Host.Models.InstancePermissionSet", b =>
308 b.Property<
long>(
"Id")
309 .ValueGeneratedOnAdd()
310 .HasColumnType(
"INTEGER");
312 b.Property<ulong>(
"ByondRights")
313 .HasColumnType(
"INTEGER");
315 b.Property<ulong>(
"ChatBotRights")
316 .HasColumnType(
"INTEGER");
318 b.Property<ulong>(
"ConfigurationRights")
319 .HasColumnType(
"INTEGER");
321 b.Property<ulong>(
"DreamDaemonRights")
322 .HasColumnType(
"INTEGER");
324 b.Property<ulong>(
"DreamMakerRights")
325 .HasColumnType(
"INTEGER");
327 b.Property<
long>(
"InstanceId")
328 .HasColumnType(
"INTEGER");
330 b.Property<ulong>(
"InstancePermissionSetRights")
331 .HasColumnType(
"INTEGER");
333 b.Property<
long>(
"PermissionSetId")
334 .HasColumnType(
"INTEGER");
336 b.Property<ulong>(
"RepositoryRights")
337 .HasColumnType(
"INTEGER");
341 b.HasIndex(
"InstanceId");
343 b.HasIndex(
"PermissionSetId",
"InstanceId")
346 b.ToTable(
"InstancePermissionSets");
349 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Job", b =>
351 b.Property<
long?>(
"Id")
352 .ValueGeneratedOnAdd()
353 .HasColumnType(
"INTEGER");
355 b.Property<ulong?>(
"CancelRight")
356 .HasColumnType(
"INTEGER");
358 b.Property<ulong?>(
"CancelRightsType")
359 .HasColumnType(
"INTEGER");
361 b.Property<
bool?>(
"Cancelled")
363 .HasColumnType(
"INTEGER");
365 b.Property<
long?>(
"CancelledById")
366 .HasColumnType(
"INTEGER");
368 b.Property<
string>(
"Description")
370 .HasColumnType(
"TEXT");
372 b.Property<uint?>(
"ErrorCode")
373 .HasColumnType(
"INTEGER");
375 b.Property<
string>(
"ExceptionDetails")
376 .HasColumnType(
"TEXT");
378 b.Property<
long>(
"InstanceId")
379 .HasColumnType(
"INTEGER");
381 b.Property<DateTimeOffset?>(
"StartedAt")
383 .HasColumnType(
"TEXT");
385 b.Property<
long>(
"StartedById")
386 .HasColumnType(
"INTEGER");
388 b.Property<DateTimeOffset?>(
"StoppedAt")
389 .HasColumnType(
"TEXT");
393 b.HasIndex(
"CancelledById");
395 b.HasIndex(
"InstanceId");
397 b.HasIndex(
"StartedById");
402 modelBuilder.Entity(
"Tgstation.Server.Host.Models.OAuthConnection", b =>
404 b.Property<
long>(
"Id")
405 .ValueGeneratedOnAdd()
406 .HasColumnType(
"INTEGER");
408 b.Property<
string>(
"ExternalUserId")
411 .HasColumnType(
"TEXT");
413 b.Property<
int>(
"Provider")
414 .HasColumnType(
"INTEGER");
416 b.Property<
long?>(
"UserId")
417 .HasColumnType(
"INTEGER");
421 b.HasIndex(
"UserId");
423 b.HasIndex(
"Provider",
"ExternalUserId")
426 b.ToTable(
"OAuthConnections");
429 modelBuilder.Entity(
"Tgstation.Server.Host.Models.PermissionSet", b =>
431 b.Property<
long?>(
"Id")
432 .ValueGeneratedOnAdd()
433 .HasColumnType(
"INTEGER");
435 b.Property<ulong>(
"AdministrationRights")
436 .HasColumnType(
"INTEGER");
438 b.Property<
long?>(
"GroupId")
439 .HasColumnType(
"INTEGER");
441 b.Property<ulong>(
"InstanceManagerRights")
442 .HasColumnType(
"INTEGER");
444 b.Property<
long?>(
"UserId")
445 .HasColumnType(
"INTEGER");
449 b.HasIndex(
"GroupId")
455 b.ToTable(
"PermissionSets");
458 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ReattachInformation", b =>
460 b.Property<
long>(
"Id")
461 .ValueGeneratedOnAdd()
462 .HasColumnType(
"INTEGER");
464 b.Property<
string>(
"AccessIdentifier")
466 .HasColumnType(
"TEXT");
468 b.Property<
long>(
"CompileJobId")
469 .HasColumnType(
"INTEGER");
471 b.Property<
int>(
"LaunchSecurityLevel")
472 .HasColumnType(
"INTEGER");
474 b.Property<
int>(
"LaunchVisibility")
475 .HasColumnType(
"INTEGER");
477 b.Property<ushort>(
"Port")
478 .HasColumnType(
"INTEGER");
480 b.Property<
int>(
"ProcessId")
481 .HasColumnType(
"INTEGER");
483 b.Property<
int>(
"RebootState")
484 .HasColumnType(
"INTEGER");
488 b.HasIndex(
"CompileJobId");
490 b.ToTable(
"ReattachInformations");
493 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RepositorySettings", b =>
495 b.Property<
long>(
"Id")
496 .ValueGeneratedOnAdd()
497 .HasColumnType(
"INTEGER");
499 b.Property<
string>(
"AccessToken")
501 .HasColumnType(
"TEXT");
503 b.Property<
string>(
"AccessUser")
505 .HasColumnType(
"TEXT");
507 b.Property<
bool?>(
"AutoUpdatesKeepTestMerges")
509 .HasColumnType(
"INTEGER");
511 b.Property<
bool?>(
"AutoUpdatesSynchronize")
513 .HasColumnType(
"INTEGER");
515 b.Property<
string>(
"CommitterEmail")
518 .HasColumnType(
"TEXT");
520 b.Property<
string>(
"CommitterName")
523 .HasColumnType(
"TEXT");
525 b.Property<
bool?>(
"CreateGitHubDeployments")
527 .HasColumnType(
"INTEGER");
529 b.Property<
long>(
"InstanceId")
530 .HasColumnType(
"INTEGER");
532 b.Property<
bool?>(
"PostTestMergeComment")
534 .HasColumnType(
"INTEGER");
536 b.Property<
bool?>(
"PushTestMergeCommits")
538 .HasColumnType(
"INTEGER");
540 b.Property<
bool?>(
"ShowTestMergeCommitters")
542 .HasColumnType(
"INTEGER");
544 b.Property<
bool?>(
"UpdateSubmodules")
546 .HasColumnType(
"INTEGER");
550 b.HasIndex(
"InstanceId")
553 b.ToTable(
"RepositorySettings");
556 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
558 b.Property<
long>(
"Id")
559 .ValueGeneratedOnAdd()
560 .HasColumnType(
"INTEGER");
562 b.Property<
long>(
"RevisionInformationId")
563 .HasColumnType(
"INTEGER");
565 b.Property<
long>(
"TestMergeId")
566 .HasColumnType(
"INTEGER");
570 b.HasIndex(
"RevisionInformationId");
572 b.HasIndex(
"TestMergeId");
574 b.ToTable(
"RevInfoTestMerges");
577 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevisionInformation", b =>
579 b.Property<
long>(
"Id")
580 .ValueGeneratedOnAdd()
581 .HasColumnType(
"INTEGER");
583 b.Property<
string>(
"CommitSha")
586 .HasColumnType(
"TEXT");
588 b.Property<
long>(
"InstanceId")
589 .HasColumnType(
"INTEGER");
591 b.Property<
string>(
"OriginCommitSha")
594 .HasColumnType(
"TEXT");
596 b.Property<DateTimeOffset>(
"Timestamp")
597 .HasColumnType(
"TEXT");
601 b.HasIndex(
"InstanceId",
"CommitSha")
604 b.ToTable(
"RevisionInformations");
607 modelBuilder.Entity(
"Tgstation.Server.Host.Models.TestMerge", b =>
609 b.Property<
long>(
"Id")
610 .ValueGeneratedOnAdd()
611 .HasColumnType(
"INTEGER");
613 b.Property<
string>(
"Author")
615 .HasColumnType(
"TEXT");
617 b.Property<
string>(
"BodyAtMerge")
619 .HasColumnType(
"TEXT");
621 b.Property<
string>(
"Comment")
623 .HasColumnType(
"TEXT");
625 b.Property<DateTimeOffset>(
"MergedAt")
626 .HasColumnType(
"TEXT");
628 b.Property<
long>(
"MergedById")
629 .HasColumnType(
"INTEGER");
631 b.Property<
int>(
"Number")
632 .HasColumnType(
"INTEGER");
634 b.Property<
long?>(
"PrimaryRevisionInformationId")
636 .HasColumnType(
"INTEGER");
638 b.Property<
string>(
"TargetCommitSha")
641 .HasColumnType(
"TEXT");
643 b.Property<
string>(
"TitleAtMerge")
645 .HasColumnType(
"TEXT");
647 b.Property<
string>(
"Url")
649 .HasColumnType(
"TEXT");
653 b.HasIndex(
"MergedById");
655 b.HasIndex(
"PrimaryRevisionInformationId")
658 b.ToTable(
"TestMerges");
661 modelBuilder.Entity(
"Tgstation.Server.Host.Models.User", b =>
663 b.Property<
long?>(
"Id")
664 .ValueGeneratedOnAdd()
665 .HasColumnType(
"INTEGER");
667 b.Property<
string>(
"CanonicalName")
670 .HasColumnType(
"TEXT");
672 b.Property<DateTimeOffset?>(
"CreatedAt")
674 .HasColumnType(
"TEXT");
676 b.Property<
long?>(
"CreatedById")
677 .HasColumnType(
"INTEGER");
679 b.Property<
bool?>(
"Enabled")
681 .HasColumnType(
"INTEGER");
683 b.Property<
long?>(
"GroupId")
684 .HasColumnType(
"INTEGER");
686 b.Property<DateTimeOffset?>(
"LastPasswordUpdate")
687 .HasColumnType(
"TEXT");
689 b.Property<
string>(
"Name")
692 .HasColumnType(
"TEXT");
694 b.Property<
string>(
"PasswordHash")
695 .HasColumnType(
"TEXT");
697 b.Property<
string>(
"SystemIdentifier")
699 .HasColumnType(
"TEXT");
703 b.HasIndex(
"CanonicalName")
706 b.HasIndex(
"CreatedById");
708 b.HasIndex(
"GroupId");
710 b.HasIndex(
"SystemIdentifier")
716 modelBuilder.Entity(
"Tgstation.Server.Host.Models.UserGroup", b =>
718 b.Property<
long?>(
"Id")
719 .ValueGeneratedOnAdd()
720 .HasColumnType(
"INTEGER");
722 b.Property<
string>(
"Name")
725 .HasColumnType(
"TEXT");
735 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatBot", b =>
737 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
738 .WithMany(
"ChatSettings")
739 .HasForeignKey(
"InstanceId")
740 .OnDelete(DeleteBehavior.Cascade)
743 b.Navigation(
"Instance");
746 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatChannel", b =>
748 b.HasOne(
"Tgstation.Server.Host.Models.ChatBot",
"ChatSettings")
749 .WithMany(
"Channels")
750 .HasForeignKey(
"ChatSettingsId")
751 .OnDelete(DeleteBehavior.Cascade)
754 b.Navigation(
"ChatSettings");
757 modelBuilder.Entity(
"Tgstation.Server.Host.Models.CompileJob", b =>
759 b.HasOne(
"Tgstation.Server.Host.Models.Job",
"Job")
761 .HasForeignKey(
"Tgstation.Server.Host.Models.CompileJob",
"JobId")
762 .OnDelete(DeleteBehavior.Cascade)
765 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"RevisionInformation")
766 .WithMany(
"CompileJobs")
767 .HasForeignKey(
"RevisionInformationId")
768 .OnDelete(DeleteBehavior.ClientNoAction)
773 b.Navigation(
"RevisionInformation");
776 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamDaemonSettings", b =>
778 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
779 .WithOne(
"DreamDaemonSettings")
780 .HasForeignKey(
"Tgstation.Server.Host.Models.DreamDaemonSettings",
"InstanceId")
781 .OnDelete(DeleteBehavior.Cascade)
784 b.Navigation(
"Instance");
787 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamMakerSettings", b =>
789 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
790 .WithOne(
"DreamMakerSettings")
791 .HasForeignKey(
"Tgstation.Server.Host.Models.DreamMakerSettings",
"InstanceId")
792 .OnDelete(DeleteBehavior.Cascade)
795 b.Navigation(
"Instance");
798 modelBuilder.Entity(
"Tgstation.Server.Host.Models.InstancePermissionSet", b =>
800 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
801 .WithMany(
"InstancePermissionSets")
802 .HasForeignKey(
"InstanceId")
803 .OnDelete(DeleteBehavior.Cascade)
806 b.HasOne(
"Tgstation.Server.Host.Models.PermissionSet",
"PermissionSet")
807 .WithMany(
"InstancePermissionSets")
808 .HasForeignKey(
"PermissionSetId")
809 .OnDelete(DeleteBehavior.Cascade)
812 b.Navigation(
"Instance");
814 b.Navigation(
"PermissionSet");
817 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Job", b =>
819 b.HasOne(
"Tgstation.Server.Host.Models.User",
"CancelledBy")
821 .HasForeignKey(
"CancelledById");
823 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
825 .HasForeignKey(
"InstanceId")
826 .OnDelete(DeleteBehavior.Cascade)
829 b.HasOne(
"Tgstation.Server.Host.Models.User",
"StartedBy")
831 .HasForeignKey(
"StartedById")
832 .OnDelete(DeleteBehavior.Cascade)
835 b.Navigation(
"CancelledBy");
837 b.Navigation(
"Instance");
839 b.Navigation(
"StartedBy");
842 modelBuilder.Entity(
"Tgstation.Server.Host.Models.OAuthConnection", b =>
844 b.HasOne(
"Tgstation.Server.Host.Models.User",
"User")
845 .WithMany(
"OAuthConnections")
846 .HasForeignKey(
"UserId")
847 .OnDelete(DeleteBehavior.Cascade);
849 b.Navigation(
"User");
852 modelBuilder.Entity(
"Tgstation.Server.Host.Models.PermissionSet", b =>
854 b.HasOne(
"Tgstation.Server.Host.Models.UserGroup",
"Group")
855 .WithOne(
"PermissionSet")
856 .HasForeignKey(
"Tgstation.Server.Host.Models.PermissionSet",
"GroupId")
857 .OnDelete(DeleteBehavior.Cascade);
859 b.HasOne(
"Tgstation.Server.Host.Models.User",
"User")
860 .WithOne(
"PermissionSet")
861 .HasForeignKey(
"Tgstation.Server.Host.Models.PermissionSet",
"UserId")
862 .OnDelete(DeleteBehavior.Cascade);
864 b.Navigation(
"Group");
866 b.Navigation(
"User");
869 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ReattachInformation", b =>
871 b.HasOne(
"Tgstation.Server.Host.Models.CompileJob",
"CompileJob")
873 .HasForeignKey(
"CompileJobId")
874 .OnDelete(DeleteBehavior.Cascade)
877 b.Navigation(
"CompileJob");
880 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RepositorySettings", b =>
882 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
883 .WithOne(
"RepositorySettings")
884 .HasForeignKey(
"Tgstation.Server.Host.Models.RepositorySettings",
"InstanceId")
885 .OnDelete(DeleteBehavior.Cascade)
888 b.Navigation(
"Instance");
891 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
893 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"RevisionInformation")
894 .WithMany(
"ActiveTestMerges")
895 .HasForeignKey(
"RevisionInformationId")
896 .OnDelete(DeleteBehavior.Cascade)
899 b.HasOne(
"Tgstation.Server.Host.Models.TestMerge",
"TestMerge")
900 .WithMany(
"RevisonInformations")
901 .HasForeignKey(
"TestMergeId")
902 .OnDelete(DeleteBehavior.ClientNoAction)
905 b.Navigation(
"RevisionInformation");
907 b.Navigation(
"TestMerge");
910 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevisionInformation", b =>
912 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
913 .WithMany(
"RevisionInformations")
914 .HasForeignKey(
"InstanceId")
915 .OnDelete(DeleteBehavior.Cascade)
918 b.Navigation(
"Instance");
921 modelBuilder.Entity(
"Tgstation.Server.Host.Models.TestMerge", b =>
923 b.HasOne(
"Tgstation.Server.Host.Models.User",
"MergedBy")
924 .WithMany(
"TestMerges")
925 .HasForeignKey(
"MergedById")
926 .OnDelete(DeleteBehavior.Restrict)
929 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"PrimaryRevisionInformation")
930 .WithOne(
"PrimaryTestMerge")
931 .HasForeignKey(
"Tgstation.Server.Host.Models.TestMerge",
"PrimaryRevisionInformationId")
932 .OnDelete(DeleteBehavior.Cascade)
935 b.Navigation(
"MergedBy");
937 b.Navigation(
"PrimaryRevisionInformation");
940 modelBuilder.Entity(
"Tgstation.Server.Host.Models.User", b =>
942 b.HasOne(
"Tgstation.Server.Host.Models.User",
"CreatedBy")
943 .WithMany(
"CreatedUsers")
944 .HasForeignKey(
"CreatedById");
946 b.HasOne(
"Tgstation.Server.Host.Models.UserGroup",
"Group")
948 .HasForeignKey(
"GroupId");
950 b.Navigation(
"CreatedBy");
952 b.Navigation(
"Group");
955 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatBot", b =>
957 b.Navigation(
"Channels");
960 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Instance", b =>
962 b.Navigation(
"ChatSettings");
964 b.Navigation(
"DreamDaemonSettings");
966 b.Navigation(
"DreamMakerSettings");
968 b.Navigation(
"InstancePermissionSets");
970 b.Navigation(
"Jobs");
972 b.Navigation(
"RepositorySettings");
974 b.Navigation(
"RevisionInformations");
977 modelBuilder.Entity(
"Tgstation.Server.Host.Models.PermissionSet", b =>
979 b.Navigation(
"InstancePermissionSets");
982 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevisionInformation", b =>
984 b.Navigation(
"ActiveTestMerges");
986 b.Navigation(
"CompileJobs");
988 b.Navigation(
"PrimaryTestMerge");
991 modelBuilder.Entity(
"Tgstation.Server.Host.Models.TestMerge", b =>
993 b.Navigation(
"RevisonInformations");
996 modelBuilder.Entity(
"Tgstation.Server.Host.Models.User", b =>
998 b.Navigation(
"CreatedUsers");
1000 b.Navigation(
"OAuthConnections");
1002 b.Navigation(
"PermissionSet");
1004 b.Navigation(
"TestMerges");
1007 modelBuilder.Entity(
"Tgstation.Server.Host.Models.UserGroup", b =>
1009 b.Navigation(
"PermissionSet")
1012 b.Navigation(
"Users");
1014#pragma warning restore 612, 618