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)");
536 b.HasIndex(
"InstanceId")
539 b.ToTable(
"RepositorySettings");
542 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
544 b.Property<
long>(
"Id")
545 .ValueGeneratedOnAdd()
546 .HasColumnType(
"bigint");
548 b.Property<
long>(
"RevisionInformationId")
549 .HasColumnType(
"bigint");
551 b.Property<
long>(
"TestMergeId")
552 .HasColumnType(
"bigint");
556 b.HasIndex(
"RevisionInformationId");
558 b.HasIndex(
"TestMergeId");
560 b.ToTable(
"RevInfoTestMerges");
563 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevisionInformation", b =>
565 b.Property<
long>(
"Id")
566 .ValueGeneratedOnAdd()
567 .HasColumnType(
"bigint");
569 b.Property<
string>(
"CommitSha")
571 .HasColumnType(
"varchar(40) CHARACTER SET utf8mb4")
574 b.Property<
long>(
"InstanceId")
575 .HasColumnType(
"bigint");
577 b.Property<
string>(
"OriginCommitSha")
579 .HasColumnType(
"varchar(40) CHARACTER SET utf8mb4")
582 b.Property<DateTimeOffset>(
"Timestamp")
583 .HasColumnType(
"datetime(6)");
587 b.HasIndex(
"InstanceId",
"CommitSha")
590 b.ToTable(
"RevisionInformations");
593 modelBuilder.Entity(
"Tgstation.Server.Host.Models.TestMerge", b =>
595 b.Property<
long>(
"Id")
596 .ValueGeneratedOnAdd()
597 .HasColumnType(
"bigint");
599 b.Property<
string>(
"Author")
601 .HasColumnType(
"longtext CHARACTER SET utf8mb4");
603 b.Property<
string>(
"BodyAtMerge")
605 .HasColumnType(
"longtext CHARACTER SET utf8mb4");
607 b.Property<
string>(
"Comment")
608 .HasColumnType(
"longtext CHARACTER SET utf8mb4")
609 .HasMaxLength(10000);
611 b.Property<DateTimeOffset>(
"MergedAt")
612 .HasColumnType(
"datetime(6)");
614 b.Property<
long>(
"MergedById")
615 .HasColumnType(
"bigint");
617 b.Property<
int>(
"Number")
618 .HasColumnType(
"int");
620 b.Property<
long?>(
"PrimaryRevisionInformationId")
622 .HasColumnType(
"bigint");
624 b.Property<
string>(
"TargetCommitSha")
626 .HasColumnType(
"varchar(40) CHARACTER SET utf8mb4")
629 b.Property<
string>(
"TitleAtMerge")
631 .HasColumnType(
"longtext CHARACTER SET utf8mb4");
633 b.Property<
string>(
"Url")
635 .HasColumnType(
"longtext CHARACTER SET utf8mb4");
639 b.HasIndex(
"MergedById");
641 b.HasIndex(
"PrimaryRevisionInformationId")
644 b.ToTable(
"TestMerges");
647 modelBuilder.Entity(
"Tgstation.Server.Host.Models.User", b =>
649 b.Property<
long?>(
"Id")
650 .ValueGeneratedOnAdd()
651 .HasColumnType(
"bigint");
653 b.Property<
string>(
"CanonicalName")
655 .HasColumnType(
"varchar(100) CHARACTER SET utf8mb4")
658 b.Property<DateTimeOffset?>(
"CreatedAt")
660 .HasColumnType(
"datetime(6)");
662 b.Property<
long?>(
"CreatedById")
663 .HasColumnType(
"bigint");
665 b.Property<
bool?>(
"Enabled")
667 .HasColumnType(
"tinyint(1)");
669 b.Property<
long?>(
"GroupId")
670 .HasColumnType(
"bigint");
672 b.Property<DateTimeOffset?>(
"LastPasswordUpdate")
673 .HasColumnType(
"datetime(6)");
675 b.Property<
string>(
"Name")
677 .HasColumnType(
"varchar(100) CHARACTER SET utf8mb4")
680 b.Property<
string>(
"PasswordHash")
681 .HasColumnType(
"longtext CHARACTER SET utf8mb4");
683 b.Property<
string>(
"SystemIdentifier")
684 .HasColumnType(
"varchar(100) CHARACTER SET utf8mb4")
689 b.HasIndex(
"CanonicalName")
692 b.HasIndex(
"CreatedById");
694 b.HasIndex(
"GroupId");
696 b.HasIndex(
"SystemIdentifier")
702 modelBuilder.Entity(
"Tgstation.Server.Host.Models.UserGroup", b =>
704 b.Property<
long?>(
"Id")
705 .ValueGeneratedOnAdd()
706 .HasColumnType(
"bigint");
708 b.Property<
string>(
"Name")
710 .HasColumnType(
"varchar(100) CHARACTER SET utf8mb4")
721 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatBot", b =>
723 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
724 .WithMany(
"ChatSettings")
725 .HasForeignKey(
"InstanceId")
726 .OnDelete(DeleteBehavior.Cascade)
730 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatChannel", b =>
732 b.HasOne(
"Tgstation.Server.Host.Models.ChatBot",
"ChatSettings")
733 .WithMany(
"Channels")
734 .HasForeignKey(
"ChatSettingsId")
735 .OnDelete(DeleteBehavior.Cascade)
739 modelBuilder.Entity(
"Tgstation.Server.Host.Models.CompileJob", b =>
741 b.HasOne(
"Tgstation.Server.Host.Models.Job",
"Job")
743 .HasForeignKey(
"Tgstation.Server.Host.Models.CompileJob",
"JobId")
744 .OnDelete(DeleteBehavior.Cascade)
747 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"RevisionInformation")
748 .WithMany(
"CompileJobs")
749 .HasForeignKey(
"RevisionInformationId")
750 .OnDelete(DeleteBehavior.Cascade)
754 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamDaemonSettings", b =>
756 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
757 .WithOne(
"DreamDaemonSettings")
758 .HasForeignKey(
"Tgstation.Server.Host.Models.DreamDaemonSettings",
"InstanceId")
759 .OnDelete(DeleteBehavior.Cascade)
763 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamMakerSettings", b =>
765 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
766 .WithOne(
"DreamMakerSettings")
767 .HasForeignKey(
"Tgstation.Server.Host.Models.DreamMakerSettings",
"InstanceId")
768 .OnDelete(DeleteBehavior.Cascade)
772 modelBuilder.Entity(
"Tgstation.Server.Host.Models.InstancePermissionSet", b =>
774 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
775 .WithMany(
"InstancePermissionSets")
776 .HasForeignKey(
"InstanceId")
777 .OnDelete(DeleteBehavior.Cascade)
780 b.HasOne(
"Tgstation.Server.Host.Models.PermissionSet",
"PermissionSet")
781 .WithMany(
"InstancePermissionSets")
782 .HasForeignKey(
"PermissionSetId")
783 .OnDelete(DeleteBehavior.Cascade)
787 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Job", b =>
789 b.HasOne(
"Tgstation.Server.Host.Models.User",
"CancelledBy")
791 .HasForeignKey(
"CancelledById");
793 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
795 .HasForeignKey(
"InstanceId")
796 .OnDelete(DeleteBehavior.Cascade)
799 b.HasOne(
"Tgstation.Server.Host.Models.User",
"StartedBy")
801 .HasForeignKey(
"StartedById")
802 .OnDelete(DeleteBehavior.Cascade)
806 modelBuilder.Entity(
"Tgstation.Server.Host.Models.OAuthConnection", b =>
808 b.HasOne(
"Tgstation.Server.Host.Models.User",
"User")
809 .WithMany(
"OAuthConnections")
810 .HasForeignKey(
"UserId")
811 .OnDelete(DeleteBehavior.Cascade);
814 modelBuilder.Entity(
"Tgstation.Server.Host.Models.PermissionSet", b =>
816 b.HasOne(
"Tgstation.Server.Host.Models.UserGroup",
"Group")
817 .WithOne(
"PermissionSet")
818 .HasForeignKey(
"Tgstation.Server.Host.Models.PermissionSet",
"GroupId")
819 .OnDelete(DeleteBehavior.Cascade);
821 b.HasOne(
"Tgstation.Server.Host.Models.User",
"User")
822 .WithOne(
"PermissionSet")
823 .HasForeignKey(
"Tgstation.Server.Host.Models.PermissionSet",
"UserId")
824 .OnDelete(DeleteBehavior.Cascade);
827 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ReattachInformation", b =>
829 b.HasOne(
"Tgstation.Server.Host.Models.CompileJob",
"CompileJob")
831 .HasForeignKey(
"CompileJobId")
832 .OnDelete(DeleteBehavior.Cascade)
836 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RepositorySettings", b =>
838 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
839 .WithOne(
"RepositorySettings")
840 .HasForeignKey(
"Tgstation.Server.Host.Models.RepositorySettings",
"InstanceId")
841 .OnDelete(DeleteBehavior.Cascade)
845 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
847 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"RevisionInformation")
848 .WithMany(
"ActiveTestMerges")
849 .HasForeignKey(
"RevisionInformationId")
850 .OnDelete(DeleteBehavior.Cascade)
853 b.HasOne(
"Tgstation.Server.Host.Models.TestMerge",
"TestMerge")
854 .WithMany(
"RevisonInformations")
855 .HasForeignKey(
"TestMergeId")
856 .OnDelete(DeleteBehavior.ClientNoAction)
860 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevisionInformation", b =>
862 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
863 .WithMany(
"RevisionInformations")
864 .HasForeignKey(
"InstanceId")
865 .OnDelete(DeleteBehavior.Cascade)
869 modelBuilder.Entity(
"Tgstation.Server.Host.Models.TestMerge", b =>
871 b.HasOne(
"Tgstation.Server.Host.Models.User",
"MergedBy")
872 .WithMany(
"TestMerges")
873 .HasForeignKey(
"MergedById")
874 .OnDelete(DeleteBehavior.Restrict)
877 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"PrimaryRevisionInformation")
878 .WithOne(
"PrimaryTestMerge")
879 .HasForeignKey(
"Tgstation.Server.Host.Models.TestMerge",
"PrimaryRevisionInformationId")
880 .OnDelete(DeleteBehavior.Cascade)
884 modelBuilder.Entity(
"Tgstation.Server.Host.Models.User", b =>
886 b.HasOne(
"Tgstation.Server.Host.Models.User",
"CreatedBy")
887 .WithMany(
"CreatedUsers")
888 .HasForeignKey(
"CreatedById");
890 b.HasOne(
"Tgstation.Server.Host.Models.UserGroup",
"Group")
892 .HasForeignKey(
"GroupId");
894#pragma warning restore 612, 618