16#pragma warning disable 612, 618
18 .HasAnnotation(
"ProductVersion",
"3.1.20")
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<
bool?>(
"DumpOnHeartbeatRestart")
187 .HasColumnType(
"tinyint(1)");
189 b.Property<uint?>(
"HeartbeatSeconds")
191 .HasColumnType(
"int unsigned");
193 b.Property<
long>(
"InstanceId")
194 .HasColumnType(
"bigint");
196 b.Property<ushort?>(
"Port")
198 .HasColumnType(
"smallint unsigned");
200 b.Property<
int>(
"SecurityLevel")
201 .HasColumnType(
"int");
203 b.Property<uint?>(
"StartupTimeout")
205 .HasColumnType(
"int unsigned");
207 b.Property<uint?>(
"TopicRequestTimeout")
209 .HasColumnType(
"int unsigned");
211 b.Property<
int>(
"Visibility")
212 .HasColumnType(
"int");
216 b.HasIndex(
"InstanceId")
219 b.ToTable(
"DreamDaemonSettings");
222 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamMakerSettings", b =>
224 b.Property<
long>(
"Id")
225 .ValueGeneratedOnAdd()
226 .HasColumnType(
"bigint");
228 b.Property<ushort?>(
"ApiValidationPort")
230 .HasColumnType(
"smallint unsigned");
232 b.Property<
int>(
"ApiValidationSecurityLevel")
233 .HasColumnType(
"int");
235 b.Property<
long>(
"InstanceId")
236 .HasColumnType(
"bigint");
238 b.Property<
string>(
"ProjectName")
239 .HasColumnType(
"longtext CHARACTER SET utf8mb4")
240 .HasMaxLength(10000);
242 b.Property<
bool?>(
"RequireDMApiValidation")
244 .HasColumnType(
"tinyint(1)");
246 b.Property<TimeSpan?>(
"Timeout")
248 .HasColumnType(
"time(6)");
252 b.HasIndex(
"InstanceId")
255 b.ToTable(
"DreamMakerSettings");
258 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Instance", b =>
260 b.Property<
long?>(
"Id")
261 .ValueGeneratedOnAdd()
262 .HasColumnType(
"bigint");
264 b.Property<uint?>(
"AutoUpdateInterval")
266 .HasColumnType(
"int unsigned");
268 b.Property<ushort?>(
"ChatBotLimit")
270 .HasColumnType(
"smallint unsigned");
272 b.Property<
int>(
"ConfigurationType")
273 .HasColumnType(
"int");
275 b.Property<
string>(
"Name")
277 .HasColumnType(
"varchar(100) CHARACTER SET utf8mb4")
280 b.Property<
bool?>(
"Online")
282 .HasColumnType(
"tinyint(1)");
284 b.Property<
string>(
"Path")
286 .HasColumnType(
"varchar(255) CHARACTER SET utf8mb4");
288 b.Property<
string>(
"SwarmIdentifer")
289 .HasColumnType(
"varchar(255) CHARACTER SET utf8mb4");
293 b.HasIndex(
"Path",
"SwarmIdentifer")
296 b.ToTable(
"Instances");
299 modelBuilder.Entity(
"Tgstation.Server.Host.Models.InstancePermissionSet", b =>
301 b.Property<
long>(
"Id")
302 .ValueGeneratedOnAdd()
303 .HasColumnType(
"bigint");
305 b.Property<ulong>(
"ByondRights")
306 .HasColumnType(
"bigint unsigned");
308 b.Property<ulong>(
"ChatBotRights")
309 .HasColumnType(
"bigint unsigned");
311 b.Property<ulong>(
"ConfigurationRights")
312 .HasColumnType(
"bigint unsigned");
314 b.Property<ulong>(
"DreamDaemonRights")
315 .HasColumnType(
"bigint unsigned");
317 b.Property<ulong>(
"DreamMakerRights")
318 .HasColumnType(
"bigint unsigned");
320 b.Property<
long>(
"InstanceId")
321 .HasColumnType(
"bigint");
323 b.Property<ulong>(
"InstancePermissionSetRights")
324 .HasColumnType(
"bigint unsigned");
326 b.Property<
long>(
"PermissionSetId")
327 .HasColumnType(
"bigint");
329 b.Property<ulong>(
"RepositoryRights")
330 .HasColumnType(
"bigint unsigned");
334 b.HasIndex(
"InstanceId");
336 b.HasIndex(
"PermissionSetId",
"InstanceId")
339 b.ToTable(
"InstancePermissionSets");
342 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Job", b =>
344 b.Property<
long?>(
"Id")
345 .ValueGeneratedOnAdd()
346 .HasColumnType(
"bigint");
348 b.Property<ulong?>(
"CancelRight")
349 .HasColumnType(
"bigint unsigned");
351 b.Property<ulong?>(
"CancelRightsType")
352 .HasColumnType(
"bigint unsigned");
354 b.Property<
bool?>(
"Cancelled")
356 .HasColumnType(
"tinyint(1)");
358 b.Property<
long?>(
"CancelledById")
359 .HasColumnType(
"bigint");
361 b.Property<
string>(
"Description")
363 .HasColumnType(
"longtext CHARACTER SET utf8mb4");
365 b.Property<uint?>(
"ErrorCode")
366 .HasColumnType(
"int unsigned");
368 b.Property<
string>(
"ExceptionDetails")
369 .HasColumnType(
"longtext CHARACTER SET utf8mb4");
371 b.Property<
long>(
"InstanceId")
372 .HasColumnType(
"bigint");
374 b.Property<DateTimeOffset?>(
"StartedAt")
376 .HasColumnType(
"datetime(6)");
378 b.Property<
long>(
"StartedById")
379 .HasColumnType(
"bigint");
381 b.Property<DateTimeOffset?>(
"StoppedAt")
382 .HasColumnType(
"datetime(6)");
386 b.HasIndex(
"CancelledById");
388 b.HasIndex(
"InstanceId");
390 b.HasIndex(
"StartedById");
395 modelBuilder.Entity(
"Tgstation.Server.Host.Models.OAuthConnection", b =>
397 b.Property<
long>(
"Id")
398 .ValueGeneratedOnAdd()
399 .HasColumnType(
"bigint");
401 b.Property<
string>(
"ExternalUserId")
403 .HasColumnType(
"varchar(100) CHARACTER SET utf8mb4")
406 b.Property<
int>(
"Provider")
407 .HasColumnType(
"int");
409 b.Property<
long?>(
"UserId")
410 .HasColumnType(
"bigint");
414 b.HasIndex(
"UserId");
416 b.HasIndex(
"Provider",
"ExternalUserId")
419 b.ToTable(
"OAuthConnections");
422 modelBuilder.Entity(
"Tgstation.Server.Host.Models.PermissionSet", b =>
424 b.Property<
long?>(
"Id")
425 .ValueGeneratedOnAdd()
426 .HasColumnType(
"bigint");
428 b.Property<ulong>(
"AdministrationRights")
429 .HasColumnType(
"bigint unsigned");
431 b.Property<
long?>(
"GroupId")
432 .HasColumnType(
"bigint");
434 b.Property<ulong>(
"InstanceManagerRights")
435 .HasColumnType(
"bigint unsigned");
437 b.Property<
long?>(
"UserId")
438 .HasColumnType(
"bigint");
442 b.HasIndex(
"GroupId")
448 b.ToTable(
"PermissionSets");
451 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ReattachInformation", b =>
453 b.Property<
long>(
"Id")
454 .ValueGeneratedOnAdd()
455 .HasColumnType(
"bigint");
457 b.Property<
string>(
"AccessIdentifier")
459 .HasColumnType(
"longtext CHARACTER SET utf8mb4");
461 b.Property<
long>(
"CompileJobId")
462 .HasColumnType(
"bigint");
464 b.Property<
int>(
"LaunchSecurityLevel")
465 .HasColumnType(
"int");
467 b.Property<
int>(
"LaunchVisibility")
468 .HasColumnType(
"int");
470 b.Property<ushort>(
"Port")
471 .HasColumnType(
"smallint unsigned");
473 b.Property<
int>(
"ProcessId")
474 .HasColumnType(
"int");
476 b.Property<
int>(
"RebootState")
477 .HasColumnType(
"int");
481 b.HasIndex(
"CompileJobId");
483 b.ToTable(
"ReattachInformations");
486 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RepositorySettings", b =>
488 b.Property<
long>(
"Id")
489 .ValueGeneratedOnAdd()
490 .HasColumnType(
"bigint");
492 b.Property<
string>(
"AccessToken")
493 .HasColumnType(
"longtext CHARACTER SET utf8mb4")
494 .HasMaxLength(10000);
496 b.Property<
string>(
"AccessUser")
497 .HasColumnType(
"longtext CHARACTER SET utf8mb4")
498 .HasMaxLength(10000);
500 b.Property<
bool?>(
"AutoUpdatesKeepTestMerges")
502 .HasColumnType(
"tinyint(1)");
504 b.Property<
bool?>(
"AutoUpdatesSynchronize")
506 .HasColumnType(
"tinyint(1)");
508 b.Property<
string>(
"CommitterEmail")
510 .HasColumnType(
"longtext CHARACTER SET utf8mb4")
511 .HasMaxLength(10000);
513 b.Property<
string>(
"CommitterName")
515 .HasColumnType(
"longtext CHARACTER SET utf8mb4")
516 .HasMaxLength(10000);
518 b.Property<
bool?>(
"CreateGitHubDeployments")
520 .HasColumnType(
"tinyint(1)");
522 b.Property<
long>(
"InstanceId")
523 .HasColumnType(
"bigint");
525 b.Property<
bool?>(
"PostTestMergeComment")
527 .HasColumnType(
"tinyint(1)");
529 b.Property<
bool?>(
"PushTestMergeCommits")
531 .HasColumnType(
"tinyint(1)");
533 b.Property<
bool?>(
"ShowTestMergeCommitters")
535 .HasColumnType(
"tinyint(1)");
537 b.Property<
bool?>(
"UpdateSubmodules")
539 .HasColumnType(
"tinyint(1)");
543 b.HasIndex(
"InstanceId")
546 b.ToTable(
"RepositorySettings");
549 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
551 b.Property<
long>(
"Id")
552 .ValueGeneratedOnAdd()
553 .HasColumnType(
"bigint");
555 b.Property<
long>(
"RevisionInformationId")
556 .HasColumnType(
"bigint");
558 b.Property<
long>(
"TestMergeId")
559 .HasColumnType(
"bigint");
563 b.HasIndex(
"RevisionInformationId");
565 b.HasIndex(
"TestMergeId");
567 b.ToTable(
"RevInfoTestMerges");
570 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevisionInformation", b =>
572 b.Property<
long>(
"Id")
573 .ValueGeneratedOnAdd()
574 .HasColumnType(
"bigint");
576 b.Property<
string>(
"CommitSha")
578 .HasColumnType(
"varchar(40) CHARACTER SET utf8mb4")
581 b.Property<
long>(
"InstanceId")
582 .HasColumnType(
"bigint");
584 b.Property<
string>(
"OriginCommitSha")
586 .HasColumnType(
"varchar(40) CHARACTER SET utf8mb4")
589 b.Property<DateTimeOffset>(
"Timestamp")
590 .HasColumnType(
"datetime(6)");
594 b.HasIndex(
"InstanceId",
"CommitSha")
597 b.ToTable(
"RevisionInformations");
600 modelBuilder.Entity(
"Tgstation.Server.Host.Models.TestMerge", b =>
602 b.Property<
long>(
"Id")
603 .ValueGeneratedOnAdd()
604 .HasColumnType(
"bigint");
606 b.Property<
string>(
"Author")
608 .HasColumnType(
"longtext CHARACTER SET utf8mb4");
610 b.Property<
string>(
"BodyAtMerge")
612 .HasColumnType(
"longtext CHARACTER SET utf8mb4");
614 b.Property<
string>(
"Comment")
615 .HasColumnType(
"longtext CHARACTER SET utf8mb4")
616 .HasMaxLength(10000);
618 b.Property<DateTimeOffset>(
"MergedAt")
619 .HasColumnType(
"datetime(6)");
621 b.Property<
long>(
"MergedById")
622 .HasColumnType(
"bigint");
624 b.Property<
int>(
"Number")
625 .HasColumnType(
"int");
627 b.Property<
long?>(
"PrimaryRevisionInformationId")
629 .HasColumnType(
"bigint");
631 b.Property<
string>(
"TargetCommitSha")
633 .HasColumnType(
"varchar(40) CHARACTER SET utf8mb4")
636 b.Property<
string>(
"TitleAtMerge")
638 .HasColumnType(
"longtext CHARACTER SET utf8mb4");
640 b.Property<
string>(
"Url")
642 .HasColumnType(
"longtext CHARACTER SET utf8mb4");
646 b.HasIndex(
"MergedById");
648 b.HasIndex(
"PrimaryRevisionInformationId")
651 b.ToTable(
"TestMerges");
654 modelBuilder.Entity(
"Tgstation.Server.Host.Models.User", b =>
656 b.Property<
long?>(
"Id")
657 .ValueGeneratedOnAdd()
658 .HasColumnType(
"bigint");
660 b.Property<
string>(
"CanonicalName")
662 .HasColumnType(
"varchar(100) CHARACTER SET utf8mb4")
665 b.Property<DateTimeOffset?>(
"CreatedAt")
667 .HasColumnType(
"datetime(6)");
669 b.Property<
long?>(
"CreatedById")
670 .HasColumnType(
"bigint");
672 b.Property<
bool?>(
"Enabled")
674 .HasColumnType(
"tinyint(1)");
676 b.Property<
long?>(
"GroupId")
677 .HasColumnType(
"bigint");
679 b.Property<DateTimeOffset?>(
"LastPasswordUpdate")
680 .HasColumnType(
"datetime(6)");
682 b.Property<
string>(
"Name")
684 .HasColumnType(
"varchar(100) CHARACTER SET utf8mb4")
687 b.Property<
string>(
"PasswordHash")
688 .HasColumnType(
"longtext CHARACTER SET utf8mb4");
690 b.Property<
string>(
"SystemIdentifier")
691 .HasColumnType(
"varchar(100) CHARACTER SET utf8mb4")
696 b.HasIndex(
"CanonicalName")
699 b.HasIndex(
"CreatedById");
701 b.HasIndex(
"GroupId");
703 b.HasIndex(
"SystemIdentifier")
709 modelBuilder.Entity(
"Tgstation.Server.Host.Models.UserGroup", b =>
711 b.Property<
long?>(
"Id")
712 .ValueGeneratedOnAdd()
713 .HasColumnType(
"bigint");
715 b.Property<
string>(
"Name")
717 .HasColumnType(
"varchar(100) CHARACTER SET utf8mb4")
728 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatBot", b =>
730 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
731 .WithMany(
"ChatSettings")
732 .HasForeignKey(
"InstanceId")
733 .OnDelete(DeleteBehavior.Cascade)
737 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatChannel", b =>
739 b.HasOne(
"Tgstation.Server.Host.Models.ChatBot",
"ChatSettings")
740 .WithMany(
"Channels")
741 .HasForeignKey(
"ChatSettingsId")
742 .OnDelete(DeleteBehavior.Cascade)
746 modelBuilder.Entity(
"Tgstation.Server.Host.Models.CompileJob", b =>
748 b.HasOne(
"Tgstation.Server.Host.Models.Job",
"Job")
750 .HasForeignKey(
"Tgstation.Server.Host.Models.CompileJob",
"JobId")
751 .OnDelete(DeleteBehavior.Cascade)
754 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"RevisionInformation")
755 .WithMany(
"CompileJobs")
756 .HasForeignKey(
"RevisionInformationId")
757 .OnDelete(DeleteBehavior.Cascade)
761 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamDaemonSettings", b =>
763 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
764 .WithOne(
"DreamDaemonSettings")
765 .HasForeignKey(
"Tgstation.Server.Host.Models.DreamDaemonSettings",
"InstanceId")
766 .OnDelete(DeleteBehavior.Cascade)
770 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamMakerSettings", b =>
772 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
773 .WithOne(
"DreamMakerSettings")
774 .HasForeignKey(
"Tgstation.Server.Host.Models.DreamMakerSettings",
"InstanceId")
775 .OnDelete(DeleteBehavior.Cascade)
779 modelBuilder.Entity(
"Tgstation.Server.Host.Models.InstancePermissionSet", b =>
781 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
782 .WithMany(
"InstancePermissionSets")
783 .HasForeignKey(
"InstanceId")
784 .OnDelete(DeleteBehavior.Cascade)
787 b.HasOne(
"Tgstation.Server.Host.Models.PermissionSet",
"PermissionSet")
788 .WithMany(
"InstancePermissionSets")
789 .HasForeignKey(
"PermissionSetId")
790 .OnDelete(DeleteBehavior.Cascade)
794 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Job", b =>
796 b.HasOne(
"Tgstation.Server.Host.Models.User",
"CancelledBy")
798 .HasForeignKey(
"CancelledById");
800 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
802 .HasForeignKey(
"InstanceId")
803 .OnDelete(DeleteBehavior.Cascade)
806 b.HasOne(
"Tgstation.Server.Host.Models.User",
"StartedBy")
808 .HasForeignKey(
"StartedById")
809 .OnDelete(DeleteBehavior.Cascade)
813 modelBuilder.Entity(
"Tgstation.Server.Host.Models.OAuthConnection", b =>
815 b.HasOne(
"Tgstation.Server.Host.Models.User",
"User")
816 .WithMany(
"OAuthConnections")
817 .HasForeignKey(
"UserId")
818 .OnDelete(DeleteBehavior.Cascade);
821 modelBuilder.Entity(
"Tgstation.Server.Host.Models.PermissionSet", b =>
823 b.HasOne(
"Tgstation.Server.Host.Models.UserGroup",
"Group")
824 .WithOne(
"PermissionSet")
825 .HasForeignKey(
"Tgstation.Server.Host.Models.PermissionSet",
"GroupId")
826 .OnDelete(DeleteBehavior.Cascade);
828 b.HasOne(
"Tgstation.Server.Host.Models.User",
"User")
829 .WithOne(
"PermissionSet")
830 .HasForeignKey(
"Tgstation.Server.Host.Models.PermissionSet",
"UserId")
831 .OnDelete(DeleteBehavior.Cascade);
834 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ReattachInformation", b =>
836 b.HasOne(
"Tgstation.Server.Host.Models.CompileJob",
"CompileJob")
838 .HasForeignKey(
"CompileJobId")
839 .OnDelete(DeleteBehavior.Cascade)
843 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RepositorySettings", b =>
845 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
846 .WithOne(
"RepositorySettings")
847 .HasForeignKey(
"Tgstation.Server.Host.Models.RepositorySettings",
"InstanceId")
848 .OnDelete(DeleteBehavior.Cascade)
852 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
854 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"RevisionInformation")
855 .WithMany(
"ActiveTestMerges")
856 .HasForeignKey(
"RevisionInformationId")
857 .OnDelete(DeleteBehavior.Cascade)
860 b.HasOne(
"Tgstation.Server.Host.Models.TestMerge",
"TestMerge")
861 .WithMany(
"RevisonInformations")
862 .HasForeignKey(
"TestMergeId")
863 .OnDelete(DeleteBehavior.ClientNoAction)
867 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevisionInformation", b =>
869 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
870 .WithMany(
"RevisionInformations")
871 .HasForeignKey(
"InstanceId")
872 .OnDelete(DeleteBehavior.Cascade)
876 modelBuilder.Entity(
"Tgstation.Server.Host.Models.TestMerge", b =>
878 b.HasOne(
"Tgstation.Server.Host.Models.User",
"MergedBy")
879 .WithMany(
"TestMerges")
880 .HasForeignKey(
"MergedById")
881 .OnDelete(DeleteBehavior.Restrict)
884 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"PrimaryRevisionInformation")
885 .WithOne(
"PrimaryTestMerge")
886 .HasForeignKey(
"Tgstation.Server.Host.Models.TestMerge",
"PrimaryRevisionInformationId")
887 .OnDelete(DeleteBehavior.Cascade)
891 modelBuilder.Entity(
"Tgstation.Server.Host.Models.User", b =>
893 b.HasOne(
"Tgstation.Server.Host.Models.User",
"CreatedBy")
894 .WithMany(
"CreatedUsers")
895 .HasForeignKey(
"CreatedById");
897 b.HasOne(
"Tgstation.Server.Host.Models.UserGroup",
"Group")
899 .HasForeignKey(
"GroupId");
901#pragma warning restore 612, 618