17#pragma warning disable 612, 618
18 modelBuilder.HasAnnotation(
"ProductVersion",
"7.0.7");
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?>(
"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<ushort?>(
"Port")
209 .HasColumnType(
"INTEGER");
211 b.Property<
int>(
"SecurityLevel")
212 .HasColumnType(
"INTEGER");
214 b.Property<
bool?>(
"StartProfiler")
216 .HasColumnType(
"INTEGER");
218 b.Property<uint?>(
"StartupTimeout")
220 .HasColumnType(
"INTEGER");
222 b.Property<uint?>(
"TopicRequestTimeout")
224 .HasColumnType(
"INTEGER");
226 b.Property<
int>(
"Visibility")
227 .HasColumnType(
"INTEGER");
231 b.HasIndex(
"InstanceId")
234 b.ToTable(
"DreamDaemonSettings");
237 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamMakerSettings", b =>
239 b.Property<
long>(
"Id")
240 .ValueGeneratedOnAdd()
241 .HasColumnType(
"INTEGER");
243 b.Property<ushort?>(
"ApiValidationPort")
245 .HasColumnType(
"INTEGER");
247 b.Property<
int>(
"ApiValidationSecurityLevel")
248 .HasColumnType(
"INTEGER");
250 b.Property<
long>(
"InstanceId")
251 .HasColumnType(
"INTEGER");
253 b.Property<
string>(
"ProjectName")
255 .HasColumnType(
"TEXT");
257 b.Property<
bool?>(
"RequireDMApiValidation")
259 .HasColumnType(
"INTEGER");
261 b.Property<TimeSpan?>(
"Timeout")
263 .HasColumnType(
"TEXT");
267 b.HasIndex(
"InstanceId")
270 b.ToTable(
"DreamMakerSettings");
273 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Instance", b =>
275 b.Property<
long?>(
"Id")
276 .ValueGeneratedOnAdd()
277 .HasColumnType(
"INTEGER");
279 b.Property<uint?>(
"AutoUpdateInterval")
281 .HasColumnType(
"INTEGER");
283 b.Property<ushort?>(
"ChatBotLimit")
285 .HasColumnType(
"INTEGER");
287 b.Property<
int>(
"ConfigurationType")
288 .HasColumnType(
"INTEGER");
290 b.Property<
string>(
"Name")
293 .HasColumnType(
"TEXT");
295 b.Property<
bool?>(
"Online")
297 .HasColumnType(
"INTEGER");
299 b.Property<
string>(
"Path")
301 .HasColumnType(
"TEXT");
303 b.Property<
string>(
"SwarmIdentifer")
304 .HasColumnType(
"TEXT");
308 b.HasIndex(
"Path",
"SwarmIdentifer")
311 b.ToTable(
"Instances");
314 modelBuilder.Entity(
"Tgstation.Server.Host.Models.InstancePermissionSet", b =>
316 b.Property<
long>(
"Id")
317 .ValueGeneratedOnAdd()
318 .HasColumnType(
"INTEGER");
320 b.Property<ulong>(
"ByondRights")
321 .HasColumnType(
"INTEGER");
323 b.Property<ulong>(
"ChatBotRights")
324 .HasColumnType(
"INTEGER");
326 b.Property<ulong>(
"ConfigurationRights")
327 .HasColumnType(
"INTEGER");
329 b.Property<ulong>(
"DreamDaemonRights")
330 .HasColumnType(
"INTEGER");
332 b.Property<ulong>(
"DreamMakerRights")
333 .HasColumnType(
"INTEGER");
335 b.Property<
long>(
"InstanceId")
336 .HasColumnType(
"INTEGER");
338 b.Property<ulong>(
"InstancePermissionSetRights")
339 .HasColumnType(
"INTEGER");
341 b.Property<
long>(
"PermissionSetId")
342 .HasColumnType(
"INTEGER");
344 b.Property<ulong>(
"RepositoryRights")
345 .HasColumnType(
"INTEGER");
349 b.HasIndex(
"InstanceId");
351 b.HasIndex(
"PermissionSetId",
"InstanceId")
354 b.ToTable(
"InstancePermissionSets");
357 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Job", b =>
359 b.Property<
long?>(
"Id")
360 .ValueGeneratedOnAdd()
361 .HasColumnType(
"INTEGER");
363 b.Property<ulong?>(
"CancelRight")
364 .HasColumnType(
"INTEGER");
366 b.Property<ulong?>(
"CancelRightsType")
367 .HasColumnType(
"INTEGER");
369 b.Property<
bool?>(
"Cancelled")
371 .HasColumnType(
"INTEGER");
373 b.Property<
long?>(
"CancelledById")
374 .HasColumnType(
"INTEGER");
376 b.Property<
string>(
"Description")
378 .HasColumnType(
"TEXT");
380 b.Property<uint?>(
"ErrorCode")
381 .HasColumnType(
"INTEGER");
383 b.Property<
string>(
"ExceptionDetails")
384 .HasColumnType(
"TEXT");
386 b.Property<
long>(
"InstanceId")
387 .HasColumnType(
"INTEGER");
389 b.Property<DateTimeOffset?>(
"StartedAt")
391 .HasColumnType(
"TEXT");
393 b.Property<
long>(
"StartedById")
394 .HasColumnType(
"INTEGER");
396 b.Property<DateTimeOffset?>(
"StoppedAt")
397 .HasColumnType(
"TEXT");
401 b.HasIndex(
"CancelledById");
403 b.HasIndex(
"InstanceId");
405 b.HasIndex(
"StartedById");
410 modelBuilder.Entity(
"Tgstation.Server.Host.Models.OAuthConnection", b =>
412 b.Property<
long>(
"Id")
413 .ValueGeneratedOnAdd()
414 .HasColumnType(
"INTEGER");
416 b.Property<
string>(
"ExternalUserId")
419 .HasColumnType(
"TEXT");
421 b.Property<
int>(
"Provider")
422 .HasColumnType(
"INTEGER");
424 b.Property<
long?>(
"UserId")
425 .HasColumnType(
"INTEGER");
429 b.HasIndex(
"UserId");
431 b.HasIndex(
"Provider",
"ExternalUserId")
434 b.ToTable(
"OAuthConnections");
437 modelBuilder.Entity(
"Tgstation.Server.Host.Models.PermissionSet", b =>
439 b.Property<
long?>(
"Id")
440 .ValueGeneratedOnAdd()
441 .HasColumnType(
"INTEGER");
443 b.Property<ulong>(
"AdministrationRights")
444 .HasColumnType(
"INTEGER");
446 b.Property<
long?>(
"GroupId")
447 .HasColumnType(
"INTEGER");
449 b.Property<ulong>(
"InstanceManagerRights")
450 .HasColumnType(
"INTEGER");
452 b.Property<
long?>(
"UserId")
453 .HasColumnType(
"INTEGER");
457 b.HasIndex(
"GroupId")
463 b.ToTable(
"PermissionSets");
466 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ReattachInformation", b =>
468 b.Property<
long>(
"Id")
469 .ValueGeneratedOnAdd()
470 .HasColumnType(
"INTEGER");
472 b.Property<
string>(
"AccessIdentifier")
474 .HasColumnType(
"TEXT");
476 b.Property<
long>(
"CompileJobId")
477 .HasColumnType(
"INTEGER");
479 b.Property<
long?>(
"InitialCompileJobId")
480 .HasColumnType(
"INTEGER");
482 b.Property<
int>(
"LaunchSecurityLevel")
483 .HasColumnType(
"INTEGER");
485 b.Property<
int>(
"LaunchVisibility")
486 .HasColumnType(
"INTEGER");
488 b.Property<ushort>(
"Port")
489 .HasColumnType(
"INTEGER");
491 b.Property<
int>(
"ProcessId")
492 .HasColumnType(
"INTEGER");
494 b.Property<
int>(
"RebootState")
495 .HasColumnType(
"INTEGER");
499 b.HasIndex(
"CompileJobId");
501 b.HasIndex(
"InitialCompileJobId");
503 b.ToTable(
"ReattachInformations");
506 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RepositorySettings", b =>
508 b.Property<
long>(
"Id")
509 .ValueGeneratedOnAdd()
510 .HasColumnType(
"INTEGER");
512 b.Property<
string>(
"AccessToken")
514 .HasColumnType(
"TEXT");
516 b.Property<
string>(
"AccessUser")
518 .HasColumnType(
"TEXT");
520 b.Property<
bool?>(
"AutoUpdatesKeepTestMerges")
522 .HasColumnType(
"INTEGER");
524 b.Property<
bool?>(
"AutoUpdatesSynchronize")
526 .HasColumnType(
"INTEGER");
528 b.Property<
string>(
"CommitterEmail")
531 .HasColumnType(
"TEXT");
533 b.Property<
string>(
"CommitterName")
536 .HasColumnType(
"TEXT");
538 b.Property<
bool?>(
"CreateGitHubDeployments")
540 .HasColumnType(
"INTEGER");
542 b.Property<
long>(
"InstanceId")
543 .HasColumnType(
"INTEGER");
545 b.Property<
bool?>(
"PostTestMergeComment")
547 .HasColumnType(
"INTEGER");
549 b.Property<
bool?>(
"PushTestMergeCommits")
551 .HasColumnType(
"INTEGER");
553 b.Property<
bool?>(
"ShowTestMergeCommitters")
555 .HasColumnType(
"INTEGER");
557 b.Property<
bool?>(
"UpdateSubmodules")
559 .HasColumnType(
"INTEGER");
563 b.HasIndex(
"InstanceId")
566 b.ToTable(
"RepositorySettings");
569 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
571 b.Property<
long>(
"Id")
572 .ValueGeneratedOnAdd()
573 .HasColumnType(
"INTEGER");
575 b.Property<
long>(
"RevisionInformationId")
576 .HasColumnType(
"INTEGER");
578 b.Property<
long>(
"TestMergeId")
579 .HasColumnType(
"INTEGER");
583 b.HasIndex(
"RevisionInformationId");
585 b.HasIndex(
"TestMergeId");
587 b.ToTable(
"RevInfoTestMerges");
590 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevisionInformation", b =>
592 b.Property<
long>(
"Id")
593 .ValueGeneratedOnAdd()
594 .HasColumnType(
"INTEGER");
596 b.Property<
string>(
"CommitSha")
599 .HasColumnType(
"TEXT");
601 b.Property<
long>(
"InstanceId")
602 .HasColumnType(
"INTEGER");
604 b.Property<
string>(
"OriginCommitSha")
607 .HasColumnType(
"TEXT");
609 b.Property<DateTimeOffset>(
"Timestamp")
610 .HasColumnType(
"TEXT");
614 b.HasIndex(
"InstanceId",
"CommitSha")
617 b.ToTable(
"RevisionInformations");
620 modelBuilder.Entity(
"Tgstation.Server.Host.Models.TestMerge", b =>
622 b.Property<
long>(
"Id")
623 .ValueGeneratedOnAdd()
624 .HasColumnType(
"INTEGER");
626 b.Property<
string>(
"Author")
628 .HasColumnType(
"TEXT");
630 b.Property<
string>(
"BodyAtMerge")
632 .HasColumnType(
"TEXT");
634 b.Property<
string>(
"Comment")
636 .HasColumnType(
"TEXT");
638 b.Property<DateTimeOffset>(
"MergedAt")
639 .HasColumnType(
"TEXT");
641 b.Property<
long>(
"MergedById")
642 .HasColumnType(
"INTEGER");
644 b.Property<
int>(
"Number")
645 .HasColumnType(
"INTEGER");
647 b.Property<
long?>(
"PrimaryRevisionInformationId")
649 .HasColumnType(
"INTEGER");
651 b.Property<
string>(
"TargetCommitSha")
654 .HasColumnType(
"TEXT");
656 b.Property<
string>(
"TitleAtMerge")
658 .HasColumnType(
"TEXT");
660 b.Property<
string>(
"Url")
662 .HasColumnType(
"TEXT");
666 b.HasIndex(
"MergedById");
668 b.HasIndex(
"PrimaryRevisionInformationId")
671 b.ToTable(
"TestMerges");
674 modelBuilder.Entity(
"Tgstation.Server.Host.Models.User", b =>
676 b.Property<
long?>(
"Id")
677 .ValueGeneratedOnAdd()
678 .HasColumnType(
"INTEGER");
680 b.Property<
string>(
"CanonicalName")
683 .HasColumnType(
"TEXT");
685 b.Property<DateTimeOffset?>(
"CreatedAt")
687 .HasColumnType(
"TEXT");
689 b.Property<
long?>(
"CreatedById")
690 .HasColumnType(
"INTEGER");
692 b.Property<
bool?>(
"Enabled")
694 .HasColumnType(
"INTEGER");
696 b.Property<
long?>(
"GroupId")
697 .HasColumnType(
"INTEGER");
699 b.Property<DateTimeOffset?>(
"LastPasswordUpdate")
700 .HasColumnType(
"TEXT");
702 b.Property<
string>(
"Name")
705 .HasColumnType(
"TEXT");
707 b.Property<
string>(
"PasswordHash")
708 .HasColumnType(
"TEXT");
710 b.Property<
string>(
"SystemIdentifier")
712 .HasColumnType(
"TEXT");
716 b.HasIndex(
"CanonicalName")
719 b.HasIndex(
"CreatedById");
721 b.HasIndex(
"GroupId");
723 b.HasIndex(
"SystemIdentifier")
729 modelBuilder.Entity(
"Tgstation.Server.Host.Models.UserGroup", b =>
731 b.Property<
long?>(
"Id")
732 .ValueGeneratedOnAdd()
733 .HasColumnType(
"INTEGER");
735 b.Property<
string>(
"Name")
738 .HasColumnType(
"TEXT");
748 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatBot", b =>
750 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
751 .WithMany(
"ChatSettings")
752 .HasForeignKey(
"InstanceId")
753 .OnDelete(DeleteBehavior.Cascade)
756 b.Navigation(
"Instance");
759 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatChannel", b =>
761 b.HasOne(
"Tgstation.Server.Host.Models.ChatBot",
"ChatSettings")
762 .WithMany(
"Channels")
763 .HasForeignKey(
"ChatSettingsId")
764 .OnDelete(DeleteBehavior.Cascade)
767 b.Navigation(
"ChatSettings");
770 modelBuilder.Entity(
"Tgstation.Server.Host.Models.CompileJob", b =>
772 b.HasOne(
"Tgstation.Server.Host.Models.Job",
"Job")
774 .HasForeignKey(
"Tgstation.Server.Host.Models.CompileJob",
"JobId")
775 .OnDelete(DeleteBehavior.Cascade)
778 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"RevisionInformation")
779 .WithMany(
"CompileJobs")
780 .HasForeignKey(
"RevisionInformationId")
781 .OnDelete(DeleteBehavior.ClientNoAction)
786 b.Navigation(
"RevisionInformation");
789 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamDaemonSettings", b =>
791 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
792 .WithOne(
"DreamDaemonSettings")
793 .HasForeignKey(
"Tgstation.Server.Host.Models.DreamDaemonSettings",
"InstanceId")
794 .OnDelete(DeleteBehavior.Cascade)
797 b.Navigation(
"Instance");
800 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamMakerSettings", b =>
802 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
803 .WithOne(
"DreamMakerSettings")
804 .HasForeignKey(
"Tgstation.Server.Host.Models.DreamMakerSettings",
"InstanceId")
805 .OnDelete(DeleteBehavior.Cascade)
808 b.Navigation(
"Instance");
811 modelBuilder.Entity(
"Tgstation.Server.Host.Models.InstancePermissionSet", b =>
813 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
814 .WithMany(
"InstancePermissionSets")
815 .HasForeignKey(
"InstanceId")
816 .OnDelete(DeleteBehavior.Cascade)
819 b.HasOne(
"Tgstation.Server.Host.Models.PermissionSet",
"PermissionSet")
820 .WithMany(
"InstancePermissionSets")
821 .HasForeignKey(
"PermissionSetId")
822 .OnDelete(DeleteBehavior.Cascade)
825 b.Navigation(
"Instance");
827 b.Navigation(
"PermissionSet");
830 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Job", b =>
832 b.HasOne(
"Tgstation.Server.Host.Models.User",
"CancelledBy")
834 .HasForeignKey(
"CancelledById");
836 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
838 .HasForeignKey(
"InstanceId")
839 .OnDelete(DeleteBehavior.Cascade)
842 b.HasOne(
"Tgstation.Server.Host.Models.User",
"StartedBy")
844 .HasForeignKey(
"StartedById")
845 .OnDelete(DeleteBehavior.Cascade)
848 b.Navigation(
"CancelledBy");
850 b.Navigation(
"Instance");
852 b.Navigation(
"StartedBy");
855 modelBuilder.Entity(
"Tgstation.Server.Host.Models.OAuthConnection", b =>
857 b.HasOne(
"Tgstation.Server.Host.Models.User",
"User")
858 .WithMany(
"OAuthConnections")
859 .HasForeignKey(
"UserId")
860 .OnDelete(DeleteBehavior.Cascade);
862 b.Navigation(
"User");
865 modelBuilder.Entity(
"Tgstation.Server.Host.Models.PermissionSet", b =>
867 b.HasOne(
"Tgstation.Server.Host.Models.UserGroup",
"Group")
868 .WithOne(
"PermissionSet")
869 .HasForeignKey(
"Tgstation.Server.Host.Models.PermissionSet",
"GroupId")
870 .OnDelete(DeleteBehavior.Cascade);
872 b.HasOne(
"Tgstation.Server.Host.Models.User",
"User")
873 .WithOne(
"PermissionSet")
874 .HasForeignKey(
"Tgstation.Server.Host.Models.PermissionSet",
"UserId")
875 .OnDelete(DeleteBehavior.Cascade);
877 b.Navigation(
"Group");
879 b.Navigation(
"User");
882 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ReattachInformation", b =>
884 b.HasOne(
"Tgstation.Server.Host.Models.CompileJob",
"CompileJob")
886 .HasForeignKey(
"CompileJobId")
887 .OnDelete(DeleteBehavior.Cascade)
890 b.HasOne(
"Tgstation.Server.Host.Models.CompileJob",
"InitialCompileJob")
892 .HasForeignKey(
"InitialCompileJobId");
894 b.Navigation(
"CompileJob");
896 b.Navigation(
"InitialCompileJob");
899 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RepositorySettings", b =>
901 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
902 .WithOne(
"RepositorySettings")
903 .HasForeignKey(
"Tgstation.Server.Host.Models.RepositorySettings",
"InstanceId")
904 .OnDelete(DeleteBehavior.Cascade)
907 b.Navigation(
"Instance");
910 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
912 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"RevisionInformation")
913 .WithMany(
"ActiveTestMerges")
914 .HasForeignKey(
"RevisionInformationId")
915 .OnDelete(DeleteBehavior.Cascade)
918 b.HasOne(
"Tgstation.Server.Host.Models.TestMerge",
"TestMerge")
919 .WithMany(
"RevisonInformations")
920 .HasForeignKey(
"TestMergeId")
921 .OnDelete(DeleteBehavior.ClientNoAction)
924 b.Navigation(
"RevisionInformation");
926 b.Navigation(
"TestMerge");
929 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevisionInformation", b =>
931 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
932 .WithMany(
"RevisionInformations")
933 .HasForeignKey(
"InstanceId")
934 .OnDelete(DeleteBehavior.Cascade)
937 b.Navigation(
"Instance");
940 modelBuilder.Entity(
"Tgstation.Server.Host.Models.TestMerge", b =>
942 b.HasOne(
"Tgstation.Server.Host.Models.User",
"MergedBy")
943 .WithMany(
"TestMerges")
944 .HasForeignKey(
"MergedById")
945 .OnDelete(DeleteBehavior.Restrict)
948 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"PrimaryRevisionInformation")
949 .WithOne(
"PrimaryTestMerge")
950 .HasForeignKey(
"Tgstation.Server.Host.Models.TestMerge",
"PrimaryRevisionInformationId")
951 .OnDelete(DeleteBehavior.Cascade)
954 b.Navigation(
"MergedBy");
956 b.Navigation(
"PrimaryRevisionInformation");
959 modelBuilder.Entity(
"Tgstation.Server.Host.Models.User", b =>
961 b.HasOne(
"Tgstation.Server.Host.Models.User",
"CreatedBy")
962 .WithMany(
"CreatedUsers")
963 .HasForeignKey(
"CreatedById");
965 b.HasOne(
"Tgstation.Server.Host.Models.UserGroup",
"Group")
967 .HasForeignKey(
"GroupId");
969 b.Navigation(
"CreatedBy");
971 b.Navigation(
"Group");
974 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatBot", b =>
976 b.Navigation(
"Channels");
979 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Instance", b =>
981 b.Navigation(
"ChatSettings");
983 b.Navigation(
"DreamDaemonSettings");
985 b.Navigation(
"DreamMakerSettings");
987 b.Navigation(
"InstancePermissionSets");
989 b.Navigation(
"Jobs");
991 b.Navigation(
"RepositorySettings");
993 b.Navigation(
"RevisionInformations");
996 modelBuilder.Entity(
"Tgstation.Server.Host.Models.PermissionSet", b =>
998 b.Navigation(
"InstancePermissionSets");
1001 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevisionInformation", b =>
1003 b.Navigation(
"ActiveTestMerges");
1005 b.Navigation(
"CompileJobs");
1007 b.Navigation(
"PrimaryTestMerge");
1010 modelBuilder.Entity(
"Tgstation.Server.Host.Models.TestMerge", b =>
1012 b.Navigation(
"RevisonInformations");
1015 modelBuilder.Entity(
"Tgstation.Server.Host.Models.User", b =>
1017 b.Navigation(
"CreatedUsers");
1019 b.Navigation(
"OAuthConnections");
1021 b.Navigation(
"PermissionSet");
1023 b.Navigation(
"TestMerges");
1026 modelBuilder.Entity(
"Tgstation.Server.Host.Models.UserGroup", b =>
1028 b.Navigation(
"PermissionSet")
1031 b.Navigation(
"Users");
1033#pragma warning restore 612, 618