17#pragma warning disable 612, 618
18 modelBuilder.HasAnnotation(
"ProductVersion",
"7.0.13");
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<
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");
502 b.HasIndex(
"CompileJobId");
504 b.HasIndex(
"InitialCompileJobId");
506 b.ToTable(
"ReattachInformations");
509 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RepositorySettings", b =>
511 b.Property<
long>(
"Id")
512 .ValueGeneratedOnAdd()
513 .HasColumnType(
"INTEGER");
515 b.Property<
string>(
"AccessToken")
517 .HasColumnType(
"TEXT");
519 b.Property<
string>(
"AccessUser")
521 .HasColumnType(
"TEXT");
523 b.Property<
bool?>(
"AutoUpdatesKeepTestMerges")
525 .HasColumnType(
"INTEGER");
527 b.Property<
bool?>(
"AutoUpdatesSynchronize")
529 .HasColumnType(
"INTEGER");
531 b.Property<
string>(
"CommitterEmail")
534 .HasColumnType(
"TEXT");
536 b.Property<
string>(
"CommitterName")
539 .HasColumnType(
"TEXT");
541 b.Property<
bool?>(
"CreateGitHubDeployments")
543 .HasColumnType(
"INTEGER");
545 b.Property<
long>(
"InstanceId")
546 .HasColumnType(
"INTEGER");
548 b.Property<
bool?>(
"PostTestMergeComment")
550 .HasColumnType(
"INTEGER");
552 b.Property<
bool?>(
"PushTestMergeCommits")
554 .HasColumnType(
"INTEGER");
556 b.Property<
bool?>(
"ShowTestMergeCommitters")
558 .HasColumnType(
"INTEGER");
560 b.Property<
bool?>(
"UpdateSubmodules")
562 .HasColumnType(
"INTEGER");
566 b.HasIndex(
"InstanceId")
569 b.ToTable(
"RepositorySettings");
572 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
574 b.Property<
long>(
"Id")
575 .ValueGeneratedOnAdd()
576 .HasColumnType(
"INTEGER");
578 b.Property<
long>(
"RevisionInformationId")
579 .HasColumnType(
"INTEGER");
581 b.Property<
long>(
"TestMergeId")
582 .HasColumnType(
"INTEGER");
586 b.HasIndex(
"RevisionInformationId");
588 b.HasIndex(
"TestMergeId");
590 b.ToTable(
"RevInfoTestMerges");
593 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevisionInformation", b =>
595 b.Property<
long>(
"Id")
596 .ValueGeneratedOnAdd()
597 .HasColumnType(
"INTEGER");
599 b.Property<
string>(
"CommitSha")
602 .HasColumnType(
"TEXT");
604 b.Property<
long>(
"InstanceId")
605 .HasColumnType(
"INTEGER");
607 b.Property<
string>(
"OriginCommitSha")
610 .HasColumnType(
"TEXT");
612 b.Property<DateTimeOffset>(
"Timestamp")
613 .HasColumnType(
"TEXT");
617 b.HasIndex(
"InstanceId",
"CommitSha")
620 b.ToTable(
"RevisionInformations");
623 modelBuilder.Entity(
"Tgstation.Server.Host.Models.TestMerge", b =>
625 b.Property<
long>(
"Id")
626 .ValueGeneratedOnAdd()
627 .HasColumnType(
"INTEGER");
629 b.Property<
string>(
"Author")
631 .HasColumnType(
"TEXT");
633 b.Property<
string>(
"BodyAtMerge")
635 .HasColumnType(
"TEXT");
637 b.Property<
string>(
"Comment")
639 .HasColumnType(
"TEXT");
641 b.Property<DateTimeOffset>(
"MergedAt")
642 .HasColumnType(
"TEXT");
644 b.Property<
long>(
"MergedById")
645 .HasColumnType(
"INTEGER");
647 b.Property<
int>(
"Number")
648 .HasColumnType(
"INTEGER");
650 b.Property<
long?>(
"PrimaryRevisionInformationId")
652 .HasColumnType(
"INTEGER");
654 b.Property<
string>(
"TargetCommitSha")
657 .HasColumnType(
"TEXT");
659 b.Property<
string>(
"TitleAtMerge")
661 .HasColumnType(
"TEXT");
663 b.Property<
string>(
"Url")
665 .HasColumnType(
"TEXT");
669 b.HasIndex(
"MergedById");
671 b.HasIndex(
"PrimaryRevisionInformationId")
674 b.ToTable(
"TestMerges");
677 modelBuilder.Entity(
"Tgstation.Server.Host.Models.User", b =>
679 b.Property<
long?>(
"Id")
680 .ValueGeneratedOnAdd()
681 .HasColumnType(
"INTEGER");
683 b.Property<
string>(
"CanonicalName")
686 .HasColumnType(
"TEXT");
688 b.Property<DateTimeOffset?>(
"CreatedAt")
690 .HasColumnType(
"TEXT");
692 b.Property<
long?>(
"CreatedById")
693 .HasColumnType(
"INTEGER");
695 b.Property<
bool?>(
"Enabled")
697 .HasColumnType(
"INTEGER");
699 b.Property<
long?>(
"GroupId")
700 .HasColumnType(
"INTEGER");
702 b.Property<DateTimeOffset?>(
"LastPasswordUpdate")
703 .HasColumnType(
"TEXT");
705 b.Property<
string>(
"Name")
708 .HasColumnType(
"TEXT");
710 b.Property<
string>(
"PasswordHash")
711 .HasColumnType(
"TEXT");
713 b.Property<
string>(
"SystemIdentifier")
715 .HasColumnType(
"TEXT");
719 b.HasIndex(
"CanonicalName")
722 b.HasIndex(
"CreatedById");
724 b.HasIndex(
"GroupId");
726 b.HasIndex(
"SystemIdentifier")
732 modelBuilder.Entity(
"Tgstation.Server.Host.Models.UserGroup", b =>
734 b.Property<
long?>(
"Id")
735 .ValueGeneratedOnAdd()
736 .HasColumnType(
"INTEGER");
738 b.Property<
string>(
"Name")
741 .HasColumnType(
"TEXT");
751 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatBot", b =>
753 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
754 .WithMany(
"ChatSettings")
755 .HasForeignKey(
"InstanceId")
756 .OnDelete(DeleteBehavior.Cascade)
759 b.Navigation(
"Instance");
762 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatChannel", b =>
764 b.HasOne(
"Tgstation.Server.Host.Models.ChatBot",
"ChatSettings")
765 .WithMany(
"Channels")
766 .HasForeignKey(
"ChatSettingsId")
767 .OnDelete(DeleteBehavior.Cascade)
770 b.Navigation(
"ChatSettings");
773 modelBuilder.Entity(
"Tgstation.Server.Host.Models.CompileJob", b =>
775 b.HasOne(
"Tgstation.Server.Host.Models.Job",
"Job")
777 .HasForeignKey(
"Tgstation.Server.Host.Models.CompileJob",
"JobId")
778 .OnDelete(DeleteBehavior.Cascade)
781 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"RevisionInformation")
782 .WithMany(
"CompileJobs")
783 .HasForeignKey(
"RevisionInformationId")
784 .OnDelete(DeleteBehavior.ClientNoAction)
789 b.Navigation(
"RevisionInformation");
792 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamDaemonSettings", b =>
794 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
795 .WithOne(
"DreamDaemonSettings")
796 .HasForeignKey(
"Tgstation.Server.Host.Models.DreamDaemonSettings",
"InstanceId")
797 .OnDelete(DeleteBehavior.Cascade)
800 b.Navigation(
"Instance");
803 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamMakerSettings", b =>
805 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
806 .WithOne(
"DreamMakerSettings")
807 .HasForeignKey(
"Tgstation.Server.Host.Models.DreamMakerSettings",
"InstanceId")
808 .OnDelete(DeleteBehavior.Cascade)
811 b.Navigation(
"Instance");
814 modelBuilder.Entity(
"Tgstation.Server.Host.Models.InstancePermissionSet", b =>
816 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
817 .WithMany(
"InstancePermissionSets")
818 .HasForeignKey(
"InstanceId")
819 .OnDelete(DeleteBehavior.Cascade)
822 b.HasOne(
"Tgstation.Server.Host.Models.PermissionSet",
"PermissionSet")
823 .WithMany(
"InstancePermissionSets")
824 .HasForeignKey(
"PermissionSetId")
825 .OnDelete(DeleteBehavior.Cascade)
828 b.Navigation(
"Instance");
830 b.Navigation(
"PermissionSet");
833 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Job", b =>
835 b.HasOne(
"Tgstation.Server.Host.Models.User",
"CancelledBy")
837 .HasForeignKey(
"CancelledById");
839 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
841 .HasForeignKey(
"InstanceId")
842 .OnDelete(DeleteBehavior.Cascade)
845 b.HasOne(
"Tgstation.Server.Host.Models.User",
"StartedBy")
847 .HasForeignKey(
"StartedById")
848 .OnDelete(DeleteBehavior.Cascade)
851 b.Navigation(
"CancelledBy");
853 b.Navigation(
"Instance");
855 b.Navigation(
"StartedBy");
858 modelBuilder.Entity(
"Tgstation.Server.Host.Models.OAuthConnection", b =>
860 b.HasOne(
"Tgstation.Server.Host.Models.User",
"User")
861 .WithMany(
"OAuthConnections")
862 .HasForeignKey(
"UserId")
863 .OnDelete(DeleteBehavior.Cascade);
865 b.Navigation(
"User");
868 modelBuilder.Entity(
"Tgstation.Server.Host.Models.PermissionSet", b =>
870 b.HasOne(
"Tgstation.Server.Host.Models.UserGroup",
"Group")
871 .WithOne(
"PermissionSet")
872 .HasForeignKey(
"Tgstation.Server.Host.Models.PermissionSet",
"GroupId")
873 .OnDelete(DeleteBehavior.Cascade);
875 b.HasOne(
"Tgstation.Server.Host.Models.User",
"User")
876 .WithOne(
"PermissionSet")
877 .HasForeignKey(
"Tgstation.Server.Host.Models.PermissionSet",
"UserId")
878 .OnDelete(DeleteBehavior.Cascade);
880 b.Navigation(
"Group");
882 b.Navigation(
"User");
885 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ReattachInformation", b =>
887 b.HasOne(
"Tgstation.Server.Host.Models.CompileJob",
"CompileJob")
889 .HasForeignKey(
"CompileJobId")
890 .OnDelete(DeleteBehavior.Cascade)
893 b.HasOne(
"Tgstation.Server.Host.Models.CompileJob",
"InitialCompileJob")
895 .HasForeignKey(
"InitialCompileJobId");
897 b.Navigation(
"CompileJob");
899 b.Navigation(
"InitialCompileJob");
902 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RepositorySettings", b =>
904 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
905 .WithOne(
"RepositorySettings")
906 .HasForeignKey(
"Tgstation.Server.Host.Models.RepositorySettings",
"InstanceId")
907 .OnDelete(DeleteBehavior.Cascade)
910 b.Navigation(
"Instance");
913 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
915 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"RevisionInformation")
916 .WithMany(
"ActiveTestMerges")
917 .HasForeignKey(
"RevisionInformationId")
918 .OnDelete(DeleteBehavior.Cascade)
921 b.HasOne(
"Tgstation.Server.Host.Models.TestMerge",
"TestMerge")
922 .WithMany(
"RevisonInformations")
923 .HasForeignKey(
"TestMergeId")
924 .OnDelete(DeleteBehavior.ClientNoAction)
927 b.Navigation(
"RevisionInformation");
929 b.Navigation(
"TestMerge");
932 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevisionInformation", b =>
934 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
935 .WithMany(
"RevisionInformations")
936 .HasForeignKey(
"InstanceId")
937 .OnDelete(DeleteBehavior.Cascade)
940 b.Navigation(
"Instance");
943 modelBuilder.Entity(
"Tgstation.Server.Host.Models.TestMerge", b =>
945 b.HasOne(
"Tgstation.Server.Host.Models.User",
"MergedBy")
946 .WithMany(
"TestMerges")
947 .HasForeignKey(
"MergedById")
948 .OnDelete(DeleteBehavior.Restrict)
951 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"PrimaryRevisionInformation")
952 .WithOne(
"PrimaryTestMerge")
953 .HasForeignKey(
"Tgstation.Server.Host.Models.TestMerge",
"PrimaryRevisionInformationId")
954 .OnDelete(DeleteBehavior.Cascade)
957 b.Navigation(
"MergedBy");
959 b.Navigation(
"PrimaryRevisionInformation");
962 modelBuilder.Entity(
"Tgstation.Server.Host.Models.User", b =>
964 b.HasOne(
"Tgstation.Server.Host.Models.User",
"CreatedBy")
965 .WithMany(
"CreatedUsers")
966 .HasForeignKey(
"CreatedById");
968 b.HasOne(
"Tgstation.Server.Host.Models.UserGroup",
"Group")
970 .HasForeignKey(
"GroupId");
972 b.Navigation(
"CreatedBy");
974 b.Navigation(
"Group");
977 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatBot", b =>
979 b.Navigation(
"Channels");
982 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Instance", b =>
984 b.Navigation(
"ChatSettings");
986 b.Navigation(
"DreamDaemonSettings");
988 b.Navigation(
"DreamMakerSettings");
990 b.Navigation(
"InstancePermissionSets");
992 b.Navigation(
"Jobs");
994 b.Navigation(
"RepositorySettings");
996 b.Navigation(
"RevisionInformations");
999 modelBuilder.Entity(
"Tgstation.Server.Host.Models.PermissionSet", b =>
1001 b.Navigation(
"InstancePermissionSets");
1004 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevisionInformation", b =>
1006 b.Navigation(
"ActiveTestMerges");
1008 b.Navigation(
"CompileJobs");
1010 b.Navigation(
"PrimaryTestMerge");
1013 modelBuilder.Entity(
"Tgstation.Server.Host.Models.TestMerge", b =>
1015 b.Navigation(
"RevisonInformations");
1018 modelBuilder.Entity(
"Tgstation.Server.Host.Models.User", b =>
1020 b.Navigation(
"CreatedUsers");
1022 b.Navigation(
"OAuthConnections");
1024 b.Navigation(
"PermissionSet");
1026 b.Navigation(
"TestMerges");
1029 modelBuilder.Entity(
"Tgstation.Server.Host.Models.UserGroup", b =>
1031 b.Navigation(
"PermissionSet")
1034 b.Navigation(
"Users");
1036#pragma warning restore 612, 618