17#pragma warning disable 612, 618
18 modelBuilder.HasAnnotation(
"ProductVersion",
"8.0.8");
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<
long?>(
"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?>(
"OpenDreamTopicPort")
213 .HasColumnType(
"INTEGER");
215 b.Property<ushort?>(
"Port")
217 .HasColumnType(
"INTEGER");
219 b.Property<
int>(
"SecurityLevel")
220 .HasColumnType(
"INTEGER");
222 b.Property<
bool?>(
"StartProfiler")
224 .HasColumnType(
"INTEGER");
226 b.Property<uint?>(
"StartupTimeout")
228 .HasColumnType(
"INTEGER");
230 b.Property<uint?>(
"TopicRequestTimeout")
232 .HasColumnType(
"INTEGER");
234 b.Property<
int>(
"Visibility")
235 .HasColumnType(
"INTEGER");
239 b.HasIndex(
"InstanceId")
242 b.ToTable(
"DreamDaemonSettings");
245 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamMakerSettings", b =>
247 b.Property<
long>(
"Id")
248 .ValueGeneratedOnAdd()
249 .HasColumnType(
"INTEGER");
251 b.Property<ushort?>(
"ApiValidationPort")
253 .HasColumnType(
"INTEGER");
255 b.Property<
int>(
"ApiValidationSecurityLevel")
256 .HasColumnType(
"INTEGER");
258 b.Property<
string>(
"CompilerAdditionalArguments")
260 .HasColumnType(
"TEXT");
262 b.Property<
int>(
"DMApiValidationMode")
263 .HasColumnType(
"INTEGER");
265 b.Property<
long>(
"InstanceId")
266 .HasColumnType(
"INTEGER");
268 b.Property<
string>(
"ProjectName")
270 .HasColumnType(
"TEXT");
272 b.Property<TimeSpan?>(
"Timeout")
274 .HasColumnType(
"TEXT");
278 b.HasIndex(
"InstanceId")
281 b.ToTable(
"DreamMakerSettings");
284 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Instance", b =>
286 b.Property<
long?>(
"Id")
287 .ValueGeneratedOnAdd()
288 .HasColumnType(
"INTEGER");
290 b.Property<
string>(
"AutoUpdateCron")
293 .HasColumnType(
"TEXT");
295 b.Property<uint?>(
"AutoUpdateInterval")
297 .HasColumnType(
"INTEGER");
299 b.Property<ushort?>(
"ChatBotLimit")
301 .HasColumnType(
"INTEGER");
303 b.Property<
int>(
"ConfigurationType")
304 .HasColumnType(
"INTEGER");
306 b.Property<
string>(
"Name")
309 .HasColumnType(
"TEXT");
311 b.Property<
bool?>(
"Online")
313 .HasColumnType(
"INTEGER");
315 b.Property<
string>(
"Path")
317 .HasColumnType(
"TEXT");
319 b.Property<
string>(
"SwarmIdentifer")
320 .HasColumnType(
"TEXT");
324 b.HasIndex(
"Path",
"SwarmIdentifer")
327 b.ToTable(
"Instances");
330 modelBuilder.Entity(
"Tgstation.Server.Host.Models.InstancePermissionSet", b =>
332 b.Property<
long>(
"Id")
333 .ValueGeneratedOnAdd()
334 .HasColumnType(
"INTEGER");
336 b.Property<ulong>(
"ChatBotRights")
337 .HasColumnType(
"INTEGER");
339 b.Property<ulong>(
"ConfigurationRights")
340 .HasColumnType(
"INTEGER");
342 b.Property<ulong>(
"DreamDaemonRights")
343 .HasColumnType(
"INTEGER");
345 b.Property<ulong>(
"DreamMakerRights")
346 .HasColumnType(
"INTEGER");
348 b.Property<ulong>(
"EngineRights")
349 .HasColumnType(
"INTEGER");
351 b.Property<
long>(
"InstanceId")
352 .HasColumnType(
"INTEGER");
354 b.Property<ulong>(
"InstancePermissionSetRights")
355 .HasColumnType(
"INTEGER");
357 b.Property<
long>(
"PermissionSetId")
358 .HasColumnType(
"INTEGER");
360 b.Property<ulong>(
"RepositoryRights")
361 .HasColumnType(
"INTEGER");
365 b.HasIndex(
"InstanceId");
367 b.HasIndex(
"PermissionSetId",
"InstanceId")
370 b.ToTable(
"InstancePermissionSets");
373 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Job", b =>
375 b.Property<
long?>(
"Id")
376 .ValueGeneratedOnAdd()
377 .HasColumnType(
"INTEGER");
379 b.Property<ulong?>(
"CancelRight")
380 .HasColumnType(
"INTEGER");
382 b.Property<ulong?>(
"CancelRightsType")
383 .HasColumnType(
"INTEGER");
385 b.Property<
bool?>(
"Cancelled")
387 .HasColumnType(
"INTEGER");
389 b.Property<
long?>(
"CancelledById")
390 .HasColumnType(
"INTEGER");
392 b.Property<
string>(
"Description")
394 .HasColumnType(
"TEXT");
396 b.Property<uint?>(
"ErrorCode")
397 .HasColumnType(
"INTEGER");
399 b.Property<
string>(
"ExceptionDetails")
400 .HasColumnType(
"TEXT");
402 b.Property<
long>(
"InstanceId")
403 .HasColumnType(
"INTEGER");
405 b.Property<
byte>(
"JobCode")
406 .HasColumnType(
"INTEGER");
408 b.Property<DateTimeOffset?>(
"StartedAt")
410 .HasColumnType(
"TEXT");
412 b.Property<
long>(
"StartedById")
413 .HasColumnType(
"INTEGER");
415 b.Property<DateTimeOffset?>(
"StoppedAt")
416 .HasColumnType(
"TEXT");
420 b.HasIndex(
"CancelledById");
422 b.HasIndex(
"InstanceId");
424 b.HasIndex(
"StartedById");
429 modelBuilder.Entity(
"Tgstation.Server.Host.Models.OAuthConnection", b =>
431 b.Property<
long>(
"Id")
432 .ValueGeneratedOnAdd()
433 .HasColumnType(
"INTEGER");
435 b.Property<
string>(
"ExternalUserId")
438 .HasColumnType(
"TEXT");
440 b.Property<
int>(
"Provider")
441 .HasColumnType(
"INTEGER");
443 b.Property<
long?>(
"UserId")
444 .HasColumnType(
"INTEGER");
448 b.HasIndex(
"UserId");
450 b.HasIndex(
"Provider",
"ExternalUserId")
453 b.ToTable(
"OAuthConnections");
456 modelBuilder.Entity(
"Tgstation.Server.Host.Models.PermissionSet", b =>
458 b.Property<
long?>(
"Id")
459 .ValueGeneratedOnAdd()
460 .HasColumnType(
"INTEGER");
462 b.Property<ulong>(
"AdministrationRights")
463 .HasColumnType(
"INTEGER");
465 b.Property<
long?>(
"GroupId")
466 .HasColumnType(
"INTEGER");
468 b.Property<ulong>(
"InstanceManagerRights")
469 .HasColumnType(
"INTEGER");
471 b.Property<
long?>(
"UserId")
472 .HasColumnType(
"INTEGER");
476 b.HasIndex(
"GroupId")
482 b.ToTable(
"PermissionSets");
485 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ReattachInformation", b =>
487 b.Property<
long?>(
"Id")
488 .ValueGeneratedOnAdd()
489 .HasColumnType(
"INTEGER");
491 b.Property<
string>(
"AccessIdentifier")
493 .HasColumnType(
"TEXT");
495 b.Property<
long>(
"CompileJobId")
496 .HasColumnType(
"INTEGER");
498 b.Property<
long?>(
"InitialCompileJobId")
499 .HasColumnType(
"INTEGER");
501 b.Property<
int>(
"LaunchSecurityLevel")
502 .HasColumnType(
"INTEGER");
504 b.Property<
int>(
"LaunchVisibility")
505 .HasColumnType(
"INTEGER");
507 b.Property<ushort>(
"Port")
508 .HasColumnType(
"INTEGER");
510 b.Property<
int>(
"ProcessId")
511 .HasColumnType(
"INTEGER");
513 b.Property<
int>(
"RebootState")
514 .HasColumnType(
"INTEGER");
516 b.Property<ushort?>(
"TopicPort")
517 .HasColumnType(
"INTEGER");
521 b.HasIndex(
"CompileJobId");
523 b.HasIndex(
"InitialCompileJobId");
525 b.ToTable(
"ReattachInformations");
528 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RepositorySettings", b =>
530 b.Property<
long>(
"Id")
531 .ValueGeneratedOnAdd()
532 .HasColumnType(
"INTEGER");
534 b.Property<
string>(
"AccessToken")
536 .HasColumnType(
"TEXT");
538 b.Property<
string>(
"AccessUser")
540 .HasColumnType(
"TEXT");
542 b.Property<
bool?>(
"AutoUpdatesKeepTestMerges")
544 .HasColumnType(
"INTEGER");
546 b.Property<
bool?>(
"AutoUpdatesSynchronize")
548 .HasColumnType(
"INTEGER");
550 b.Property<
string>(
"CommitterEmail")
553 .HasColumnType(
"TEXT");
555 b.Property<
string>(
"CommitterName")
558 .HasColumnType(
"TEXT");
560 b.Property<
bool?>(
"CreateGitHubDeployments")
562 .HasColumnType(
"INTEGER");
564 b.Property<
long>(
"InstanceId")
565 .HasColumnType(
"INTEGER");
567 b.Property<
bool?>(
"PostTestMergeComment")
569 .HasColumnType(
"INTEGER");
571 b.Property<
bool?>(
"PushTestMergeCommits")
573 .HasColumnType(
"INTEGER");
575 b.Property<
bool?>(
"ShowTestMergeCommitters")
577 .HasColumnType(
"INTEGER");
579 b.Property<
bool?>(
"UpdateSubmodules")
581 .HasColumnType(
"INTEGER");
585 b.HasIndex(
"InstanceId")
588 b.ToTable(
"RepositorySettings");
591 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
593 b.Property<
long>(
"Id")
594 .ValueGeneratedOnAdd()
595 .HasColumnType(
"INTEGER");
597 b.Property<
long>(
"RevisionInformationId")
598 .HasColumnType(
"INTEGER");
600 b.Property<
long>(
"TestMergeId")
601 .HasColumnType(
"INTEGER");
605 b.HasIndex(
"RevisionInformationId");
607 b.HasIndex(
"TestMergeId");
609 b.ToTable(
"RevInfoTestMerges");
612 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevisionInformation", b =>
614 b.Property<
long>(
"Id")
615 .ValueGeneratedOnAdd()
616 .HasColumnType(
"INTEGER");
618 b.Property<
string>(
"CommitSha")
621 .HasColumnType(
"TEXT");
623 b.Property<
long>(
"InstanceId")
624 .HasColumnType(
"INTEGER");
626 b.Property<
string>(
"OriginCommitSha")
629 .HasColumnType(
"TEXT");
631 b.Property<DateTimeOffset>(
"Timestamp")
632 .HasColumnType(
"TEXT");
636 b.HasIndex(
"InstanceId",
"CommitSha")
639 b.ToTable(
"RevisionInformations");
642 modelBuilder.Entity(
"Tgstation.Server.Host.Models.TestMerge", b =>
644 b.Property<
long>(
"Id")
645 .ValueGeneratedOnAdd()
646 .HasColumnType(
"INTEGER");
648 b.Property<
string>(
"Author")
650 .HasColumnType(
"TEXT");
652 b.Property<
string>(
"BodyAtMerge")
654 .HasColumnType(
"TEXT");
656 b.Property<
string>(
"Comment")
658 .HasColumnType(
"TEXT");
660 b.Property<DateTimeOffset>(
"MergedAt")
661 .HasColumnType(
"TEXT");
663 b.Property<
long>(
"MergedById")
664 .HasColumnType(
"INTEGER");
666 b.Property<
int>(
"Number")
667 .HasColumnType(
"INTEGER");
669 b.Property<
long?>(
"PrimaryRevisionInformationId")
671 .HasColumnType(
"INTEGER");
673 b.Property<
string>(
"TargetCommitSha")
676 .HasColumnType(
"TEXT");
678 b.Property<
string>(
"TitleAtMerge")
680 .HasColumnType(
"TEXT");
682 b.Property<
string>(
"Url")
684 .HasColumnType(
"TEXT");
688 b.HasIndex(
"MergedById");
690 b.HasIndex(
"PrimaryRevisionInformationId")
693 b.ToTable(
"TestMerges");
696 modelBuilder.Entity(
"Tgstation.Server.Host.Models.User", b =>
698 b.Property<
long?>(
"Id")
699 .ValueGeneratedOnAdd()
700 .HasColumnType(
"INTEGER");
702 b.Property<
string>(
"CanonicalName")
705 .HasColumnType(
"TEXT");
707 b.Property<DateTimeOffset?>(
"CreatedAt")
709 .HasColumnType(
"TEXT");
711 b.Property<
long?>(
"CreatedById")
712 .HasColumnType(
"INTEGER");
714 b.Property<
bool?>(
"Enabled")
716 .HasColumnType(
"INTEGER");
718 b.Property<
long?>(
"GroupId")
719 .HasColumnType(
"INTEGER");
721 b.Property<DateTimeOffset?>(
"LastPasswordUpdate")
722 .HasColumnType(
"TEXT");
724 b.Property<
string>(
"Name")
727 .HasColumnType(
"TEXT");
729 b.Property<
string>(
"PasswordHash")
730 .HasColumnType(
"TEXT");
732 b.Property<
string>(
"SystemIdentifier")
734 .HasColumnType(
"TEXT");
738 b.HasIndex(
"CanonicalName")
741 b.HasIndex(
"CreatedById");
743 b.HasIndex(
"GroupId");
745 b.HasIndex(
"SystemIdentifier")
751 modelBuilder.Entity(
"Tgstation.Server.Host.Models.UserGroup", b =>
753 b.Property<
long?>(
"Id")
754 .ValueGeneratedOnAdd()
755 .HasColumnType(
"INTEGER");
757 b.Property<
string>(
"Name")
760 .HasColumnType(
"TEXT");
770 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatBot", b =>
772 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
773 .WithMany(
"ChatSettings")
774 .HasForeignKey(
"InstanceId")
775 .OnDelete(DeleteBehavior.Cascade)
778 b.Navigation(
"Instance");
781 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatChannel", b =>
783 b.HasOne(
"Tgstation.Server.Host.Models.ChatBot",
"ChatSettings")
784 .WithMany(
"Channels")
785 .HasForeignKey(
"ChatSettingsId")
786 .OnDelete(DeleteBehavior.Cascade)
789 b.Navigation(
"ChatSettings");
792 modelBuilder.Entity(
"Tgstation.Server.Host.Models.CompileJob", b =>
794 b.HasOne(
"Tgstation.Server.Host.Models.Job",
"Job")
796 .HasForeignKey(
"Tgstation.Server.Host.Models.CompileJob",
"JobId")
797 .OnDelete(DeleteBehavior.Cascade)
800 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"RevisionInformation")
801 .WithMany(
"CompileJobs")
802 .HasForeignKey(
"RevisionInformationId")
803 .OnDelete(DeleteBehavior.ClientNoAction)
808 b.Navigation(
"RevisionInformation");
811 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamDaemonSettings", b =>
813 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
814 .WithOne(
"DreamDaemonSettings")
815 .HasForeignKey(
"Tgstation.Server.Host.Models.DreamDaemonSettings",
"InstanceId")
816 .OnDelete(DeleteBehavior.Cascade)
819 b.Navigation(
"Instance");
822 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamMakerSettings", b =>
824 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
825 .WithOne(
"DreamMakerSettings")
826 .HasForeignKey(
"Tgstation.Server.Host.Models.DreamMakerSettings",
"InstanceId")
827 .OnDelete(DeleteBehavior.Cascade)
830 b.Navigation(
"Instance");
833 modelBuilder.Entity(
"Tgstation.Server.Host.Models.InstancePermissionSet", b =>
835 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
836 .WithMany(
"InstancePermissionSets")
837 .HasForeignKey(
"InstanceId")
838 .OnDelete(DeleteBehavior.Cascade)
841 b.HasOne(
"Tgstation.Server.Host.Models.PermissionSet",
"PermissionSet")
842 .WithMany(
"InstancePermissionSets")
843 .HasForeignKey(
"PermissionSetId")
844 .OnDelete(DeleteBehavior.Cascade)
847 b.Navigation(
"Instance");
849 b.Navigation(
"PermissionSet");
852 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Job", b =>
854 b.HasOne(
"Tgstation.Server.Host.Models.User",
"CancelledBy")
856 .HasForeignKey(
"CancelledById");
858 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
860 .HasForeignKey(
"InstanceId")
861 .OnDelete(DeleteBehavior.Cascade)
864 b.HasOne(
"Tgstation.Server.Host.Models.User",
"StartedBy")
866 .HasForeignKey(
"StartedById")
867 .OnDelete(DeleteBehavior.Cascade)
870 b.Navigation(
"CancelledBy");
872 b.Navigation(
"Instance");
874 b.Navigation(
"StartedBy");
877 modelBuilder.Entity(
"Tgstation.Server.Host.Models.OAuthConnection", b =>
879 b.HasOne(
"Tgstation.Server.Host.Models.User",
"User")
880 .WithMany(
"OAuthConnections")
881 .HasForeignKey(
"UserId")
882 .OnDelete(DeleteBehavior.Cascade);
884 b.Navigation(
"User");
887 modelBuilder.Entity(
"Tgstation.Server.Host.Models.PermissionSet", b =>
889 b.HasOne(
"Tgstation.Server.Host.Models.UserGroup",
"Group")
890 .WithOne(
"PermissionSet")
891 .HasForeignKey(
"Tgstation.Server.Host.Models.PermissionSet",
"GroupId")
892 .OnDelete(DeleteBehavior.Cascade);
894 b.HasOne(
"Tgstation.Server.Host.Models.User",
"User")
895 .WithOne(
"PermissionSet")
896 .HasForeignKey(
"Tgstation.Server.Host.Models.PermissionSet",
"UserId")
897 .OnDelete(DeleteBehavior.Cascade);
899 b.Navigation(
"Group");
901 b.Navigation(
"User");
904 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ReattachInformation", b =>
906 b.HasOne(
"Tgstation.Server.Host.Models.CompileJob",
"CompileJob")
908 .HasForeignKey(
"CompileJobId")
909 .OnDelete(DeleteBehavior.Cascade)
912 b.HasOne(
"Tgstation.Server.Host.Models.CompileJob",
"InitialCompileJob")
914 .HasForeignKey(
"InitialCompileJobId");
916 b.Navigation(
"CompileJob");
918 b.Navigation(
"InitialCompileJob");
921 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RepositorySettings", b =>
923 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
924 .WithOne(
"RepositorySettings")
925 .HasForeignKey(
"Tgstation.Server.Host.Models.RepositorySettings",
"InstanceId")
926 .OnDelete(DeleteBehavior.Cascade)
929 b.Navigation(
"Instance");
932 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
934 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"RevisionInformation")
935 .WithMany(
"ActiveTestMerges")
936 .HasForeignKey(
"RevisionInformationId")
937 .OnDelete(DeleteBehavior.Cascade)
940 b.HasOne(
"Tgstation.Server.Host.Models.TestMerge",
"TestMerge")
941 .WithMany(
"RevisonInformations")
942 .HasForeignKey(
"TestMergeId")
943 .OnDelete(DeleteBehavior.ClientNoAction)
946 b.Navigation(
"RevisionInformation");
948 b.Navigation(
"TestMerge");
951 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevisionInformation", b =>
953 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
954 .WithMany(
"RevisionInformations")
955 .HasForeignKey(
"InstanceId")
956 .OnDelete(DeleteBehavior.Cascade)
959 b.Navigation(
"Instance");
962 modelBuilder.Entity(
"Tgstation.Server.Host.Models.TestMerge", b =>
964 b.HasOne(
"Tgstation.Server.Host.Models.User",
"MergedBy")
965 .WithMany(
"TestMerges")
966 .HasForeignKey(
"MergedById")
967 .OnDelete(DeleteBehavior.Restrict)
970 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"PrimaryRevisionInformation")
971 .WithOne(
"PrimaryTestMerge")
972 .HasForeignKey(
"Tgstation.Server.Host.Models.TestMerge",
"PrimaryRevisionInformationId")
973 .OnDelete(DeleteBehavior.Cascade)
976 b.Navigation(
"MergedBy");
978 b.Navigation(
"PrimaryRevisionInformation");
981 modelBuilder.Entity(
"Tgstation.Server.Host.Models.User", b =>
983 b.HasOne(
"Tgstation.Server.Host.Models.User",
"CreatedBy")
984 .WithMany(
"CreatedUsers")
985 .HasForeignKey(
"CreatedById");
987 b.HasOne(
"Tgstation.Server.Host.Models.UserGroup",
"Group")
989 .HasForeignKey(
"GroupId");
991 b.Navigation(
"CreatedBy");
993 b.Navigation(
"Group");
996 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatBot", b =>
998 b.Navigation(
"Channels");
1001 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Instance", b =>
1003 b.Navigation(
"ChatSettings");
1005 b.Navigation(
"DreamDaemonSettings");
1007 b.Navigation(
"DreamMakerSettings");
1009 b.Navigation(
"InstancePermissionSets");
1011 b.Navigation(
"Jobs");
1013 b.Navigation(
"RepositorySettings");
1015 b.Navigation(
"RevisionInformations");
1018 modelBuilder.Entity(
"Tgstation.Server.Host.Models.PermissionSet", b =>
1020 b.Navigation(
"InstancePermissionSets");
1023 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevisionInformation", b =>
1025 b.Navigation(
"ActiveTestMerges");
1027 b.Navigation(
"CompileJobs");
1029 b.Navigation(
"PrimaryTestMerge");
1032 modelBuilder.Entity(
"Tgstation.Server.Host.Models.TestMerge", b =>
1034 b.Navigation(
"RevisonInformations");
1037 modelBuilder.Entity(
"Tgstation.Server.Host.Models.User", b =>
1039 b.Navigation(
"CreatedUsers");
1041 b.Navigation(
"OAuthConnections");
1043 b.Navigation(
"PermissionSet");
1045 b.Navigation(
"TestMerges");
1048 modelBuilder.Entity(
"Tgstation.Server.Host.Models.UserGroup", b =>
1050 b.Navigation(
"PermissionSet")
1053 b.Navigation(
"Users");
1055#pragma warning restore 612, 618