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?>(
"DumpOnHeartbeatRestart")
190 .HasColumnType(
"INTEGER")
191 .HasColumnName(
"DumpOnHealthCheckRestart");
193 b.Property<uint?>(
"HeartbeatSeconds")
195 .HasColumnType(
"INTEGER")
196 .HasColumnName(
"HealthCheckSeconds");
198 b.Property<
long>(
"InstanceId")
199 .HasColumnType(
"INTEGER");
201 b.Property<
bool?>(
"LogOutput")
203 .HasColumnType(
"INTEGER");
205 b.Property<ushort?>(
"Port")
207 .HasColumnType(
"INTEGER");
209 b.Property<
int>(
"SecurityLevel")
210 .HasColumnType(
"INTEGER");
212 b.Property<
bool?>(
"StartProfiler")
214 .HasColumnType(
"INTEGER");
216 b.Property<uint?>(
"StartupTimeout")
218 .HasColumnType(
"INTEGER");
220 b.Property<uint?>(
"TopicRequestTimeout")
222 .HasColumnType(
"INTEGER");
224 b.Property<
int>(
"Visibility")
225 .HasColumnType(
"INTEGER");
229 b.HasIndex(
"InstanceId")
232 b.ToTable(
"DreamDaemonSettings");
235 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamMakerSettings", b =>
237 b.Property<
long>(
"Id")
238 .ValueGeneratedOnAdd()
239 .HasColumnType(
"INTEGER");
241 b.Property<ushort?>(
"ApiValidationPort")
243 .HasColumnType(
"INTEGER");
245 b.Property<
int>(
"ApiValidationSecurityLevel")
246 .HasColumnType(
"INTEGER");
248 b.Property<
long>(
"InstanceId")
249 .HasColumnType(
"INTEGER");
251 b.Property<
string>(
"ProjectName")
253 .HasColumnType(
"TEXT");
255 b.Property<
bool?>(
"RequireDMApiValidation")
257 .HasColumnType(
"INTEGER");
259 b.Property<TimeSpan?>(
"Timeout")
261 .HasColumnType(
"TEXT");
265 b.HasIndex(
"InstanceId")
268 b.ToTable(
"DreamMakerSettings");
271 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Instance", b =>
273 b.Property<
long?>(
"Id")
274 .ValueGeneratedOnAdd()
275 .HasColumnType(
"INTEGER");
277 b.Property<uint?>(
"AutoUpdateInterval")
279 .HasColumnType(
"INTEGER");
281 b.Property<ushort?>(
"ChatBotLimit")
283 .HasColumnType(
"INTEGER");
285 b.Property<
int>(
"ConfigurationType")
286 .HasColumnType(
"INTEGER");
288 b.Property<
string>(
"Name")
291 .HasColumnType(
"TEXT");
293 b.Property<
bool?>(
"Online")
295 .HasColumnType(
"INTEGER");
297 b.Property<
string>(
"Path")
299 .HasColumnType(
"TEXT");
301 b.Property<
string>(
"SwarmIdentifer")
302 .HasColumnType(
"TEXT");
306 b.HasIndex(
"Path",
"SwarmIdentifer")
309 b.ToTable(
"Instances");
312 modelBuilder.Entity(
"Tgstation.Server.Host.Models.InstancePermissionSet", b =>
314 b.Property<
long>(
"Id")
315 .ValueGeneratedOnAdd()
316 .HasColumnType(
"INTEGER");
318 b.Property<ulong>(
"ByondRights")
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<
long>(
"InstanceId")
334 .HasColumnType(
"INTEGER");
336 b.Property<ulong>(
"InstancePermissionSetRights")
337 .HasColumnType(
"INTEGER");
339 b.Property<
long>(
"PermissionSetId")
340 .HasColumnType(
"INTEGER");
342 b.Property<ulong>(
"RepositoryRights")
343 .HasColumnType(
"INTEGER");
347 b.HasIndex(
"InstanceId");
349 b.HasIndex(
"PermissionSetId",
"InstanceId")
352 b.ToTable(
"InstancePermissionSets");
355 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Job", b =>
357 b.Property<
long?>(
"Id")
358 .ValueGeneratedOnAdd()
359 .HasColumnType(
"INTEGER");
361 b.Property<ulong?>(
"CancelRight")
362 .HasColumnType(
"INTEGER");
364 b.Property<ulong?>(
"CancelRightsType")
365 .HasColumnType(
"INTEGER");
367 b.Property<
bool?>(
"Cancelled")
369 .HasColumnType(
"INTEGER");
371 b.Property<
long?>(
"CancelledById")
372 .HasColumnType(
"INTEGER");
374 b.Property<
string>(
"Description")
376 .HasColumnType(
"TEXT");
378 b.Property<uint?>(
"ErrorCode")
379 .HasColumnType(
"INTEGER");
381 b.Property<
string>(
"ExceptionDetails")
382 .HasColumnType(
"TEXT");
384 b.Property<
long>(
"InstanceId")
385 .HasColumnType(
"INTEGER");
387 b.Property<DateTimeOffset?>(
"StartedAt")
389 .HasColumnType(
"TEXT");
391 b.Property<
long>(
"StartedById")
392 .HasColumnType(
"INTEGER");
394 b.Property<DateTimeOffset?>(
"StoppedAt")
395 .HasColumnType(
"TEXT");
399 b.HasIndex(
"CancelledById");
401 b.HasIndex(
"InstanceId");
403 b.HasIndex(
"StartedById");
408 modelBuilder.Entity(
"Tgstation.Server.Host.Models.OAuthConnection", b =>
410 b.Property<
long>(
"Id")
411 .ValueGeneratedOnAdd()
412 .HasColumnType(
"INTEGER");
414 b.Property<
string>(
"ExternalUserId")
417 .HasColumnType(
"TEXT");
419 b.Property<
int>(
"Provider")
420 .HasColumnType(
"INTEGER");
422 b.Property<
long?>(
"UserId")
423 .HasColumnType(
"INTEGER");
427 b.HasIndex(
"UserId");
429 b.HasIndex(
"Provider",
"ExternalUserId")
432 b.ToTable(
"OAuthConnections");
435 modelBuilder.Entity(
"Tgstation.Server.Host.Models.PermissionSet", b =>
437 b.Property<
long?>(
"Id")
438 .ValueGeneratedOnAdd()
439 .HasColumnType(
"INTEGER");
441 b.Property<ulong>(
"AdministrationRights")
442 .HasColumnType(
"INTEGER");
444 b.Property<
long?>(
"GroupId")
445 .HasColumnType(
"INTEGER");
447 b.Property<ulong>(
"InstanceManagerRights")
448 .HasColumnType(
"INTEGER");
450 b.Property<
long?>(
"UserId")
451 .HasColumnType(
"INTEGER");
455 b.HasIndex(
"GroupId")
461 b.ToTable(
"PermissionSets");
464 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ReattachInformation", b =>
466 b.Property<
long>(
"Id")
467 .ValueGeneratedOnAdd()
468 .HasColumnType(
"INTEGER");
470 b.Property<
string>(
"AccessIdentifier")
472 .HasColumnType(
"TEXT");
474 b.Property<
long>(
"CompileJobId")
475 .HasColumnType(
"INTEGER");
477 b.Property<
long?>(
"InitialCompileJobId")
478 .HasColumnType(
"INTEGER");
480 b.Property<
int>(
"LaunchSecurityLevel")
481 .HasColumnType(
"INTEGER");
483 b.Property<
int>(
"LaunchVisibility")
484 .HasColumnType(
"INTEGER");
486 b.Property<ushort>(
"Port")
487 .HasColumnType(
"INTEGER");
489 b.Property<
int>(
"ProcessId")
490 .HasColumnType(
"INTEGER");
492 b.Property<
int>(
"RebootState")
493 .HasColumnType(
"INTEGER");
497 b.HasIndex(
"CompileJobId");
499 b.HasIndex(
"InitialCompileJobId");
501 b.ToTable(
"ReattachInformations");
504 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RepositorySettings", b =>
506 b.Property<
long>(
"Id")
507 .ValueGeneratedOnAdd()
508 .HasColumnType(
"INTEGER");
510 b.Property<
string>(
"AccessToken")
512 .HasColumnType(
"TEXT");
514 b.Property<
string>(
"AccessUser")
516 .HasColumnType(
"TEXT");
518 b.Property<
bool?>(
"AutoUpdatesKeepTestMerges")
520 .HasColumnType(
"INTEGER");
522 b.Property<
bool?>(
"AutoUpdatesSynchronize")
524 .HasColumnType(
"INTEGER");
526 b.Property<
string>(
"CommitterEmail")
529 .HasColumnType(
"TEXT");
531 b.Property<
string>(
"CommitterName")
534 .HasColumnType(
"TEXT");
536 b.Property<
bool?>(
"CreateGitHubDeployments")
538 .HasColumnType(
"INTEGER");
540 b.Property<
long>(
"InstanceId")
541 .HasColumnType(
"INTEGER");
543 b.Property<
bool?>(
"PostTestMergeComment")
545 .HasColumnType(
"INTEGER");
547 b.Property<
bool?>(
"PushTestMergeCommits")
549 .HasColumnType(
"INTEGER");
551 b.Property<
bool?>(
"ShowTestMergeCommitters")
553 .HasColumnType(
"INTEGER");
555 b.Property<
bool?>(
"UpdateSubmodules")
557 .HasColumnType(
"INTEGER");
561 b.HasIndex(
"InstanceId")
564 b.ToTable(
"RepositorySettings");
567 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
569 b.Property<
long>(
"Id")
570 .ValueGeneratedOnAdd()
571 .HasColumnType(
"INTEGER");
573 b.Property<
long>(
"RevisionInformationId")
574 .HasColumnType(
"INTEGER");
576 b.Property<
long>(
"TestMergeId")
577 .HasColumnType(
"INTEGER");
581 b.HasIndex(
"RevisionInformationId");
583 b.HasIndex(
"TestMergeId");
585 b.ToTable(
"RevInfoTestMerges");
588 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevisionInformation", b =>
590 b.Property<
long>(
"Id")
591 .ValueGeneratedOnAdd()
592 .HasColumnType(
"INTEGER");
594 b.Property<
string>(
"CommitSha")
597 .HasColumnType(
"TEXT");
599 b.Property<
long>(
"InstanceId")
600 .HasColumnType(
"INTEGER");
602 b.Property<
string>(
"OriginCommitSha")
605 .HasColumnType(
"TEXT");
607 b.Property<DateTimeOffset>(
"Timestamp")
608 .HasColumnType(
"TEXT");
612 b.HasIndex(
"InstanceId",
"CommitSha")
615 b.ToTable(
"RevisionInformations");
618 modelBuilder.Entity(
"Tgstation.Server.Host.Models.TestMerge", b =>
620 b.Property<
long>(
"Id")
621 .ValueGeneratedOnAdd()
622 .HasColumnType(
"INTEGER");
624 b.Property<
string>(
"Author")
626 .HasColumnType(
"TEXT");
628 b.Property<
string>(
"BodyAtMerge")
630 .HasColumnType(
"TEXT");
632 b.Property<
string>(
"Comment")
634 .HasColumnType(
"TEXT");
636 b.Property<DateTimeOffset>(
"MergedAt")
637 .HasColumnType(
"TEXT");
639 b.Property<
long>(
"MergedById")
640 .HasColumnType(
"INTEGER");
642 b.Property<
int>(
"Number")
643 .HasColumnType(
"INTEGER");
645 b.Property<
long?>(
"PrimaryRevisionInformationId")
647 .HasColumnType(
"INTEGER");
649 b.Property<
string>(
"TargetCommitSha")
652 .HasColumnType(
"TEXT");
654 b.Property<
string>(
"TitleAtMerge")
656 .HasColumnType(
"TEXT");
658 b.Property<
string>(
"Url")
660 .HasColumnType(
"TEXT");
664 b.HasIndex(
"MergedById");
666 b.HasIndex(
"PrimaryRevisionInformationId")
669 b.ToTable(
"TestMerges");
672 modelBuilder.Entity(
"Tgstation.Server.Host.Models.User", b =>
674 b.Property<
long?>(
"Id")
675 .ValueGeneratedOnAdd()
676 .HasColumnType(
"INTEGER");
678 b.Property<
string>(
"CanonicalName")
681 .HasColumnType(
"TEXT");
683 b.Property<DateTimeOffset?>(
"CreatedAt")
685 .HasColumnType(
"TEXT");
687 b.Property<
long?>(
"CreatedById")
688 .HasColumnType(
"INTEGER");
690 b.Property<
bool?>(
"Enabled")
692 .HasColumnType(
"INTEGER");
694 b.Property<
long?>(
"GroupId")
695 .HasColumnType(
"INTEGER");
697 b.Property<DateTimeOffset?>(
"LastPasswordUpdate")
698 .HasColumnType(
"TEXT");
700 b.Property<
string>(
"Name")
703 .HasColumnType(
"TEXT");
705 b.Property<
string>(
"PasswordHash")
706 .HasColumnType(
"TEXT");
708 b.Property<
string>(
"SystemIdentifier")
710 .HasColumnType(
"TEXT");
714 b.HasIndex(
"CanonicalName")
717 b.HasIndex(
"CreatedById");
719 b.HasIndex(
"GroupId");
721 b.HasIndex(
"SystemIdentifier")
727 modelBuilder.Entity(
"Tgstation.Server.Host.Models.UserGroup", b =>
729 b.Property<
long?>(
"Id")
730 .ValueGeneratedOnAdd()
731 .HasColumnType(
"INTEGER");
733 b.Property<
string>(
"Name")
736 .HasColumnType(
"TEXT");
746 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatBot", b =>
748 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
749 .WithMany(
"ChatSettings")
750 .HasForeignKey(
"InstanceId")
751 .OnDelete(DeleteBehavior.Cascade)
754 b.Navigation(
"Instance");
757 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatChannel", b =>
759 b.HasOne(
"Tgstation.Server.Host.Models.ChatBot",
"ChatSettings")
760 .WithMany(
"Channels")
761 .HasForeignKey(
"ChatSettingsId")
762 .OnDelete(DeleteBehavior.Cascade)
765 b.Navigation(
"ChatSettings");
768 modelBuilder.Entity(
"Tgstation.Server.Host.Models.CompileJob", b =>
770 b.HasOne(
"Tgstation.Server.Host.Models.Job",
"Job")
772 .HasForeignKey(
"Tgstation.Server.Host.Models.CompileJob",
"JobId")
773 .OnDelete(DeleteBehavior.Cascade)
776 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"RevisionInformation")
777 .WithMany(
"CompileJobs")
778 .HasForeignKey(
"RevisionInformationId")
779 .OnDelete(DeleteBehavior.ClientNoAction)
784 b.Navigation(
"RevisionInformation");
787 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamDaemonSettings", b =>
789 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
790 .WithOne(
"DreamDaemonSettings")
791 .HasForeignKey(
"Tgstation.Server.Host.Models.DreamDaemonSettings",
"InstanceId")
792 .OnDelete(DeleteBehavior.Cascade)
795 b.Navigation(
"Instance");
798 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamMakerSettings", b =>
800 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
801 .WithOne(
"DreamMakerSettings")
802 .HasForeignKey(
"Tgstation.Server.Host.Models.DreamMakerSettings",
"InstanceId")
803 .OnDelete(DeleteBehavior.Cascade)
806 b.Navigation(
"Instance");
809 modelBuilder.Entity(
"Tgstation.Server.Host.Models.InstancePermissionSet", b =>
811 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
812 .WithMany(
"InstancePermissionSets")
813 .HasForeignKey(
"InstanceId")
814 .OnDelete(DeleteBehavior.Cascade)
817 b.HasOne(
"Tgstation.Server.Host.Models.PermissionSet",
"PermissionSet")
818 .WithMany(
"InstancePermissionSets")
819 .HasForeignKey(
"PermissionSetId")
820 .OnDelete(DeleteBehavior.Cascade)
823 b.Navigation(
"Instance");
825 b.Navigation(
"PermissionSet");
828 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Job", b =>
830 b.HasOne(
"Tgstation.Server.Host.Models.User",
"CancelledBy")
832 .HasForeignKey(
"CancelledById");
834 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
836 .HasForeignKey(
"InstanceId")
837 .OnDelete(DeleteBehavior.Cascade)
840 b.HasOne(
"Tgstation.Server.Host.Models.User",
"StartedBy")
842 .HasForeignKey(
"StartedById")
843 .OnDelete(DeleteBehavior.Cascade)
846 b.Navigation(
"CancelledBy");
848 b.Navigation(
"Instance");
850 b.Navigation(
"StartedBy");
853 modelBuilder.Entity(
"Tgstation.Server.Host.Models.OAuthConnection", b =>
855 b.HasOne(
"Tgstation.Server.Host.Models.User",
"User")
856 .WithMany(
"OAuthConnections")
857 .HasForeignKey(
"UserId")
858 .OnDelete(DeleteBehavior.Cascade);
860 b.Navigation(
"User");
863 modelBuilder.Entity(
"Tgstation.Server.Host.Models.PermissionSet", b =>
865 b.HasOne(
"Tgstation.Server.Host.Models.UserGroup",
"Group")
866 .WithOne(
"PermissionSet")
867 .HasForeignKey(
"Tgstation.Server.Host.Models.PermissionSet",
"GroupId")
868 .OnDelete(DeleteBehavior.Cascade);
870 b.HasOne(
"Tgstation.Server.Host.Models.User",
"User")
871 .WithOne(
"PermissionSet")
872 .HasForeignKey(
"Tgstation.Server.Host.Models.PermissionSet",
"UserId")
873 .OnDelete(DeleteBehavior.Cascade);
875 b.Navigation(
"Group");
877 b.Navigation(
"User");
880 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ReattachInformation", b =>
882 b.HasOne(
"Tgstation.Server.Host.Models.CompileJob",
"CompileJob")
884 .HasForeignKey(
"CompileJobId")
885 .OnDelete(DeleteBehavior.Cascade)
888 b.HasOne(
"Tgstation.Server.Host.Models.CompileJob",
"InitialCompileJob")
890 .HasForeignKey(
"InitialCompileJobId");
892 b.Navigation(
"CompileJob");
894 b.Navigation(
"InitialCompileJob");
897 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RepositorySettings", b =>
899 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
900 .WithOne(
"RepositorySettings")
901 .HasForeignKey(
"Tgstation.Server.Host.Models.RepositorySettings",
"InstanceId")
902 .OnDelete(DeleteBehavior.Cascade)
905 b.Navigation(
"Instance");
908 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
910 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"RevisionInformation")
911 .WithMany(
"ActiveTestMerges")
912 .HasForeignKey(
"RevisionInformationId")
913 .OnDelete(DeleteBehavior.Cascade)
916 b.HasOne(
"Tgstation.Server.Host.Models.TestMerge",
"TestMerge")
917 .WithMany(
"RevisonInformations")
918 .HasForeignKey(
"TestMergeId")
919 .OnDelete(DeleteBehavior.ClientNoAction)
922 b.Navigation(
"RevisionInformation");
924 b.Navigation(
"TestMerge");
927 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevisionInformation", b =>
929 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
930 .WithMany(
"RevisionInformations")
931 .HasForeignKey(
"InstanceId")
932 .OnDelete(DeleteBehavior.Cascade)
935 b.Navigation(
"Instance");
938 modelBuilder.Entity(
"Tgstation.Server.Host.Models.TestMerge", b =>
940 b.HasOne(
"Tgstation.Server.Host.Models.User",
"MergedBy")
941 .WithMany(
"TestMerges")
942 .HasForeignKey(
"MergedById")
943 .OnDelete(DeleteBehavior.Restrict)
946 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"PrimaryRevisionInformation")
947 .WithOne(
"PrimaryTestMerge")
948 .HasForeignKey(
"Tgstation.Server.Host.Models.TestMerge",
"PrimaryRevisionInformationId")
949 .OnDelete(DeleteBehavior.Cascade)
952 b.Navigation(
"MergedBy");
954 b.Navigation(
"PrimaryRevisionInformation");
957 modelBuilder.Entity(
"Tgstation.Server.Host.Models.User", b =>
959 b.HasOne(
"Tgstation.Server.Host.Models.User",
"CreatedBy")
960 .WithMany(
"CreatedUsers")
961 .HasForeignKey(
"CreatedById");
963 b.HasOne(
"Tgstation.Server.Host.Models.UserGroup",
"Group")
965 .HasForeignKey(
"GroupId");
967 b.Navigation(
"CreatedBy");
969 b.Navigation(
"Group");
972 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatBot", b =>
974 b.Navigation(
"Channels");
977 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Instance", b =>
979 b.Navigation(
"ChatSettings");
981 b.Navigation(
"DreamDaemonSettings");
983 b.Navigation(
"DreamMakerSettings");
985 b.Navigation(
"InstancePermissionSets");
987 b.Navigation(
"Jobs");
989 b.Navigation(
"RepositorySettings");
991 b.Navigation(
"RevisionInformations");
994 modelBuilder.Entity(
"Tgstation.Server.Host.Models.PermissionSet", b =>
996 b.Navigation(
"InstancePermissionSets");
999 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevisionInformation", b =>
1001 b.Navigation(
"ActiveTestMerges");
1003 b.Navigation(
"CompileJobs");
1005 b.Navigation(
"PrimaryTestMerge");
1008 modelBuilder.Entity(
"Tgstation.Server.Host.Models.TestMerge", b =>
1010 b.Navigation(
"RevisonInformations");
1013 modelBuilder.Entity(
"Tgstation.Server.Host.Models.User", b =>
1015 b.Navigation(
"CreatedUsers");
1017 b.Navigation(
"OAuthConnections");
1019 b.Navigation(
"PermissionSet");
1021 b.Navigation(
"TestMerges");
1024 modelBuilder.Entity(
"Tgstation.Server.Host.Models.UserGroup", b =>
1026 b.Navigation(
"PermissionSet")
1029 b.Navigation(
"Users");
1031#pragma warning restore 612, 618