17#pragma warning disable 612, 618
18 modelBuilder.HasAnnotation(
"ProductVersion",
"8.0.0");
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<
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>(
"ChatBotRights")
321 .HasColumnType(
"INTEGER");
323 b.Property<ulong>(
"ConfigurationRights")
324 .HasColumnType(
"INTEGER");
326 b.Property<ulong>(
"DreamDaemonRights")
327 .HasColumnType(
"INTEGER");
329 b.Property<ulong>(
"DreamMakerRights")
330 .HasColumnType(
"INTEGER");
332 b.Property<ulong>(
"EngineRights")
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<
byte>(
"JobCode")
390 .HasColumnType(
"INTEGER");
392 b.Property<DateTimeOffset?>(
"StartedAt")
394 .HasColumnType(
"TEXT");
396 b.Property<
long>(
"StartedById")
397 .HasColumnType(
"INTEGER");
399 b.Property<DateTimeOffset?>(
"StoppedAt")
400 .HasColumnType(
"TEXT");
404 b.HasIndex(
"CancelledById");
406 b.HasIndex(
"InstanceId");
408 b.HasIndex(
"StartedById");
413 modelBuilder.Entity(
"Tgstation.Server.Host.Models.OAuthConnection", b =>
415 b.Property<
long>(
"Id")
416 .ValueGeneratedOnAdd()
417 .HasColumnType(
"INTEGER");
419 b.Property<
string>(
"ExternalUserId")
422 .HasColumnType(
"TEXT");
424 b.Property<
int>(
"Provider")
425 .HasColumnType(
"INTEGER");
427 b.Property<
long?>(
"UserId")
428 .HasColumnType(
"INTEGER");
432 b.HasIndex(
"UserId");
434 b.HasIndex(
"Provider",
"ExternalUserId")
437 b.ToTable(
"OAuthConnections");
440 modelBuilder.Entity(
"Tgstation.Server.Host.Models.PermissionSet", b =>
442 b.Property<
long?>(
"Id")
443 .ValueGeneratedOnAdd()
444 .HasColumnType(
"INTEGER");
446 b.Property<ulong>(
"AdministrationRights")
447 .HasColumnType(
"INTEGER");
449 b.Property<
long?>(
"GroupId")
450 .HasColumnType(
"INTEGER");
452 b.Property<ulong>(
"InstanceManagerRights")
453 .HasColumnType(
"INTEGER");
455 b.Property<
long?>(
"UserId")
456 .HasColumnType(
"INTEGER");
460 b.HasIndex(
"GroupId")
466 b.ToTable(
"PermissionSets");
469 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ReattachInformation", b =>
471 b.Property<
long?>(
"Id")
472 .ValueGeneratedOnAdd()
473 .HasColumnType(
"INTEGER");
475 b.Property<
string>(
"AccessIdentifier")
477 .HasColumnType(
"TEXT");
479 b.Property<
long>(
"CompileJobId")
480 .HasColumnType(
"INTEGER");
482 b.Property<
long?>(
"InitialCompileJobId")
483 .HasColumnType(
"INTEGER");
485 b.Property<
int>(
"LaunchSecurityLevel")
486 .HasColumnType(
"INTEGER");
488 b.Property<
int>(
"LaunchVisibility")
489 .HasColumnType(
"INTEGER");
491 b.Property<ushort>(
"Port")
492 .HasColumnType(
"INTEGER");
494 b.Property<
int>(
"ProcessId")
495 .HasColumnType(
"INTEGER");
497 b.Property<
int>(
"RebootState")
498 .HasColumnType(
"INTEGER");
500 b.Property<ushort?>(
"TopicPort")
501 .HasColumnType(
"INTEGER");
505 b.HasIndex(
"CompileJobId");
507 b.HasIndex(
"InitialCompileJobId");
509 b.ToTable(
"ReattachInformations");
512 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RepositorySettings", b =>
514 b.Property<
long>(
"Id")
515 .ValueGeneratedOnAdd()
516 .HasColumnType(
"INTEGER");
518 b.Property<
string>(
"AccessToken")
520 .HasColumnType(
"TEXT");
522 b.Property<
string>(
"AccessUser")
524 .HasColumnType(
"TEXT");
526 b.Property<
bool?>(
"AutoUpdatesKeepTestMerges")
528 .HasColumnType(
"INTEGER");
530 b.Property<
bool?>(
"AutoUpdatesSynchronize")
532 .HasColumnType(
"INTEGER");
534 b.Property<
string>(
"CommitterEmail")
537 .HasColumnType(
"TEXT");
539 b.Property<
string>(
"CommitterName")
542 .HasColumnType(
"TEXT");
544 b.Property<
bool?>(
"CreateGitHubDeployments")
546 .HasColumnType(
"INTEGER");
548 b.Property<
long>(
"InstanceId")
549 .HasColumnType(
"INTEGER");
551 b.Property<
bool?>(
"PostTestMergeComment")
553 .HasColumnType(
"INTEGER");
555 b.Property<
bool?>(
"PushTestMergeCommits")
557 .HasColumnType(
"INTEGER");
559 b.Property<
bool?>(
"ShowTestMergeCommitters")
561 .HasColumnType(
"INTEGER");
563 b.Property<
bool?>(
"UpdateSubmodules")
565 .HasColumnType(
"INTEGER");
569 b.HasIndex(
"InstanceId")
572 b.ToTable(
"RepositorySettings");
575 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
577 b.Property<
long>(
"Id")
578 .ValueGeneratedOnAdd()
579 .HasColumnType(
"INTEGER");
581 b.Property<
long>(
"RevisionInformationId")
582 .HasColumnType(
"INTEGER");
584 b.Property<
long>(
"TestMergeId")
585 .HasColumnType(
"INTEGER");
589 b.HasIndex(
"RevisionInformationId");
591 b.HasIndex(
"TestMergeId");
593 b.ToTable(
"RevInfoTestMerges");
596 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevisionInformation", b =>
598 b.Property<
long>(
"Id")
599 .ValueGeneratedOnAdd()
600 .HasColumnType(
"INTEGER");
602 b.Property<
string>(
"CommitSha")
605 .HasColumnType(
"TEXT");
607 b.Property<
long>(
"InstanceId")
608 .HasColumnType(
"INTEGER");
610 b.Property<
string>(
"OriginCommitSha")
613 .HasColumnType(
"TEXT");
615 b.Property<DateTimeOffset>(
"Timestamp")
616 .HasColumnType(
"TEXT");
620 b.HasIndex(
"InstanceId",
"CommitSha")
623 b.ToTable(
"RevisionInformations");
626 modelBuilder.Entity(
"Tgstation.Server.Host.Models.TestMerge", b =>
628 b.Property<
long>(
"Id")
629 .ValueGeneratedOnAdd()
630 .HasColumnType(
"INTEGER");
632 b.Property<
string>(
"Author")
634 .HasColumnType(
"TEXT");
636 b.Property<
string>(
"BodyAtMerge")
638 .HasColumnType(
"TEXT");
640 b.Property<
string>(
"Comment")
642 .HasColumnType(
"TEXT");
644 b.Property<DateTimeOffset>(
"MergedAt")
645 .HasColumnType(
"TEXT");
647 b.Property<
long>(
"MergedById")
648 .HasColumnType(
"INTEGER");
650 b.Property<
int>(
"Number")
651 .HasColumnType(
"INTEGER");
653 b.Property<
long?>(
"PrimaryRevisionInformationId")
655 .HasColumnType(
"INTEGER");
657 b.Property<
string>(
"TargetCommitSha")
660 .HasColumnType(
"TEXT");
662 b.Property<
string>(
"TitleAtMerge")
664 .HasColumnType(
"TEXT");
666 b.Property<
string>(
"Url")
668 .HasColumnType(
"TEXT");
672 b.HasIndex(
"MergedById");
674 b.HasIndex(
"PrimaryRevisionInformationId")
677 b.ToTable(
"TestMerges");
680 modelBuilder.Entity(
"Tgstation.Server.Host.Models.User", b =>
682 b.Property<
long?>(
"Id")
683 .ValueGeneratedOnAdd()
684 .HasColumnType(
"INTEGER");
686 b.Property<
string>(
"CanonicalName")
689 .HasColumnType(
"TEXT");
691 b.Property<DateTimeOffset?>(
"CreatedAt")
693 .HasColumnType(
"TEXT");
695 b.Property<
long?>(
"CreatedById")
696 .HasColumnType(
"INTEGER");
698 b.Property<
bool?>(
"Enabled")
700 .HasColumnType(
"INTEGER");
702 b.Property<
long?>(
"GroupId")
703 .HasColumnType(
"INTEGER");
705 b.Property<DateTimeOffset?>(
"LastPasswordUpdate")
706 .HasColumnType(
"TEXT");
708 b.Property<
string>(
"Name")
711 .HasColumnType(
"TEXT");
713 b.Property<
string>(
"PasswordHash")
714 .HasColumnType(
"TEXT");
716 b.Property<
string>(
"SystemIdentifier")
718 .HasColumnType(
"TEXT");
722 b.HasIndex(
"CanonicalName")
725 b.HasIndex(
"CreatedById");
727 b.HasIndex(
"GroupId");
729 b.HasIndex(
"SystemIdentifier")
735 modelBuilder.Entity(
"Tgstation.Server.Host.Models.UserGroup", b =>
737 b.Property<
long?>(
"Id")
738 .ValueGeneratedOnAdd()
739 .HasColumnType(
"INTEGER");
741 b.Property<
string>(
"Name")
744 .HasColumnType(
"TEXT");
754 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatBot", b =>
756 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
757 .WithMany(
"ChatSettings")
758 .HasForeignKey(
"InstanceId")
759 .OnDelete(DeleteBehavior.Cascade)
762 b.Navigation(
"Instance");
765 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatChannel", b =>
767 b.HasOne(
"Tgstation.Server.Host.Models.ChatBot",
"ChatSettings")
768 .WithMany(
"Channels")
769 .HasForeignKey(
"ChatSettingsId")
770 .OnDelete(DeleteBehavior.Cascade)
773 b.Navigation(
"ChatSettings");
776 modelBuilder.Entity(
"Tgstation.Server.Host.Models.CompileJob", b =>
778 b.HasOne(
"Tgstation.Server.Host.Models.Job",
"Job")
780 .HasForeignKey(
"Tgstation.Server.Host.Models.CompileJob",
"JobId")
781 .OnDelete(DeleteBehavior.Cascade)
784 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"RevisionInformation")
785 .WithMany(
"CompileJobs")
786 .HasForeignKey(
"RevisionInformationId")
787 .OnDelete(DeleteBehavior.ClientNoAction)
792 b.Navigation(
"RevisionInformation");
795 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamDaemonSettings", b =>
797 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
798 .WithOne(
"DreamDaemonSettings")
799 .HasForeignKey(
"Tgstation.Server.Host.Models.DreamDaemonSettings",
"InstanceId")
800 .OnDelete(DeleteBehavior.Cascade)
803 b.Navigation(
"Instance");
806 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamMakerSettings", b =>
808 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
809 .WithOne(
"DreamMakerSettings")
810 .HasForeignKey(
"Tgstation.Server.Host.Models.DreamMakerSettings",
"InstanceId")
811 .OnDelete(DeleteBehavior.Cascade)
814 b.Navigation(
"Instance");
817 modelBuilder.Entity(
"Tgstation.Server.Host.Models.InstancePermissionSet", b =>
819 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
820 .WithMany(
"InstancePermissionSets")
821 .HasForeignKey(
"InstanceId")
822 .OnDelete(DeleteBehavior.Cascade)
825 b.HasOne(
"Tgstation.Server.Host.Models.PermissionSet",
"PermissionSet")
826 .WithMany(
"InstancePermissionSets")
827 .HasForeignKey(
"PermissionSetId")
828 .OnDelete(DeleteBehavior.Cascade)
831 b.Navigation(
"Instance");
833 b.Navigation(
"PermissionSet");
836 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Job", b =>
838 b.HasOne(
"Tgstation.Server.Host.Models.User",
"CancelledBy")
840 .HasForeignKey(
"CancelledById");
842 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
844 .HasForeignKey(
"InstanceId")
845 .OnDelete(DeleteBehavior.Cascade)
848 b.HasOne(
"Tgstation.Server.Host.Models.User",
"StartedBy")
850 .HasForeignKey(
"StartedById")
851 .OnDelete(DeleteBehavior.Cascade)
854 b.Navigation(
"CancelledBy");
856 b.Navigation(
"Instance");
858 b.Navigation(
"StartedBy");
861 modelBuilder.Entity(
"Tgstation.Server.Host.Models.OAuthConnection", b =>
863 b.HasOne(
"Tgstation.Server.Host.Models.User",
"User")
864 .WithMany(
"OAuthConnections")
865 .HasForeignKey(
"UserId")
866 .OnDelete(DeleteBehavior.Cascade);
868 b.Navigation(
"User");
871 modelBuilder.Entity(
"Tgstation.Server.Host.Models.PermissionSet", b =>
873 b.HasOne(
"Tgstation.Server.Host.Models.UserGroup",
"Group")
874 .WithOne(
"PermissionSet")
875 .HasForeignKey(
"Tgstation.Server.Host.Models.PermissionSet",
"GroupId")
876 .OnDelete(DeleteBehavior.Cascade);
878 b.HasOne(
"Tgstation.Server.Host.Models.User",
"User")
879 .WithOne(
"PermissionSet")
880 .HasForeignKey(
"Tgstation.Server.Host.Models.PermissionSet",
"UserId")
881 .OnDelete(DeleteBehavior.Cascade);
883 b.Navigation(
"Group");
885 b.Navigation(
"User");
888 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ReattachInformation", b =>
890 b.HasOne(
"Tgstation.Server.Host.Models.CompileJob",
"CompileJob")
892 .HasForeignKey(
"CompileJobId")
893 .OnDelete(DeleteBehavior.Cascade)
896 b.HasOne(
"Tgstation.Server.Host.Models.CompileJob",
"InitialCompileJob")
898 .HasForeignKey(
"InitialCompileJobId");
900 b.Navigation(
"CompileJob");
902 b.Navigation(
"InitialCompileJob");
905 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RepositorySettings", b =>
907 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
908 .WithOne(
"RepositorySettings")
909 .HasForeignKey(
"Tgstation.Server.Host.Models.RepositorySettings",
"InstanceId")
910 .OnDelete(DeleteBehavior.Cascade)
913 b.Navigation(
"Instance");
916 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
918 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"RevisionInformation")
919 .WithMany(
"ActiveTestMerges")
920 .HasForeignKey(
"RevisionInformationId")
921 .OnDelete(DeleteBehavior.Cascade)
924 b.HasOne(
"Tgstation.Server.Host.Models.TestMerge",
"TestMerge")
925 .WithMany(
"RevisonInformations")
926 .HasForeignKey(
"TestMergeId")
927 .OnDelete(DeleteBehavior.ClientNoAction)
930 b.Navigation(
"RevisionInformation");
932 b.Navigation(
"TestMerge");
935 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevisionInformation", b =>
937 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
938 .WithMany(
"RevisionInformations")
939 .HasForeignKey(
"InstanceId")
940 .OnDelete(DeleteBehavior.Cascade)
943 b.Navigation(
"Instance");
946 modelBuilder.Entity(
"Tgstation.Server.Host.Models.TestMerge", b =>
948 b.HasOne(
"Tgstation.Server.Host.Models.User",
"MergedBy")
949 .WithMany(
"TestMerges")
950 .HasForeignKey(
"MergedById")
951 .OnDelete(DeleteBehavior.Restrict)
954 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"PrimaryRevisionInformation")
955 .WithOne(
"PrimaryTestMerge")
956 .HasForeignKey(
"Tgstation.Server.Host.Models.TestMerge",
"PrimaryRevisionInformationId")
957 .OnDelete(DeleteBehavior.Cascade)
960 b.Navigation(
"MergedBy");
962 b.Navigation(
"PrimaryRevisionInformation");
965 modelBuilder.Entity(
"Tgstation.Server.Host.Models.User", b =>
967 b.HasOne(
"Tgstation.Server.Host.Models.User",
"CreatedBy")
968 .WithMany(
"CreatedUsers")
969 .HasForeignKey(
"CreatedById");
971 b.HasOne(
"Tgstation.Server.Host.Models.UserGroup",
"Group")
973 .HasForeignKey(
"GroupId");
975 b.Navigation(
"CreatedBy");
977 b.Navigation(
"Group");
980 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatBot", b =>
982 b.Navigation(
"Channels");
985 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Instance", b =>
987 b.Navigation(
"ChatSettings");
989 b.Navigation(
"DreamDaemonSettings");
991 b.Navigation(
"DreamMakerSettings");
993 b.Navigation(
"InstancePermissionSets");
995 b.Navigation(
"Jobs");
997 b.Navigation(
"RepositorySettings");
999 b.Navigation(
"RevisionInformations");
1002 modelBuilder.Entity(
"Tgstation.Server.Host.Models.PermissionSet", b =>
1004 b.Navigation(
"InstancePermissionSets");
1007 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevisionInformation", b =>
1009 b.Navigation(
"ActiveTestMerges");
1011 b.Navigation(
"CompileJobs");
1013 b.Navigation(
"PrimaryTestMerge");
1016 modelBuilder.Entity(
"Tgstation.Server.Host.Models.TestMerge", b =>
1018 b.Navigation(
"RevisonInformations");
1021 modelBuilder.Entity(
"Tgstation.Server.Host.Models.User", b =>
1023 b.Navigation(
"CreatedUsers");
1025 b.Navigation(
"OAuthConnections");
1027 b.Navigation(
"PermissionSet");
1029 b.Navigation(
"TestMerges");
1032 modelBuilder.Entity(
"Tgstation.Server.Host.Models.UserGroup", b =>
1034 b.Navigation(
"PermissionSet")
1037 b.Navigation(
"Users");
1039#pragma warning restore 612, 618