16#pragma warning disable 612, 618
18 .HasAnnotation(
"ProductVersion",
"3.1.18")
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");
207 b.Property<
int>(
"Visibility")
208 .HasColumnType(
"int");
212 b.HasIndex(
"InstanceId")
215 b.ToTable(
"DreamDaemonSettings");
218 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamMakerSettings", b =>
220 b.Property<
long>(
"Id")
221 .ValueGeneratedOnAdd()
222 .HasColumnType(
"bigint");
224 b.Property<ushort?>(
"ApiValidationPort")
226 .HasColumnType(
"smallint unsigned");
228 b.Property<
int>(
"ApiValidationSecurityLevel")
229 .HasColumnType(
"int");
231 b.Property<
long>(
"InstanceId")
232 .HasColumnType(
"bigint");
234 b.Property<
string>(
"ProjectName")
235 .HasColumnType(
"longtext CHARACTER SET utf8mb4")
236 .HasMaxLength(10000);
238 b.Property<
bool?>(
"RequireDMApiValidation")
240 .HasColumnType(
"tinyint(1)");
244 b.HasIndex(
"InstanceId")
247 b.ToTable(
"DreamMakerSettings");
250 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Instance", b =>
252 b.Property<
long?>(
"Id")
253 .ValueGeneratedOnAdd()
254 .HasColumnType(
"bigint");
256 b.Property<uint?>(
"AutoUpdateInterval")
258 .HasColumnType(
"int unsigned");
260 b.Property<ushort?>(
"ChatBotLimit")
262 .HasColumnType(
"smallint unsigned");
264 b.Property<
int>(
"ConfigurationType")
265 .HasColumnType(
"int");
267 b.Property<
string>(
"Name")
269 .HasColumnType(
"varchar(100) CHARACTER SET utf8mb4")
272 b.Property<
bool?>(
"Online")
274 .HasColumnType(
"tinyint(1)");
276 b.Property<
string>(
"Path")
278 .HasColumnType(
"varchar(255) CHARACTER SET utf8mb4");
280 b.Property<
string>(
"SwarmIdentifer")
281 .HasColumnType(
"varchar(255) CHARACTER SET utf8mb4");
285 b.HasIndex(
"Path",
"SwarmIdentifer")
288 b.ToTable(
"Instances");
291 modelBuilder.Entity(
"Tgstation.Server.Host.Models.InstancePermissionSet", b =>
293 b.Property<
long>(
"Id")
294 .ValueGeneratedOnAdd()
295 .HasColumnType(
"bigint");
297 b.Property<ulong>(
"ByondRights")
298 .HasColumnType(
"bigint unsigned");
300 b.Property<ulong>(
"ChatBotRights")
301 .HasColumnType(
"bigint unsigned");
303 b.Property<ulong>(
"ConfigurationRights")
304 .HasColumnType(
"bigint unsigned");
306 b.Property<ulong>(
"DreamDaemonRights")
307 .HasColumnType(
"bigint unsigned");
309 b.Property<ulong>(
"DreamMakerRights")
310 .HasColumnType(
"bigint unsigned");
312 b.Property<
long>(
"InstanceId")
313 .HasColumnType(
"bigint");
315 b.Property<ulong>(
"InstancePermissionSetRights")
316 .HasColumnType(
"bigint unsigned");
318 b.Property<
long>(
"PermissionSetId")
319 .HasColumnType(
"bigint");
321 b.Property<ulong>(
"RepositoryRights")
322 .HasColumnType(
"bigint unsigned");
326 b.HasIndex(
"InstanceId");
328 b.HasIndex(
"PermissionSetId",
"InstanceId")
331 b.ToTable(
"InstancePermissionSets");
334 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Job", b =>
336 b.Property<
long?>(
"Id")
337 .ValueGeneratedOnAdd()
338 .HasColumnType(
"bigint");
340 b.Property<ulong?>(
"CancelRight")
341 .HasColumnType(
"bigint unsigned");
343 b.Property<ulong?>(
"CancelRightsType")
344 .HasColumnType(
"bigint unsigned");
346 b.Property<
bool?>(
"Cancelled")
348 .HasColumnType(
"tinyint(1)");
350 b.Property<
long?>(
"CancelledById")
351 .HasColumnType(
"bigint");
353 b.Property<
string>(
"Description")
355 .HasColumnType(
"longtext CHARACTER SET utf8mb4");
357 b.Property<uint?>(
"ErrorCode")
358 .HasColumnType(
"int unsigned");
360 b.Property<
string>(
"ExceptionDetails")
361 .HasColumnType(
"longtext CHARACTER SET utf8mb4");
363 b.Property<
long>(
"InstanceId")
364 .HasColumnType(
"bigint");
366 b.Property<DateTimeOffset?>(
"StartedAt")
368 .HasColumnType(
"datetime(6)");
370 b.Property<
long>(
"StartedById")
371 .HasColumnType(
"bigint");
373 b.Property<DateTimeOffset?>(
"StoppedAt")
374 .HasColumnType(
"datetime(6)");
378 b.HasIndex(
"CancelledById");
380 b.HasIndex(
"InstanceId");
382 b.HasIndex(
"StartedById");
387 modelBuilder.Entity(
"Tgstation.Server.Host.Models.OAuthConnection", b =>
389 b.Property<
long>(
"Id")
390 .ValueGeneratedOnAdd()
391 .HasColumnType(
"bigint");
393 b.Property<
string>(
"ExternalUserId")
395 .HasColumnType(
"varchar(100) CHARACTER SET utf8mb4")
398 b.Property<
int>(
"Provider")
399 .HasColumnType(
"int");
401 b.Property<
long?>(
"UserId")
402 .HasColumnType(
"bigint");
406 b.HasIndex(
"UserId");
408 b.HasIndex(
"Provider",
"ExternalUserId")
411 b.ToTable(
"OAuthConnections");
414 modelBuilder.Entity(
"Tgstation.Server.Host.Models.PermissionSet", b =>
416 b.Property<
long?>(
"Id")
417 .ValueGeneratedOnAdd()
418 .HasColumnType(
"bigint");
420 b.Property<ulong>(
"AdministrationRights")
421 .HasColumnType(
"bigint unsigned");
423 b.Property<
long?>(
"GroupId")
424 .HasColumnType(
"bigint");
426 b.Property<ulong>(
"InstanceManagerRights")
427 .HasColumnType(
"bigint unsigned");
429 b.Property<
long?>(
"UserId")
430 .HasColumnType(
"bigint");
434 b.HasIndex(
"GroupId")
440 b.ToTable(
"PermissionSets");
443 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ReattachInformation", b =>
445 b.Property<
long>(
"Id")
446 .ValueGeneratedOnAdd()
447 .HasColumnType(
"bigint");
449 b.Property<
string>(
"AccessIdentifier")
451 .HasColumnType(
"longtext CHARACTER SET utf8mb4");
453 b.Property<
long>(
"CompileJobId")
454 .HasColumnType(
"bigint");
456 b.Property<
int>(
"LaunchSecurityLevel")
457 .HasColumnType(
"int");
459 b.Property<
int>(
"LaunchVisibility")
460 .HasColumnType(
"int");
462 b.Property<ushort>(
"Port")
463 .HasColumnType(
"smallint unsigned");
465 b.Property<
int>(
"ProcessId")
466 .HasColumnType(
"int");
468 b.Property<
int>(
"RebootState")
469 .HasColumnType(
"int");
473 b.HasIndex(
"CompileJobId");
475 b.ToTable(
"ReattachInformations");
478 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RepositorySettings", b =>
480 b.Property<
long>(
"Id")
481 .ValueGeneratedOnAdd()
482 .HasColumnType(
"bigint");
484 b.Property<
string>(
"AccessToken")
485 .HasColumnType(
"longtext CHARACTER SET utf8mb4")
486 .HasMaxLength(10000);
488 b.Property<
string>(
"AccessUser")
489 .HasColumnType(
"longtext CHARACTER SET utf8mb4")
490 .HasMaxLength(10000);
492 b.Property<
bool?>(
"AutoUpdatesKeepTestMerges")
494 .HasColumnType(
"tinyint(1)");
496 b.Property<
bool?>(
"AutoUpdatesSynchronize")
498 .HasColumnType(
"tinyint(1)");
500 b.Property<
string>(
"CommitterEmail")
502 .HasColumnType(
"longtext CHARACTER SET utf8mb4")
503 .HasMaxLength(10000);
505 b.Property<
string>(
"CommitterName")
507 .HasColumnType(
"longtext CHARACTER SET utf8mb4")
508 .HasMaxLength(10000);
510 b.Property<
bool?>(
"CreateGitHubDeployments")
512 .HasColumnType(
"tinyint(1)");
514 b.Property<
long>(
"InstanceId")
515 .HasColumnType(
"bigint");
517 b.Property<
bool?>(
"PostTestMergeComment")
519 .HasColumnType(
"tinyint(1)");
521 b.Property<
bool?>(
"PushTestMergeCommits")
523 .HasColumnType(
"tinyint(1)");
525 b.Property<
bool?>(
"ShowTestMergeCommitters")
527 .HasColumnType(
"tinyint(1)");
531 b.HasIndex(
"InstanceId")
534 b.ToTable(
"RepositorySettings");
537 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
539 b.Property<
long>(
"Id")
540 .ValueGeneratedOnAdd()
541 .HasColumnType(
"bigint");
543 b.Property<
long>(
"RevisionInformationId")
544 .HasColumnType(
"bigint");
546 b.Property<
long>(
"TestMergeId")
547 .HasColumnType(
"bigint");
551 b.HasIndex(
"RevisionInformationId");
553 b.HasIndex(
"TestMergeId");
555 b.ToTable(
"RevInfoTestMerges");
558 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevisionInformation", b =>
560 b.Property<
long>(
"Id")
561 .ValueGeneratedOnAdd()
562 .HasColumnType(
"bigint");
564 b.Property<
string>(
"CommitSha")
566 .HasColumnType(
"varchar(40) CHARACTER SET utf8mb4")
569 b.Property<
long>(
"InstanceId")
570 .HasColumnType(
"bigint");
572 b.Property<
string>(
"OriginCommitSha")
574 .HasColumnType(
"varchar(40) CHARACTER SET utf8mb4")
577 b.Property<DateTimeOffset>(
"Timestamp")
578 .HasColumnType(
"datetime(6)");
582 b.HasIndex(
"InstanceId",
"CommitSha")
585 b.ToTable(
"RevisionInformations");
588 modelBuilder.Entity(
"Tgstation.Server.Host.Models.TestMerge", b =>
590 b.Property<
long>(
"Id")
591 .ValueGeneratedOnAdd()
592 .HasColumnType(
"bigint");
594 b.Property<
string>(
"Author")
596 .HasColumnType(
"longtext CHARACTER SET utf8mb4");
598 b.Property<
string>(
"BodyAtMerge")
600 .HasColumnType(
"longtext CHARACTER SET utf8mb4");
602 b.Property<
string>(
"Comment")
603 .HasColumnType(
"longtext CHARACTER SET utf8mb4")
604 .HasMaxLength(10000);
606 b.Property<DateTimeOffset>(
"MergedAt")
607 .HasColumnType(
"datetime(6)");
609 b.Property<
long>(
"MergedById")
610 .HasColumnType(
"bigint");
612 b.Property<
int>(
"Number")
613 .HasColumnType(
"int");
615 b.Property<
long?>(
"PrimaryRevisionInformationId")
617 .HasColumnType(
"bigint");
619 b.Property<
string>(
"TargetCommitSha")
621 .HasColumnType(
"varchar(40) CHARACTER SET utf8mb4")
624 b.Property<
string>(
"TitleAtMerge")
626 .HasColumnType(
"longtext CHARACTER SET utf8mb4");
628 b.Property<
string>(
"Url")
630 .HasColumnType(
"longtext CHARACTER SET utf8mb4");
634 b.HasIndex(
"MergedById");
636 b.HasIndex(
"PrimaryRevisionInformationId")
639 b.ToTable(
"TestMerges");
642 modelBuilder.Entity(
"Tgstation.Server.Host.Models.User", b =>
644 b.Property<
long?>(
"Id")
645 .ValueGeneratedOnAdd()
646 .HasColumnType(
"bigint");
648 b.Property<
string>(
"CanonicalName")
650 .HasColumnType(
"varchar(100) CHARACTER SET utf8mb4")
653 b.Property<DateTimeOffset?>(
"CreatedAt")
655 .HasColumnType(
"datetime(6)");
657 b.Property<
long?>(
"CreatedById")
658 .HasColumnType(
"bigint");
660 b.Property<
bool?>(
"Enabled")
662 .HasColumnType(
"tinyint(1)");
664 b.Property<
long?>(
"GroupId")
665 .HasColumnType(
"bigint");
667 b.Property<DateTimeOffset?>(
"LastPasswordUpdate")
668 .HasColumnType(
"datetime(6)");
670 b.Property<
string>(
"Name")
672 .HasColumnType(
"varchar(100) CHARACTER SET utf8mb4")
675 b.Property<
string>(
"PasswordHash")
676 .HasColumnType(
"longtext CHARACTER SET utf8mb4");
678 b.Property<
string>(
"SystemIdentifier")
679 .HasColumnType(
"varchar(100) CHARACTER SET utf8mb4")
684 b.HasIndex(
"CanonicalName")
687 b.HasIndex(
"CreatedById");
689 b.HasIndex(
"GroupId");
691 b.HasIndex(
"SystemIdentifier")
697 modelBuilder.Entity(
"Tgstation.Server.Host.Models.UserGroup", b =>
699 b.Property<
long?>(
"Id")
700 .ValueGeneratedOnAdd()
701 .HasColumnType(
"bigint");
703 b.Property<
string>(
"Name")
705 .HasColumnType(
"varchar(100) CHARACTER SET utf8mb4")
716 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatBot", b =>
718 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
719 .WithMany(
"ChatSettings")
720 .HasForeignKey(
"InstanceId")
721 .OnDelete(DeleteBehavior.Cascade)
725 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatChannel", b =>
727 b.HasOne(
"Tgstation.Server.Host.Models.ChatBot",
"ChatSettings")
728 .WithMany(
"Channels")
729 .HasForeignKey(
"ChatSettingsId")
730 .OnDelete(DeleteBehavior.Cascade)
734 modelBuilder.Entity(
"Tgstation.Server.Host.Models.CompileJob", b =>
736 b.HasOne(
"Tgstation.Server.Host.Models.Job",
"Job")
738 .HasForeignKey(
"Tgstation.Server.Host.Models.CompileJob",
"JobId")
739 .OnDelete(DeleteBehavior.Cascade)
742 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"RevisionInformation")
743 .WithMany(
"CompileJobs")
744 .HasForeignKey(
"RevisionInformationId")
745 .OnDelete(DeleteBehavior.Cascade)
749 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamDaemonSettings", b =>
751 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
752 .WithOne(
"DreamDaemonSettings")
753 .HasForeignKey(
"Tgstation.Server.Host.Models.DreamDaemonSettings",
"InstanceId")
754 .OnDelete(DeleteBehavior.Cascade)
758 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamMakerSettings", b =>
760 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
761 .WithOne(
"DreamMakerSettings")
762 .HasForeignKey(
"Tgstation.Server.Host.Models.DreamMakerSettings",
"InstanceId")
763 .OnDelete(DeleteBehavior.Cascade)
767 modelBuilder.Entity(
"Tgstation.Server.Host.Models.InstancePermissionSet", b =>
769 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
770 .WithMany(
"InstancePermissionSets")
771 .HasForeignKey(
"InstanceId")
772 .OnDelete(DeleteBehavior.Cascade)
775 b.HasOne(
"Tgstation.Server.Host.Models.PermissionSet",
"PermissionSet")
776 .WithMany(
"InstancePermissionSets")
777 .HasForeignKey(
"PermissionSetId")
778 .OnDelete(DeleteBehavior.Cascade)
782 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Job", b =>
784 b.HasOne(
"Tgstation.Server.Host.Models.User",
"CancelledBy")
786 .HasForeignKey(
"CancelledById");
788 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
790 .HasForeignKey(
"InstanceId")
791 .OnDelete(DeleteBehavior.Cascade)
794 b.HasOne(
"Tgstation.Server.Host.Models.User",
"StartedBy")
796 .HasForeignKey(
"StartedById")
797 .OnDelete(DeleteBehavior.Cascade)
801 modelBuilder.Entity(
"Tgstation.Server.Host.Models.OAuthConnection", b =>
803 b.HasOne(
"Tgstation.Server.Host.Models.User",
"User")
804 .WithMany(
"OAuthConnections")
805 .HasForeignKey(
"UserId")
806 .OnDelete(DeleteBehavior.Cascade);
809 modelBuilder.Entity(
"Tgstation.Server.Host.Models.PermissionSet", b =>
811 b.HasOne(
"Tgstation.Server.Host.Models.UserGroup",
"Group")
812 .WithOne(
"PermissionSet")
813 .HasForeignKey(
"Tgstation.Server.Host.Models.PermissionSet",
"GroupId")
814 .OnDelete(DeleteBehavior.Cascade);
816 b.HasOne(
"Tgstation.Server.Host.Models.User",
"User")
817 .WithOne(
"PermissionSet")
818 .HasForeignKey(
"Tgstation.Server.Host.Models.PermissionSet",
"UserId")
819 .OnDelete(DeleteBehavior.Cascade);
822 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ReattachInformation", b =>
824 b.HasOne(
"Tgstation.Server.Host.Models.CompileJob",
"CompileJob")
826 .HasForeignKey(
"CompileJobId")
827 .OnDelete(DeleteBehavior.Cascade)
831 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RepositorySettings", b =>
833 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
834 .WithOne(
"RepositorySettings")
835 .HasForeignKey(
"Tgstation.Server.Host.Models.RepositorySettings",
"InstanceId")
836 .OnDelete(DeleteBehavior.Cascade)
840 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
842 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"RevisionInformation")
843 .WithMany(
"ActiveTestMerges")
844 .HasForeignKey(
"RevisionInformationId")
845 .OnDelete(DeleteBehavior.Cascade)
848 b.HasOne(
"Tgstation.Server.Host.Models.TestMerge",
"TestMerge")
849 .WithMany(
"RevisonInformations")
850 .HasForeignKey(
"TestMergeId")
851 .OnDelete(DeleteBehavior.ClientNoAction)
855 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevisionInformation", b =>
857 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
858 .WithMany(
"RevisionInformations")
859 .HasForeignKey(
"InstanceId")
860 .OnDelete(DeleteBehavior.Cascade)
864 modelBuilder.Entity(
"Tgstation.Server.Host.Models.TestMerge", b =>
866 b.HasOne(
"Tgstation.Server.Host.Models.User",
"MergedBy")
867 .WithMany(
"TestMerges")
868 .HasForeignKey(
"MergedById")
869 .OnDelete(DeleteBehavior.Restrict)
872 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"PrimaryRevisionInformation")
873 .WithOne(
"PrimaryTestMerge")
874 .HasForeignKey(
"Tgstation.Server.Host.Models.TestMerge",
"PrimaryRevisionInformationId")
875 .OnDelete(DeleteBehavior.Cascade)
879 modelBuilder.Entity(
"Tgstation.Server.Host.Models.User", b =>
881 b.HasOne(
"Tgstation.Server.Host.Models.User",
"CreatedBy")
882 .WithMany(
"CreatedUsers")
883 .HasForeignKey(
"CreatedById");
885 b.HasOne(
"Tgstation.Server.Host.Models.UserGroup",
"Group")
887 .HasForeignKey(
"GroupId");
889#pragma warning restore 612, 618