16#pragma warning disable 612, 618
18 .HasAnnotation(
"ProductVersion",
"3.1.10")
19 .HasAnnotation(
"Relational:MaxIdentifierLength", 64);
21 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatBot", b =>
23 b.Property<
long>(
"Id")
24 .ValueGeneratedOnAdd()
25 .HasColumnType(
"bigint");
27 b.Property<ushort?>(
"ChannelLimit")
29 .HasColumnType(
"smallint unsigned");
31 b.Property<
string>(
"ConnectionString")
33 .HasColumnType(
"longtext CHARACTER SET utf8mb4")
36 b.Property<
bool?>(
"Enabled")
37 .HasColumnType(
"tinyint(1)");
39 b.Property<
long>(
"InstanceId")
40 .HasColumnType(
"bigint");
42 b.Property<
string>(
"Name")
44 .HasColumnType(
"varchar(100) CHARACTER SET utf8mb4")
47 b.Property<
int>(
"Provider")
48 .HasColumnType(
"int");
50 b.Property<uint?>(
"ReconnectionInterval")
52 .HasColumnType(
"int unsigned");
56 b.HasIndex(
"InstanceId",
"Name")
59 b.ToTable(
"ChatBots");
62 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatChannel", b =>
64 b.Property<
long>(
"Id")
65 .ValueGeneratedOnAdd()
66 .HasColumnType(
"bigint");
68 b.Property<
long>(
"ChatSettingsId")
69 .HasColumnType(
"bigint");
71 b.Property<ulong?>(
"DiscordChannelId")
72 .HasColumnType(
"bigint unsigned");
74 b.Property<
string>(
"IrcChannel")
75 .HasColumnType(
"varchar(100) CHARACTER SET utf8mb4")
78 b.Property<
bool?>(
"IsAdminChannel")
80 .HasColumnType(
"tinyint(1)");
82 b.Property<
bool?>(
"IsUpdatesChannel")
84 .HasColumnType(
"tinyint(1)");
86 b.Property<
bool?>(
"IsWatchdogChannel")
88 .HasColumnType(
"tinyint(1)");
90 b.Property<
string>(
"Tag")
91 .HasColumnType(
"longtext CHARACTER SET utf8mb4")
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(
"bigint");
111 b.Property<
string>(
"ByondVersion")
113 .HasColumnType(
"longtext CHARACTER SET utf8mb4");
115 b.Property<
int?>(
"DMApiMajorVersion")
116 .HasColumnType(
"int");
118 b.Property<
int?>(
"DMApiMinorVersion")
119 .HasColumnType(
"int");
121 b.Property<
int?>(
"DMApiPatchVersion")
122 .HasColumnType(
"int");
124 b.Property<Guid?>(
"DirectoryName")
126 .HasColumnType(
"char(36)");
128 b.Property<
string>(
"DmeName")
130 .HasColumnType(
"longtext CHARACTER SET utf8mb4");
132 b.Property<
int?>(
"GitHubDeploymentId")
133 .HasColumnType(
"int");
135 b.Property<
long?>(
"GitHubRepoId")
136 .HasColumnType(
"bigint");
138 b.Property<
long>(
"JobId")
139 .HasColumnType(
"bigint");
141 b.Property<
int?>(
"MinimumSecurityLevel")
142 .HasColumnType(
"int");
144 b.Property<
string>(
"Output")
146 .HasColumnType(
"longtext CHARACTER SET utf8mb4");
148 b.Property<
string>(
"RepositoryOrigin")
149 .HasColumnType(
"longtext CHARACTER SET utf8mb4");
151 b.Property<
long>(
"RevisionInformationId")
152 .HasColumnType(
"bigint");
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(
"bigint");
172 b.Property<
string>(
"AdditionalParameters")
174 .HasColumnType(
"longtext CHARACTER SET utf8mb4")
175 .HasMaxLength(10000);
177 b.Property<
bool?>(
"AllowWebClient")
179 .HasColumnType(
"tinyint(1)");
181 b.Property<
bool?>(
"AutoStart")
183 .HasColumnType(
"tinyint(1)");
185 b.Property<uint?>(
"HeartbeatSeconds")
187 .HasColumnType(
"int unsigned");
189 b.Property<
long>(
"InstanceId")
190 .HasColumnType(
"bigint");
192 b.Property<ushort?>(
"Port")
194 .HasColumnType(
"smallint unsigned");
196 b.Property<
int>(
"SecurityLevel")
197 .HasColumnType(
"int");
199 b.Property<uint?>(
"StartupTimeout")
201 .HasColumnType(
"int unsigned");
203 b.Property<uint?>(
"TopicRequestTimeout")
205 .HasColumnType(
"int unsigned");
209 b.HasIndex(
"InstanceId")
212 b.ToTable(
"DreamDaemonSettings");
215 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamMakerSettings", b =>
217 b.Property<
long>(
"Id")
218 .ValueGeneratedOnAdd()
219 .HasColumnType(
"bigint");
221 b.Property<ushort?>(
"ApiValidationPort")
223 .HasColumnType(
"smallint unsigned");
225 b.Property<
int>(
"ApiValidationSecurityLevel")
226 .HasColumnType(
"int");
228 b.Property<
long>(
"InstanceId")
229 .HasColumnType(
"bigint");
231 b.Property<
string>(
"ProjectName")
232 .HasColumnType(
"longtext CHARACTER SET utf8mb4")
233 .HasMaxLength(10000);
235 b.Property<
bool?>(
"RequireDMApiValidation")
237 .HasColumnType(
"tinyint(1)");
241 b.HasIndex(
"InstanceId")
244 b.ToTable(
"DreamMakerSettings");
247 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Instance", b =>
249 b.Property<
long>(
"Id")
250 .ValueGeneratedOnAdd()
251 .HasColumnType(
"bigint");
253 b.Property<uint?>(
"AutoUpdateInterval")
255 .HasColumnType(
"int unsigned");
257 b.Property<ushort?>(
"ChatBotLimit")
259 .HasColumnType(
"smallint unsigned");
261 b.Property<
int>(
"ConfigurationType")
262 .HasColumnType(
"int");
264 b.Property<
string>(
"Name")
266 .HasColumnType(
"longtext CHARACTER SET utf8mb4")
267 .HasMaxLength(10000);
269 b.Property<
bool?>(
"Online")
271 .HasColumnType(
"tinyint(1)");
273 b.Property<
string>(
"Path")
275 .HasColumnType(
"varchar(255) CHARACTER SET utf8mb4");
277 b.Property<
string>(
"SwarmIdentifer")
278 .HasColumnType(
"varchar(255) CHARACTER SET utf8mb4");
282 b.HasIndex(
"Path",
"SwarmIdentifer")
285 b.ToTable(
"Instances");
288 modelBuilder.Entity(
"Tgstation.Server.Host.Models.InstancePermissionSet", b =>
290 b.Property<
long>(
"Id")
291 .ValueGeneratedOnAdd()
292 .HasColumnType(
"bigint");
294 b.Property<ulong>(
"ByondRights")
295 .HasColumnType(
"bigint unsigned");
297 b.Property<ulong>(
"ChatBotRights")
298 .HasColumnType(
"bigint unsigned");
300 b.Property<ulong>(
"ConfigurationRights")
301 .HasColumnType(
"bigint unsigned");
303 b.Property<ulong>(
"DreamDaemonRights")
304 .HasColumnType(
"bigint unsigned");
306 b.Property<ulong>(
"DreamMakerRights")
307 .HasColumnType(
"bigint unsigned");
309 b.Property<
long>(
"InstanceId")
310 .HasColumnType(
"bigint");
312 b.Property<ulong>(
"InstancePermissionSetRights")
313 .HasColumnType(
"bigint unsigned");
315 b.Property<
long>(
"PermissionSetId")
316 .HasColumnType(
"bigint");
318 b.Property<ulong>(
"RepositoryRights")
319 .HasColumnType(
"bigint unsigned");
323 b.HasIndex(
"InstanceId");
325 b.HasIndex(
"PermissionSetId",
"InstanceId")
328 b.ToTable(
"InstancePermissionSets");
331 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Job", b =>
333 b.Property<
long>(
"Id")
334 .ValueGeneratedOnAdd()
335 .HasColumnType(
"bigint");
337 b.Property<ulong?>(
"CancelRight")
338 .HasColumnType(
"bigint unsigned");
340 b.Property<ulong?>(
"CancelRightsType")
341 .HasColumnType(
"bigint unsigned");
343 b.Property<
bool?>(
"Cancelled")
345 .HasColumnType(
"tinyint(1)");
347 b.Property<
long?>(
"CancelledById")
348 .HasColumnType(
"bigint");
350 b.Property<
string>(
"Description")
352 .HasColumnType(
"longtext CHARACTER SET utf8mb4");
354 b.Property<uint?>(
"ErrorCode")
355 .HasColumnType(
"int unsigned");
357 b.Property<
string>(
"ExceptionDetails")
358 .HasColumnType(
"longtext CHARACTER SET utf8mb4");
360 b.Property<
long>(
"InstanceId")
361 .HasColumnType(
"bigint");
363 b.Property<DateTimeOffset?>(
"StartedAt")
365 .HasColumnType(
"datetime(6)");
367 b.Property<
long>(
"StartedById")
368 .HasColumnType(
"bigint");
370 b.Property<DateTimeOffset?>(
"StoppedAt")
371 .HasColumnType(
"datetime(6)");
375 b.HasIndex(
"CancelledById");
377 b.HasIndex(
"InstanceId");
379 b.HasIndex(
"StartedById");
384 modelBuilder.Entity(
"Tgstation.Server.Host.Models.OAuthConnection", b =>
386 b.Property<
long>(
"Id")
387 .ValueGeneratedOnAdd()
388 .HasColumnType(
"bigint");
390 b.Property<
string>(
"ExternalUserId")
392 .HasColumnType(
"varchar(100) CHARACTER SET utf8mb4")
395 b.Property<
int>(
"Provider")
396 .HasColumnType(
"int");
398 b.Property<
long?>(
"UserId")
399 .HasColumnType(
"bigint");
403 b.HasIndex(
"UserId");
405 b.HasIndex(
"Provider",
"ExternalUserId")
408 b.ToTable(
"OAuthConnections");
411 modelBuilder.Entity(
"Tgstation.Server.Host.Models.PermissionSet", b =>
413 b.Property<
long?>(
"Id")
414 .ValueGeneratedOnAdd()
415 .HasColumnType(
"bigint");
417 b.Property<ulong>(
"AdministrationRights")
418 .HasColumnType(
"bigint unsigned");
420 b.Property<
long?>(
"GroupId")
421 .HasColumnType(
"bigint");
423 b.Property<ulong>(
"InstanceManagerRights")
424 .HasColumnType(
"bigint unsigned");
426 b.Property<
long?>(
"UserId")
427 .HasColumnType(
"bigint");
431 b.HasIndex(
"GroupId")
437 b.ToTable(
"PermissionSets");
440 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ReattachInformation", b =>
442 b.Property<
long>(
"Id")
443 .ValueGeneratedOnAdd()
444 .HasColumnType(
"bigint");
446 b.Property<
string>(
"AccessIdentifier")
448 .HasColumnType(
"longtext CHARACTER SET utf8mb4");
450 b.Property<
long>(
"CompileJobId")
451 .HasColumnType(
"bigint");
453 b.Property<
int>(
"LaunchSecurityLevel")
454 .HasColumnType(
"int");
456 b.Property<ushort>(
"Port")
457 .HasColumnType(
"smallint unsigned");
459 b.Property<
int>(
"ProcessId")
460 .HasColumnType(
"int");
462 b.Property<
int>(
"RebootState")
463 .HasColumnType(
"int");
467 b.HasIndex(
"CompileJobId");
469 b.ToTable(
"ReattachInformations");
472 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RepositorySettings", b =>
474 b.Property<
long>(
"Id")
475 .ValueGeneratedOnAdd()
476 .HasColumnType(
"bigint");
478 b.Property<
string>(
"AccessToken")
479 .HasColumnType(
"longtext CHARACTER SET utf8mb4")
480 .HasMaxLength(10000);
482 b.Property<
string>(
"AccessUser")
483 .HasColumnType(
"longtext CHARACTER SET utf8mb4")
484 .HasMaxLength(10000);
486 b.Property<
bool?>(
"AutoUpdatesKeepTestMerges")
488 .HasColumnType(
"tinyint(1)");
490 b.Property<
bool?>(
"AutoUpdatesSynchronize")
492 .HasColumnType(
"tinyint(1)");
494 b.Property<
string>(
"CommitterEmail")
496 .HasColumnType(
"longtext CHARACTER SET utf8mb4")
497 .HasMaxLength(10000);
499 b.Property<
string>(
"CommitterName")
501 .HasColumnType(
"longtext CHARACTER SET utf8mb4")
502 .HasMaxLength(10000);
504 b.Property<
bool?>(
"CreateGitHubDeployments")
506 .HasColumnType(
"tinyint(1)");
508 b.Property<
long>(
"InstanceId")
509 .HasColumnType(
"bigint");
511 b.Property<
bool?>(
"PostTestMergeComment")
513 .HasColumnType(
"tinyint(1)");
515 b.Property<
bool?>(
"PushTestMergeCommits")
517 .HasColumnType(
"tinyint(1)");
519 b.Property<
bool?>(
"ShowTestMergeCommitters")
521 .HasColumnType(
"tinyint(1)");
525 b.HasIndex(
"InstanceId")
528 b.ToTable(
"RepositorySettings");
531 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
533 b.Property<
long>(
"Id")
534 .ValueGeneratedOnAdd()
535 .HasColumnType(
"bigint");
537 b.Property<
long>(
"RevisionInformationId")
538 .HasColumnType(
"bigint");
540 b.Property<
long>(
"TestMergeId")
541 .HasColumnType(
"bigint");
545 b.HasIndex(
"RevisionInformationId");
547 b.HasIndex(
"TestMergeId");
549 b.ToTable(
"RevInfoTestMerges");
552 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevisionInformation", b =>
554 b.Property<
long>(
"Id")
555 .ValueGeneratedOnAdd()
556 .HasColumnType(
"bigint");
558 b.Property<
string>(
"CommitSha")
560 .HasColumnType(
"varchar(40) CHARACTER SET utf8mb4")
563 b.Property<
long>(
"InstanceId")
564 .HasColumnType(
"bigint");
566 b.Property<
string>(
"OriginCommitSha")
568 .HasColumnType(
"varchar(40) CHARACTER SET utf8mb4")
573 b.HasIndex(
"InstanceId",
"CommitSha")
576 b.ToTable(
"RevisionInformations");
579 modelBuilder.Entity(
"Tgstation.Server.Host.Models.TestMerge", b =>
581 b.Property<
long>(
"Id")
582 .ValueGeneratedOnAdd()
583 .HasColumnType(
"bigint");
585 b.Property<
string>(
"Author")
587 .HasColumnType(
"longtext CHARACTER SET utf8mb4");
589 b.Property<
string>(
"BodyAtMerge")
591 .HasColumnType(
"longtext CHARACTER SET utf8mb4");
593 b.Property<
string>(
"Comment")
594 .HasColumnType(
"longtext CHARACTER SET utf8mb4")
595 .HasMaxLength(10000);
597 b.Property<DateTimeOffset>(
"MergedAt")
598 .HasColumnType(
"datetime(6)");
600 b.Property<
long>(
"MergedById")
601 .HasColumnType(
"bigint");
603 b.Property<
int>(
"Number")
604 .HasColumnType(
"int");
606 b.Property<
long?>(
"PrimaryRevisionInformationId")
608 .HasColumnType(
"bigint");
610 b.Property<
string>(
"TargetCommitSha")
612 .HasColumnType(
"varchar(40) CHARACTER SET utf8mb4")
615 b.Property<
string>(
"TitleAtMerge")
617 .HasColumnType(
"longtext CHARACTER SET utf8mb4");
619 b.Property<
string>(
"Url")
621 .HasColumnType(
"longtext CHARACTER SET utf8mb4");
625 b.HasIndex(
"MergedById");
627 b.HasIndex(
"PrimaryRevisionInformationId")
630 b.ToTable(
"TestMerges");
633 modelBuilder.Entity(
"Tgstation.Server.Host.Models.User", b =>
635 b.Property<
long?>(
"Id")
636 .ValueGeneratedOnAdd()
637 .HasColumnType(
"bigint");
639 b.Property<
string>(
"CanonicalName")
641 .HasColumnType(
"varchar(100) CHARACTER SET utf8mb4")
644 b.Property<DateTimeOffset?>(
"CreatedAt")
646 .HasColumnType(
"datetime(6)");
648 b.Property<
long?>(
"CreatedById")
649 .HasColumnType(
"bigint");
651 b.Property<
bool?>(
"Enabled")
653 .HasColumnType(
"tinyint(1)");
655 b.Property<
long?>(
"GroupId")
656 .HasColumnType(
"bigint");
658 b.Property<DateTimeOffset?>(
"LastPasswordUpdate")
659 .HasColumnType(
"datetime(6)");
661 b.Property<
string>(
"Name")
663 .HasColumnType(
"varchar(100) CHARACTER SET utf8mb4")
666 b.Property<
string>(
"PasswordHash")
667 .HasColumnType(
"longtext CHARACTER SET utf8mb4");
669 b.Property<
string>(
"SystemIdentifier")
670 .HasColumnType(
"varchar(100) CHARACTER SET utf8mb4")
675 b.HasIndex(
"CanonicalName")
678 b.HasIndex(
"CreatedById");
680 b.HasIndex(
"GroupId");
682 b.HasIndex(
"SystemIdentifier")
688 modelBuilder.Entity(
"Tgstation.Server.Host.Models.UserGroup", b =>
690 b.Property<
long>(
"Id")
691 .ValueGeneratedOnAdd()
692 .HasColumnType(
"bigint");
694 b.Property<
string>(
"Name")
696 .HasColumnType(
"varchar(100) CHARACTER SET utf8mb4")
707 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatBot", b =>
709 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
710 .WithMany(
"ChatSettings")
711 .HasForeignKey(
"InstanceId")
712 .OnDelete(DeleteBehavior.Cascade)
716 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatChannel", b =>
718 b.HasOne(
"Tgstation.Server.Host.Models.ChatBot",
"ChatSettings")
719 .WithMany(
"Channels")
720 .HasForeignKey(
"ChatSettingsId")
721 .OnDelete(DeleteBehavior.Cascade)
725 modelBuilder.Entity(
"Tgstation.Server.Host.Models.CompileJob", b =>
727 b.HasOne(
"Tgstation.Server.Host.Models.Job",
"Job")
729 .HasForeignKey(
"Tgstation.Server.Host.Models.CompileJob",
"JobId")
730 .OnDelete(DeleteBehavior.Cascade)
733 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"RevisionInformation")
734 .WithMany(
"CompileJobs")
735 .HasForeignKey(
"RevisionInformationId")
736 .OnDelete(DeleteBehavior.Cascade)
740 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamDaemonSettings", b =>
742 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
743 .WithOne(
"DreamDaemonSettings")
744 .HasForeignKey(
"Tgstation.Server.Host.Models.DreamDaemonSettings",
"InstanceId")
745 .OnDelete(DeleteBehavior.Cascade)
749 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamMakerSettings", b =>
751 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
752 .WithOne(
"DreamMakerSettings")
753 .HasForeignKey(
"Tgstation.Server.Host.Models.DreamMakerSettings",
"InstanceId")
754 .OnDelete(DeleteBehavior.Cascade)
758 modelBuilder.Entity(
"Tgstation.Server.Host.Models.InstancePermissionSet", b =>
760 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
761 .WithMany(
"InstancePermissionSets")
762 .HasForeignKey(
"InstanceId")
763 .OnDelete(DeleteBehavior.Cascade)
766 b.HasOne(
"Tgstation.Server.Host.Models.PermissionSet",
"PermissionSet")
767 .WithMany(
"InstancePermissionSets")
768 .HasForeignKey(
"PermissionSetId")
769 .OnDelete(DeleteBehavior.Cascade)
773 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Job", b =>
775 b.HasOne(
"Tgstation.Server.Host.Models.User",
"CancelledBy")
777 .HasForeignKey(
"CancelledById");
779 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
781 .HasForeignKey(
"InstanceId")
782 .OnDelete(DeleteBehavior.Cascade)
785 b.HasOne(
"Tgstation.Server.Host.Models.User",
"StartedBy")
787 .HasForeignKey(
"StartedById")
788 .OnDelete(DeleteBehavior.Cascade)
792 modelBuilder.Entity(
"Tgstation.Server.Host.Models.OAuthConnection", b =>
794 b.HasOne(
"Tgstation.Server.Host.Models.User",
"User")
795 .WithMany(
"OAuthConnections")
796 .HasForeignKey(
"UserId")
797 .OnDelete(DeleteBehavior.Cascade);
800 modelBuilder.Entity(
"Tgstation.Server.Host.Models.PermissionSet", b =>
802 b.HasOne(
"Tgstation.Server.Host.Models.UserGroup",
"Group")
803 .WithOne(
"PermissionSet")
804 .HasForeignKey(
"Tgstation.Server.Host.Models.PermissionSet",
"GroupId")
805 .OnDelete(DeleteBehavior.Cascade);
807 b.HasOne(
"Tgstation.Server.Host.Models.User",
"User")
808 .WithOne(
"PermissionSet")
809 .HasForeignKey(
"Tgstation.Server.Host.Models.PermissionSet",
"UserId")
810 .OnDelete(DeleteBehavior.Cascade);
813 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ReattachInformation", b =>
815 b.HasOne(
"Tgstation.Server.Host.Models.CompileJob",
"CompileJob")
817 .HasForeignKey(
"CompileJobId")
818 .OnDelete(DeleteBehavior.Cascade)
822 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RepositorySettings", b =>
824 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
825 .WithOne(
"RepositorySettings")
826 .HasForeignKey(
"Tgstation.Server.Host.Models.RepositorySettings",
"InstanceId")
827 .OnDelete(DeleteBehavior.Cascade)
831 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
833 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"RevisionInformation")
834 .WithMany(
"ActiveTestMerges")
835 .HasForeignKey(
"RevisionInformationId")
836 .OnDelete(DeleteBehavior.Cascade)
839 b.HasOne(
"Tgstation.Server.Host.Models.TestMerge",
"TestMerge")
840 .WithMany(
"RevisonInformations")
841 .HasForeignKey(
"TestMergeId")
842 .OnDelete(DeleteBehavior.ClientNoAction)
846 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevisionInformation", b =>
848 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
849 .WithMany(
"RevisionInformations")
850 .HasForeignKey(
"InstanceId")
851 .OnDelete(DeleteBehavior.Cascade)
855 modelBuilder.Entity(
"Tgstation.Server.Host.Models.TestMerge", b =>
857 b.HasOne(
"Tgstation.Server.Host.Models.User",
"MergedBy")
858 .WithMany(
"TestMerges")
859 .HasForeignKey(
"MergedById")
860 .OnDelete(DeleteBehavior.Restrict)
863 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"PrimaryRevisionInformation")
864 .WithOne(
"PrimaryTestMerge")
865 .HasForeignKey(
"Tgstation.Server.Host.Models.TestMerge",
"PrimaryRevisionInformationId")
866 .OnDelete(DeleteBehavior.Cascade)
870 modelBuilder.Entity(
"Tgstation.Server.Host.Models.User", b =>
872 b.HasOne(
"Tgstation.Server.Host.Models.User",
"CreatedBy")
873 .WithMany(
"CreatedUsers")
874 .HasForeignKey(
"CreatedById");
876 b.HasOne(
"Tgstation.Server.Host.Models.UserGroup",
"Group")
878 .HasForeignKey(
"GroupId");
880#pragma warning restore 612, 618