17#pragma warning disable 612, 618
19 .HasAnnotation(
"ProductVersion",
"3.1.18")
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<uint?>(
"HeartbeatSeconds")
188 .HasColumnType(
"int unsigned");
190 b.Property<
long>(
"InstanceId")
191 .HasColumnType(
"bigint");
193 b.Property<ushort?>(
"Port")
195 .HasColumnType(
"smallint unsigned");
197 b.Property<
int>(
"SecurityLevel")
198 .HasColumnType(
"int");
200 b.Property<uint?>(
"StartupTimeout")
202 .HasColumnType(
"int unsigned");
204 b.Property<uint?>(
"TopicRequestTimeout")
206 .HasColumnType(
"int unsigned");
208 b.Property<
int>(
"Visibility")
209 .HasColumnType(
"int");
213 b.HasIndex(
"InstanceId")
216 b.ToTable(
"DreamDaemonSettings");
219 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamMakerSettings", b =>
221 b.Property<
long>(
"Id")
222 .ValueGeneratedOnAdd()
223 .HasColumnType(
"bigint");
225 b.Property<ushort?>(
"ApiValidationPort")
227 .HasColumnType(
"smallint unsigned");
229 b.Property<
int>(
"ApiValidationSecurityLevel")
230 .HasColumnType(
"int");
232 b.Property<
long>(
"InstanceId")
233 .HasColumnType(
"bigint");
235 b.Property<
string>(
"ProjectName")
236 .HasColumnType(
"longtext CHARACTER SET utf8mb4")
237 .HasMaxLength(10000);
239 b.Property<
bool?>(
"RequireDMApiValidation")
241 .HasColumnType(
"tinyint(1)");
243 b.Property<TimeSpan?>(
"Timeout")
245 .HasColumnType(
"time(6)");
249 b.HasIndex(
"InstanceId")
252 b.ToTable(
"DreamMakerSettings");
255 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Instance", b =>
257 b.Property<
long?>(
"Id")
258 .ValueGeneratedOnAdd()
259 .HasColumnType(
"bigint");
261 b.Property<uint?>(
"AutoUpdateInterval")
263 .HasColumnType(
"int unsigned");
265 b.Property<ushort?>(
"ChatBotLimit")
267 .HasColumnType(
"smallint unsigned");
269 b.Property<
int>(
"ConfigurationType")
270 .HasColumnType(
"int");
272 b.Property<
string>(
"Name")
274 .HasColumnType(
"varchar(100) CHARACTER SET utf8mb4")
277 b.Property<
bool?>(
"Online")
279 .HasColumnType(
"tinyint(1)");
281 b.Property<
string>(
"Path")
283 .HasColumnType(
"varchar(255) CHARACTER SET utf8mb4");
285 b.Property<
string>(
"SwarmIdentifer")
286 .HasColumnType(
"varchar(255) CHARACTER SET utf8mb4");
290 b.HasIndex(
"Path",
"SwarmIdentifer")
293 b.ToTable(
"Instances");
296 modelBuilder.Entity(
"Tgstation.Server.Host.Models.InstancePermissionSet", b =>
298 b.Property<
long>(
"Id")
299 .ValueGeneratedOnAdd()
300 .HasColumnType(
"bigint");
302 b.Property<ulong>(
"ByondRights")
303 .HasColumnType(
"bigint unsigned");
305 b.Property<ulong>(
"ChatBotRights")
306 .HasColumnType(
"bigint unsigned");
308 b.Property<ulong>(
"ConfigurationRights")
309 .HasColumnType(
"bigint unsigned");
311 b.Property<ulong>(
"DreamDaemonRights")
312 .HasColumnType(
"bigint unsigned");
314 b.Property<ulong>(
"DreamMakerRights")
315 .HasColumnType(
"bigint unsigned");
317 b.Property<
long>(
"InstanceId")
318 .HasColumnType(
"bigint");
320 b.Property<ulong>(
"InstancePermissionSetRights")
321 .HasColumnType(
"bigint unsigned");
323 b.Property<
long>(
"PermissionSetId")
324 .HasColumnType(
"bigint");
326 b.Property<ulong>(
"RepositoryRights")
327 .HasColumnType(
"bigint unsigned");
331 b.HasIndex(
"InstanceId");
333 b.HasIndex(
"PermissionSetId",
"InstanceId")
336 b.ToTable(
"InstancePermissionSets");
339 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Job", b =>
341 b.Property<
long?>(
"Id")
342 .ValueGeneratedOnAdd()
343 .HasColumnType(
"bigint");
345 b.Property<ulong?>(
"CancelRight")
346 .HasColumnType(
"bigint unsigned");
348 b.Property<ulong?>(
"CancelRightsType")
349 .HasColumnType(
"bigint unsigned");
351 b.Property<
bool?>(
"Cancelled")
353 .HasColumnType(
"tinyint(1)");
355 b.Property<
long?>(
"CancelledById")
356 .HasColumnType(
"bigint");
358 b.Property<
string>(
"Description")
360 .HasColumnType(
"longtext CHARACTER SET utf8mb4");
362 b.Property<uint?>(
"ErrorCode")
363 .HasColumnType(
"int unsigned");
365 b.Property<
string>(
"ExceptionDetails")
366 .HasColumnType(
"longtext CHARACTER SET utf8mb4");
368 b.Property<
long>(
"InstanceId")
369 .HasColumnType(
"bigint");
371 b.Property<DateTimeOffset?>(
"StartedAt")
373 .HasColumnType(
"datetime(6)");
375 b.Property<
long>(
"StartedById")
376 .HasColumnType(
"bigint");
378 b.Property<DateTimeOffset?>(
"StoppedAt")
379 .HasColumnType(
"datetime(6)");
383 b.HasIndex(
"CancelledById");
385 b.HasIndex(
"InstanceId");
387 b.HasIndex(
"StartedById");
392 modelBuilder.Entity(
"Tgstation.Server.Host.Models.OAuthConnection", b =>
394 b.Property<
long>(
"Id")
395 .ValueGeneratedOnAdd()
396 .HasColumnType(
"bigint");
398 b.Property<
string>(
"ExternalUserId")
400 .HasColumnType(
"varchar(100) CHARACTER SET utf8mb4")
403 b.Property<
int>(
"Provider")
404 .HasColumnType(
"int");
406 b.Property<
long?>(
"UserId")
407 .HasColumnType(
"bigint");
411 b.HasIndex(
"UserId");
413 b.HasIndex(
"Provider",
"ExternalUserId")
416 b.ToTable(
"OAuthConnections");
419 modelBuilder.Entity(
"Tgstation.Server.Host.Models.PermissionSet", b =>
421 b.Property<
long?>(
"Id")
422 .ValueGeneratedOnAdd()
423 .HasColumnType(
"bigint");
425 b.Property<ulong>(
"AdministrationRights")
426 .HasColumnType(
"bigint unsigned");
428 b.Property<
long?>(
"GroupId")
429 .HasColumnType(
"bigint");
431 b.Property<ulong>(
"InstanceManagerRights")
432 .HasColumnType(
"bigint unsigned");
434 b.Property<
long?>(
"UserId")
435 .HasColumnType(
"bigint");
439 b.HasIndex(
"GroupId")
445 b.ToTable(
"PermissionSets");
448 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ReattachInformation", b =>
450 b.Property<
long>(
"Id")
451 .ValueGeneratedOnAdd()
452 .HasColumnType(
"bigint");
454 b.Property<
string>(
"AccessIdentifier")
456 .HasColumnType(
"longtext CHARACTER SET utf8mb4");
458 b.Property<
long>(
"CompileJobId")
459 .HasColumnType(
"bigint");
461 b.Property<
int>(
"LaunchSecurityLevel")
462 .HasColumnType(
"int");
464 b.Property<
int>(
"LaunchVisibility")
465 .HasColumnType(
"int");
467 b.Property<ushort>(
"Port")
468 .HasColumnType(
"smallint unsigned");
470 b.Property<
int>(
"ProcessId")
471 .HasColumnType(
"int");
473 b.Property<
int>(
"RebootState")
474 .HasColumnType(
"int");
478 b.HasIndex(
"CompileJobId");
480 b.ToTable(
"ReattachInformations");
483 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RepositorySettings", b =>
485 b.Property<
long>(
"Id")
486 .ValueGeneratedOnAdd()
487 .HasColumnType(
"bigint");
489 b.Property<
string>(
"AccessToken")
490 .HasColumnType(
"longtext CHARACTER SET utf8mb4")
491 .HasMaxLength(10000);
493 b.Property<
string>(
"AccessUser")
494 .HasColumnType(
"longtext CHARACTER SET utf8mb4")
495 .HasMaxLength(10000);
497 b.Property<
bool?>(
"AutoUpdatesKeepTestMerges")
499 .HasColumnType(
"tinyint(1)");
501 b.Property<
bool?>(
"AutoUpdatesSynchronize")
503 .HasColumnType(
"tinyint(1)");
505 b.Property<
string>(
"CommitterEmail")
507 .HasColumnType(
"longtext CHARACTER SET utf8mb4")
508 .HasMaxLength(10000);
510 b.Property<
string>(
"CommitterName")
512 .HasColumnType(
"longtext CHARACTER SET utf8mb4")
513 .HasMaxLength(10000);
515 b.Property<
bool?>(
"CreateGitHubDeployments")
517 .HasColumnType(
"tinyint(1)");
519 b.Property<
long>(
"InstanceId")
520 .HasColumnType(
"bigint");
522 b.Property<
bool?>(
"PostTestMergeComment")
524 .HasColumnType(
"tinyint(1)");
526 b.Property<
bool?>(
"PushTestMergeCommits")
528 .HasColumnType(
"tinyint(1)");
530 b.Property<
bool?>(
"ShowTestMergeCommitters")
532 .HasColumnType(
"tinyint(1)");
534 b.Property<
bool?>(
"UpdateSubmodules")
536 .HasColumnType(
"tinyint(1)");
540 b.HasIndex(
"InstanceId")
543 b.ToTable(
"RepositorySettings");
546 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
548 b.Property<
long>(
"Id")
549 .ValueGeneratedOnAdd()
550 .HasColumnType(
"bigint");
552 b.Property<
long>(
"RevisionInformationId")
553 .HasColumnType(
"bigint");
555 b.Property<
long>(
"TestMergeId")
556 .HasColumnType(
"bigint");
560 b.HasIndex(
"RevisionInformationId");
562 b.HasIndex(
"TestMergeId");
564 b.ToTable(
"RevInfoTestMerges");
567 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevisionInformation", b =>
569 b.Property<
long>(
"Id")
570 .ValueGeneratedOnAdd()
571 .HasColumnType(
"bigint");
573 b.Property<
string>(
"CommitSha")
575 .HasColumnType(
"varchar(40) CHARACTER SET utf8mb4")
578 b.Property<
long>(
"InstanceId")
579 .HasColumnType(
"bigint");
581 b.Property<
string>(
"OriginCommitSha")
583 .HasColumnType(
"varchar(40) CHARACTER SET utf8mb4")
586 b.Property<DateTimeOffset>(
"Timestamp")
587 .HasColumnType(
"datetime(6)");
591 b.HasIndex(
"InstanceId",
"CommitSha")
594 b.ToTable(
"RevisionInformations");
597 modelBuilder.Entity(
"Tgstation.Server.Host.Models.TestMerge", b =>
599 b.Property<
long>(
"Id")
600 .ValueGeneratedOnAdd()
601 .HasColumnType(
"bigint");
603 b.Property<
string>(
"Author")
605 .HasColumnType(
"longtext CHARACTER SET utf8mb4");
607 b.Property<
string>(
"BodyAtMerge")
609 .HasColumnType(
"longtext CHARACTER SET utf8mb4");
611 b.Property<
string>(
"Comment")
612 .HasColumnType(
"longtext CHARACTER SET utf8mb4")
613 .HasMaxLength(10000);
615 b.Property<DateTimeOffset>(
"MergedAt")
616 .HasColumnType(
"datetime(6)");
618 b.Property<
long>(
"MergedById")
619 .HasColumnType(
"bigint");
621 b.Property<
int>(
"Number")
622 .HasColumnType(
"int");
624 b.Property<
long?>(
"PrimaryRevisionInformationId")
626 .HasColumnType(
"bigint");
628 b.Property<
string>(
"TargetCommitSha")
630 .HasColumnType(
"varchar(40) CHARACTER SET utf8mb4")
633 b.Property<
string>(
"TitleAtMerge")
635 .HasColumnType(
"longtext CHARACTER SET utf8mb4");
637 b.Property<
string>(
"Url")
639 .HasColumnType(
"longtext CHARACTER SET utf8mb4");
643 b.HasIndex(
"MergedById");
645 b.HasIndex(
"PrimaryRevisionInformationId")
648 b.ToTable(
"TestMerges");
651 modelBuilder.Entity(
"Tgstation.Server.Host.Models.User", b =>
653 b.Property<
long?>(
"Id")
654 .ValueGeneratedOnAdd()
655 .HasColumnType(
"bigint");
657 b.Property<
string>(
"CanonicalName")
659 .HasColumnType(
"varchar(100) CHARACTER SET utf8mb4")
662 b.Property<DateTimeOffset?>(
"CreatedAt")
664 .HasColumnType(
"datetime(6)");
666 b.Property<
long?>(
"CreatedById")
667 .HasColumnType(
"bigint");
669 b.Property<
bool?>(
"Enabled")
671 .HasColumnType(
"tinyint(1)");
673 b.Property<
long?>(
"GroupId")
674 .HasColumnType(
"bigint");
676 b.Property<DateTimeOffset?>(
"LastPasswordUpdate")
677 .HasColumnType(
"datetime(6)");
679 b.Property<
string>(
"Name")
681 .HasColumnType(
"varchar(100) CHARACTER SET utf8mb4")
684 b.Property<
string>(
"PasswordHash")
685 .HasColumnType(
"longtext CHARACTER SET utf8mb4");
687 b.Property<
string>(
"SystemIdentifier")
688 .HasColumnType(
"varchar(100) CHARACTER SET utf8mb4")
693 b.HasIndex(
"CanonicalName")
696 b.HasIndex(
"CreatedById");
698 b.HasIndex(
"GroupId");
700 b.HasIndex(
"SystemIdentifier")
706 modelBuilder.Entity(
"Tgstation.Server.Host.Models.UserGroup", b =>
708 b.Property<
long?>(
"Id")
709 .ValueGeneratedOnAdd()
710 .HasColumnType(
"bigint");
712 b.Property<
string>(
"Name")
714 .HasColumnType(
"varchar(100) CHARACTER SET utf8mb4")
725 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatBot", b =>
727 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
728 .WithMany(
"ChatSettings")
729 .HasForeignKey(
"InstanceId")
730 .OnDelete(DeleteBehavior.Cascade)
734 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatChannel", b =>
736 b.HasOne(
"Tgstation.Server.Host.Models.ChatBot",
"ChatSettings")
737 .WithMany(
"Channels")
738 .HasForeignKey(
"ChatSettingsId")
739 .OnDelete(DeleteBehavior.Cascade)
743 modelBuilder.Entity(
"Tgstation.Server.Host.Models.CompileJob", b =>
745 b.HasOne(
"Tgstation.Server.Host.Models.Job",
"Job")
747 .HasForeignKey(
"Tgstation.Server.Host.Models.CompileJob",
"JobId")
748 .OnDelete(DeleteBehavior.Cascade)
751 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"RevisionInformation")
752 .WithMany(
"CompileJobs")
753 .HasForeignKey(
"RevisionInformationId")
754 .OnDelete(DeleteBehavior.Cascade)
758 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamDaemonSettings", b =>
760 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
761 .WithOne(
"DreamDaemonSettings")
762 .HasForeignKey(
"Tgstation.Server.Host.Models.DreamDaemonSettings",
"InstanceId")
763 .OnDelete(DeleteBehavior.Cascade)
767 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamMakerSettings", b =>
769 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
770 .WithOne(
"DreamMakerSettings")
771 .HasForeignKey(
"Tgstation.Server.Host.Models.DreamMakerSettings",
"InstanceId")
772 .OnDelete(DeleteBehavior.Cascade)
776 modelBuilder.Entity(
"Tgstation.Server.Host.Models.InstancePermissionSet", b =>
778 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
779 .WithMany(
"InstancePermissionSets")
780 .HasForeignKey(
"InstanceId")
781 .OnDelete(DeleteBehavior.Cascade)
784 b.HasOne(
"Tgstation.Server.Host.Models.PermissionSet",
"PermissionSet")
785 .WithMany(
"InstancePermissionSets")
786 .HasForeignKey(
"PermissionSetId")
787 .OnDelete(DeleteBehavior.Cascade)
791 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Job", b =>
793 b.HasOne(
"Tgstation.Server.Host.Models.User",
"CancelledBy")
795 .HasForeignKey(
"CancelledById");
797 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
799 .HasForeignKey(
"InstanceId")
800 .OnDelete(DeleteBehavior.Cascade)
803 b.HasOne(
"Tgstation.Server.Host.Models.User",
"StartedBy")
805 .HasForeignKey(
"StartedById")
806 .OnDelete(DeleteBehavior.Cascade)
810 modelBuilder.Entity(
"Tgstation.Server.Host.Models.OAuthConnection", b =>
812 b.HasOne(
"Tgstation.Server.Host.Models.User",
"User")
813 .WithMany(
"OAuthConnections")
814 .HasForeignKey(
"UserId")
815 .OnDelete(DeleteBehavior.Cascade);
818 modelBuilder.Entity(
"Tgstation.Server.Host.Models.PermissionSet", b =>
820 b.HasOne(
"Tgstation.Server.Host.Models.UserGroup",
"Group")
821 .WithOne(
"PermissionSet")
822 .HasForeignKey(
"Tgstation.Server.Host.Models.PermissionSet",
"GroupId")
823 .OnDelete(DeleteBehavior.Cascade);
825 b.HasOne(
"Tgstation.Server.Host.Models.User",
"User")
826 .WithOne(
"PermissionSet")
827 .HasForeignKey(
"Tgstation.Server.Host.Models.PermissionSet",
"UserId")
828 .OnDelete(DeleteBehavior.Cascade);
831 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ReattachInformation", b =>
833 b.HasOne(
"Tgstation.Server.Host.Models.CompileJob",
"CompileJob")
835 .HasForeignKey(
"CompileJobId")
836 .OnDelete(DeleteBehavior.Cascade)
840 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RepositorySettings", b =>
842 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
843 .WithOne(
"RepositorySettings")
844 .HasForeignKey(
"Tgstation.Server.Host.Models.RepositorySettings",
"InstanceId")
845 .OnDelete(DeleteBehavior.Cascade)
849 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
851 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"RevisionInformation")
852 .WithMany(
"ActiveTestMerges")
853 .HasForeignKey(
"RevisionInformationId")
854 .OnDelete(DeleteBehavior.Cascade)
857 b.HasOne(
"Tgstation.Server.Host.Models.TestMerge",
"TestMerge")
858 .WithMany(
"RevisonInformations")
859 .HasForeignKey(
"TestMergeId")
860 .OnDelete(DeleteBehavior.ClientNoAction)
864 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevisionInformation", b =>
866 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
867 .WithMany(
"RevisionInformations")
868 .HasForeignKey(
"InstanceId")
869 .OnDelete(DeleteBehavior.Cascade)
873 modelBuilder.Entity(
"Tgstation.Server.Host.Models.TestMerge", b =>
875 b.HasOne(
"Tgstation.Server.Host.Models.User",
"MergedBy")
876 .WithMany(
"TestMerges")
877 .HasForeignKey(
"MergedById")
878 .OnDelete(DeleteBehavior.Restrict)
881 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"PrimaryRevisionInformation")
882 .WithOne(
"PrimaryTestMerge")
883 .HasForeignKey(
"Tgstation.Server.Host.Models.TestMerge",
"PrimaryRevisionInformationId")
884 .OnDelete(DeleteBehavior.Cascade)
888 modelBuilder.Entity(
"Tgstation.Server.Host.Models.User", b =>
890 b.HasOne(
"Tgstation.Server.Host.Models.User",
"CreatedBy")
891 .WithMany(
"CreatedUsers")
892 .HasForeignKey(
"CreatedById");
894 b.HasOne(
"Tgstation.Server.Host.Models.UserGroup",
"Group")
896 .HasForeignKey(
"GroupId");
898#pragma warning restore 612, 618