17#pragma warning disable 612, 618
19 .HasAnnotation(
"ProductVersion",
"8.0.0-rc.1.23419.6")
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<
string>(
"ByondVersion")
124 .HasColumnType(
"longtext")
125 .HasColumnName(
"EngineVersion");
127 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"ByondVersion"),
"utf8mb4");
129 b.Property<
int?>(
"DMApiMajorVersion")
130 .HasColumnType(
"int");
132 b.Property<
int?>(
"DMApiMinorVersion")
133 .HasColumnType(
"int");
135 b.Property<
int?>(
"DMApiPatchVersion")
136 .HasColumnType(
"int");
138 b.Property<Guid?>(
"DirectoryName")
140 .HasColumnType(
"char(36)");
142 b.Property<
string>(
"DmeName")
144 .HasColumnType(
"longtext");
146 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"DmeName"),
"utf8mb4");
148 b.Property<
int?>(
"GitHubDeploymentId")
149 .HasColumnType(
"int");
151 b.Property<
long?>(
"GitHubRepoId")
152 .HasColumnType(
"bigint");
154 b.Property<
long>(
"JobId")
155 .HasColumnType(
"bigint");
157 b.Property<
int?>(
"MinimumSecurityLevel")
158 .HasColumnType(
"int");
160 b.Property<
string>(
"Output")
162 .HasColumnType(
"longtext");
164 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"Output"),
"utf8mb4");
166 b.Property<
string>(
"RepositoryOrigin")
167 .HasColumnType(
"longtext");
169 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"RepositoryOrigin"),
"utf8mb4");
171 b.Property<
long>(
"RevisionInformationId")
172 .HasColumnType(
"bigint");
176 b.HasIndex(
"DirectoryName");
181 b.HasIndex(
"RevisionInformationId");
183 b.ToTable(
"CompileJobs");
186 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamDaemonSettings", b =>
188 b.Property<
long>(
"Id")
189 .ValueGeneratedOnAdd()
190 .HasColumnType(
"bigint");
192 b.Property<
string>(
"AdditionalParameters")
195 .HasColumnType(
"longtext");
197 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"AdditionalParameters"),
"utf8mb4");
199 b.Property<
bool?>(
"AllowWebClient")
201 .HasColumnType(
"tinyint(1)");
203 b.Property<
bool?>(
"AutoStart")
205 .HasColumnType(
"tinyint(1)");
207 b.Property<
bool?>(
"DumpOnHealthCheckRestart")
209 .HasColumnType(
"tinyint(1)");
211 b.Property<uint?>(
"HealthCheckSeconds")
213 .HasColumnType(
"int unsigned");
215 b.Property<
long>(
"InstanceId")
216 .HasColumnType(
"bigint");
218 b.Property<
bool?>(
"LogOutput")
220 .HasColumnType(
"tinyint(1)");
222 b.Property<uint?>(
"MapThreads")
224 .HasColumnType(
"int unsigned");
226 b.Property<ushort?>(
"Port")
228 .HasColumnType(
"smallint unsigned");
230 b.Property<
int>(
"SecurityLevel")
231 .HasColumnType(
"int");
233 b.Property<
bool?>(
"StartProfiler")
235 .HasColumnType(
"tinyint(1)");
237 b.Property<uint?>(
"StartupTimeout")
239 .HasColumnType(
"int unsigned");
241 b.Property<uint?>(
"TopicRequestTimeout")
243 .HasColumnType(
"int unsigned");
245 b.Property<
int>(
"Visibility")
246 .HasColumnType(
"int");
250 b.HasIndex(
"InstanceId")
253 b.ToTable(
"DreamDaemonSettings");
256 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamMakerSettings", b =>
258 b.Property<
long>(
"Id")
259 .ValueGeneratedOnAdd()
260 .HasColumnType(
"bigint");
262 b.Property<ushort?>(
"ApiValidationPort")
264 .HasColumnType(
"smallint unsigned");
266 b.Property<
int>(
"ApiValidationSecurityLevel")
267 .HasColumnType(
"int");
269 b.Property<
long>(
"InstanceId")
270 .HasColumnType(
"bigint");
272 b.Property<
string>(
"ProjectName")
274 .HasColumnType(
"longtext");
276 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"ProjectName"),
"utf8mb4");
278 b.Property<
bool?>(
"RequireDMApiValidation")
280 .HasColumnType(
"tinyint(1)");
282 b.Property<TimeSpan?>(
"Timeout")
284 .HasColumnType(
"time(6)");
288 b.HasIndex(
"InstanceId")
291 b.ToTable(
"DreamMakerSettings");
294 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Instance", b =>
296 b.Property<
long?>(
"Id")
297 .ValueGeneratedOnAdd()
298 .HasColumnType(
"bigint");
300 b.Property<uint?>(
"AutoUpdateInterval")
302 .HasColumnType(
"int unsigned");
304 b.Property<ushort?>(
"ChatBotLimit")
306 .HasColumnType(
"smallint unsigned");
308 b.Property<
int>(
"ConfigurationType")
309 .HasColumnType(
"int");
311 b.Property<
string>(
"Name")
314 .HasColumnType(
"varchar(100)");
316 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"Name"),
"utf8mb4");
318 b.Property<
bool?>(
"Online")
320 .HasColumnType(
"tinyint(1)");
322 b.Property<
string>(
"Path")
324 .HasColumnType(
"varchar(255)");
326 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"Path"),
"utf8mb4");
328 b.Property<
string>(
"SwarmIdentifer")
329 .HasColumnType(
"varchar(255)");
331 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"SwarmIdentifer"),
"utf8mb4");
335 b.HasIndex(
"Path",
"SwarmIdentifer")
338 b.ToTable(
"Instances");
341 modelBuilder.Entity(
"Tgstation.Server.Host.Models.InstancePermissionSet", b =>
343 b.Property<
long>(
"Id")
344 .ValueGeneratedOnAdd()
345 .HasColumnType(
"bigint");
347 b.Property<ulong>(
"ChatBotRights")
348 .HasColumnType(
"bigint unsigned");
350 b.Property<ulong>(
"ConfigurationRights")
351 .HasColumnType(
"bigint unsigned");
353 b.Property<ulong>(
"DreamDaemonRights")
354 .HasColumnType(
"bigint unsigned");
356 b.Property<ulong>(
"DreamMakerRights")
357 .HasColumnType(
"bigint unsigned");
359 b.Property<ulong>(
"EngineRights")
360 .HasColumnType(
"bigint unsigned");
362 b.Property<
long>(
"InstanceId")
363 .HasColumnType(
"bigint");
365 b.Property<ulong>(
"InstancePermissionSetRights")
366 .HasColumnType(
"bigint unsigned");
368 b.Property<
long>(
"PermissionSetId")
369 .HasColumnType(
"bigint");
371 b.Property<ulong>(
"RepositoryRights")
372 .HasColumnType(
"bigint unsigned");
376 b.HasIndex(
"InstanceId");
378 b.HasIndex(
"PermissionSetId",
"InstanceId")
381 b.ToTable(
"InstancePermissionSets");
384 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Job", b =>
386 b.Property<
long?>(
"Id")
387 .ValueGeneratedOnAdd()
388 .HasColumnType(
"bigint");
390 b.Property<ulong?>(
"CancelRight")
391 .HasColumnType(
"bigint unsigned");
393 b.Property<ulong?>(
"CancelRightsType")
394 .HasColumnType(
"bigint unsigned");
396 b.Property<
bool?>(
"Cancelled")
398 .HasColumnType(
"tinyint(1)");
400 b.Property<
long?>(
"CancelledById")
401 .HasColumnType(
"bigint");
403 b.Property<
string>(
"Description")
405 .HasColumnType(
"longtext");
407 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"Description"),
"utf8mb4");
409 b.Property<uint?>(
"ErrorCode")
410 .HasColumnType(
"int unsigned");
412 b.Property<
string>(
"ExceptionDetails")
413 .HasColumnType(
"longtext");
415 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"ExceptionDetails"),
"utf8mb4");
417 b.Property<
long>(
"InstanceId")
418 .HasColumnType(
"bigint");
420 b.Property<
byte>(
"JobCode")
421 .HasColumnType(
"tinyint unsigned");
423 b.Property<DateTimeOffset?>(
"StartedAt")
425 .HasColumnType(
"datetime(6)");
427 b.Property<
long>(
"StartedById")
428 .HasColumnType(
"bigint");
430 b.Property<DateTimeOffset?>(
"StoppedAt")
431 .HasColumnType(
"datetime(6)");
435 b.HasIndex(
"CancelledById");
437 b.HasIndex(
"InstanceId");
439 b.HasIndex(
"StartedById");
444 modelBuilder.Entity(
"Tgstation.Server.Host.Models.OAuthConnection", b =>
446 b.Property<
long>(
"Id")
447 .ValueGeneratedOnAdd()
448 .HasColumnType(
"bigint");
450 b.Property<
string>(
"ExternalUserId")
453 .HasColumnType(
"varchar(100)");
455 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"ExternalUserId"),
"utf8mb4");
457 b.Property<
int>(
"Provider")
458 .HasColumnType(
"int");
460 b.Property<
long?>(
"UserId")
461 .HasColumnType(
"bigint");
465 b.HasIndex(
"UserId");
467 b.HasIndex(
"Provider",
"ExternalUserId")
470 b.ToTable(
"OAuthConnections");
473 modelBuilder.Entity(
"Tgstation.Server.Host.Models.PermissionSet", b =>
475 b.Property<
long?>(
"Id")
476 .ValueGeneratedOnAdd()
477 .HasColumnType(
"bigint");
479 b.Property<ulong>(
"AdministrationRights")
480 .HasColumnType(
"bigint unsigned");
482 b.Property<
long?>(
"GroupId")
483 .HasColumnType(
"bigint");
485 b.Property<ulong>(
"InstanceManagerRights")
486 .HasColumnType(
"bigint unsigned");
488 b.Property<
long?>(
"UserId")
489 .HasColumnType(
"bigint");
493 b.HasIndex(
"GroupId")
499 b.ToTable(
"PermissionSets");
502 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ReattachInformation", b =>
504 b.Property<
long>(
"Id")
505 .ValueGeneratedOnAdd()
506 .HasColumnType(
"bigint");
508 b.Property<
string>(
"AccessIdentifier")
510 .HasColumnType(
"longtext");
512 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"AccessIdentifier"),
"utf8mb4");
514 b.Property<
long>(
"CompileJobId")
515 .HasColumnType(
"bigint");
517 b.Property<
long?>(
"InitialCompileJobId")
518 .HasColumnType(
"bigint");
520 b.Property<
int>(
"LaunchSecurityLevel")
521 .HasColumnType(
"int");
523 b.Property<
int>(
"LaunchVisibility")
524 .HasColumnType(
"int");
526 b.Property<ushort>(
"Port")
527 .HasColumnType(
"smallint unsigned");
529 b.Property<
int>(
"ProcessId")
530 .HasColumnType(
"int");
532 b.Property<
int>(
"RebootState")
533 .HasColumnType(
"int");
537 b.HasIndex(
"CompileJobId");
539 b.HasIndex(
"InitialCompileJobId");
541 b.ToTable(
"ReattachInformations");
544 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RepositorySettings", b =>
546 b.Property<
long>(
"Id")
547 .ValueGeneratedOnAdd()
548 .HasColumnType(
"bigint");
550 b.Property<
string>(
"AccessToken")
552 .HasColumnType(
"longtext");
554 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"AccessToken"),
"utf8mb4");
556 b.Property<
string>(
"AccessUser")
558 .HasColumnType(
"longtext");
560 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"AccessUser"),
"utf8mb4");
562 b.Property<
bool?>(
"AutoUpdatesKeepTestMerges")
564 .HasColumnType(
"tinyint(1)");
566 b.Property<
bool?>(
"AutoUpdatesSynchronize")
568 .HasColumnType(
"tinyint(1)");
570 b.Property<
string>(
"CommitterEmail")
573 .HasColumnType(
"longtext");
575 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"CommitterEmail"),
"utf8mb4");
577 b.Property<
string>(
"CommitterName")
580 .HasColumnType(
"longtext");
582 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"CommitterName"),
"utf8mb4");
584 b.Property<
bool?>(
"CreateGitHubDeployments")
586 .HasColumnType(
"tinyint(1)");
588 b.Property<
long>(
"InstanceId")
589 .HasColumnType(
"bigint");
591 b.Property<
bool?>(
"PostTestMergeComment")
593 .HasColumnType(
"tinyint(1)");
595 b.Property<
bool?>(
"PushTestMergeCommits")
597 .HasColumnType(
"tinyint(1)");
599 b.Property<
bool?>(
"ShowTestMergeCommitters")
601 .HasColumnType(
"tinyint(1)");
603 b.Property<
bool?>(
"UpdateSubmodules")
605 .HasColumnType(
"tinyint(1)");
609 b.HasIndex(
"InstanceId")
612 b.ToTable(
"RepositorySettings");
615 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
617 b.Property<
long>(
"Id")
618 .ValueGeneratedOnAdd()
619 .HasColumnType(
"bigint");
621 b.Property<
long>(
"RevisionInformationId")
622 .HasColumnType(
"bigint");
624 b.Property<
long>(
"TestMergeId")
625 .HasColumnType(
"bigint");
629 b.HasIndex(
"RevisionInformationId");
631 b.HasIndex(
"TestMergeId");
633 b.ToTable(
"RevInfoTestMerges");
636 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevisionInformation", b =>
638 b.Property<
long>(
"Id")
639 .ValueGeneratedOnAdd()
640 .HasColumnType(
"bigint");
642 b.Property<
string>(
"CommitSha")
645 .HasColumnType(
"varchar(40)");
647 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"CommitSha"),
"utf8mb4");
649 b.Property<
long>(
"InstanceId")
650 .HasColumnType(
"bigint");
652 b.Property<
string>(
"OriginCommitSha")
655 .HasColumnType(
"varchar(40)");
657 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"OriginCommitSha"),
"utf8mb4");
659 b.Property<DateTimeOffset>(
"Timestamp")
660 .HasColumnType(
"datetime(6)");
664 b.HasIndex(
"InstanceId",
"CommitSha")
667 b.ToTable(
"RevisionInformations");
670 modelBuilder.Entity(
"Tgstation.Server.Host.Models.TestMerge", b =>
672 b.Property<
long>(
"Id")
673 .ValueGeneratedOnAdd()
674 .HasColumnType(
"bigint");
676 b.Property<
string>(
"Author")
678 .HasColumnType(
"longtext");
680 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"Author"),
"utf8mb4");
682 b.Property<
string>(
"BodyAtMerge")
684 .HasColumnType(
"longtext");
686 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"BodyAtMerge"),
"utf8mb4");
688 b.Property<
string>(
"Comment")
690 .HasColumnType(
"longtext");
692 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"Comment"),
"utf8mb4");
694 b.Property<DateTimeOffset>(
"MergedAt")
695 .HasColumnType(
"datetime(6)");
697 b.Property<
long>(
"MergedById")
698 .HasColumnType(
"bigint");
700 b.Property<
int>(
"Number")
701 .HasColumnType(
"int");
703 b.Property<
long?>(
"PrimaryRevisionInformationId")
705 .HasColumnType(
"bigint");
707 b.Property<
string>(
"TargetCommitSha")
710 .HasColumnType(
"varchar(40)");
712 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"TargetCommitSha"),
"utf8mb4");
714 b.Property<
string>(
"TitleAtMerge")
716 .HasColumnType(
"longtext");
718 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"TitleAtMerge"),
"utf8mb4");
720 b.Property<
string>(
"Url")
722 .HasColumnType(
"longtext");
724 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"Url"),
"utf8mb4");
728 b.HasIndex(
"MergedById");
730 b.HasIndex(
"PrimaryRevisionInformationId")
733 b.ToTable(
"TestMerges");
736 modelBuilder.Entity(
"Tgstation.Server.Host.Models.User", b =>
738 b.Property<
long?>(
"Id")
739 .ValueGeneratedOnAdd()
740 .HasColumnType(
"bigint");
742 b.Property<
string>(
"CanonicalName")
745 .HasColumnType(
"varchar(100)");
747 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"CanonicalName"),
"utf8mb4");
749 b.Property<DateTimeOffset?>(
"CreatedAt")
751 .HasColumnType(
"datetime(6)");
753 b.Property<
long?>(
"CreatedById")
754 .HasColumnType(
"bigint");
756 b.Property<
bool?>(
"Enabled")
758 .HasColumnType(
"tinyint(1)");
760 b.Property<
long?>(
"GroupId")
761 .HasColumnType(
"bigint");
763 b.Property<DateTimeOffset?>(
"LastPasswordUpdate")
764 .HasColumnType(
"datetime(6)");
766 b.Property<
string>(
"Name")
769 .HasColumnType(
"varchar(100)");
771 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"Name"),
"utf8mb4");
773 b.Property<
string>(
"PasswordHash")
774 .HasColumnType(
"longtext");
776 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"PasswordHash"),
"utf8mb4");
778 b.Property<
string>(
"SystemIdentifier")
780 .HasColumnType(
"varchar(100)");
782 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"SystemIdentifier"),
"utf8mb4");
786 b.HasIndex(
"CanonicalName")
789 b.HasIndex(
"CreatedById");
791 b.HasIndex(
"GroupId");
793 b.HasIndex(
"SystemIdentifier")
799 modelBuilder.Entity(
"Tgstation.Server.Host.Models.UserGroup", b =>
801 b.Property<
long?>(
"Id")
802 .ValueGeneratedOnAdd()
803 .HasColumnType(
"bigint");
805 b.Property<
string>(
"Name")
808 .HasColumnType(
"varchar(100)");
810 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"Name"),
"utf8mb4");
820 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatBot", b =>
822 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
823 .WithMany(
"ChatSettings")
824 .HasForeignKey(
"InstanceId")
825 .OnDelete(DeleteBehavior.Cascade)
828 b.Navigation(
"Instance");
831 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatChannel", b =>
833 b.HasOne(
"Tgstation.Server.Host.Models.ChatBot",
"ChatSettings")
834 .WithMany(
"Channels")
835 .HasForeignKey(
"ChatSettingsId")
836 .OnDelete(DeleteBehavior.Cascade)
839 b.Navigation(
"ChatSettings");
842 modelBuilder.Entity(
"Tgstation.Server.Host.Models.CompileJob", b =>
844 b.HasOne(
"Tgstation.Server.Host.Models.Job",
"Job")
846 .HasForeignKey(
"Tgstation.Server.Host.Models.CompileJob",
"JobId")
847 .OnDelete(DeleteBehavior.Cascade)
850 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"RevisionInformation")
851 .WithMany(
"CompileJobs")
852 .HasForeignKey(
"RevisionInformationId")
853 .OnDelete(DeleteBehavior.Cascade)
858 b.Navigation(
"RevisionInformation");
861 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamDaemonSettings", b =>
863 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
864 .WithOne(
"DreamDaemonSettings")
865 .HasForeignKey(
"Tgstation.Server.Host.Models.DreamDaemonSettings",
"InstanceId")
866 .OnDelete(DeleteBehavior.Cascade)
869 b.Navigation(
"Instance");
872 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamMakerSettings", b =>
874 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
875 .WithOne(
"DreamMakerSettings")
876 .HasForeignKey(
"Tgstation.Server.Host.Models.DreamMakerSettings",
"InstanceId")
877 .OnDelete(DeleteBehavior.Cascade)
880 b.Navigation(
"Instance");
883 modelBuilder.Entity(
"Tgstation.Server.Host.Models.InstancePermissionSet", b =>
885 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
886 .WithMany(
"InstancePermissionSets")
887 .HasForeignKey(
"InstanceId")
888 .OnDelete(DeleteBehavior.Cascade)
891 b.HasOne(
"Tgstation.Server.Host.Models.PermissionSet",
"PermissionSet")
892 .WithMany(
"InstancePermissionSets")
893 .HasForeignKey(
"PermissionSetId")
894 .OnDelete(DeleteBehavior.Cascade)
897 b.Navigation(
"Instance");
899 b.Navigation(
"PermissionSet");
902 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Job", b =>
904 b.HasOne(
"Tgstation.Server.Host.Models.User",
"CancelledBy")
906 .HasForeignKey(
"CancelledById");
908 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
910 .HasForeignKey(
"InstanceId")
911 .OnDelete(DeleteBehavior.Cascade)
914 b.HasOne(
"Tgstation.Server.Host.Models.User",
"StartedBy")
916 .HasForeignKey(
"StartedById")
917 .OnDelete(DeleteBehavior.Cascade)
920 b.Navigation(
"CancelledBy");
922 b.Navigation(
"Instance");
924 b.Navigation(
"StartedBy");
927 modelBuilder.Entity(
"Tgstation.Server.Host.Models.OAuthConnection", b =>
929 b.HasOne(
"Tgstation.Server.Host.Models.User",
"User")
930 .WithMany(
"OAuthConnections")
931 .HasForeignKey(
"UserId")
932 .OnDelete(DeleteBehavior.Cascade);
934 b.Navigation(
"User");
937 modelBuilder.Entity(
"Tgstation.Server.Host.Models.PermissionSet", b =>
939 b.HasOne(
"Tgstation.Server.Host.Models.UserGroup",
"Group")
940 .WithOne(
"PermissionSet")
941 .HasForeignKey(
"Tgstation.Server.Host.Models.PermissionSet",
"GroupId")
942 .OnDelete(DeleteBehavior.Cascade);
944 b.HasOne(
"Tgstation.Server.Host.Models.User",
"User")
945 .WithOne(
"PermissionSet")
946 .HasForeignKey(
"Tgstation.Server.Host.Models.PermissionSet",
"UserId")
947 .OnDelete(DeleteBehavior.Cascade);
949 b.Navigation(
"Group");
951 b.Navigation(
"User");
954 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ReattachInformation", b =>
956 b.HasOne(
"Tgstation.Server.Host.Models.CompileJob",
"CompileJob")
958 .HasForeignKey(
"CompileJobId")
959 .OnDelete(DeleteBehavior.Cascade)
962 b.HasOne(
"Tgstation.Server.Host.Models.CompileJob",
"InitialCompileJob")
964 .HasForeignKey(
"InitialCompileJobId");
966 b.Navigation(
"CompileJob");
968 b.Navigation(
"InitialCompileJob");
971 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RepositorySettings", b =>
973 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
974 .WithOne(
"RepositorySettings")
975 .HasForeignKey(
"Tgstation.Server.Host.Models.RepositorySettings",
"InstanceId")
976 .OnDelete(DeleteBehavior.Cascade)
979 b.Navigation(
"Instance");
982 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
984 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"RevisionInformation")
985 .WithMany(
"ActiveTestMerges")
986 .HasForeignKey(
"RevisionInformationId")
987 .OnDelete(DeleteBehavior.Cascade)
990 b.HasOne(
"Tgstation.Server.Host.Models.TestMerge",
"TestMerge")
991 .WithMany(
"RevisonInformations")
992 .HasForeignKey(
"TestMergeId")
993 .OnDelete(DeleteBehavior.ClientNoAction)
996 b.Navigation(
"RevisionInformation");
998 b.Navigation(
"TestMerge");
1001 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevisionInformation", b =>
1003 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
1004 .WithMany(
"RevisionInformations")
1005 .HasForeignKey(
"InstanceId")
1006 .OnDelete(DeleteBehavior.Cascade)
1009 b.Navigation(
"Instance");
1012 modelBuilder.Entity(
"Tgstation.Server.Host.Models.TestMerge", b =>
1014 b.HasOne(
"Tgstation.Server.Host.Models.User",
"MergedBy")
1015 .WithMany(
"TestMerges")
1016 .HasForeignKey(
"MergedById")
1017 .OnDelete(DeleteBehavior.Restrict)
1020 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"PrimaryRevisionInformation")
1021 .WithOne(
"PrimaryTestMerge")
1022 .HasForeignKey(
"Tgstation.Server.Host.Models.TestMerge",
"PrimaryRevisionInformationId")
1023 .OnDelete(DeleteBehavior.Cascade)
1026 b.Navigation(
"MergedBy");
1028 b.Navigation(
"PrimaryRevisionInformation");
1031 modelBuilder.Entity(
"Tgstation.Server.Host.Models.User", b =>
1033 b.HasOne(
"Tgstation.Server.Host.Models.User",
"CreatedBy")
1034 .WithMany(
"CreatedUsers")
1035 .HasForeignKey(
"CreatedById");
1037 b.HasOne(
"Tgstation.Server.Host.Models.UserGroup",
"Group")
1039 .HasForeignKey(
"GroupId");
1041 b.Navigation(
"CreatedBy");
1043 b.Navigation(
"Group");
1046 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatBot", b =>
1048 b.Navigation(
"Channels");
1051 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Instance", b =>
1053 b.Navigation(
"ChatSettings");
1055 b.Navigation(
"DreamDaemonSettings");
1057 b.Navigation(
"DreamMakerSettings");
1059 b.Navigation(
"InstancePermissionSets");
1061 b.Navigation(
"Jobs");
1063 b.Navigation(
"RepositorySettings");
1065 b.Navigation(
"RevisionInformations");
1068 modelBuilder.Entity(
"Tgstation.Server.Host.Models.PermissionSet", b =>
1070 b.Navigation(
"InstancePermissionSets");
1073 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevisionInformation", b =>
1075 b.Navigation(
"ActiveTestMerges");
1077 b.Navigation(
"CompileJobs");
1079 b.Navigation(
"PrimaryTestMerge");
1082 modelBuilder.Entity(
"Tgstation.Server.Host.Models.TestMerge", b =>
1084 b.Navigation(
"RevisonInformations");
1087 modelBuilder.Entity(
"Tgstation.Server.Host.Models.User", b =>
1089 b.Navigation(
"CreatedUsers");
1091 b.Navigation(
"OAuthConnections");
1093 b.Navigation(
"PermissionSet");
1095 b.Navigation(
"TestMerges");
1098 modelBuilder.Entity(
"Tgstation.Server.Host.Models.UserGroup", b =>
1100 b.Navigation(
"PermissionSet")
1103 b.Navigation(
"Users");
1105#pragma warning restore 612, 618