17#pragma warning disable 612, 618
19 .HasAnnotation(
"ProductVersion",
"8.0.1")
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")
35 .HasColumnType(
"longtext");
37 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"ConnectionString"),
"utf8mb4");
39 b.Property<
bool?>(
"Enabled")
40 .HasColumnType(
"tinyint(1)");
42 b.Property<
long>(
"InstanceId")
43 .HasColumnType(
"bigint");
45 b.Property<
string>(
"Name")
48 .HasColumnType(
"varchar(100)");
50 b.Property<
int>(
"Provider")
51 .HasColumnType(
"int");
53 b.Property<uint?>(
"ReconnectionInterval")
55 .HasColumnType(
"int unsigned");
59 b.HasIndex(
"InstanceId",
"Name")
62 b.ToTable(
"ChatBots");
65 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatChannel", b =>
67 b.Property<
long>(
"Id")
68 .ValueGeneratedOnAdd()
69 .HasColumnType(
"bigint");
71 b.Property<
long>(
"ChatSettingsId")
72 .HasColumnType(
"bigint");
74 b.Property<ulong?>(
"DiscordChannelId")
75 .HasColumnType(
"bigint unsigned");
77 b.Property<
string>(
"IrcChannel")
79 .HasColumnType(
"varchar(100)");
81 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"IrcChannel"),
"utf8mb4");
83 b.Property<
bool?>(
"IsAdminChannel")
85 .HasColumnType(
"tinyint(1)");
87 b.Property<
bool?>(
"IsSystemChannel")
89 .HasColumnType(
"tinyint(1)");
91 b.Property<
bool?>(
"IsUpdatesChannel")
93 .HasColumnType(
"tinyint(1)");
95 b.Property<
bool?>(
"IsWatchdogChannel")
97 .HasColumnType(
"tinyint(1)");
99 b.Property<
string>(
"Tag")
101 .HasColumnType(
"longtext");
103 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"Tag"),
"utf8mb4");
107 b.HasIndex(
"ChatSettingsId",
"DiscordChannelId")
110 b.HasIndex(
"ChatSettingsId",
"IrcChannel")
113 b.ToTable(
"ChatChannels");
116 modelBuilder.Entity(
"Tgstation.Server.Host.Models.CompileJob", b =>
118 b.Property<
long?>(
"Id")
119 .ValueGeneratedOnAdd()
120 .HasColumnType(
"bigint");
122 b.Property<
int?>(
"DMApiMajorVersion")
123 .HasColumnType(
"int");
125 b.Property<
int?>(
"DMApiMinorVersion")
126 .HasColumnType(
"int");
128 b.Property<
int?>(
"DMApiPatchVersion")
129 .HasColumnType(
"int");
131 b.Property<Guid?>(
"DirectoryName")
133 .HasColumnType(
"char(36)");
135 b.Property<
string>(
"DmeName")
137 .HasColumnType(
"longtext");
139 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"DmeName"),
"utf8mb4");
141 b.Property<
string>(
"EngineVersion")
143 .HasColumnType(
"longtext");
145 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"EngineVersion"),
"utf8mb4");
147 b.Property<
int?>(
"GitHubDeploymentId")
148 .HasColumnType(
"int");
150 b.Property<
long?>(
"GitHubRepoId")
151 .HasColumnType(
"bigint");
153 b.Property<
long>(
"JobId")
154 .HasColumnType(
"bigint");
156 b.Property<
int?>(
"MinimumSecurityLevel")
157 .HasColumnType(
"int");
159 b.Property<
string>(
"Output")
161 .HasColumnType(
"longtext");
163 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"Output"),
"utf8mb4");
165 b.Property<
string>(
"RepositoryOrigin")
166 .HasColumnType(
"longtext");
168 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"RepositoryOrigin"),
"utf8mb4");
170 b.Property<
long>(
"RevisionInformationId")
171 .HasColumnType(
"bigint");
175 b.HasIndex(
"DirectoryName");
180 b.HasIndex(
"RevisionInformationId");
182 b.ToTable(
"CompileJobs");
185 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamDaemonSettings", b =>
187 b.Property<
long>(
"Id")
188 .ValueGeneratedOnAdd()
189 .HasColumnType(
"bigint");
191 b.Property<
string>(
"AdditionalParameters")
194 .HasColumnType(
"longtext");
196 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"AdditionalParameters"),
"utf8mb4");
198 b.Property<
bool?>(
"AllowWebClient")
200 .HasColumnType(
"tinyint(1)");
202 b.Property<
bool?>(
"AutoStart")
204 .HasColumnType(
"tinyint(1)");
206 b.Property<
bool?>(
"DumpOnHealthCheckRestart")
208 .HasColumnType(
"tinyint(1)");
210 b.Property<uint?>(
"HealthCheckSeconds")
212 .HasColumnType(
"int unsigned");
214 b.Property<
long>(
"InstanceId")
215 .HasColumnType(
"bigint");
217 b.Property<
bool?>(
"LogOutput")
219 .HasColumnType(
"tinyint(1)");
221 b.Property<uint?>(
"MapThreads")
223 .HasColumnType(
"int unsigned");
225 b.Property<
bool?>(
"Minidumps")
227 .HasColumnType(
"tinyint(1)");
229 b.Property<ushort?>(
"Port")
231 .HasColumnType(
"smallint unsigned");
233 b.Property<
int>(
"SecurityLevel")
234 .HasColumnType(
"int");
236 b.Property<
bool?>(
"StartProfiler")
238 .HasColumnType(
"tinyint(1)");
240 b.Property<uint?>(
"StartupTimeout")
242 .HasColumnType(
"int unsigned");
244 b.Property<uint?>(
"TopicRequestTimeout")
246 .HasColumnType(
"int unsigned");
248 b.Property<
int>(
"Visibility")
249 .HasColumnType(
"int");
253 b.HasIndex(
"InstanceId")
256 b.ToTable(
"DreamDaemonSettings");
259 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamMakerSettings", b =>
261 b.Property<
long>(
"Id")
262 .ValueGeneratedOnAdd()
263 .HasColumnType(
"bigint");
265 b.Property<ushort?>(
"ApiValidationPort")
267 .HasColumnType(
"smallint unsigned");
269 b.Property<
int>(
"ApiValidationSecurityLevel")
270 .HasColumnType(
"int");
272 b.Property<
long>(
"InstanceId")
273 .HasColumnType(
"bigint");
275 b.Property<
string>(
"ProjectName")
277 .HasColumnType(
"longtext");
279 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"ProjectName"),
"utf8mb4");
281 b.Property<
bool?>(
"RequireDMApiValidation")
283 .HasColumnType(
"tinyint(1)");
285 b.Property<TimeSpan?>(
"Timeout")
287 .HasColumnType(
"time(6)");
291 b.HasIndex(
"InstanceId")
294 b.ToTable(
"DreamMakerSettings");
297 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Instance", b =>
299 b.Property<
long?>(
"Id")
300 .ValueGeneratedOnAdd()
301 .HasColumnType(
"bigint");
303 b.Property<uint?>(
"AutoUpdateInterval")
305 .HasColumnType(
"int unsigned");
307 b.Property<ushort?>(
"ChatBotLimit")
309 .HasColumnType(
"smallint unsigned");
311 b.Property<
int>(
"ConfigurationType")
312 .HasColumnType(
"int");
314 b.Property<
string>(
"Name")
317 .HasColumnType(
"varchar(100)");
319 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"Name"),
"utf8mb4");
321 b.Property<
bool?>(
"Online")
323 .HasColumnType(
"tinyint(1)");
325 b.Property<
string>(
"Path")
327 .HasColumnType(
"varchar(255)");
329 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"Path"),
"utf8mb4");
331 b.Property<
string>(
"SwarmIdentifer")
332 .HasColumnType(
"varchar(255)");
334 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"SwarmIdentifer"),
"utf8mb4");
338 b.HasIndex(
"Path",
"SwarmIdentifer")
341 b.ToTable(
"Instances");
344 modelBuilder.Entity(
"Tgstation.Server.Host.Models.InstancePermissionSet", b =>
346 b.Property<
long>(
"Id")
347 .ValueGeneratedOnAdd()
348 .HasColumnType(
"bigint");
350 b.Property<ulong>(
"ChatBotRights")
351 .HasColumnType(
"bigint unsigned");
353 b.Property<ulong>(
"ConfigurationRights")
354 .HasColumnType(
"bigint unsigned");
356 b.Property<ulong>(
"DreamDaemonRights")
357 .HasColumnType(
"bigint unsigned");
359 b.Property<ulong>(
"DreamMakerRights")
360 .HasColumnType(
"bigint unsigned");
362 b.Property<ulong>(
"EngineRights")
363 .HasColumnType(
"bigint unsigned");
365 b.Property<
long>(
"InstanceId")
366 .HasColumnType(
"bigint");
368 b.Property<ulong>(
"InstancePermissionSetRights")
369 .HasColumnType(
"bigint unsigned");
371 b.Property<
long>(
"PermissionSetId")
372 .HasColumnType(
"bigint");
374 b.Property<ulong>(
"RepositoryRights")
375 .HasColumnType(
"bigint unsigned");
379 b.HasIndex(
"InstanceId");
381 b.HasIndex(
"PermissionSetId",
"InstanceId")
384 b.ToTable(
"InstancePermissionSets");
387 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Job", b =>
389 b.Property<
long?>(
"Id")
390 .ValueGeneratedOnAdd()
391 .HasColumnType(
"bigint");
393 b.Property<ulong?>(
"CancelRight")
394 .HasColumnType(
"bigint unsigned");
396 b.Property<ulong?>(
"CancelRightsType")
397 .HasColumnType(
"bigint unsigned");
399 b.Property<
bool?>(
"Cancelled")
401 .HasColumnType(
"tinyint(1)");
403 b.Property<
long?>(
"CancelledById")
404 .HasColumnType(
"bigint");
406 b.Property<
string>(
"Description")
408 .HasColumnType(
"longtext");
410 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"Description"),
"utf8mb4");
412 b.Property<uint?>(
"ErrorCode")
413 .HasColumnType(
"int unsigned");
415 b.Property<
string>(
"ExceptionDetails")
416 .HasColumnType(
"longtext");
418 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"ExceptionDetails"),
"utf8mb4");
420 b.Property<
long>(
"InstanceId")
421 .HasColumnType(
"bigint");
423 b.Property<
byte>(
"JobCode")
424 .HasColumnType(
"tinyint unsigned");
426 b.Property<DateTimeOffset?>(
"StartedAt")
428 .HasColumnType(
"datetime(6)");
430 b.Property<
long>(
"StartedById")
431 .HasColumnType(
"bigint");
433 b.Property<DateTimeOffset?>(
"StoppedAt")
434 .HasColumnType(
"datetime(6)");
438 b.HasIndex(
"CancelledById");
440 b.HasIndex(
"InstanceId");
442 b.HasIndex(
"StartedById");
447 modelBuilder.Entity(
"Tgstation.Server.Host.Models.OAuthConnection", b =>
449 b.Property<
long>(
"Id")
450 .ValueGeneratedOnAdd()
451 .HasColumnType(
"bigint");
453 b.Property<
string>(
"ExternalUserId")
456 .HasColumnType(
"varchar(100)");
458 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"ExternalUserId"),
"utf8mb4");
460 b.Property<
int>(
"Provider")
461 .HasColumnType(
"int");
463 b.Property<
long?>(
"UserId")
464 .HasColumnType(
"bigint");
468 b.HasIndex(
"UserId");
470 b.HasIndex(
"Provider",
"ExternalUserId")
473 b.ToTable(
"OAuthConnections");
476 modelBuilder.Entity(
"Tgstation.Server.Host.Models.PermissionSet", b =>
478 b.Property<
long?>(
"Id")
479 .ValueGeneratedOnAdd()
480 .HasColumnType(
"bigint");
482 b.Property<ulong>(
"AdministrationRights")
483 .HasColumnType(
"bigint unsigned");
485 b.Property<
long?>(
"GroupId")
486 .HasColumnType(
"bigint");
488 b.Property<ulong>(
"InstanceManagerRights")
489 .HasColumnType(
"bigint unsigned");
491 b.Property<
long?>(
"UserId")
492 .HasColumnType(
"bigint");
496 b.HasIndex(
"GroupId")
502 b.ToTable(
"PermissionSets");
505 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ReattachInformation", b =>
507 b.Property<
long?>(
"Id")
508 .ValueGeneratedOnAdd()
509 .HasColumnType(
"bigint");
511 b.Property<
string>(
"AccessIdentifier")
513 .HasColumnType(
"longtext");
515 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"AccessIdentifier"),
"utf8mb4");
517 b.Property<
long>(
"CompileJobId")
518 .HasColumnType(
"bigint");
520 b.Property<
long?>(
"InitialCompileJobId")
521 .HasColumnType(
"bigint");
523 b.Property<
int>(
"LaunchSecurityLevel")
524 .HasColumnType(
"int");
526 b.Property<
int>(
"LaunchVisibility")
527 .HasColumnType(
"int");
529 b.Property<ushort>(
"Port")
530 .HasColumnType(
"smallint unsigned");
532 b.Property<
int>(
"ProcessId")
533 .HasColumnType(
"int");
535 b.Property<
int>(
"RebootState")
536 .HasColumnType(
"int");
538 b.Property<ushort?>(
"TopicPort")
539 .HasColumnType(
"smallint unsigned");
543 b.HasIndex(
"CompileJobId");
545 b.HasIndex(
"InitialCompileJobId");
547 b.ToTable(
"ReattachInformations");
550 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RepositorySettings", b =>
552 b.Property<
long>(
"Id")
553 .ValueGeneratedOnAdd()
554 .HasColumnType(
"bigint");
556 b.Property<
string>(
"AccessToken")
558 .HasColumnType(
"longtext");
560 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"AccessToken"),
"utf8mb4");
562 b.Property<
string>(
"AccessUser")
564 .HasColumnType(
"longtext");
566 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"AccessUser"),
"utf8mb4");
568 b.Property<
bool?>(
"AutoUpdatesKeepTestMerges")
570 .HasColumnType(
"tinyint(1)");
572 b.Property<
bool?>(
"AutoUpdatesSynchronize")
574 .HasColumnType(
"tinyint(1)");
576 b.Property<
string>(
"CommitterEmail")
579 .HasColumnType(
"longtext");
581 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"CommitterEmail"),
"utf8mb4");
583 b.Property<
string>(
"CommitterName")
586 .HasColumnType(
"longtext");
588 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"CommitterName"),
"utf8mb4");
590 b.Property<
bool?>(
"CreateGitHubDeployments")
592 .HasColumnType(
"tinyint(1)");
594 b.Property<
long>(
"InstanceId")
595 .HasColumnType(
"bigint");
597 b.Property<
bool?>(
"PostTestMergeComment")
599 .HasColumnType(
"tinyint(1)");
601 b.Property<
bool?>(
"PushTestMergeCommits")
603 .HasColumnType(
"tinyint(1)");
605 b.Property<
bool?>(
"ShowTestMergeCommitters")
607 .HasColumnType(
"tinyint(1)");
609 b.Property<
bool?>(
"UpdateSubmodules")
611 .HasColumnType(
"tinyint(1)");
615 b.HasIndex(
"InstanceId")
618 b.ToTable(
"RepositorySettings");
621 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
623 b.Property<
long>(
"Id")
624 .ValueGeneratedOnAdd()
625 .HasColumnType(
"bigint");
627 b.Property<
long>(
"RevisionInformationId")
628 .HasColumnType(
"bigint");
630 b.Property<
long>(
"TestMergeId")
631 .HasColumnType(
"bigint");
635 b.HasIndex(
"RevisionInformationId");
637 b.HasIndex(
"TestMergeId");
639 b.ToTable(
"RevInfoTestMerges");
642 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevisionInformation", b =>
644 b.Property<
long>(
"Id")
645 .ValueGeneratedOnAdd()
646 .HasColumnType(
"bigint");
648 b.Property<
string>(
"CommitSha")
651 .HasColumnType(
"varchar(40)");
653 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"CommitSha"),
"utf8mb4");
655 b.Property<
long>(
"InstanceId")
656 .HasColumnType(
"bigint");
658 b.Property<
string>(
"OriginCommitSha")
661 .HasColumnType(
"varchar(40)");
663 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"OriginCommitSha"),
"utf8mb4");
665 b.Property<DateTimeOffset>(
"Timestamp")
666 .HasColumnType(
"datetime(6)");
670 b.HasIndex(
"InstanceId",
"CommitSha")
673 b.ToTable(
"RevisionInformations");
676 modelBuilder.Entity(
"Tgstation.Server.Host.Models.TestMerge", b =>
678 b.Property<
long>(
"Id")
679 .ValueGeneratedOnAdd()
680 .HasColumnType(
"bigint");
682 b.Property<
string>(
"Author")
684 .HasColumnType(
"longtext");
686 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"Author"),
"utf8mb4");
688 b.Property<
string>(
"BodyAtMerge")
690 .HasColumnType(
"longtext");
692 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"BodyAtMerge"),
"utf8mb4");
694 b.Property<
string>(
"Comment")
696 .HasColumnType(
"longtext");
698 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"Comment"),
"utf8mb4");
700 b.Property<DateTimeOffset>(
"MergedAt")
701 .HasColumnType(
"datetime(6)");
703 b.Property<
long>(
"MergedById")
704 .HasColumnType(
"bigint");
706 b.Property<
int>(
"Number")
707 .HasColumnType(
"int");
709 b.Property<
long?>(
"PrimaryRevisionInformationId")
711 .HasColumnType(
"bigint");
713 b.Property<
string>(
"TargetCommitSha")
716 .HasColumnType(
"varchar(40)");
718 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"TargetCommitSha"),
"utf8mb4");
720 b.Property<
string>(
"TitleAtMerge")
722 .HasColumnType(
"longtext");
724 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"TitleAtMerge"),
"utf8mb4");
726 b.Property<
string>(
"Url")
728 .HasColumnType(
"longtext");
730 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"Url"),
"utf8mb4");
734 b.HasIndex(
"MergedById");
736 b.HasIndex(
"PrimaryRevisionInformationId")
739 b.ToTable(
"TestMerges");
742 modelBuilder.Entity(
"Tgstation.Server.Host.Models.User", b =>
744 b.Property<
long?>(
"Id")
745 .ValueGeneratedOnAdd()
746 .HasColumnType(
"bigint");
748 b.Property<
string>(
"CanonicalName")
751 .HasColumnType(
"varchar(100)");
753 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"CanonicalName"),
"utf8mb4");
755 b.Property<DateTimeOffset?>(
"CreatedAt")
757 .HasColumnType(
"datetime(6)");
759 b.Property<
long?>(
"CreatedById")
760 .HasColumnType(
"bigint");
762 b.Property<
bool?>(
"Enabled")
764 .HasColumnType(
"tinyint(1)");
766 b.Property<
long?>(
"GroupId")
767 .HasColumnType(
"bigint");
769 b.Property<DateTimeOffset?>(
"LastPasswordUpdate")
770 .HasColumnType(
"datetime(6)");
772 b.Property<
string>(
"Name")
775 .HasColumnType(
"varchar(100)");
777 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"Name"),
"utf8mb4");
779 b.Property<
string>(
"PasswordHash")
780 .HasColumnType(
"longtext");
782 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"PasswordHash"),
"utf8mb4");
784 b.Property<
string>(
"SystemIdentifier")
786 .HasColumnType(
"varchar(100)");
788 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"SystemIdentifier"),
"utf8mb4");
792 b.HasIndex(
"CanonicalName")
795 b.HasIndex(
"CreatedById");
797 b.HasIndex(
"GroupId");
799 b.HasIndex(
"SystemIdentifier")
805 modelBuilder.Entity(
"Tgstation.Server.Host.Models.UserGroup", b =>
807 b.Property<
long?>(
"Id")
808 .ValueGeneratedOnAdd()
809 .HasColumnType(
"bigint");
811 b.Property<
string>(
"Name")
814 .HasColumnType(
"varchar(100)");
816 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"Name"),
"utf8mb4");
826 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatBot", b =>
828 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
829 .WithMany(
"ChatSettings")
830 .HasForeignKey(
"InstanceId")
831 .OnDelete(DeleteBehavior.Cascade)
834 b.Navigation(
"Instance");
837 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatChannel", b =>
839 b.HasOne(
"Tgstation.Server.Host.Models.ChatBot",
"ChatSettings")
840 .WithMany(
"Channels")
841 .HasForeignKey(
"ChatSettingsId")
842 .OnDelete(DeleteBehavior.Cascade)
845 b.Navigation(
"ChatSettings");
848 modelBuilder.Entity(
"Tgstation.Server.Host.Models.CompileJob", b =>
850 b.HasOne(
"Tgstation.Server.Host.Models.Job",
"Job")
852 .HasForeignKey(
"Tgstation.Server.Host.Models.CompileJob",
"JobId")
853 .OnDelete(DeleteBehavior.Cascade)
856 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"RevisionInformation")
857 .WithMany(
"CompileJobs")
858 .HasForeignKey(
"RevisionInformationId")
859 .OnDelete(DeleteBehavior.Cascade)
864 b.Navigation(
"RevisionInformation");
867 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamDaemonSettings", b =>
869 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
870 .WithOne(
"DreamDaemonSettings")
871 .HasForeignKey(
"Tgstation.Server.Host.Models.DreamDaemonSettings",
"InstanceId")
872 .OnDelete(DeleteBehavior.Cascade)
875 b.Navigation(
"Instance");
878 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamMakerSettings", b =>
880 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
881 .WithOne(
"DreamMakerSettings")
882 .HasForeignKey(
"Tgstation.Server.Host.Models.DreamMakerSettings",
"InstanceId")
883 .OnDelete(DeleteBehavior.Cascade)
886 b.Navigation(
"Instance");
889 modelBuilder.Entity(
"Tgstation.Server.Host.Models.InstancePermissionSet", b =>
891 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
892 .WithMany(
"InstancePermissionSets")
893 .HasForeignKey(
"InstanceId")
894 .OnDelete(DeleteBehavior.Cascade)
897 b.HasOne(
"Tgstation.Server.Host.Models.PermissionSet",
"PermissionSet")
898 .WithMany(
"InstancePermissionSets")
899 .HasForeignKey(
"PermissionSetId")
900 .OnDelete(DeleteBehavior.Cascade)
903 b.Navigation(
"Instance");
905 b.Navigation(
"PermissionSet");
908 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Job", b =>
910 b.HasOne(
"Tgstation.Server.Host.Models.User",
"CancelledBy")
912 .HasForeignKey(
"CancelledById");
914 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
916 .HasForeignKey(
"InstanceId")
917 .OnDelete(DeleteBehavior.Cascade)
920 b.HasOne(
"Tgstation.Server.Host.Models.User",
"StartedBy")
922 .HasForeignKey(
"StartedById")
923 .OnDelete(DeleteBehavior.Cascade)
926 b.Navigation(
"CancelledBy");
928 b.Navigation(
"Instance");
930 b.Navigation(
"StartedBy");
933 modelBuilder.Entity(
"Tgstation.Server.Host.Models.OAuthConnection", b =>
935 b.HasOne(
"Tgstation.Server.Host.Models.User",
"User")
936 .WithMany(
"OAuthConnections")
937 .HasForeignKey(
"UserId")
938 .OnDelete(DeleteBehavior.Cascade);
940 b.Navigation(
"User");
943 modelBuilder.Entity(
"Tgstation.Server.Host.Models.PermissionSet", b =>
945 b.HasOne(
"Tgstation.Server.Host.Models.UserGroup",
"Group")
946 .WithOne(
"PermissionSet")
947 .HasForeignKey(
"Tgstation.Server.Host.Models.PermissionSet",
"GroupId")
948 .OnDelete(DeleteBehavior.Cascade);
950 b.HasOne(
"Tgstation.Server.Host.Models.User",
"User")
951 .WithOne(
"PermissionSet")
952 .HasForeignKey(
"Tgstation.Server.Host.Models.PermissionSet",
"UserId")
953 .OnDelete(DeleteBehavior.Cascade);
955 b.Navigation(
"Group");
957 b.Navigation(
"User");
960 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ReattachInformation", b =>
962 b.HasOne(
"Tgstation.Server.Host.Models.CompileJob",
"CompileJob")
964 .HasForeignKey(
"CompileJobId")
965 .OnDelete(DeleteBehavior.Cascade)
968 b.HasOne(
"Tgstation.Server.Host.Models.CompileJob",
"InitialCompileJob")
970 .HasForeignKey(
"InitialCompileJobId");
972 b.Navigation(
"CompileJob");
974 b.Navigation(
"InitialCompileJob");
977 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RepositorySettings", b =>
979 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
980 .WithOne(
"RepositorySettings")
981 .HasForeignKey(
"Tgstation.Server.Host.Models.RepositorySettings",
"InstanceId")
982 .OnDelete(DeleteBehavior.Cascade)
985 b.Navigation(
"Instance");
988 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
990 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"RevisionInformation")
991 .WithMany(
"ActiveTestMerges")
992 .HasForeignKey(
"RevisionInformationId")
993 .OnDelete(DeleteBehavior.Cascade)
996 b.HasOne(
"Tgstation.Server.Host.Models.TestMerge",
"TestMerge")
997 .WithMany(
"RevisonInformations")
998 .HasForeignKey(
"TestMergeId")
999 .OnDelete(DeleteBehavior.ClientNoAction)
1002 b.Navigation(
"RevisionInformation");
1004 b.Navigation(
"TestMerge");
1007 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevisionInformation", b =>
1009 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
1010 .WithMany(
"RevisionInformations")
1011 .HasForeignKey(
"InstanceId")
1012 .OnDelete(DeleteBehavior.Cascade)
1015 b.Navigation(
"Instance");
1018 modelBuilder.Entity(
"Tgstation.Server.Host.Models.TestMerge", b =>
1020 b.HasOne(
"Tgstation.Server.Host.Models.User",
"MergedBy")
1021 .WithMany(
"TestMerges")
1022 .HasForeignKey(
"MergedById")
1023 .OnDelete(DeleteBehavior.Restrict)
1026 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"PrimaryRevisionInformation")
1027 .WithOne(
"PrimaryTestMerge")
1028 .HasForeignKey(
"Tgstation.Server.Host.Models.TestMerge",
"PrimaryRevisionInformationId")
1029 .OnDelete(DeleteBehavior.Cascade)
1032 b.Navigation(
"MergedBy");
1034 b.Navigation(
"PrimaryRevisionInformation");
1037 modelBuilder.Entity(
"Tgstation.Server.Host.Models.User", b =>
1039 b.HasOne(
"Tgstation.Server.Host.Models.User",
"CreatedBy")
1040 .WithMany(
"CreatedUsers")
1041 .HasForeignKey(
"CreatedById");
1043 b.HasOne(
"Tgstation.Server.Host.Models.UserGroup",
"Group")
1045 .HasForeignKey(
"GroupId");
1047 b.Navigation(
"CreatedBy");
1049 b.Navigation(
"Group");
1052 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatBot", b =>
1054 b.Navigation(
"Channels");
1057 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Instance", b =>
1059 b.Navigation(
"ChatSettings");
1061 b.Navigation(
"DreamDaemonSettings");
1063 b.Navigation(
"DreamMakerSettings");
1065 b.Navigation(
"InstancePermissionSets");
1067 b.Navigation(
"Jobs");
1069 b.Navigation(
"RepositorySettings");
1071 b.Navigation(
"RevisionInformations");
1074 modelBuilder.Entity(
"Tgstation.Server.Host.Models.PermissionSet", b =>
1076 b.Navigation(
"InstancePermissionSets");
1079 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevisionInformation", b =>
1081 b.Navigation(
"ActiveTestMerges");
1083 b.Navigation(
"CompileJobs");
1085 b.Navigation(
"PrimaryTestMerge");
1088 modelBuilder.Entity(
"Tgstation.Server.Host.Models.TestMerge", b =>
1090 b.Navigation(
"RevisonInformations");
1093 modelBuilder.Entity(
"Tgstation.Server.Host.Models.User", b =>
1095 b.Navigation(
"CreatedUsers");
1097 b.Navigation(
"OAuthConnections");
1099 b.Navigation(
"PermissionSet");
1101 b.Navigation(
"TestMerges");
1104 modelBuilder.Entity(
"Tgstation.Server.Host.Models.UserGroup", b =>
1106 b.Navigation(
"PermissionSet")
1109 b.Navigation(
"Users");
1111#pragma warning restore 612, 618