17#pragma warning disable 612, 618
18 modelBuilder.HasAnnotation(
"ProductVersion",
"8.0.0-rc.1.23419.6");
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")
117 .HasColumnName(
"EngineVersion");
119 b.Property<
int?>(
"DMApiMajorVersion")
120 .HasColumnType(
"INTEGER");
122 b.Property<
int?>(
"DMApiMinorVersion")
123 .HasColumnType(
"INTEGER");
125 b.Property<
int?>(
"DMApiPatchVersion")
126 .HasColumnType(
"INTEGER");
128 b.Property<Guid?>(
"DirectoryName")
130 .HasColumnType(
"TEXT");
132 b.Property<
string>(
"DmeName")
134 .HasColumnType(
"TEXT");
136 b.Property<
int?>(
"GitHubDeploymentId")
137 .HasColumnType(
"INTEGER");
139 b.Property<
long?>(
"GitHubRepoId")
140 .HasColumnType(
"INTEGER");
142 b.Property<
long>(
"JobId")
143 .HasColumnType(
"INTEGER");
145 b.Property<
int?>(
"MinimumSecurityLevel")
146 .HasColumnType(
"INTEGER");
148 b.Property<
string>(
"Output")
150 .HasColumnType(
"TEXT");
152 b.Property<
string>(
"RepositoryOrigin")
153 .HasColumnType(
"TEXT");
155 b.Property<
long>(
"RevisionInformationId")
156 .HasColumnType(
"INTEGER");
160 b.HasIndex(
"DirectoryName");
165 b.HasIndex(
"RevisionInformationId");
167 b.ToTable(
"CompileJobs");
170 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamDaemonSettings", b =>
172 b.Property<
long>(
"Id")
173 .ValueGeneratedOnAdd()
174 .HasColumnType(
"INTEGER");
176 b.Property<
string>(
"AdditionalParameters")
179 .HasColumnType(
"TEXT");
181 b.Property<
bool?>(
"AllowWebClient")
183 .HasColumnType(
"INTEGER");
185 b.Property<
bool?>(
"AutoStart")
187 .HasColumnType(
"INTEGER");
189 b.Property<
bool?>(
"DumpOnHealthCheckRestart")
191 .HasColumnType(
"INTEGER");
193 b.Property<uint?>(
"HealthCheckSeconds")
195 .HasColumnType(
"INTEGER");
197 b.Property<
long>(
"InstanceId")
198 .HasColumnType(
"INTEGER");
200 b.Property<
bool?>(
"LogOutput")
202 .HasColumnType(
"INTEGER");
204 b.Property<uint?>(
"MapThreads")
206 .HasColumnType(
"INTEGER");
208 b.Property<ushort?>(
"Port")
210 .HasColumnType(
"INTEGER");
212 b.Property<
int>(
"SecurityLevel")
213 .HasColumnType(
"INTEGER");
215 b.Property<
bool?>(
"StartProfiler")
217 .HasColumnType(
"INTEGER");
219 b.Property<uint?>(
"StartupTimeout")
221 .HasColumnType(
"INTEGER");
223 b.Property<uint?>(
"TopicRequestTimeout")
225 .HasColumnType(
"INTEGER");
227 b.Property<
int>(
"Visibility")
228 .HasColumnType(
"INTEGER");
232 b.HasIndex(
"InstanceId")
235 b.ToTable(
"DreamDaemonSettings");
238 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamMakerSettings", b =>
240 b.Property<
long>(
"Id")
241 .ValueGeneratedOnAdd()
242 .HasColumnType(
"INTEGER");
244 b.Property<ushort?>(
"ApiValidationPort")
246 .HasColumnType(
"INTEGER");
248 b.Property<
int>(
"ApiValidationSecurityLevel")
249 .HasColumnType(
"INTEGER");
251 b.Property<
long>(
"InstanceId")
252 .HasColumnType(
"INTEGER");
254 b.Property<
string>(
"ProjectName")
256 .HasColumnType(
"TEXT");
258 b.Property<
bool?>(
"RequireDMApiValidation")
260 .HasColumnType(
"INTEGER");
262 b.Property<TimeSpan?>(
"Timeout")
264 .HasColumnType(
"TEXT");
268 b.HasIndex(
"InstanceId")
271 b.ToTable(
"DreamMakerSettings");
274 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Instance", b =>
276 b.Property<
long?>(
"Id")
277 .ValueGeneratedOnAdd()
278 .HasColumnType(
"INTEGER");
280 b.Property<uint?>(
"AutoUpdateInterval")
282 .HasColumnType(
"INTEGER");
284 b.Property<ushort?>(
"ChatBotLimit")
286 .HasColumnType(
"INTEGER");
288 b.Property<
int>(
"ConfigurationType")
289 .HasColumnType(
"INTEGER");
291 b.Property<
string>(
"Name")
294 .HasColumnType(
"TEXT");
296 b.Property<
bool?>(
"Online")
298 .HasColumnType(
"INTEGER");
300 b.Property<
string>(
"Path")
302 .HasColumnType(
"TEXT");
304 b.Property<
string>(
"SwarmIdentifer")
305 .HasColumnType(
"TEXT");
309 b.HasIndex(
"Path",
"SwarmIdentifer")
312 b.ToTable(
"Instances");
315 modelBuilder.Entity(
"Tgstation.Server.Host.Models.InstancePermissionSet", b =>
317 b.Property<
long>(
"Id")
318 .ValueGeneratedOnAdd()
319 .HasColumnType(
"INTEGER");
321 b.Property<ulong>(
"ChatBotRights")
322 .HasColumnType(
"INTEGER");
324 b.Property<ulong>(
"ConfigurationRights")
325 .HasColumnType(
"INTEGER");
327 b.Property<ulong>(
"DreamDaemonRights")
328 .HasColumnType(
"INTEGER");
330 b.Property<ulong>(
"DreamMakerRights")
331 .HasColumnType(
"INTEGER");
333 b.Property<ulong>(
"EngineRights")
334 .HasColumnType(
"INTEGER");
336 b.Property<
long>(
"InstanceId")
337 .HasColumnType(
"INTEGER");
339 b.Property<ulong>(
"InstancePermissionSetRights")
340 .HasColumnType(
"INTEGER");
342 b.Property<
long>(
"PermissionSetId")
343 .HasColumnType(
"INTEGER");
345 b.Property<ulong>(
"RepositoryRights")
346 .HasColumnType(
"INTEGER");
350 b.HasIndex(
"InstanceId");
352 b.HasIndex(
"PermissionSetId",
"InstanceId")
355 b.ToTable(
"InstancePermissionSets");
358 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Job", b =>
360 b.Property<
long?>(
"Id")
361 .ValueGeneratedOnAdd()
362 .HasColumnType(
"INTEGER");
364 b.Property<ulong?>(
"CancelRight")
365 .HasColumnType(
"INTEGER");
367 b.Property<ulong?>(
"CancelRightsType")
368 .HasColumnType(
"INTEGER");
370 b.Property<
bool?>(
"Cancelled")
372 .HasColumnType(
"INTEGER");
374 b.Property<
long?>(
"CancelledById")
375 .HasColumnType(
"INTEGER");
377 b.Property<
string>(
"Description")
379 .HasColumnType(
"TEXT");
381 b.Property<uint?>(
"ErrorCode")
382 .HasColumnType(
"INTEGER");
384 b.Property<
string>(
"ExceptionDetails")
385 .HasColumnType(
"TEXT");
387 b.Property<
long>(
"InstanceId")
388 .HasColumnType(
"INTEGER");
390 b.Property<
byte>(
"JobCode")
391 .HasColumnType(
"INTEGER");
393 b.Property<DateTimeOffset?>(
"StartedAt")
395 .HasColumnType(
"TEXT");
397 b.Property<
long>(
"StartedById")
398 .HasColumnType(
"INTEGER");
400 b.Property<DateTimeOffset?>(
"StoppedAt")
401 .HasColumnType(
"TEXT");
405 b.HasIndex(
"CancelledById");
407 b.HasIndex(
"InstanceId");
409 b.HasIndex(
"StartedById");
414 modelBuilder.Entity(
"Tgstation.Server.Host.Models.OAuthConnection", b =>
416 b.Property<
long>(
"Id")
417 .ValueGeneratedOnAdd()
418 .HasColumnType(
"INTEGER");
420 b.Property<
string>(
"ExternalUserId")
423 .HasColumnType(
"TEXT");
425 b.Property<
int>(
"Provider")
426 .HasColumnType(
"INTEGER");
428 b.Property<
long?>(
"UserId")
429 .HasColumnType(
"INTEGER");
433 b.HasIndex(
"UserId");
435 b.HasIndex(
"Provider",
"ExternalUserId")
438 b.ToTable(
"OAuthConnections");
441 modelBuilder.Entity(
"Tgstation.Server.Host.Models.PermissionSet", b =>
443 b.Property<
long?>(
"Id")
444 .ValueGeneratedOnAdd()
445 .HasColumnType(
"INTEGER");
447 b.Property<ulong>(
"AdministrationRights")
448 .HasColumnType(
"INTEGER");
450 b.Property<
long?>(
"GroupId")
451 .HasColumnType(
"INTEGER");
453 b.Property<ulong>(
"InstanceManagerRights")
454 .HasColumnType(
"INTEGER");
456 b.Property<
long?>(
"UserId")
457 .HasColumnType(
"INTEGER");
461 b.HasIndex(
"GroupId")
467 b.ToTable(
"PermissionSets");
470 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ReattachInformation", b =>
472 b.Property<
long>(
"Id")
473 .ValueGeneratedOnAdd()
474 .HasColumnType(
"INTEGER");
476 b.Property<
string>(
"AccessIdentifier")
478 .HasColumnType(
"TEXT");
480 b.Property<
long>(
"CompileJobId")
481 .HasColumnType(
"INTEGER");
483 b.Property<
long?>(
"InitialCompileJobId")
484 .HasColumnType(
"INTEGER");
486 b.Property<
int>(
"LaunchSecurityLevel")
487 .HasColumnType(
"INTEGER");
489 b.Property<
int>(
"LaunchVisibility")
490 .HasColumnType(
"INTEGER");
492 b.Property<ushort>(
"Port")
493 .HasColumnType(
"INTEGER");
495 b.Property<
int>(
"ProcessId")
496 .HasColumnType(
"INTEGER");
498 b.Property<
int>(
"RebootState")
499 .HasColumnType(
"INTEGER");
503 b.HasIndex(
"CompileJobId");
505 b.HasIndex(
"InitialCompileJobId");
507 b.ToTable(
"ReattachInformations");
510 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RepositorySettings", b =>
512 b.Property<
long>(
"Id")
513 .ValueGeneratedOnAdd()
514 .HasColumnType(
"INTEGER");
516 b.Property<
string>(
"AccessToken")
518 .HasColumnType(
"TEXT");
520 b.Property<
string>(
"AccessUser")
522 .HasColumnType(
"TEXT");
524 b.Property<
bool?>(
"AutoUpdatesKeepTestMerges")
526 .HasColumnType(
"INTEGER");
528 b.Property<
bool?>(
"AutoUpdatesSynchronize")
530 .HasColumnType(
"INTEGER");
532 b.Property<
string>(
"CommitterEmail")
535 .HasColumnType(
"TEXT");
537 b.Property<
string>(
"CommitterName")
540 .HasColumnType(
"TEXT");
542 b.Property<
bool?>(
"CreateGitHubDeployments")
544 .HasColumnType(
"INTEGER");
546 b.Property<
long>(
"InstanceId")
547 .HasColumnType(
"INTEGER");
549 b.Property<
bool?>(
"PostTestMergeComment")
551 .HasColumnType(
"INTEGER");
553 b.Property<
bool?>(
"PushTestMergeCommits")
555 .HasColumnType(
"INTEGER");
557 b.Property<
bool?>(
"ShowTestMergeCommitters")
559 .HasColumnType(
"INTEGER");
561 b.Property<
bool?>(
"UpdateSubmodules")
563 .HasColumnType(
"INTEGER");
567 b.HasIndex(
"InstanceId")
570 b.ToTable(
"RepositorySettings");
573 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
575 b.Property<
long>(
"Id")
576 .ValueGeneratedOnAdd()
577 .HasColumnType(
"INTEGER");
579 b.Property<
long>(
"RevisionInformationId")
580 .HasColumnType(
"INTEGER");
582 b.Property<
long>(
"TestMergeId")
583 .HasColumnType(
"INTEGER");
587 b.HasIndex(
"RevisionInformationId");
589 b.HasIndex(
"TestMergeId");
591 b.ToTable(
"RevInfoTestMerges");
594 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevisionInformation", b =>
596 b.Property<
long>(
"Id")
597 .ValueGeneratedOnAdd()
598 .HasColumnType(
"INTEGER");
600 b.Property<
string>(
"CommitSha")
603 .HasColumnType(
"TEXT");
605 b.Property<
long>(
"InstanceId")
606 .HasColumnType(
"INTEGER");
608 b.Property<
string>(
"OriginCommitSha")
611 .HasColumnType(
"TEXT");
613 b.Property<DateTimeOffset>(
"Timestamp")
614 .HasColumnType(
"TEXT");
618 b.HasIndex(
"InstanceId",
"CommitSha")
621 b.ToTable(
"RevisionInformations");
624 modelBuilder.Entity(
"Tgstation.Server.Host.Models.TestMerge", b =>
626 b.Property<
long>(
"Id")
627 .ValueGeneratedOnAdd()
628 .HasColumnType(
"INTEGER");
630 b.Property<
string>(
"Author")
632 .HasColumnType(
"TEXT");
634 b.Property<
string>(
"BodyAtMerge")
636 .HasColumnType(
"TEXT");
638 b.Property<
string>(
"Comment")
640 .HasColumnType(
"TEXT");
642 b.Property<DateTimeOffset>(
"MergedAt")
643 .HasColumnType(
"TEXT");
645 b.Property<
long>(
"MergedById")
646 .HasColumnType(
"INTEGER");
648 b.Property<
int>(
"Number")
649 .HasColumnType(
"INTEGER");
651 b.Property<
long?>(
"PrimaryRevisionInformationId")
653 .HasColumnType(
"INTEGER");
655 b.Property<
string>(
"TargetCommitSha")
658 .HasColumnType(
"TEXT");
660 b.Property<
string>(
"TitleAtMerge")
662 .HasColumnType(
"TEXT");
664 b.Property<
string>(
"Url")
666 .HasColumnType(
"TEXT");
670 b.HasIndex(
"MergedById");
672 b.HasIndex(
"PrimaryRevisionInformationId")
675 b.ToTable(
"TestMerges");
678 modelBuilder.Entity(
"Tgstation.Server.Host.Models.User", b =>
680 b.Property<
long?>(
"Id")
681 .ValueGeneratedOnAdd()
682 .HasColumnType(
"INTEGER");
684 b.Property<
string>(
"CanonicalName")
687 .HasColumnType(
"TEXT");
689 b.Property<DateTimeOffset?>(
"CreatedAt")
691 .HasColumnType(
"TEXT");
693 b.Property<
long?>(
"CreatedById")
694 .HasColumnType(
"INTEGER");
696 b.Property<
bool?>(
"Enabled")
698 .HasColumnType(
"INTEGER");
700 b.Property<
long?>(
"GroupId")
701 .HasColumnType(
"INTEGER");
703 b.Property<DateTimeOffset?>(
"LastPasswordUpdate")
704 .HasColumnType(
"TEXT");
706 b.Property<
string>(
"Name")
709 .HasColumnType(
"TEXT");
711 b.Property<
string>(
"PasswordHash")
712 .HasColumnType(
"TEXT");
714 b.Property<
string>(
"SystemIdentifier")
716 .HasColumnType(
"TEXT");
720 b.HasIndex(
"CanonicalName")
723 b.HasIndex(
"CreatedById");
725 b.HasIndex(
"GroupId");
727 b.HasIndex(
"SystemIdentifier")
733 modelBuilder.Entity(
"Tgstation.Server.Host.Models.UserGroup", b =>
735 b.Property<
long?>(
"Id")
736 .ValueGeneratedOnAdd()
737 .HasColumnType(
"INTEGER");
739 b.Property<
string>(
"Name")
742 .HasColumnType(
"TEXT");
752 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatBot", b =>
754 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
755 .WithMany(
"ChatSettings")
756 .HasForeignKey(
"InstanceId")
757 .OnDelete(DeleteBehavior.Cascade)
760 b.Navigation(
"Instance");
763 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatChannel", b =>
765 b.HasOne(
"Tgstation.Server.Host.Models.ChatBot",
"ChatSettings")
766 .WithMany(
"Channels")
767 .HasForeignKey(
"ChatSettingsId")
768 .OnDelete(DeleteBehavior.Cascade)
771 b.Navigation(
"ChatSettings");
774 modelBuilder.Entity(
"Tgstation.Server.Host.Models.CompileJob", b =>
776 b.HasOne(
"Tgstation.Server.Host.Models.Job",
"Job")
778 .HasForeignKey(
"Tgstation.Server.Host.Models.CompileJob",
"JobId")
779 .OnDelete(DeleteBehavior.Cascade)
782 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"RevisionInformation")
783 .WithMany(
"CompileJobs")
784 .HasForeignKey(
"RevisionInformationId")
785 .OnDelete(DeleteBehavior.ClientNoAction)
790 b.Navigation(
"RevisionInformation");
793 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamDaemonSettings", b =>
795 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
796 .WithOne(
"DreamDaemonSettings")
797 .HasForeignKey(
"Tgstation.Server.Host.Models.DreamDaemonSettings",
"InstanceId")
798 .OnDelete(DeleteBehavior.Cascade)
801 b.Navigation(
"Instance");
804 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamMakerSettings", b =>
806 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
807 .WithOne(
"DreamMakerSettings")
808 .HasForeignKey(
"Tgstation.Server.Host.Models.DreamMakerSettings",
"InstanceId")
809 .OnDelete(DeleteBehavior.Cascade)
812 b.Navigation(
"Instance");
815 modelBuilder.Entity(
"Tgstation.Server.Host.Models.InstancePermissionSet", b =>
817 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
818 .WithMany(
"InstancePermissionSets")
819 .HasForeignKey(
"InstanceId")
820 .OnDelete(DeleteBehavior.Cascade)
823 b.HasOne(
"Tgstation.Server.Host.Models.PermissionSet",
"PermissionSet")
824 .WithMany(
"InstancePermissionSets")
825 .HasForeignKey(
"PermissionSetId")
826 .OnDelete(DeleteBehavior.Cascade)
829 b.Navigation(
"Instance");
831 b.Navigation(
"PermissionSet");
834 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Job", b =>
836 b.HasOne(
"Tgstation.Server.Host.Models.User",
"CancelledBy")
838 .HasForeignKey(
"CancelledById");
840 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
842 .HasForeignKey(
"InstanceId")
843 .OnDelete(DeleteBehavior.Cascade)
846 b.HasOne(
"Tgstation.Server.Host.Models.User",
"StartedBy")
848 .HasForeignKey(
"StartedById")
849 .OnDelete(DeleteBehavior.Cascade)
852 b.Navigation(
"CancelledBy");
854 b.Navigation(
"Instance");
856 b.Navigation(
"StartedBy");
859 modelBuilder.Entity(
"Tgstation.Server.Host.Models.OAuthConnection", b =>
861 b.HasOne(
"Tgstation.Server.Host.Models.User",
"User")
862 .WithMany(
"OAuthConnections")
863 .HasForeignKey(
"UserId")
864 .OnDelete(DeleteBehavior.Cascade);
866 b.Navigation(
"User");
869 modelBuilder.Entity(
"Tgstation.Server.Host.Models.PermissionSet", b =>
871 b.HasOne(
"Tgstation.Server.Host.Models.UserGroup",
"Group")
872 .WithOne(
"PermissionSet")
873 .HasForeignKey(
"Tgstation.Server.Host.Models.PermissionSet",
"GroupId")
874 .OnDelete(DeleteBehavior.Cascade);
876 b.HasOne(
"Tgstation.Server.Host.Models.User",
"User")
877 .WithOne(
"PermissionSet")
878 .HasForeignKey(
"Tgstation.Server.Host.Models.PermissionSet",
"UserId")
879 .OnDelete(DeleteBehavior.Cascade);
881 b.Navigation(
"Group");
883 b.Navigation(
"User");
886 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ReattachInformation", b =>
888 b.HasOne(
"Tgstation.Server.Host.Models.CompileJob",
"CompileJob")
890 .HasForeignKey(
"CompileJobId")
891 .OnDelete(DeleteBehavior.Cascade)
894 b.HasOne(
"Tgstation.Server.Host.Models.CompileJob",
"InitialCompileJob")
896 .HasForeignKey(
"InitialCompileJobId");
898 b.Navigation(
"CompileJob");
900 b.Navigation(
"InitialCompileJob");
903 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RepositorySettings", b =>
905 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
906 .WithOne(
"RepositorySettings")
907 .HasForeignKey(
"Tgstation.Server.Host.Models.RepositorySettings",
"InstanceId")
908 .OnDelete(DeleteBehavior.Cascade)
911 b.Navigation(
"Instance");
914 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
916 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"RevisionInformation")
917 .WithMany(
"ActiveTestMerges")
918 .HasForeignKey(
"RevisionInformationId")
919 .OnDelete(DeleteBehavior.Cascade)
922 b.HasOne(
"Tgstation.Server.Host.Models.TestMerge",
"TestMerge")
923 .WithMany(
"RevisonInformations")
924 .HasForeignKey(
"TestMergeId")
925 .OnDelete(DeleteBehavior.ClientNoAction)
928 b.Navigation(
"RevisionInformation");
930 b.Navigation(
"TestMerge");
933 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevisionInformation", b =>
935 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
936 .WithMany(
"RevisionInformations")
937 .HasForeignKey(
"InstanceId")
938 .OnDelete(DeleteBehavior.Cascade)
941 b.Navigation(
"Instance");
944 modelBuilder.Entity(
"Tgstation.Server.Host.Models.TestMerge", b =>
946 b.HasOne(
"Tgstation.Server.Host.Models.User",
"MergedBy")
947 .WithMany(
"TestMerges")
948 .HasForeignKey(
"MergedById")
949 .OnDelete(DeleteBehavior.Restrict)
952 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"PrimaryRevisionInformation")
953 .WithOne(
"PrimaryTestMerge")
954 .HasForeignKey(
"Tgstation.Server.Host.Models.TestMerge",
"PrimaryRevisionInformationId")
955 .OnDelete(DeleteBehavior.Cascade)
958 b.Navigation(
"MergedBy");
960 b.Navigation(
"PrimaryRevisionInformation");
963 modelBuilder.Entity(
"Tgstation.Server.Host.Models.User", b =>
965 b.HasOne(
"Tgstation.Server.Host.Models.User",
"CreatedBy")
966 .WithMany(
"CreatedUsers")
967 .HasForeignKey(
"CreatedById");
969 b.HasOne(
"Tgstation.Server.Host.Models.UserGroup",
"Group")
971 .HasForeignKey(
"GroupId");
973 b.Navigation(
"CreatedBy");
975 b.Navigation(
"Group");
978 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatBot", b =>
980 b.Navigation(
"Channels");
983 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Instance", b =>
985 b.Navigation(
"ChatSettings");
987 b.Navigation(
"DreamDaemonSettings");
989 b.Navigation(
"DreamMakerSettings");
991 b.Navigation(
"InstancePermissionSets");
993 b.Navigation(
"Jobs");
995 b.Navigation(
"RepositorySettings");
997 b.Navigation(
"RevisionInformations");
1000 modelBuilder.Entity(
"Tgstation.Server.Host.Models.PermissionSet", b =>
1002 b.Navigation(
"InstancePermissionSets");
1005 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevisionInformation", b =>
1007 b.Navigation(
"ActiveTestMerges");
1009 b.Navigation(
"CompileJobs");
1011 b.Navigation(
"PrimaryTestMerge");
1014 modelBuilder.Entity(
"Tgstation.Server.Host.Models.TestMerge", b =>
1016 b.Navigation(
"RevisonInformations");
1019 modelBuilder.Entity(
"Tgstation.Server.Host.Models.User", b =>
1021 b.Navigation(
"CreatedUsers");
1023 b.Navigation(
"OAuthConnections");
1025 b.Navigation(
"PermissionSet");
1027 b.Navigation(
"TestMerges");
1030 modelBuilder.Entity(
"Tgstation.Server.Host.Models.UserGroup", b =>
1032 b.Navigation(
"PermissionSet")
1035 b.Navigation(
"Users");
1037#pragma warning restore 612, 618