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<
long?>(
"InitialCompileJobId")
472 .HasColumnType(
"INTEGER");
474 b.Property<
int>(
"LaunchSecurityLevel")
475 .HasColumnType(
"INTEGER");
477 b.Property<
int>(
"LaunchVisibility")
478 .HasColumnType(
"INTEGER");
480 b.Property<ushort>(
"Port")
481 .HasColumnType(
"INTEGER");
483 b.Property<
int>(
"ProcessId")
484 .HasColumnType(
"INTEGER");
486 b.Property<
int>(
"RebootState")
487 .HasColumnType(
"INTEGER");
491 b.HasIndex(
"CompileJobId");
493 b.HasIndex(
"InitialCompileJobId");
495 b.ToTable(
"ReattachInformations");
498 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RepositorySettings", b =>
500 b.Property<
long>(
"Id")
501 .ValueGeneratedOnAdd()
502 .HasColumnType(
"INTEGER");
504 b.Property<
string>(
"AccessToken")
506 .HasColumnType(
"TEXT");
508 b.Property<
string>(
"AccessUser")
510 .HasColumnType(
"TEXT");
512 b.Property<
bool?>(
"AutoUpdatesKeepTestMerges")
514 .HasColumnType(
"INTEGER");
516 b.Property<
bool?>(
"AutoUpdatesSynchronize")
518 .HasColumnType(
"INTEGER");
520 b.Property<
string>(
"CommitterEmail")
523 .HasColumnType(
"TEXT");
525 b.Property<
string>(
"CommitterName")
528 .HasColumnType(
"TEXT");
530 b.Property<
bool?>(
"CreateGitHubDeployments")
532 .HasColumnType(
"INTEGER");
534 b.Property<
long>(
"InstanceId")
535 .HasColumnType(
"INTEGER");
537 b.Property<
bool?>(
"PostTestMergeComment")
539 .HasColumnType(
"INTEGER");
541 b.Property<
bool?>(
"PushTestMergeCommits")
543 .HasColumnType(
"INTEGER");
545 b.Property<
bool?>(
"ShowTestMergeCommitters")
547 .HasColumnType(
"INTEGER");
549 b.Property<
bool?>(
"UpdateSubmodules")
551 .HasColumnType(
"INTEGER");
555 b.HasIndex(
"InstanceId")
558 b.ToTable(
"RepositorySettings");
561 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
563 b.Property<
long>(
"Id")
564 .ValueGeneratedOnAdd()
565 .HasColumnType(
"INTEGER");
567 b.Property<
long>(
"RevisionInformationId")
568 .HasColumnType(
"INTEGER");
570 b.Property<
long>(
"TestMergeId")
571 .HasColumnType(
"INTEGER");
575 b.HasIndex(
"RevisionInformationId");
577 b.HasIndex(
"TestMergeId");
579 b.ToTable(
"RevInfoTestMerges");
582 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevisionInformation", b =>
584 b.Property<
long>(
"Id")
585 .ValueGeneratedOnAdd()
586 .HasColumnType(
"INTEGER");
588 b.Property<
string>(
"CommitSha")
591 .HasColumnType(
"TEXT");
593 b.Property<
long>(
"InstanceId")
594 .HasColumnType(
"INTEGER");
596 b.Property<
string>(
"OriginCommitSha")
599 .HasColumnType(
"TEXT");
601 b.Property<DateTimeOffset>(
"Timestamp")
602 .HasColumnType(
"TEXT");
606 b.HasIndex(
"InstanceId",
"CommitSha")
609 b.ToTable(
"RevisionInformations");
612 modelBuilder.Entity(
"Tgstation.Server.Host.Models.TestMerge", b =>
614 b.Property<
long>(
"Id")
615 .ValueGeneratedOnAdd()
616 .HasColumnType(
"INTEGER");
618 b.Property<
string>(
"Author")
620 .HasColumnType(
"TEXT");
622 b.Property<
string>(
"BodyAtMerge")
624 .HasColumnType(
"TEXT");
626 b.Property<
string>(
"Comment")
628 .HasColumnType(
"TEXT");
630 b.Property<DateTimeOffset>(
"MergedAt")
631 .HasColumnType(
"TEXT");
633 b.Property<
long>(
"MergedById")
634 .HasColumnType(
"INTEGER");
636 b.Property<
int>(
"Number")
637 .HasColumnType(
"INTEGER");
639 b.Property<
long?>(
"PrimaryRevisionInformationId")
641 .HasColumnType(
"INTEGER");
643 b.Property<
string>(
"TargetCommitSha")
646 .HasColumnType(
"TEXT");
648 b.Property<
string>(
"TitleAtMerge")
650 .HasColumnType(
"TEXT");
652 b.Property<
string>(
"Url")
654 .HasColumnType(
"TEXT");
658 b.HasIndex(
"MergedById");
660 b.HasIndex(
"PrimaryRevisionInformationId")
663 b.ToTable(
"TestMerges");
666 modelBuilder.Entity(
"Tgstation.Server.Host.Models.User", b =>
668 b.Property<
long?>(
"Id")
669 .ValueGeneratedOnAdd()
670 .HasColumnType(
"INTEGER");
672 b.Property<
string>(
"CanonicalName")
675 .HasColumnType(
"TEXT");
677 b.Property<DateTimeOffset?>(
"CreatedAt")
679 .HasColumnType(
"TEXT");
681 b.Property<
long?>(
"CreatedById")
682 .HasColumnType(
"INTEGER");
684 b.Property<
bool?>(
"Enabled")
686 .HasColumnType(
"INTEGER");
688 b.Property<
long?>(
"GroupId")
689 .HasColumnType(
"INTEGER");
691 b.Property<DateTimeOffset?>(
"LastPasswordUpdate")
692 .HasColumnType(
"TEXT");
694 b.Property<
string>(
"Name")
697 .HasColumnType(
"TEXT");
699 b.Property<
string>(
"PasswordHash")
700 .HasColumnType(
"TEXT");
702 b.Property<
string>(
"SystemIdentifier")
704 .HasColumnType(
"TEXT");
708 b.HasIndex(
"CanonicalName")
711 b.HasIndex(
"CreatedById");
713 b.HasIndex(
"GroupId");
715 b.HasIndex(
"SystemIdentifier")
721 modelBuilder.Entity(
"Tgstation.Server.Host.Models.UserGroup", b =>
723 b.Property<
long?>(
"Id")
724 .ValueGeneratedOnAdd()
725 .HasColumnType(
"INTEGER");
727 b.Property<
string>(
"Name")
730 .HasColumnType(
"TEXT");
740 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatBot", b =>
742 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
743 .WithMany(
"ChatSettings")
744 .HasForeignKey(
"InstanceId")
745 .OnDelete(DeleteBehavior.Cascade)
748 b.Navigation(
"Instance");
751 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatChannel", b =>
753 b.HasOne(
"Tgstation.Server.Host.Models.ChatBot",
"ChatSettings")
754 .WithMany(
"Channels")
755 .HasForeignKey(
"ChatSettingsId")
756 .OnDelete(DeleteBehavior.Cascade)
759 b.Navigation(
"ChatSettings");
762 modelBuilder.Entity(
"Tgstation.Server.Host.Models.CompileJob", b =>
764 b.HasOne(
"Tgstation.Server.Host.Models.Job",
"Job")
766 .HasForeignKey(
"Tgstation.Server.Host.Models.CompileJob",
"JobId")
767 .OnDelete(DeleteBehavior.Cascade)
770 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"RevisionInformation")
771 .WithMany(
"CompileJobs")
772 .HasForeignKey(
"RevisionInformationId")
773 .OnDelete(DeleteBehavior.ClientNoAction)
778 b.Navigation(
"RevisionInformation");
781 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamDaemonSettings", b =>
783 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
784 .WithOne(
"DreamDaemonSettings")
785 .HasForeignKey(
"Tgstation.Server.Host.Models.DreamDaemonSettings",
"InstanceId")
786 .OnDelete(DeleteBehavior.Cascade)
789 b.Navigation(
"Instance");
792 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamMakerSettings", b =>
794 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
795 .WithOne(
"DreamMakerSettings")
796 .HasForeignKey(
"Tgstation.Server.Host.Models.DreamMakerSettings",
"InstanceId")
797 .OnDelete(DeleteBehavior.Cascade)
800 b.Navigation(
"Instance");
803 modelBuilder.Entity(
"Tgstation.Server.Host.Models.InstancePermissionSet", b =>
805 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
806 .WithMany(
"InstancePermissionSets")
807 .HasForeignKey(
"InstanceId")
808 .OnDelete(DeleteBehavior.Cascade)
811 b.HasOne(
"Tgstation.Server.Host.Models.PermissionSet",
"PermissionSet")
812 .WithMany(
"InstancePermissionSets")
813 .HasForeignKey(
"PermissionSetId")
814 .OnDelete(DeleteBehavior.Cascade)
817 b.Navigation(
"Instance");
819 b.Navigation(
"PermissionSet");
822 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Job", b =>
824 b.HasOne(
"Tgstation.Server.Host.Models.User",
"CancelledBy")
826 .HasForeignKey(
"CancelledById");
828 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
830 .HasForeignKey(
"InstanceId")
831 .OnDelete(DeleteBehavior.Cascade)
834 b.HasOne(
"Tgstation.Server.Host.Models.User",
"StartedBy")
836 .HasForeignKey(
"StartedById")
837 .OnDelete(DeleteBehavior.Cascade)
840 b.Navigation(
"CancelledBy");
842 b.Navigation(
"Instance");
844 b.Navigation(
"StartedBy");
847 modelBuilder.Entity(
"Tgstation.Server.Host.Models.OAuthConnection", b =>
849 b.HasOne(
"Tgstation.Server.Host.Models.User",
"User")
850 .WithMany(
"OAuthConnections")
851 .HasForeignKey(
"UserId")
852 .OnDelete(DeleteBehavior.Cascade);
854 b.Navigation(
"User");
857 modelBuilder.Entity(
"Tgstation.Server.Host.Models.PermissionSet", b =>
859 b.HasOne(
"Tgstation.Server.Host.Models.UserGroup",
"Group")
860 .WithOne(
"PermissionSet")
861 .HasForeignKey(
"Tgstation.Server.Host.Models.PermissionSet",
"GroupId")
862 .OnDelete(DeleteBehavior.Cascade);
864 b.HasOne(
"Tgstation.Server.Host.Models.User",
"User")
865 .WithOne(
"PermissionSet")
866 .HasForeignKey(
"Tgstation.Server.Host.Models.PermissionSet",
"UserId")
867 .OnDelete(DeleteBehavior.Cascade);
869 b.Navigation(
"Group");
871 b.Navigation(
"User");
874 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ReattachInformation", b =>
876 b.HasOne(
"Tgstation.Server.Host.Models.CompileJob",
"CompileJob")
878 .HasForeignKey(
"CompileJobId")
879 .OnDelete(DeleteBehavior.Cascade)
882 b.HasOne(
"Tgstation.Server.Host.Models.CompileJob",
"InitialCompileJob")
884 .HasForeignKey(
"InitialCompileJobId");
886 b.Navigation(
"CompileJob");
888 b.Navigation(
"InitialCompileJob");
891 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RepositorySettings", b =>
893 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
894 .WithOne(
"RepositorySettings")
895 .HasForeignKey(
"Tgstation.Server.Host.Models.RepositorySettings",
"InstanceId")
896 .OnDelete(DeleteBehavior.Cascade)
899 b.Navigation(
"Instance");
902 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
904 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"RevisionInformation")
905 .WithMany(
"ActiveTestMerges")
906 .HasForeignKey(
"RevisionInformationId")
907 .OnDelete(DeleteBehavior.Cascade)
910 b.HasOne(
"Tgstation.Server.Host.Models.TestMerge",
"TestMerge")
911 .WithMany(
"RevisonInformations")
912 .HasForeignKey(
"TestMergeId")
913 .OnDelete(DeleteBehavior.ClientNoAction)
916 b.Navigation(
"RevisionInformation");
918 b.Navigation(
"TestMerge");
921 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevisionInformation", b =>
923 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
924 .WithMany(
"RevisionInformations")
925 .HasForeignKey(
"InstanceId")
926 .OnDelete(DeleteBehavior.Cascade)
929 b.Navigation(
"Instance");
932 modelBuilder.Entity(
"Tgstation.Server.Host.Models.TestMerge", b =>
934 b.HasOne(
"Tgstation.Server.Host.Models.User",
"MergedBy")
935 .WithMany(
"TestMerges")
936 .HasForeignKey(
"MergedById")
937 .OnDelete(DeleteBehavior.Restrict)
940 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"PrimaryRevisionInformation")
941 .WithOne(
"PrimaryTestMerge")
942 .HasForeignKey(
"Tgstation.Server.Host.Models.TestMerge",
"PrimaryRevisionInformationId")
943 .OnDelete(DeleteBehavior.Cascade)
946 b.Navigation(
"MergedBy");
948 b.Navigation(
"PrimaryRevisionInformation");
951 modelBuilder.Entity(
"Tgstation.Server.Host.Models.User", b =>
953 b.HasOne(
"Tgstation.Server.Host.Models.User",
"CreatedBy")
954 .WithMany(
"CreatedUsers")
955 .HasForeignKey(
"CreatedById");
957 b.HasOne(
"Tgstation.Server.Host.Models.UserGroup",
"Group")
959 .HasForeignKey(
"GroupId");
961 b.Navigation(
"CreatedBy");
963 b.Navigation(
"Group");
966 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatBot", b =>
968 b.Navigation(
"Channels");
971 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Instance", b =>
973 b.Navigation(
"ChatSettings");
975 b.Navigation(
"DreamDaemonSettings");
977 b.Navigation(
"DreamMakerSettings");
979 b.Navigation(
"InstancePermissionSets");
981 b.Navigation(
"Jobs");
983 b.Navigation(
"RepositorySettings");
985 b.Navigation(
"RevisionInformations");
988 modelBuilder.Entity(
"Tgstation.Server.Host.Models.PermissionSet", b =>
990 b.Navigation(
"InstancePermissionSets");
993 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevisionInformation", b =>
995 b.Navigation(
"ActiveTestMerges");
997 b.Navigation(
"CompileJobs");
999 b.Navigation(
"PrimaryTestMerge");
1002 modelBuilder.Entity(
"Tgstation.Server.Host.Models.TestMerge", b =>
1004 b.Navigation(
"RevisonInformations");
1007 modelBuilder.Entity(
"Tgstation.Server.Host.Models.User", b =>
1009 b.Navigation(
"CreatedUsers");
1011 b.Navigation(
"OAuthConnections");
1013 b.Navigation(
"PermissionSet");
1015 b.Navigation(
"TestMerges");
1018 modelBuilder.Entity(
"Tgstation.Server.Host.Models.UserGroup", b =>
1020 b.Navigation(
"PermissionSet")
1023 b.Navigation(
"Users");
1025#pragma warning restore 612, 618