17#pragma warning disable 612, 618
19 .HasAnnotation(
"ProductVersion",
"3.1.20")
20 .HasAnnotation(
"Relational:MaxIdentifierLength", 64);
22 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatBot", b =>
24 b.Property<
long?>(
"Id")
25 .ValueGeneratedOnAdd()
26 .HasColumnType(
"bigint");
28 b.Property<ushort?>(
"ChannelLimit")
30 .HasColumnType(
"smallint unsigned");
32 b.Property<
string>(
"ConnectionString")
34 .HasColumnType(
"longtext CHARACTER SET utf8mb4")
37 b.Property<
bool?>(
"Enabled")
38 .HasColumnType(
"tinyint(1)");
40 b.Property<
long>(
"InstanceId")
41 .HasColumnType(
"bigint");
43 b.Property<
string>(
"Name")
45 .HasColumnType(
"varchar(100) CHARACTER SET utf8mb4")
48 b.Property<
int>(
"Provider")
49 .HasColumnType(
"int");
51 b.Property<uint?>(
"ReconnectionInterval")
53 .HasColumnType(
"int unsigned");
57 b.HasIndex(
"InstanceId",
"Name")
60 b.ToTable(
"ChatBots");
63 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatChannel", b =>
65 b.Property<
long>(
"Id")
66 .ValueGeneratedOnAdd()
67 .HasColumnType(
"bigint");
69 b.Property<
long>(
"ChatSettingsId")
70 .HasColumnType(
"bigint");
72 b.Property<ulong?>(
"DiscordChannelId")
73 .HasColumnType(
"bigint unsigned");
75 b.Property<
string>(
"IrcChannel")
76 .HasColumnType(
"varchar(100) CHARACTER SET utf8mb4")
79 b.Property<
bool?>(
"IsAdminChannel")
81 .HasColumnType(
"tinyint(1)");
83 b.Property<
bool?>(
"IsUpdatesChannel")
85 .HasColumnType(
"tinyint(1)");
87 b.Property<
bool?>(
"IsWatchdogChannel")
89 .HasColumnType(
"tinyint(1)");
91 b.Property<
string>(
"Tag")
92 .HasColumnType(
"longtext CHARACTER SET utf8mb4")
97 b.HasIndex(
"ChatSettingsId",
"DiscordChannelId")
100 b.HasIndex(
"ChatSettingsId",
"IrcChannel")
103 b.ToTable(
"ChatChannels");
106 modelBuilder.Entity(
"Tgstation.Server.Host.Models.CompileJob", b =>
108 b.Property<
long?>(
"Id")
109 .ValueGeneratedOnAdd()
110 .HasColumnType(
"bigint");
112 b.Property<
string>(
"ByondVersion")
114 .HasColumnType(
"longtext CHARACTER SET utf8mb4");
116 b.Property<
int?>(
"DMApiMajorVersion")
117 .HasColumnType(
"int");
119 b.Property<
int?>(
"DMApiMinorVersion")
120 .HasColumnType(
"int");
122 b.Property<
int?>(
"DMApiPatchVersion")
123 .HasColumnType(
"int");
125 b.Property<Guid?>(
"DirectoryName")
127 .HasColumnType(
"char(36)");
129 b.Property<
string>(
"DmeName")
131 .HasColumnType(
"longtext CHARACTER SET utf8mb4");
133 b.Property<
int?>(
"GitHubDeploymentId")
134 .HasColumnType(
"int");
136 b.Property<
long?>(
"GitHubRepoId")
137 .HasColumnType(
"bigint");
139 b.Property<
long>(
"JobId")
140 .HasColumnType(
"bigint");
142 b.Property<
int?>(
"MinimumSecurityLevel")
143 .HasColumnType(
"int");
145 b.Property<
string>(
"Output")
147 .HasColumnType(
"longtext CHARACTER SET utf8mb4");
149 b.Property<
string>(
"RepositoryOrigin")
150 .HasColumnType(
"longtext CHARACTER SET utf8mb4");
152 b.Property<
long>(
"RevisionInformationId")
153 .HasColumnType(
"bigint");
157 b.HasIndex(
"DirectoryName");
162 b.HasIndex(
"RevisionInformationId");
164 b.ToTable(
"CompileJobs");
167 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamDaemonSettings", b =>
169 b.Property<
long>(
"Id")
170 .ValueGeneratedOnAdd()
171 .HasColumnType(
"bigint");
173 b.Property<
string>(
"AdditionalParameters")
175 .HasColumnType(
"longtext CHARACTER SET utf8mb4")
176 .HasMaxLength(10000);
178 b.Property<
bool?>(
"AllowWebClient")
180 .HasColumnType(
"tinyint(1)");
182 b.Property<
bool?>(
"AutoStart")
184 .HasColumnType(
"tinyint(1)");
186 b.Property<
bool?>(
"DumpOnHeartbeatRestart")
188 .HasColumnType(
"tinyint(1)");
190 b.Property<uint?>(
"HeartbeatSeconds")
192 .HasColumnType(
"int unsigned");
194 b.Property<
long>(
"InstanceId")
195 .HasColumnType(
"bigint");
197 b.Property<ushort?>(
"Port")
199 .HasColumnType(
"smallint unsigned");
201 b.Property<
int>(
"SecurityLevel")
202 .HasColumnType(
"int");
204 b.Property<
bool?>(
"StartProfiler")
206 .HasColumnType(
"tinyint(1)");
208 b.Property<uint?>(
"StartupTimeout")
210 .HasColumnType(
"int unsigned");
212 b.Property<uint?>(
"TopicRequestTimeout")
214 .HasColumnType(
"int unsigned");
216 b.Property<
int>(
"Visibility")
217 .HasColumnType(
"int");
221 b.HasIndex(
"InstanceId")
224 b.ToTable(
"DreamDaemonSettings");
227 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamMakerSettings", b =>
229 b.Property<
long>(
"Id")
230 .ValueGeneratedOnAdd()
231 .HasColumnType(
"bigint");
233 b.Property<ushort?>(
"ApiValidationPort")
235 .HasColumnType(
"smallint unsigned");
237 b.Property<
int>(
"ApiValidationSecurityLevel")
238 .HasColumnType(
"int");
240 b.Property<
long>(
"InstanceId")
241 .HasColumnType(
"bigint");
243 b.Property<
string>(
"ProjectName")
244 .HasColumnType(
"longtext CHARACTER SET utf8mb4")
245 .HasMaxLength(10000);
247 b.Property<
bool?>(
"RequireDMApiValidation")
249 .HasColumnType(
"tinyint(1)");
251 b.Property<TimeSpan?>(
"Timeout")
253 .HasColumnType(
"time(6)");
257 b.HasIndex(
"InstanceId")
260 b.ToTable(
"DreamMakerSettings");
263 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Instance", b =>
265 b.Property<
long?>(
"Id")
266 .ValueGeneratedOnAdd()
267 .HasColumnType(
"bigint");
269 b.Property<uint?>(
"AutoUpdateInterval")
271 .HasColumnType(
"int unsigned");
273 b.Property<ushort?>(
"ChatBotLimit")
275 .HasColumnType(
"smallint unsigned");
277 b.Property<
int>(
"ConfigurationType")
278 .HasColumnType(
"int");
280 b.Property<
string>(
"Name")
282 .HasColumnType(
"varchar(100) CHARACTER SET utf8mb4")
285 b.Property<
bool?>(
"Online")
287 .HasColumnType(
"tinyint(1)");
289 b.Property<
string>(
"Path")
291 .HasColumnType(
"varchar(255) CHARACTER SET utf8mb4");
293 b.Property<
string>(
"SwarmIdentifer")
294 .HasColumnType(
"varchar(255) CHARACTER SET utf8mb4");
298 b.HasIndex(
"Path",
"SwarmIdentifer")
301 b.ToTable(
"Instances");
304 modelBuilder.Entity(
"Tgstation.Server.Host.Models.InstancePermissionSet", b =>
306 b.Property<
long>(
"Id")
307 .ValueGeneratedOnAdd()
308 .HasColumnType(
"bigint");
310 b.Property<ulong>(
"ByondRights")
311 .HasColumnType(
"bigint unsigned");
313 b.Property<ulong>(
"ChatBotRights")
314 .HasColumnType(
"bigint unsigned");
316 b.Property<ulong>(
"ConfigurationRights")
317 .HasColumnType(
"bigint unsigned");
319 b.Property<ulong>(
"DreamDaemonRights")
320 .HasColumnType(
"bigint unsigned");
322 b.Property<ulong>(
"DreamMakerRights")
323 .HasColumnType(
"bigint unsigned");
325 b.Property<
long>(
"InstanceId")
326 .HasColumnType(
"bigint");
328 b.Property<ulong>(
"InstancePermissionSetRights")
329 .HasColumnType(
"bigint unsigned");
331 b.Property<
long>(
"PermissionSetId")
332 .HasColumnType(
"bigint");
334 b.Property<ulong>(
"RepositoryRights")
335 .HasColumnType(
"bigint unsigned");
339 b.HasIndex(
"InstanceId");
341 b.HasIndex(
"PermissionSetId",
"InstanceId")
344 b.ToTable(
"InstancePermissionSets");
347 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Job", b =>
349 b.Property<
long?>(
"Id")
350 .ValueGeneratedOnAdd()
351 .HasColumnType(
"bigint");
353 b.Property<ulong?>(
"CancelRight")
354 .HasColumnType(
"bigint unsigned");
356 b.Property<ulong?>(
"CancelRightsType")
357 .HasColumnType(
"bigint unsigned");
359 b.Property<
bool?>(
"Cancelled")
361 .HasColumnType(
"tinyint(1)");
363 b.Property<
long?>(
"CancelledById")
364 .HasColumnType(
"bigint");
366 b.Property<
string>(
"Description")
368 .HasColumnType(
"longtext CHARACTER SET utf8mb4");
370 b.Property<uint?>(
"ErrorCode")
371 .HasColumnType(
"int unsigned");
373 b.Property<
string>(
"ExceptionDetails")
374 .HasColumnType(
"longtext CHARACTER SET utf8mb4");
376 b.Property<
long>(
"InstanceId")
377 .HasColumnType(
"bigint");
379 b.Property<DateTimeOffset?>(
"StartedAt")
381 .HasColumnType(
"datetime(6)");
383 b.Property<
long>(
"StartedById")
384 .HasColumnType(
"bigint");
386 b.Property<DateTimeOffset?>(
"StoppedAt")
387 .HasColumnType(
"datetime(6)");
391 b.HasIndex(
"CancelledById");
393 b.HasIndex(
"InstanceId");
395 b.HasIndex(
"StartedById");
400 modelBuilder.Entity(
"Tgstation.Server.Host.Models.OAuthConnection", b =>
402 b.Property<
long>(
"Id")
403 .ValueGeneratedOnAdd()
404 .HasColumnType(
"bigint");
406 b.Property<
string>(
"ExternalUserId")
408 .HasColumnType(
"varchar(100) CHARACTER SET utf8mb4")
411 b.Property<
int>(
"Provider")
412 .HasColumnType(
"int");
414 b.Property<
long?>(
"UserId")
415 .HasColumnType(
"bigint");
419 b.HasIndex(
"UserId");
421 b.HasIndex(
"Provider",
"ExternalUserId")
424 b.ToTable(
"OAuthConnections");
427 modelBuilder.Entity(
"Tgstation.Server.Host.Models.PermissionSet", b =>
429 b.Property<
long?>(
"Id")
430 .ValueGeneratedOnAdd()
431 .HasColumnType(
"bigint");
433 b.Property<ulong>(
"AdministrationRights")
434 .HasColumnType(
"bigint unsigned");
436 b.Property<
long?>(
"GroupId")
437 .HasColumnType(
"bigint");
439 b.Property<ulong>(
"InstanceManagerRights")
440 .HasColumnType(
"bigint unsigned");
442 b.Property<
long?>(
"UserId")
443 .HasColumnType(
"bigint");
447 b.HasIndex(
"GroupId")
453 b.ToTable(
"PermissionSets");
456 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ReattachInformation", b =>
458 b.Property<
long>(
"Id")
459 .ValueGeneratedOnAdd()
460 .HasColumnType(
"bigint");
462 b.Property<
string>(
"AccessIdentifier")
464 .HasColumnType(
"longtext CHARACTER SET utf8mb4");
466 b.Property<
long>(
"CompileJobId")
467 .HasColumnType(
"bigint");
469 b.Property<
int>(
"LaunchSecurityLevel")
470 .HasColumnType(
"int");
472 b.Property<
int>(
"LaunchVisibility")
473 .HasColumnType(
"int");
475 b.Property<ushort>(
"Port")
476 .HasColumnType(
"smallint unsigned");
478 b.Property<
int>(
"ProcessId")
479 .HasColumnType(
"int");
481 b.Property<
int>(
"RebootState")
482 .HasColumnType(
"int");
486 b.HasIndex(
"CompileJobId");
488 b.ToTable(
"ReattachInformations");
491 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RepositorySettings", b =>
493 b.Property<
long>(
"Id")
494 .ValueGeneratedOnAdd()
495 .HasColumnType(
"bigint");
497 b.Property<
string>(
"AccessToken")
498 .HasColumnType(
"longtext CHARACTER SET utf8mb4")
499 .HasMaxLength(10000);
501 b.Property<
string>(
"AccessUser")
502 .HasColumnType(
"longtext CHARACTER SET utf8mb4")
503 .HasMaxLength(10000);
505 b.Property<
bool?>(
"AutoUpdatesKeepTestMerges")
507 .HasColumnType(
"tinyint(1)");
509 b.Property<
bool?>(
"AutoUpdatesSynchronize")
511 .HasColumnType(
"tinyint(1)");
513 b.Property<
string>(
"CommitterEmail")
515 .HasColumnType(
"longtext CHARACTER SET utf8mb4")
516 .HasMaxLength(10000);
518 b.Property<
string>(
"CommitterName")
520 .HasColumnType(
"longtext CHARACTER SET utf8mb4")
521 .HasMaxLength(10000);
523 b.Property<
bool?>(
"CreateGitHubDeployments")
525 .HasColumnType(
"tinyint(1)");
527 b.Property<
long>(
"InstanceId")
528 .HasColumnType(
"bigint");
530 b.Property<
bool?>(
"PostTestMergeComment")
532 .HasColumnType(
"tinyint(1)");
534 b.Property<
bool?>(
"PushTestMergeCommits")
536 .HasColumnType(
"tinyint(1)");
538 b.Property<
bool?>(
"ShowTestMergeCommitters")
540 .HasColumnType(
"tinyint(1)");
542 b.Property<
bool?>(
"UpdateSubmodules")
544 .HasColumnType(
"tinyint(1)");
548 b.HasIndex(
"InstanceId")
551 b.ToTable(
"RepositorySettings");
554 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
556 b.Property<
long>(
"Id")
557 .ValueGeneratedOnAdd()
558 .HasColumnType(
"bigint");
560 b.Property<
long>(
"RevisionInformationId")
561 .HasColumnType(
"bigint");
563 b.Property<
long>(
"TestMergeId")
564 .HasColumnType(
"bigint");
568 b.HasIndex(
"RevisionInformationId");
570 b.HasIndex(
"TestMergeId");
572 b.ToTable(
"RevInfoTestMerges");
575 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevisionInformation", b =>
577 b.Property<
long>(
"Id")
578 .ValueGeneratedOnAdd()
579 .HasColumnType(
"bigint");
581 b.Property<
string>(
"CommitSha")
583 .HasColumnType(
"varchar(40) CHARACTER SET utf8mb4")
586 b.Property<
long>(
"InstanceId")
587 .HasColumnType(
"bigint");
589 b.Property<
string>(
"OriginCommitSha")
591 .HasColumnType(
"varchar(40) CHARACTER SET utf8mb4")
594 b.Property<DateTimeOffset>(
"Timestamp")
595 .HasColumnType(
"datetime(6)");
599 b.HasIndex(
"InstanceId",
"CommitSha")
602 b.ToTable(
"RevisionInformations");
605 modelBuilder.Entity(
"Tgstation.Server.Host.Models.TestMerge", b =>
607 b.Property<
long>(
"Id")
608 .ValueGeneratedOnAdd()
609 .HasColumnType(
"bigint");
611 b.Property<
string>(
"Author")
613 .HasColumnType(
"longtext CHARACTER SET utf8mb4");
615 b.Property<
string>(
"BodyAtMerge")
617 .HasColumnType(
"longtext CHARACTER SET utf8mb4");
619 b.Property<
string>(
"Comment")
620 .HasColumnType(
"longtext CHARACTER SET utf8mb4")
621 .HasMaxLength(10000);
623 b.Property<DateTimeOffset>(
"MergedAt")
624 .HasColumnType(
"datetime(6)");
626 b.Property<
long>(
"MergedById")
627 .HasColumnType(
"bigint");
629 b.Property<
int>(
"Number")
630 .HasColumnType(
"int");
632 b.Property<
long?>(
"PrimaryRevisionInformationId")
634 .HasColumnType(
"bigint");
636 b.Property<
string>(
"TargetCommitSha")
638 .HasColumnType(
"varchar(40) CHARACTER SET utf8mb4")
641 b.Property<
string>(
"TitleAtMerge")
643 .HasColumnType(
"longtext CHARACTER SET utf8mb4");
645 b.Property<
string>(
"Url")
647 .HasColumnType(
"longtext CHARACTER SET utf8mb4");
651 b.HasIndex(
"MergedById");
653 b.HasIndex(
"PrimaryRevisionInformationId")
656 b.ToTable(
"TestMerges");
659 modelBuilder.Entity(
"Tgstation.Server.Host.Models.User", b =>
661 b.Property<
long?>(
"Id")
662 .ValueGeneratedOnAdd()
663 .HasColumnType(
"bigint");
665 b.Property<
string>(
"CanonicalName")
667 .HasColumnType(
"varchar(100) CHARACTER SET utf8mb4")
670 b.Property<DateTimeOffset?>(
"CreatedAt")
672 .HasColumnType(
"datetime(6)");
674 b.Property<
long?>(
"CreatedById")
675 .HasColumnType(
"bigint");
677 b.Property<
bool?>(
"Enabled")
679 .HasColumnType(
"tinyint(1)");
681 b.Property<
long?>(
"GroupId")
682 .HasColumnType(
"bigint");
684 b.Property<DateTimeOffset?>(
"LastPasswordUpdate")
685 .HasColumnType(
"datetime(6)");
687 b.Property<
string>(
"Name")
689 .HasColumnType(
"varchar(100) CHARACTER SET utf8mb4")
692 b.Property<
string>(
"PasswordHash")
693 .HasColumnType(
"longtext CHARACTER SET utf8mb4");
695 b.Property<
string>(
"SystemIdentifier")
696 .HasColumnType(
"varchar(100) CHARACTER SET utf8mb4")
701 b.HasIndex(
"CanonicalName")
704 b.HasIndex(
"CreatedById");
706 b.HasIndex(
"GroupId");
708 b.HasIndex(
"SystemIdentifier")
714 modelBuilder.Entity(
"Tgstation.Server.Host.Models.UserGroup", b =>
716 b.Property<
long?>(
"Id")
717 .ValueGeneratedOnAdd()
718 .HasColumnType(
"bigint");
720 b.Property<
string>(
"Name")
722 .HasColumnType(
"varchar(100) CHARACTER SET utf8mb4")
733 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatBot", b =>
735 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
736 .WithMany(
"ChatSettings")
737 .HasForeignKey(
"InstanceId")
738 .OnDelete(DeleteBehavior.Cascade)
742 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatChannel", b =>
744 b.HasOne(
"Tgstation.Server.Host.Models.ChatBot",
"ChatSettings")
745 .WithMany(
"Channels")
746 .HasForeignKey(
"ChatSettingsId")
747 .OnDelete(DeleteBehavior.Cascade)
751 modelBuilder.Entity(
"Tgstation.Server.Host.Models.CompileJob", b =>
753 b.HasOne(
"Tgstation.Server.Host.Models.Job",
"Job")
755 .HasForeignKey(
"Tgstation.Server.Host.Models.CompileJob",
"JobId")
756 .OnDelete(DeleteBehavior.Cascade)
759 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"RevisionInformation")
760 .WithMany(
"CompileJobs")
761 .HasForeignKey(
"RevisionInformationId")
762 .OnDelete(DeleteBehavior.Cascade)
766 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamDaemonSettings", b =>
768 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
769 .WithOne(
"DreamDaemonSettings")
770 .HasForeignKey(
"Tgstation.Server.Host.Models.DreamDaemonSettings",
"InstanceId")
771 .OnDelete(DeleteBehavior.Cascade)
775 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamMakerSettings", b =>
777 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
778 .WithOne(
"DreamMakerSettings")
779 .HasForeignKey(
"Tgstation.Server.Host.Models.DreamMakerSettings",
"InstanceId")
780 .OnDelete(DeleteBehavior.Cascade)
784 modelBuilder.Entity(
"Tgstation.Server.Host.Models.InstancePermissionSet", b =>
786 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
787 .WithMany(
"InstancePermissionSets")
788 .HasForeignKey(
"InstanceId")
789 .OnDelete(DeleteBehavior.Cascade)
792 b.HasOne(
"Tgstation.Server.Host.Models.PermissionSet",
"PermissionSet")
793 .WithMany(
"InstancePermissionSets")
794 .HasForeignKey(
"PermissionSetId")
795 .OnDelete(DeleteBehavior.Cascade)
799 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Job", b =>
801 b.HasOne(
"Tgstation.Server.Host.Models.User",
"CancelledBy")
803 .HasForeignKey(
"CancelledById");
805 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
807 .HasForeignKey(
"InstanceId")
808 .OnDelete(DeleteBehavior.Cascade)
811 b.HasOne(
"Tgstation.Server.Host.Models.User",
"StartedBy")
813 .HasForeignKey(
"StartedById")
814 .OnDelete(DeleteBehavior.Cascade)
818 modelBuilder.Entity(
"Tgstation.Server.Host.Models.OAuthConnection", b =>
820 b.HasOne(
"Tgstation.Server.Host.Models.User",
"User")
821 .WithMany(
"OAuthConnections")
822 .HasForeignKey(
"UserId")
823 .OnDelete(DeleteBehavior.Cascade);
826 modelBuilder.Entity(
"Tgstation.Server.Host.Models.PermissionSet", b =>
828 b.HasOne(
"Tgstation.Server.Host.Models.UserGroup",
"Group")
829 .WithOne(
"PermissionSet")
830 .HasForeignKey(
"Tgstation.Server.Host.Models.PermissionSet",
"GroupId")
831 .OnDelete(DeleteBehavior.Cascade);
833 b.HasOne(
"Tgstation.Server.Host.Models.User",
"User")
834 .WithOne(
"PermissionSet")
835 .HasForeignKey(
"Tgstation.Server.Host.Models.PermissionSet",
"UserId")
836 .OnDelete(DeleteBehavior.Cascade);
839 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ReattachInformation", b =>
841 b.HasOne(
"Tgstation.Server.Host.Models.CompileJob",
"CompileJob")
843 .HasForeignKey(
"CompileJobId")
844 .OnDelete(DeleteBehavior.Cascade)
848 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RepositorySettings", b =>
850 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
851 .WithOne(
"RepositorySettings")
852 .HasForeignKey(
"Tgstation.Server.Host.Models.RepositorySettings",
"InstanceId")
853 .OnDelete(DeleteBehavior.Cascade)
857 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
859 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"RevisionInformation")
860 .WithMany(
"ActiveTestMerges")
861 .HasForeignKey(
"RevisionInformationId")
862 .OnDelete(DeleteBehavior.Cascade)
865 b.HasOne(
"Tgstation.Server.Host.Models.TestMerge",
"TestMerge")
866 .WithMany(
"RevisonInformations")
867 .HasForeignKey(
"TestMergeId")
868 .OnDelete(DeleteBehavior.ClientNoAction)
872 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevisionInformation", b =>
874 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
875 .WithMany(
"RevisionInformations")
876 .HasForeignKey(
"InstanceId")
877 .OnDelete(DeleteBehavior.Cascade)
881 modelBuilder.Entity(
"Tgstation.Server.Host.Models.TestMerge", b =>
883 b.HasOne(
"Tgstation.Server.Host.Models.User",
"MergedBy")
884 .WithMany(
"TestMerges")
885 .HasForeignKey(
"MergedById")
886 .OnDelete(DeleteBehavior.Restrict)
889 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"PrimaryRevisionInformation")
890 .WithOne(
"PrimaryTestMerge")
891 .HasForeignKey(
"Tgstation.Server.Host.Models.TestMerge",
"PrimaryRevisionInformationId")
892 .OnDelete(DeleteBehavior.Cascade)
896 modelBuilder.Entity(
"Tgstation.Server.Host.Models.User", b =>
898 b.HasOne(
"Tgstation.Server.Host.Models.User",
"CreatedBy")
899 .WithMany(
"CreatedUsers")
900 .HasForeignKey(
"CreatedById");
902 b.HasOne(
"Tgstation.Server.Host.Models.UserGroup",
"Group")
904 .HasForeignKey(
"GroupId");
906#pragma warning restore 612, 618