17#pragma warning disable 612, 618
19 .HasAnnotation(
"ProductVersion",
"6.0.15")
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?>(
"IsUpdatesChannel")
89 .HasColumnType(
"tinyint(1)");
91 b.Property<
bool?>(
"IsWatchdogChannel")
93 .HasColumnType(
"tinyint(1)");
95 b.Property<
string>(
"Tag")
97 .HasColumnType(
"longtext");
99 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"Tag"),
"utf8mb4");
103 b.HasIndex(
"ChatSettingsId",
"DiscordChannelId")
106 b.HasIndex(
"ChatSettingsId",
"IrcChannel")
109 b.ToTable(
"ChatChannels");
112 modelBuilder.Entity(
"Tgstation.Server.Host.Models.CompileJob", b =>
114 b.Property<
long?>(
"Id")
115 .ValueGeneratedOnAdd()
116 .HasColumnType(
"bigint");
118 b.Property<
string>(
"ByondVersion")
120 .HasColumnType(
"longtext");
122 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"ByondVersion"),
"utf8mb4");
124 b.Property<
int?>(
"DMApiMajorVersion")
125 .HasColumnType(
"int");
127 b.Property<
int?>(
"DMApiMinorVersion")
128 .HasColumnType(
"int");
130 b.Property<
int?>(
"DMApiPatchVersion")
131 .HasColumnType(
"int");
133 b.Property<Guid?>(
"DirectoryName")
135 .HasColumnType(
"char(36)");
137 b.Property<
string>(
"DmeName")
139 .HasColumnType(
"longtext");
141 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"DmeName"),
"utf8mb4");
143 b.Property<
int?>(
"GitHubDeploymentId")
144 .HasColumnType(
"int");
146 b.Property<
long?>(
"GitHubRepoId")
147 .HasColumnType(
"bigint");
149 b.Property<
long>(
"JobId")
150 .HasColumnType(
"bigint");
152 b.Property<
int?>(
"MinimumSecurityLevel")
153 .HasColumnType(
"int");
155 b.Property<
string>(
"Output")
157 .HasColumnType(
"longtext");
159 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"Output"),
"utf8mb4");
161 b.Property<
string>(
"RepositoryOrigin")
162 .HasColumnType(
"longtext");
164 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"RepositoryOrigin"),
"utf8mb4");
166 b.Property<
long>(
"RevisionInformationId")
167 .HasColumnType(
"bigint");
171 b.HasIndex(
"DirectoryName");
176 b.HasIndex(
"RevisionInformationId");
178 b.ToTable(
"CompileJobs");
181 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamDaemonSettings", b =>
183 b.Property<
long>(
"Id")
184 .ValueGeneratedOnAdd()
185 .HasColumnType(
"bigint");
187 b.Property<
string>(
"AdditionalParameters")
190 .HasColumnType(
"longtext");
192 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"AdditionalParameters"),
"utf8mb4");
194 b.Property<
bool?>(
"AllowWebClient")
196 .HasColumnType(
"tinyint(1)");
198 b.Property<
bool?>(
"AutoStart")
200 .HasColumnType(
"tinyint(1)");
202 b.Property<
bool?>(
"DumpOnHeartbeatRestart")
204 .HasColumnType(
"tinyint(1)");
206 b.Property<uint?>(
"HeartbeatSeconds")
208 .HasColumnType(
"int unsigned");
210 b.Property<
long>(
"InstanceId")
211 .HasColumnType(
"bigint");
213 b.Property<
bool?>(
"LogOutput")
215 .HasColumnType(
"tinyint(1)");
217 b.Property<ushort?>(
"Port")
219 .HasColumnType(
"smallint unsigned");
221 b.Property<
int>(
"SecurityLevel")
222 .HasColumnType(
"int");
224 b.Property<
bool?>(
"StartProfiler")
226 .HasColumnType(
"tinyint(1)");
228 b.Property<uint?>(
"StartupTimeout")
230 .HasColumnType(
"int unsigned");
232 b.Property<uint?>(
"TopicRequestTimeout")
234 .HasColumnType(
"int unsigned");
236 b.Property<
int>(
"Visibility")
237 .HasColumnType(
"int");
241 b.HasIndex(
"InstanceId")
244 b.ToTable(
"DreamDaemonSettings");
247 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamMakerSettings", b =>
249 b.Property<
long>(
"Id")
250 .ValueGeneratedOnAdd()
251 .HasColumnType(
"bigint");
253 b.Property<ushort?>(
"ApiValidationPort")
255 .HasColumnType(
"smallint unsigned");
257 b.Property<
int>(
"ApiValidationSecurityLevel")
258 .HasColumnType(
"int");
260 b.Property<
long>(
"InstanceId")
261 .HasColumnType(
"bigint");
263 b.Property<
string>(
"ProjectName")
265 .HasColumnType(
"longtext");
267 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"ProjectName"),
"utf8mb4");
269 b.Property<
bool?>(
"RequireDMApiValidation")
271 .HasColumnType(
"tinyint(1)");
273 b.Property<TimeSpan?>(
"Timeout")
275 .HasColumnType(
"time(6)");
279 b.HasIndex(
"InstanceId")
282 b.ToTable(
"DreamMakerSettings");
285 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Instance", b =>
287 b.Property<
long?>(
"Id")
288 .ValueGeneratedOnAdd()
289 .HasColumnType(
"bigint");
291 b.Property<uint?>(
"AutoUpdateInterval")
293 .HasColumnType(
"int unsigned");
295 b.Property<ushort?>(
"ChatBotLimit")
297 .HasColumnType(
"smallint unsigned");
299 b.Property<
int>(
"ConfigurationType")
300 .HasColumnType(
"int");
302 b.Property<
string>(
"Name")
305 .HasColumnType(
"varchar(100)");
307 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"Name"),
"utf8mb4");
309 b.Property<
bool?>(
"Online")
311 .HasColumnType(
"tinyint(1)");
313 b.Property<
string>(
"Path")
315 .HasColumnType(
"varchar(255)");
317 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"Path"),
"utf8mb4");
319 b.Property<
string>(
"SwarmIdentifer")
320 .HasColumnType(
"varchar(255)");
322 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"SwarmIdentifer"),
"utf8mb4");
326 b.HasIndex(
"Path",
"SwarmIdentifer")
329 b.ToTable(
"Instances");
332 modelBuilder.Entity(
"Tgstation.Server.Host.Models.InstancePermissionSet", b =>
334 b.Property<
long>(
"Id")
335 .ValueGeneratedOnAdd()
336 .HasColumnType(
"bigint");
338 b.Property<ulong>(
"ByondRights")
339 .HasColumnType(
"bigint unsigned");
341 b.Property<ulong>(
"ChatBotRights")
342 .HasColumnType(
"bigint unsigned");
344 b.Property<ulong>(
"ConfigurationRights")
345 .HasColumnType(
"bigint unsigned");
347 b.Property<ulong>(
"DreamDaemonRights")
348 .HasColumnType(
"bigint unsigned");
350 b.Property<ulong>(
"DreamMakerRights")
351 .HasColumnType(
"bigint unsigned");
353 b.Property<
long>(
"InstanceId")
354 .HasColumnType(
"bigint");
356 b.Property<ulong>(
"InstancePermissionSetRights")
357 .HasColumnType(
"bigint unsigned");
359 b.Property<
long>(
"PermissionSetId")
360 .HasColumnType(
"bigint");
362 b.Property<ulong>(
"RepositoryRights")
363 .HasColumnType(
"bigint unsigned");
367 b.HasIndex(
"InstanceId");
369 b.HasIndex(
"PermissionSetId",
"InstanceId")
372 b.ToTable(
"InstancePermissionSets");
375 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Job", b =>
377 b.Property<
long?>(
"Id")
378 .ValueGeneratedOnAdd()
379 .HasColumnType(
"bigint");
381 b.Property<ulong?>(
"CancelRight")
382 .HasColumnType(
"bigint unsigned");
384 b.Property<ulong?>(
"CancelRightsType")
385 .HasColumnType(
"bigint unsigned");
387 b.Property<
bool?>(
"Cancelled")
389 .HasColumnType(
"tinyint(1)");
391 b.Property<
long?>(
"CancelledById")
392 .HasColumnType(
"bigint");
394 b.Property<
string>(
"Description")
396 .HasColumnType(
"longtext");
398 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"Description"),
"utf8mb4");
400 b.Property<uint?>(
"ErrorCode")
401 .HasColumnType(
"int unsigned");
403 b.Property<
string>(
"ExceptionDetails")
404 .HasColumnType(
"longtext");
406 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"ExceptionDetails"),
"utf8mb4");
408 b.Property<
long>(
"InstanceId")
409 .HasColumnType(
"bigint");
411 b.Property<DateTimeOffset?>(
"StartedAt")
413 .HasColumnType(
"datetime(6)");
415 b.Property<
long>(
"StartedById")
416 .HasColumnType(
"bigint");
418 b.Property<DateTimeOffset?>(
"StoppedAt")
419 .HasColumnType(
"datetime(6)");
423 b.HasIndex(
"CancelledById");
425 b.HasIndex(
"InstanceId");
427 b.HasIndex(
"StartedById");
432 modelBuilder.Entity(
"Tgstation.Server.Host.Models.OAuthConnection", b =>
434 b.Property<
long>(
"Id")
435 .ValueGeneratedOnAdd()
436 .HasColumnType(
"bigint");
438 b.Property<
string>(
"ExternalUserId")
441 .HasColumnType(
"varchar(100)");
443 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"ExternalUserId"),
"utf8mb4");
445 b.Property<
int>(
"Provider")
446 .HasColumnType(
"int");
448 b.Property<
long?>(
"UserId")
449 .HasColumnType(
"bigint");
453 b.HasIndex(
"UserId");
455 b.HasIndex(
"Provider",
"ExternalUserId")
458 b.ToTable(
"OAuthConnections");
461 modelBuilder.Entity(
"Tgstation.Server.Host.Models.PermissionSet", b =>
463 b.Property<
long?>(
"Id")
464 .ValueGeneratedOnAdd()
465 .HasColumnType(
"bigint");
467 b.Property<ulong>(
"AdministrationRights")
468 .HasColumnType(
"bigint unsigned");
470 b.Property<
long?>(
"GroupId")
471 .HasColumnType(
"bigint");
473 b.Property<ulong>(
"InstanceManagerRights")
474 .HasColumnType(
"bigint unsigned");
476 b.Property<
long?>(
"UserId")
477 .HasColumnType(
"bigint");
481 b.HasIndex(
"GroupId")
487 b.ToTable(
"PermissionSets");
490 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ReattachInformation", b =>
492 b.Property<
long>(
"Id")
493 .ValueGeneratedOnAdd()
494 .HasColumnType(
"bigint");
496 b.Property<
string>(
"AccessIdentifier")
498 .HasColumnType(
"longtext");
500 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"AccessIdentifier"),
"utf8mb4");
502 b.Property<
long>(
"CompileJobId")
503 .HasColumnType(
"bigint");
505 b.Property<
long?>(
"InitialCompileJobId")
506 .HasColumnType(
"bigint");
508 b.Property<
int>(
"LaunchSecurityLevel")
509 .HasColumnType(
"int");
511 b.Property<
int>(
"LaunchVisibility")
512 .HasColumnType(
"int");
514 b.Property<ushort>(
"Port")
515 .HasColumnType(
"smallint unsigned");
517 b.Property<
int>(
"ProcessId")
518 .HasColumnType(
"int");
520 b.Property<
int>(
"RebootState")
521 .HasColumnType(
"int");
525 b.HasIndex(
"CompileJobId");
527 b.HasIndex(
"InitialCompileJobId");
529 b.ToTable(
"ReattachInformations");
532 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RepositorySettings", b =>
534 b.Property<
long>(
"Id")
535 .ValueGeneratedOnAdd()
536 .HasColumnType(
"bigint");
538 b.Property<
string>(
"AccessToken")
540 .HasColumnType(
"longtext");
542 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"AccessToken"),
"utf8mb4");
544 b.Property<
string>(
"AccessUser")
546 .HasColumnType(
"longtext");
548 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"AccessUser"),
"utf8mb4");
550 b.Property<
bool?>(
"AutoUpdatesKeepTestMerges")
552 .HasColumnType(
"tinyint(1)");
554 b.Property<
bool?>(
"AutoUpdatesSynchronize")
556 .HasColumnType(
"tinyint(1)");
558 b.Property<
string>(
"CommitterEmail")
561 .HasColumnType(
"longtext");
563 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"CommitterEmail"),
"utf8mb4");
565 b.Property<
string>(
"CommitterName")
568 .HasColumnType(
"longtext");
570 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"CommitterName"),
"utf8mb4");
572 b.Property<
bool?>(
"CreateGitHubDeployments")
574 .HasColumnType(
"tinyint(1)");
576 b.Property<
long>(
"InstanceId")
577 .HasColumnType(
"bigint");
579 b.Property<
bool?>(
"PostTestMergeComment")
581 .HasColumnType(
"tinyint(1)");
583 b.Property<
bool?>(
"PushTestMergeCommits")
585 .HasColumnType(
"tinyint(1)");
587 b.Property<
bool?>(
"ShowTestMergeCommitters")
589 .HasColumnType(
"tinyint(1)");
591 b.Property<
bool?>(
"UpdateSubmodules")
593 .HasColumnType(
"tinyint(1)");
597 b.HasIndex(
"InstanceId")
600 b.ToTable(
"RepositorySettings");
603 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
605 b.Property<
long>(
"Id")
606 .ValueGeneratedOnAdd()
607 .HasColumnType(
"bigint");
609 b.Property<
long>(
"RevisionInformationId")
610 .HasColumnType(
"bigint");
612 b.Property<
long>(
"TestMergeId")
613 .HasColumnType(
"bigint");
617 b.HasIndex(
"RevisionInformationId");
619 b.HasIndex(
"TestMergeId");
621 b.ToTable(
"RevInfoTestMerges");
624 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevisionInformation", b =>
626 b.Property<
long>(
"Id")
627 .ValueGeneratedOnAdd()
628 .HasColumnType(
"bigint");
630 b.Property<
string>(
"CommitSha")
633 .HasColumnType(
"varchar(40)");
635 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"CommitSha"),
"utf8mb4");
637 b.Property<
long>(
"InstanceId")
638 .HasColumnType(
"bigint");
640 b.Property<
string>(
"OriginCommitSha")
643 .HasColumnType(
"varchar(40)");
645 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"OriginCommitSha"),
"utf8mb4");
647 b.Property<DateTimeOffset>(
"Timestamp")
648 .HasColumnType(
"datetime(6)");
652 b.HasIndex(
"InstanceId",
"CommitSha")
655 b.ToTable(
"RevisionInformations");
658 modelBuilder.Entity(
"Tgstation.Server.Host.Models.TestMerge", b =>
660 b.Property<
long>(
"Id")
661 .ValueGeneratedOnAdd()
662 .HasColumnType(
"bigint");
664 b.Property<
string>(
"Author")
666 .HasColumnType(
"longtext");
668 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"Author"),
"utf8mb4");
670 b.Property<
string>(
"BodyAtMerge")
672 .HasColumnType(
"longtext");
674 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"BodyAtMerge"),
"utf8mb4");
676 b.Property<
string>(
"Comment")
678 .HasColumnType(
"longtext");
680 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"Comment"),
"utf8mb4");
682 b.Property<DateTimeOffset>(
"MergedAt")
683 .HasColumnType(
"datetime(6)");
685 b.Property<
long>(
"MergedById")
686 .HasColumnType(
"bigint");
688 b.Property<
int>(
"Number")
689 .HasColumnType(
"int");
691 b.Property<
long?>(
"PrimaryRevisionInformationId")
693 .HasColumnType(
"bigint");
695 b.Property<
string>(
"TargetCommitSha")
698 .HasColumnType(
"varchar(40)");
700 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"TargetCommitSha"),
"utf8mb4");
702 b.Property<
string>(
"TitleAtMerge")
704 .HasColumnType(
"longtext");
706 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"TitleAtMerge"),
"utf8mb4");
708 b.Property<
string>(
"Url")
710 .HasColumnType(
"longtext");
712 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"Url"),
"utf8mb4");
716 b.HasIndex(
"MergedById");
718 b.HasIndex(
"PrimaryRevisionInformationId")
721 b.ToTable(
"TestMerges");
724 modelBuilder.Entity(
"Tgstation.Server.Host.Models.User", b =>
726 b.Property<
long?>(
"Id")
727 .ValueGeneratedOnAdd()
728 .HasColumnType(
"bigint");
730 b.Property<
string>(
"CanonicalName")
733 .HasColumnType(
"varchar(100)");
735 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"CanonicalName"),
"utf8mb4");
737 b.Property<DateTimeOffset?>(
"CreatedAt")
739 .HasColumnType(
"datetime(6)");
741 b.Property<
long?>(
"CreatedById")
742 .HasColumnType(
"bigint");
744 b.Property<
bool?>(
"Enabled")
746 .HasColumnType(
"tinyint(1)");
748 b.Property<
long?>(
"GroupId")
749 .HasColumnType(
"bigint");
751 b.Property<DateTimeOffset?>(
"LastPasswordUpdate")
752 .HasColumnType(
"datetime(6)");
754 b.Property<
string>(
"Name")
757 .HasColumnType(
"varchar(100)");
759 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"Name"),
"utf8mb4");
761 b.Property<
string>(
"PasswordHash")
762 .HasColumnType(
"longtext");
764 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"PasswordHash"),
"utf8mb4");
766 b.Property<
string>(
"SystemIdentifier")
768 .HasColumnType(
"varchar(100)");
770 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"SystemIdentifier"),
"utf8mb4");
774 b.HasIndex(
"CanonicalName")
777 b.HasIndex(
"CreatedById");
779 b.HasIndex(
"GroupId");
781 b.HasIndex(
"SystemIdentifier")
787 modelBuilder.Entity(
"Tgstation.Server.Host.Models.UserGroup", b =>
789 b.Property<
long?>(
"Id")
790 .ValueGeneratedOnAdd()
791 .HasColumnType(
"bigint");
793 b.Property<
string>(
"Name")
796 .HasColumnType(
"varchar(100)");
798 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"Name"),
"utf8mb4");
808 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatBot", b =>
810 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
811 .WithMany(
"ChatSettings")
812 .HasForeignKey(
"InstanceId")
813 .OnDelete(DeleteBehavior.Cascade)
816 b.Navigation(
"Instance");
819 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatChannel", b =>
821 b.HasOne(
"Tgstation.Server.Host.Models.ChatBot",
"ChatSettings")
822 .WithMany(
"Channels")
823 .HasForeignKey(
"ChatSettingsId")
824 .OnDelete(DeleteBehavior.Cascade)
827 b.Navigation(
"ChatSettings");
830 modelBuilder.Entity(
"Tgstation.Server.Host.Models.CompileJob", b =>
832 b.HasOne(
"Tgstation.Server.Host.Models.Job",
"Job")
834 .HasForeignKey(
"Tgstation.Server.Host.Models.CompileJob",
"JobId")
835 .OnDelete(DeleteBehavior.Cascade)
838 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"RevisionInformation")
839 .WithMany(
"CompileJobs")
840 .HasForeignKey(
"RevisionInformationId")
841 .OnDelete(DeleteBehavior.Cascade)
846 b.Navigation(
"RevisionInformation");
849 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamDaemonSettings", b =>
851 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
852 .WithOne(
"DreamDaemonSettings")
853 .HasForeignKey(
"Tgstation.Server.Host.Models.DreamDaemonSettings",
"InstanceId")
854 .OnDelete(DeleteBehavior.Cascade)
857 b.Navigation(
"Instance");
860 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamMakerSettings", b =>
862 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
863 .WithOne(
"DreamMakerSettings")
864 .HasForeignKey(
"Tgstation.Server.Host.Models.DreamMakerSettings",
"InstanceId")
865 .OnDelete(DeleteBehavior.Cascade)
868 b.Navigation(
"Instance");
871 modelBuilder.Entity(
"Tgstation.Server.Host.Models.InstancePermissionSet", b =>
873 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
874 .WithMany(
"InstancePermissionSets")
875 .HasForeignKey(
"InstanceId")
876 .OnDelete(DeleteBehavior.Cascade)
879 b.HasOne(
"Tgstation.Server.Host.Models.PermissionSet",
"PermissionSet")
880 .WithMany(
"InstancePermissionSets")
881 .HasForeignKey(
"PermissionSetId")
882 .OnDelete(DeleteBehavior.Cascade)
885 b.Navigation(
"Instance");
887 b.Navigation(
"PermissionSet");
890 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Job", b =>
892 b.HasOne(
"Tgstation.Server.Host.Models.User",
"CancelledBy")
894 .HasForeignKey(
"CancelledById");
896 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
898 .HasForeignKey(
"InstanceId")
899 .OnDelete(DeleteBehavior.Cascade)
902 b.HasOne(
"Tgstation.Server.Host.Models.User",
"StartedBy")
904 .HasForeignKey(
"StartedById")
905 .OnDelete(DeleteBehavior.Cascade)
908 b.Navigation(
"CancelledBy");
910 b.Navigation(
"Instance");
912 b.Navigation(
"StartedBy");
915 modelBuilder.Entity(
"Tgstation.Server.Host.Models.OAuthConnection", b =>
917 b.HasOne(
"Tgstation.Server.Host.Models.User",
"User")
918 .WithMany(
"OAuthConnections")
919 .HasForeignKey(
"UserId")
920 .OnDelete(DeleteBehavior.Cascade);
922 b.Navigation(
"User");
925 modelBuilder.Entity(
"Tgstation.Server.Host.Models.PermissionSet", b =>
927 b.HasOne(
"Tgstation.Server.Host.Models.UserGroup",
"Group")
928 .WithOne(
"PermissionSet")
929 .HasForeignKey(
"Tgstation.Server.Host.Models.PermissionSet",
"GroupId")
930 .OnDelete(DeleteBehavior.Cascade);
932 b.HasOne(
"Tgstation.Server.Host.Models.User",
"User")
933 .WithOne(
"PermissionSet")
934 .HasForeignKey(
"Tgstation.Server.Host.Models.PermissionSet",
"UserId")
935 .OnDelete(DeleteBehavior.Cascade);
937 b.Navigation(
"Group");
939 b.Navigation(
"User");
942 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ReattachInformation", b =>
944 b.HasOne(
"Tgstation.Server.Host.Models.CompileJob",
"CompileJob")
946 .HasForeignKey(
"CompileJobId")
947 .OnDelete(DeleteBehavior.Cascade)
950 b.HasOne(
"Tgstation.Server.Host.Models.CompileJob",
"InitialCompileJob")
952 .HasForeignKey(
"InitialCompileJobId");
954 b.Navigation(
"CompileJob");
956 b.Navigation(
"InitialCompileJob");
959 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RepositorySettings", b =>
961 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
962 .WithOne(
"RepositorySettings")
963 .HasForeignKey(
"Tgstation.Server.Host.Models.RepositorySettings",
"InstanceId")
964 .OnDelete(DeleteBehavior.Cascade)
967 b.Navigation(
"Instance");
970 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
972 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"RevisionInformation")
973 .WithMany(
"ActiveTestMerges")
974 .HasForeignKey(
"RevisionInformationId")
975 .OnDelete(DeleteBehavior.Cascade)
978 b.HasOne(
"Tgstation.Server.Host.Models.TestMerge",
"TestMerge")
979 .WithMany(
"RevisonInformations")
980 .HasForeignKey(
"TestMergeId")
981 .OnDelete(DeleteBehavior.ClientNoAction)
984 b.Navigation(
"RevisionInformation");
986 b.Navigation(
"TestMerge");
989 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevisionInformation", b =>
991 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
992 .WithMany(
"RevisionInformations")
993 .HasForeignKey(
"InstanceId")
994 .OnDelete(DeleteBehavior.Cascade)
997 b.Navigation(
"Instance");
1000 modelBuilder.Entity(
"Tgstation.Server.Host.Models.TestMerge", b =>
1002 b.HasOne(
"Tgstation.Server.Host.Models.User",
"MergedBy")
1003 .WithMany(
"TestMerges")
1004 .HasForeignKey(
"MergedById")
1005 .OnDelete(DeleteBehavior.Restrict)
1008 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"PrimaryRevisionInformation")
1009 .WithOne(
"PrimaryTestMerge")
1010 .HasForeignKey(
"Tgstation.Server.Host.Models.TestMerge",
"PrimaryRevisionInformationId")
1011 .OnDelete(DeleteBehavior.Cascade)
1014 b.Navigation(
"MergedBy");
1016 b.Navigation(
"PrimaryRevisionInformation");
1019 modelBuilder.Entity(
"Tgstation.Server.Host.Models.User", b =>
1021 b.HasOne(
"Tgstation.Server.Host.Models.User",
"CreatedBy")
1022 .WithMany(
"CreatedUsers")
1023 .HasForeignKey(
"CreatedById");
1025 b.HasOne(
"Tgstation.Server.Host.Models.UserGroup",
"Group")
1027 .HasForeignKey(
"GroupId");
1029 b.Navigation(
"CreatedBy");
1031 b.Navigation(
"Group");
1034 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatBot", b =>
1036 b.Navigation(
"Channels");
1039 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Instance", b =>
1041 b.Navigation(
"ChatSettings");
1043 b.Navigation(
"DreamDaemonSettings");
1045 b.Navigation(
"DreamMakerSettings");
1047 b.Navigation(
"InstancePermissionSets");
1049 b.Navigation(
"Jobs");
1051 b.Navigation(
"RepositorySettings");
1053 b.Navigation(
"RevisionInformations");
1056 modelBuilder.Entity(
"Tgstation.Server.Host.Models.PermissionSet", b =>
1058 b.Navigation(
"InstancePermissionSets");
1061 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevisionInformation", b =>
1063 b.Navigation(
"ActiveTestMerges");
1065 b.Navigation(
"CompileJobs");
1067 b.Navigation(
"PrimaryTestMerge");
1070 modelBuilder.Entity(
"Tgstation.Server.Host.Models.TestMerge", b =>
1072 b.Navigation(
"RevisonInformations");
1075 modelBuilder.Entity(
"Tgstation.Server.Host.Models.User", b =>
1077 b.Navigation(
"CreatedUsers");
1079 b.Navigation(
"OAuthConnections");
1081 b.Navigation(
"PermissionSet");
1083 b.Navigation(
"TestMerges");
1086 modelBuilder.Entity(
"Tgstation.Server.Host.Models.UserGroup", b =>
1088 b.Navigation(
"PermissionSet")
1091 b.Navigation(
"Users");
1093#pragma warning restore 612, 618