12 protected override void BuildModel(ModelBuilder modelBuilder)
14#pragma warning disable 612, 618
15 modelBuilder.HasAnnotation(
"ProductVersion",
"8.0.13");
17 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatBot", b =>
19 b.Property<
long?>(
"Id")
20 .ValueGeneratedOnAdd()
21 .HasColumnType(
"INTEGER");
23 b.Property<ushort?>(
"ChannelLimit")
25 .HasColumnType(
"INTEGER");
27 b.Property<
string>(
"ConnectionString")
30 .HasColumnType(
"TEXT");
32 b.Property<
bool?>(
"Enabled")
33 .HasColumnType(
"INTEGER");
35 b.Property<
long>(
"InstanceId")
36 .HasColumnType(
"INTEGER");
38 b.Property<
string>(
"Name")
41 .HasColumnType(
"TEXT");
43 b.Property<
int>(
"Provider")
44 .HasColumnType(
"INTEGER");
46 b.Property<uint?>(
"ReconnectionInterval")
48 .HasColumnType(
"INTEGER");
52 b.HasIndex(
"InstanceId",
"Name")
55 b.ToTable(
"ChatBots");
58 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatChannel", b =>
60 b.Property<
long>(
"Id")
61 .ValueGeneratedOnAdd()
62 .HasColumnType(
"INTEGER");
64 b.Property<
long>(
"ChatSettingsId")
65 .HasColumnType(
"INTEGER");
67 b.Property<ulong?>(
"DiscordChannelId")
68 .HasColumnType(
"INTEGER");
70 b.Property<
string>(
"IrcChannel")
72 .HasColumnType(
"TEXT");
74 b.Property<
bool?>(
"IsAdminChannel")
76 .HasColumnType(
"INTEGER");
78 b.Property<
bool?>(
"IsSystemChannel")
80 .HasColumnType(
"INTEGER");
82 b.Property<
bool?>(
"IsUpdatesChannel")
84 .HasColumnType(
"INTEGER");
86 b.Property<
bool?>(
"IsWatchdogChannel")
88 .HasColumnType(
"INTEGER");
90 b.Property<
string>(
"Tag")
92 .HasColumnType(
"TEXT");
96 b.HasIndex(
"ChatSettingsId",
"DiscordChannelId")
99 b.HasIndex(
"ChatSettingsId",
"IrcChannel")
102 b.ToTable(
"ChatChannels");
105 modelBuilder.Entity(
"Tgstation.Server.Host.Models.CompileJob", b =>
107 b.Property<
long?>(
"Id")
108 .ValueGeneratedOnAdd()
109 .HasColumnType(
"INTEGER");
111 b.Property<
int?>(
"DMApiMajorVersion")
112 .HasColumnType(
"INTEGER");
114 b.Property<
int?>(
"DMApiMinorVersion")
115 .HasColumnType(
"INTEGER");
117 b.Property<
int?>(
"DMApiPatchVersion")
118 .HasColumnType(
"INTEGER");
120 b.Property<Guid?>(
"DirectoryName")
122 .HasColumnType(
"TEXT");
124 b.Property<
string>(
"DmeName")
126 .HasColumnType(
"TEXT");
128 b.Property<
string>(
"EngineVersion")
130 .HasColumnType(
"TEXT");
132 b.Property<
long?>(
"GitHubDeploymentId")
133 .HasColumnType(
"INTEGER");
135 b.Property<
long?>(
"GitHubRepoId")
136 .HasColumnType(
"INTEGER");
138 b.Property<
long>(
"JobId")
139 .HasColumnType(
"INTEGER");
141 b.Property<
int?>(
"MinimumSecurityLevel")
142 .HasColumnType(
"INTEGER");
144 b.Property<
string>(
"Output")
146 .HasColumnType(
"TEXT");
148 b.Property<
string>(
"RepositoryOrigin")
149 .HasColumnType(
"TEXT");
151 b.Property<
long>(
"RevisionInformationId")
152 .HasColumnType(
"INTEGER");
156 b.HasIndex(
"DirectoryName");
161 b.HasIndex(
"RevisionInformationId");
163 b.ToTable(
"CompileJobs");
166 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamDaemonSettings", b =>
168 b.Property<
long>(
"Id")
169 .ValueGeneratedOnAdd()
170 .HasColumnType(
"INTEGER");
172 b.Property<
string>(
"AdditionalParameters")
175 .HasColumnType(
"TEXT");
177 b.Property<
bool?>(
"AllowWebClient")
179 .HasColumnType(
"INTEGER");
181 b.Property<
bool?>(
"AutoStart")
183 .HasColumnType(
"INTEGER");
185 b.Property<
bool?>(
"DumpOnHealthCheckRestart")
187 .HasColumnType(
"INTEGER");
189 b.Property<uint?>(
"HealthCheckSeconds")
191 .HasColumnType(
"INTEGER");
193 b.Property<
long>(
"InstanceId")
194 .HasColumnType(
"INTEGER");
196 b.Property<
bool?>(
"LogOutput")
198 .HasColumnType(
"INTEGER");
200 b.Property<uint?>(
"MapThreads")
202 .HasColumnType(
"INTEGER");
204 b.Property<
bool?>(
"Minidumps")
206 .HasColumnType(
"INTEGER");
208 b.Property<ushort?>(
"OpenDreamTopicPort")
210 .HasColumnType(
"INTEGER");
212 b.Property<ushort?>(
"Port")
214 .HasColumnType(
"INTEGER");
216 b.Property<
int>(
"SecurityLevel")
217 .HasColumnType(
"INTEGER");
219 b.Property<
bool?>(
"StartProfiler")
221 .HasColumnType(
"INTEGER");
223 b.Property<uint?>(
"StartupTimeout")
225 .HasColumnType(
"INTEGER");
227 b.Property<uint?>(
"TopicRequestTimeout")
229 .HasColumnType(
"INTEGER");
231 b.Property<
int>(
"Visibility")
232 .HasColumnType(
"INTEGER");
236 b.HasIndex(
"InstanceId")
239 b.ToTable(
"DreamDaemonSettings");
242 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamMakerSettings", b =>
244 b.Property<
long>(
"Id")
245 .ValueGeneratedOnAdd()
246 .HasColumnType(
"INTEGER");
248 b.Property<ushort?>(
"ApiValidationPort")
250 .HasColumnType(
"INTEGER");
252 b.Property<
int>(
"ApiValidationSecurityLevel")
253 .HasColumnType(
"INTEGER");
255 b.Property<
string>(
"CompilerAdditionalArguments")
257 .HasColumnType(
"TEXT");
259 b.Property<
int>(
"DMApiValidationMode")
260 .HasColumnType(
"INTEGER");
262 b.Property<
long>(
"InstanceId")
263 .HasColumnType(
"INTEGER");
265 b.Property<
string>(
"ProjectName")
267 .HasColumnType(
"TEXT");
269 b.Property<TimeSpan?>(
"Timeout")
271 .HasColumnType(
"TEXT");
275 b.HasIndex(
"InstanceId")
278 b.ToTable(
"DreamMakerSettings");
281 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Instance", b =>
283 b.Property<
long?>(
"Id")
284 .ValueGeneratedOnAdd()
285 .HasColumnType(
"INTEGER");
287 b.Property<
string>(
"AutoStartCron")
290 .HasColumnType(
"TEXT");
292 b.Property<
string>(
"AutoStopCron")
295 .HasColumnType(
"TEXT");
297 b.Property<
string>(
"AutoUpdateCron")
300 .HasColumnType(
"TEXT");
302 b.Property<uint?>(
"AutoUpdateInterval")
304 .HasColumnType(
"INTEGER");
306 b.Property<ushort?>(
"ChatBotLimit")
308 .HasColumnType(
"INTEGER");
310 b.Property<
int>(
"ConfigurationType")
311 .HasColumnType(
"INTEGER");
313 b.Property<
string>(
"Name")
316 .HasColumnType(
"TEXT");
318 b.Property<
bool?>(
"Online")
320 .HasColumnType(
"INTEGER");
322 b.Property<
string>(
"Path")
324 .HasColumnType(
"TEXT");
326 b.Property<
string>(
"SwarmIdentifer")
327 .HasColumnType(
"TEXT");
331 b.HasIndex(
"Path",
"SwarmIdentifer")
334 b.ToTable(
"Instances");
337 modelBuilder.Entity(
"Tgstation.Server.Host.Models.InstancePermissionSet", b =>
339 b.Property<
long>(
"Id")
340 .ValueGeneratedOnAdd()
341 .HasColumnType(
"INTEGER");
343 b.Property<ulong>(
"ChatBotRights")
344 .HasColumnType(
"INTEGER");
346 b.Property<ulong>(
"ConfigurationRights")
347 .HasColumnType(
"INTEGER");
349 b.Property<ulong>(
"DreamDaemonRights")
350 .HasColumnType(
"INTEGER");
352 b.Property<ulong>(
"DreamMakerRights")
353 .HasColumnType(
"INTEGER");
355 b.Property<ulong>(
"EngineRights")
356 .HasColumnType(
"INTEGER");
358 b.Property<
long>(
"InstanceId")
359 .HasColumnType(
"INTEGER");
361 b.Property<ulong>(
"InstancePermissionSetRights")
362 .HasColumnType(
"INTEGER");
364 b.Property<
long>(
"PermissionSetId")
365 .HasColumnType(
"INTEGER");
367 b.Property<ulong>(
"RepositoryRights")
368 .HasColumnType(
"INTEGER");
372 b.HasIndex(
"InstanceId");
374 b.HasIndex(
"PermissionSetId",
"InstanceId")
377 b.ToTable(
"InstancePermissionSets");
380 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Job", b =>
382 b.Property<
long?>(
"Id")
383 .ValueGeneratedOnAdd()
384 .HasColumnType(
"INTEGER");
386 b.Property<ulong?>(
"CancelRight")
387 .HasColumnType(
"INTEGER");
389 b.Property<ulong?>(
"CancelRightsType")
390 .HasColumnType(
"INTEGER");
392 b.Property<
bool?>(
"Cancelled")
394 .HasColumnType(
"INTEGER");
396 b.Property<
long?>(
"CancelledById")
397 .HasColumnType(
"INTEGER");
399 b.Property<
string>(
"Description")
401 .HasColumnType(
"TEXT");
403 b.Property<uint?>(
"ErrorCode")
404 .HasColumnType(
"INTEGER");
406 b.Property<
string>(
"ExceptionDetails")
407 .HasColumnType(
"TEXT");
409 b.Property<
long>(
"InstanceId")
410 .HasColumnType(
"INTEGER");
412 b.Property<
byte>(
"JobCode")
413 .HasColumnType(
"INTEGER");
415 b.Property<DateTimeOffset?>(
"StartedAt")
417 .HasColumnType(
"TEXT");
419 b.Property<
long>(
"StartedById")
420 .HasColumnType(
"INTEGER");
422 b.Property<DateTimeOffset?>(
"StoppedAt")
423 .HasColumnType(
"TEXT");
427 b.HasIndex(
"CancelledById");
429 b.HasIndex(
"InstanceId");
431 b.HasIndex(
"StartedById");
436 modelBuilder.Entity(
"Tgstation.Server.Host.Models.OAuthConnection", b =>
438 b.Property<
long>(
"Id")
439 .ValueGeneratedOnAdd()
440 .HasColumnType(
"INTEGER");
442 b.Property<
string>(
"ExternalUserId")
445 .HasColumnType(
"TEXT");
447 b.Property<
int>(
"Provider")
448 .HasColumnType(
"INTEGER");
450 b.Property<
long>(
"UserId")
451 .HasColumnType(
"INTEGER");
455 b.HasIndex(
"UserId");
457 b.HasIndex(
"Provider",
"ExternalUserId")
460 b.ToTable(
"OAuthConnections");
463 modelBuilder.Entity(
"Tgstation.Server.Host.Models.OidcConnection", b =>
465 b.Property<
long>(
"Id")
466 .ValueGeneratedOnAdd()
467 .HasColumnType(
"INTEGER");
469 b.Property<
string>(
"ExternalUserId")
472 .HasColumnType(
"TEXT");
474 b.Property<
string>(
"SchemeKey")
477 .HasColumnType(
"TEXT");
479 b.Property<
long>(
"UserId")
480 .HasColumnType(
"INTEGER");
484 b.HasIndex(
"UserId");
486 b.HasIndex(
"SchemeKey",
"ExternalUserId")
489 b.ToTable(
"OidcConnections");
492 modelBuilder.Entity(
"Tgstation.Server.Host.Models.PermissionSet", b =>
494 b.Property<
long?>(
"Id")
495 .ValueGeneratedOnAdd()
496 .HasColumnType(
"INTEGER");
498 b.Property<ulong>(
"AdministrationRights")
499 .HasColumnType(
"INTEGER");
501 b.Property<
long?>(
"GroupId")
502 .HasColumnType(
"INTEGER");
504 b.Property<ulong>(
"InstanceManagerRights")
505 .HasColumnType(
"INTEGER");
507 b.Property<
long?>(
"UserId")
508 .HasColumnType(
"INTEGER");
512 b.HasIndex(
"GroupId")
518 b.ToTable(
"PermissionSets");
521 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ReattachInformation", b =>
523 b.Property<
long?>(
"Id")
524 .ValueGeneratedOnAdd()
525 .HasColumnType(
"INTEGER");
527 b.Property<
string>(
"AccessIdentifier")
529 .HasColumnType(
"TEXT");
531 b.Property<
long>(
"CompileJobId")
532 .HasColumnType(
"INTEGER");
534 b.Property<
long?>(
"InitialCompileJobId")
535 .HasColumnType(
"INTEGER");
537 b.Property<
int>(
"LaunchSecurityLevel")
538 .HasColumnType(
"INTEGER");
540 b.Property<
int>(
"LaunchVisibility")
541 .HasColumnType(
"INTEGER");
543 b.Property<ushort>(
"Port")
544 .HasColumnType(
"INTEGER");
546 b.Property<
int>(
"ProcessId")
547 .HasColumnType(
"INTEGER");
549 b.Property<
int>(
"RebootState")
550 .HasColumnType(
"INTEGER");
552 b.Property<ushort?>(
"TopicPort")
553 .HasColumnType(
"INTEGER");
557 b.HasIndex(
"CompileJobId");
559 b.HasIndex(
"InitialCompileJobId");
561 b.ToTable(
"ReattachInformations");
564 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RepositorySettings", b =>
566 b.Property<
long>(
"Id")
567 .ValueGeneratedOnAdd()
568 .HasColumnType(
"INTEGER");
570 b.Property<
string>(
"AccessToken")
572 .HasColumnType(
"TEXT");
574 b.Property<
string>(
"AccessUser")
576 .HasColumnType(
"TEXT");
578 b.Property<
bool?>(
"AutoUpdatesKeepTestMerges")
580 .HasColumnType(
"INTEGER");
582 b.Property<
bool?>(
"AutoUpdatesSynchronize")
584 .HasColumnType(
"INTEGER");
586 b.Property<
string>(
"CommitterEmail")
589 .HasColumnType(
"TEXT");
591 b.Property<
string>(
"CommitterName")
594 .HasColumnType(
"TEXT");
596 b.Property<
bool?>(
"CreateGitHubDeployments")
598 .HasColumnType(
"INTEGER");
600 b.Property<
long>(
"InstanceId")
601 .HasColumnType(
"INTEGER");
603 b.Property<
bool?>(
"PostTestMergeComment")
605 .HasColumnType(
"INTEGER");
607 b.Property<
bool?>(
"PushTestMergeCommits")
609 .HasColumnType(
"INTEGER");
611 b.Property<
bool?>(
"ShowTestMergeCommitters")
613 .HasColumnType(
"INTEGER");
615 b.Property<
bool?>(
"UpdateSubmodules")
617 .HasColumnType(
"INTEGER");
621 b.HasIndex(
"InstanceId")
624 b.ToTable(
"RepositorySettings");
627 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
629 b.Property<
long>(
"Id")
630 .ValueGeneratedOnAdd()
631 .HasColumnType(
"INTEGER");
633 b.Property<
long>(
"RevisionInformationId")
634 .HasColumnType(
"INTEGER");
636 b.Property<
long>(
"TestMergeId")
637 .HasColumnType(
"INTEGER");
641 b.HasIndex(
"RevisionInformationId");
643 b.HasIndex(
"TestMergeId");
645 b.ToTable(
"RevInfoTestMerges");
648 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevisionInformation", b =>
650 b.Property<
long>(
"Id")
651 .ValueGeneratedOnAdd()
652 .HasColumnType(
"INTEGER");
654 b.Property<
string>(
"CommitSha")
657 .HasColumnType(
"TEXT");
659 b.Property<
long>(
"InstanceId")
660 .HasColumnType(
"INTEGER");
662 b.Property<
string>(
"OriginCommitSha")
665 .HasColumnType(
"TEXT");
667 b.Property<DateTimeOffset>(
"Timestamp")
668 .HasColumnType(
"TEXT");
672 b.HasIndex(
"InstanceId",
"CommitSha")
675 b.ToTable(
"RevisionInformations");
678 modelBuilder.Entity(
"Tgstation.Server.Host.Models.TestMerge", b =>
680 b.Property<
long>(
"Id")
681 .ValueGeneratedOnAdd()
682 .HasColumnType(
"INTEGER");
684 b.Property<
string>(
"Author")
686 .HasColumnType(
"TEXT");
688 b.Property<
string>(
"BodyAtMerge")
690 .HasColumnType(
"TEXT");
692 b.Property<
string>(
"Comment")
694 .HasColumnType(
"TEXT");
696 b.Property<DateTimeOffset>(
"MergedAt")
697 .HasColumnType(
"TEXT");
699 b.Property<
long>(
"MergedById")
700 .HasColumnType(
"INTEGER");
702 b.Property<
int>(
"Number")
703 .HasColumnType(
"INTEGER");
705 b.Property<
long?>(
"PrimaryRevisionInformationId")
707 .HasColumnType(
"INTEGER");
709 b.Property<
string>(
"TargetCommitSha")
712 .HasColumnType(
"TEXT");
714 b.Property<
string>(
"TitleAtMerge")
716 .HasColumnType(
"TEXT");
718 b.Property<
string>(
"Url")
720 .HasColumnType(
"TEXT");
724 b.HasIndex(
"MergedById");
726 b.HasIndex(
"PrimaryRevisionInformationId")
729 b.ToTable(
"TestMerges");
732 modelBuilder.Entity(
"Tgstation.Server.Host.Models.User", b =>
734 b.Property<
long?>(
"Id")
735 .ValueGeneratedOnAdd()
736 .HasColumnType(
"INTEGER");
738 b.Property<
string>(
"CanonicalName")
741 .HasColumnType(
"TEXT");
743 b.Property<DateTimeOffset?>(
"CreatedAt")
745 .HasColumnType(
"TEXT");
747 b.Property<
long?>(
"CreatedById")
748 .HasColumnType(
"INTEGER");
750 b.Property<
bool?>(
"Enabled")
752 .HasColumnType(
"INTEGER");
754 b.Property<
long?>(
"GroupId")
755 .HasColumnType(
"INTEGER");
757 b.Property<DateTimeOffset?>(
"LastPasswordUpdate")
758 .HasColumnType(
"TEXT");
760 b.Property<
string>(
"Name")
763 .HasColumnType(
"TEXT");
765 b.Property<
string>(
"PasswordHash")
766 .HasColumnType(
"TEXT");
768 b.Property<
string>(
"SystemIdentifier")
770 .HasColumnType(
"TEXT");
774 b.HasIndex(
"CanonicalName")
777 b.HasIndex(
"CreatedById");
779 b.HasIndex(
"GroupId");
781 b.HasIndex(
"SystemIdentifier")
787 modelBuilder.Entity(
"Tgstation.Server.Host.Models.UserGroup", b =>
789 b.Property<
long?>(
"Id")
790 .ValueGeneratedOnAdd()
791 .HasColumnType(
"INTEGER");
793 b.Property<
string>(
"Name")
796 .HasColumnType(
"TEXT");
806 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatBot", b =>
808 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
809 .WithMany(
"ChatSettings")
810 .HasForeignKey(
"InstanceId")
811 .OnDelete(DeleteBehavior.Cascade)
814 b.Navigation(
"Instance");
817 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatChannel", b =>
819 b.HasOne(
"Tgstation.Server.Host.Models.ChatBot",
"ChatSettings")
820 .WithMany(
"Channels")
821 .HasForeignKey(
"ChatSettingsId")
822 .OnDelete(DeleteBehavior.Cascade)
825 b.Navigation(
"ChatSettings");
828 modelBuilder.Entity(
"Tgstation.Server.Host.Models.CompileJob", b =>
830 b.HasOne(
"Tgstation.Server.Host.Models.Job",
"Job")
832 .HasForeignKey(
"Tgstation.Server.Host.Models.CompileJob",
"JobId")
833 .OnDelete(DeleteBehavior.Cascade)
836 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"RevisionInformation")
837 .WithMany(
"CompileJobs")
838 .HasForeignKey(
"RevisionInformationId")
839 .OnDelete(DeleteBehavior.ClientNoAction)
844 b.Navigation(
"RevisionInformation");
847 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamDaemonSettings", b =>
849 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
850 .WithOne(
"DreamDaemonSettings")
851 .HasForeignKey(
"Tgstation.Server.Host.Models.DreamDaemonSettings",
"InstanceId")
852 .OnDelete(DeleteBehavior.Cascade)
855 b.Navigation(
"Instance");
858 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamMakerSettings", b =>
860 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
861 .WithOne(
"DreamMakerSettings")
862 .HasForeignKey(
"Tgstation.Server.Host.Models.DreamMakerSettings",
"InstanceId")
863 .OnDelete(DeleteBehavior.Cascade)
866 b.Navigation(
"Instance");
869 modelBuilder.Entity(
"Tgstation.Server.Host.Models.InstancePermissionSet", b =>
871 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
872 .WithMany(
"InstancePermissionSets")
873 .HasForeignKey(
"InstanceId")
874 .OnDelete(DeleteBehavior.Cascade)
877 b.HasOne(
"Tgstation.Server.Host.Models.PermissionSet",
"PermissionSet")
878 .WithMany(
"InstancePermissionSets")
879 .HasForeignKey(
"PermissionSetId")
880 .OnDelete(DeleteBehavior.Cascade)
883 b.Navigation(
"Instance");
885 b.Navigation(
"PermissionSet");
888 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Job", b =>
890 b.HasOne(
"Tgstation.Server.Host.Models.User",
"CancelledBy")
892 .HasForeignKey(
"CancelledById");
894 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
896 .HasForeignKey(
"InstanceId")
897 .OnDelete(DeleteBehavior.Cascade)
900 b.HasOne(
"Tgstation.Server.Host.Models.User",
"StartedBy")
902 .HasForeignKey(
"StartedById")
903 .OnDelete(DeleteBehavior.Cascade)
906 b.Navigation(
"CancelledBy");
908 b.Navigation(
"Instance");
910 b.Navigation(
"StartedBy");
913 modelBuilder.Entity(
"Tgstation.Server.Host.Models.OAuthConnection", b =>
915 b.HasOne(
"Tgstation.Server.Host.Models.User",
"User")
916 .WithMany(
"OAuthConnections")
917 .HasForeignKey(
"UserId")
918 .OnDelete(DeleteBehavior.Cascade)
921 b.Navigation(
"User");
924 modelBuilder.Entity(
"Tgstation.Server.Host.Models.OidcConnection", b =>
926 b.HasOne(
"Tgstation.Server.Host.Models.User",
"User")
927 .WithMany(
"OidcConnections")
928 .HasForeignKey(
"UserId")
929 .OnDelete(DeleteBehavior.Cascade)
932 b.Navigation(
"User");
935 modelBuilder.Entity(
"Tgstation.Server.Host.Models.PermissionSet", b =>
937 b.HasOne(
"Tgstation.Server.Host.Models.UserGroup",
"Group")
938 .WithOne(
"PermissionSet")
939 .HasForeignKey(
"Tgstation.Server.Host.Models.PermissionSet",
"GroupId")
940 .OnDelete(DeleteBehavior.Cascade);
942 b.HasOne(
"Tgstation.Server.Host.Models.User",
"User")
943 .WithOne(
"PermissionSet")
944 .HasForeignKey(
"Tgstation.Server.Host.Models.PermissionSet",
"UserId")
945 .OnDelete(DeleteBehavior.Cascade);
947 b.Navigation(
"Group");
949 b.Navigation(
"User");
952 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ReattachInformation", b =>
954 b.HasOne(
"Tgstation.Server.Host.Models.CompileJob",
"CompileJob")
956 .HasForeignKey(
"CompileJobId")
957 .OnDelete(DeleteBehavior.Cascade)
960 b.HasOne(
"Tgstation.Server.Host.Models.CompileJob",
"InitialCompileJob")
962 .HasForeignKey(
"InitialCompileJobId");
964 b.Navigation(
"CompileJob");
966 b.Navigation(
"InitialCompileJob");
969 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RepositorySettings", b =>
971 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
972 .WithOne(
"RepositorySettings")
973 .HasForeignKey(
"Tgstation.Server.Host.Models.RepositorySettings",
"InstanceId")
974 .OnDelete(DeleteBehavior.Cascade)
977 b.Navigation(
"Instance");
980 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
982 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"RevisionInformation")
983 .WithMany(
"ActiveTestMerges")
984 .HasForeignKey(
"RevisionInformationId")
985 .OnDelete(DeleteBehavior.Cascade)
988 b.HasOne(
"Tgstation.Server.Host.Models.TestMerge",
"TestMerge")
989 .WithMany(
"RevisonInformations")
990 .HasForeignKey(
"TestMergeId")
991 .OnDelete(DeleteBehavior.ClientNoAction)
994 b.Navigation(
"RevisionInformation");
996 b.Navigation(
"TestMerge");
999 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevisionInformation", b =>
1001 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
1002 .WithMany(
"RevisionInformations")
1003 .HasForeignKey(
"InstanceId")
1004 .OnDelete(DeleteBehavior.Cascade)
1007 b.Navigation(
"Instance");
1010 modelBuilder.Entity(
"Tgstation.Server.Host.Models.TestMerge", b =>
1012 b.HasOne(
"Tgstation.Server.Host.Models.User",
"MergedBy")
1013 .WithMany(
"TestMerges")
1014 .HasForeignKey(
"MergedById")
1015 .OnDelete(DeleteBehavior.Restrict)
1018 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"PrimaryRevisionInformation")
1019 .WithOne(
"PrimaryTestMerge")
1020 .HasForeignKey(
"Tgstation.Server.Host.Models.TestMerge",
"PrimaryRevisionInformationId")
1021 .OnDelete(DeleteBehavior.Cascade)
1024 b.Navigation(
"MergedBy");
1026 b.Navigation(
"PrimaryRevisionInformation");
1029 modelBuilder.Entity(
"Tgstation.Server.Host.Models.User", b =>
1031 b.HasOne(
"Tgstation.Server.Host.Models.User",
"CreatedBy")
1032 .WithMany(
"CreatedUsers")
1033 .HasForeignKey(
"CreatedById");
1035 b.HasOne(
"Tgstation.Server.Host.Models.UserGroup",
"Group")
1037 .HasForeignKey(
"GroupId");
1039 b.Navigation(
"CreatedBy");
1041 b.Navigation(
"Group");
1044 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatBot", b =>
1046 b.Navigation(
"Channels");
1049 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Instance", b =>
1051 b.Navigation(
"ChatSettings");
1053 b.Navigation(
"DreamDaemonSettings");
1055 b.Navigation(
"DreamMakerSettings");
1057 b.Navigation(
"InstancePermissionSets");
1059 b.Navigation(
"Jobs");
1061 b.Navigation(
"RepositorySettings");
1063 b.Navigation(
"RevisionInformations");
1066 modelBuilder.Entity(
"Tgstation.Server.Host.Models.PermissionSet", b =>
1068 b.Navigation(
"InstancePermissionSets");
1071 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevisionInformation", b =>
1073 b.Navigation(
"ActiveTestMerges");
1075 b.Navigation(
"CompileJobs");
1077 b.Navigation(
"PrimaryTestMerge");
1080 modelBuilder.Entity(
"Tgstation.Server.Host.Models.TestMerge", b =>
1082 b.Navigation(
"RevisonInformations");
1085 modelBuilder.Entity(
"Tgstation.Server.Host.Models.User", b =>
1087 b.Navigation(
"CreatedUsers");
1089 b.Navigation(
"OAuthConnections");
1091 b.Navigation(
"OidcConnections");
1093 b.Navigation(
"PermissionSet");
1095 b.Navigation(
"TestMerges");
1098 modelBuilder.Entity(
"Tgstation.Server.Host.Models.UserGroup", b =>
1100 b.Navigation(
"PermissionSet")
1103 b.Navigation(
"Users");
1105#pragma warning restore 612, 618