17#pragma warning disable 612, 618
19 .HasAnnotation(
"ProductVersion",
"7.0.7")
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");
126 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"ByondVersion"),
"utf8mb4");
128 b.Property<
int?>(
"DMApiMajorVersion")
129 .HasColumnType(
"int");
131 b.Property<
int?>(
"DMApiMinorVersion")
132 .HasColumnType(
"int");
134 b.Property<
int?>(
"DMApiPatchVersion")
135 .HasColumnType(
"int");
137 b.Property<Guid?>(
"DirectoryName")
139 .HasColumnType(
"char(36)");
141 b.Property<
string>(
"DmeName")
143 .HasColumnType(
"longtext");
145 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"DmeName"),
"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<ushort?>(
"Port")
227 .HasColumnType(
"smallint unsigned");
229 b.Property<
int>(
"SecurityLevel")
230 .HasColumnType(
"int");
232 b.Property<
bool?>(
"StartProfiler")
234 .HasColumnType(
"tinyint(1)");
236 b.Property<uint?>(
"StartupTimeout")
238 .HasColumnType(
"int unsigned");
240 b.Property<uint?>(
"TopicRequestTimeout")
242 .HasColumnType(
"int unsigned");
244 b.Property<
int>(
"Visibility")
245 .HasColumnType(
"int");
249 b.HasIndex(
"InstanceId")
252 b.ToTable(
"DreamDaemonSettings");
255 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamMakerSettings", b =>
257 b.Property<
long>(
"Id")
258 .ValueGeneratedOnAdd()
259 .HasColumnType(
"bigint");
261 b.Property<ushort?>(
"ApiValidationPort")
263 .HasColumnType(
"smallint unsigned");
265 b.Property<
int>(
"ApiValidationSecurityLevel")
266 .HasColumnType(
"int");
268 b.Property<
long>(
"InstanceId")
269 .HasColumnType(
"bigint");
271 b.Property<
string>(
"ProjectName")
273 .HasColumnType(
"longtext");
275 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"ProjectName"),
"utf8mb4");
277 b.Property<
bool?>(
"RequireDMApiValidation")
279 .HasColumnType(
"tinyint(1)");
281 b.Property<TimeSpan?>(
"Timeout")
283 .HasColumnType(
"time(6)");
287 b.HasIndex(
"InstanceId")
290 b.ToTable(
"DreamMakerSettings");
293 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Instance", b =>
295 b.Property<
long?>(
"Id")
296 .ValueGeneratedOnAdd()
297 .HasColumnType(
"bigint");
299 b.Property<uint?>(
"AutoUpdateInterval")
301 .HasColumnType(
"int unsigned");
303 b.Property<ushort?>(
"ChatBotLimit")
305 .HasColumnType(
"smallint unsigned");
307 b.Property<
int>(
"ConfigurationType")
308 .HasColumnType(
"int");
310 b.Property<
string>(
"Name")
313 .HasColumnType(
"varchar(100)");
315 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"Name"),
"utf8mb4");
317 b.Property<
bool?>(
"Online")
319 .HasColumnType(
"tinyint(1)");
321 b.Property<
string>(
"Path")
323 .HasColumnType(
"varchar(255)");
325 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"Path"),
"utf8mb4");
327 b.Property<
string>(
"SwarmIdentifer")
328 .HasColumnType(
"varchar(255)");
330 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"SwarmIdentifer"),
"utf8mb4");
334 b.HasIndex(
"Path",
"SwarmIdentifer")
337 b.ToTable(
"Instances");
340 modelBuilder.Entity(
"Tgstation.Server.Host.Models.InstancePermissionSet", b =>
342 b.Property<
long>(
"Id")
343 .ValueGeneratedOnAdd()
344 .HasColumnType(
"bigint");
346 b.Property<ulong>(
"ByondRights")
347 .HasColumnType(
"bigint unsigned");
349 b.Property<ulong>(
"ChatBotRights")
350 .HasColumnType(
"bigint unsigned");
352 b.Property<ulong>(
"ConfigurationRights")
353 .HasColumnType(
"bigint unsigned");
355 b.Property<ulong>(
"DreamDaemonRights")
356 .HasColumnType(
"bigint unsigned");
358 b.Property<ulong>(
"DreamMakerRights")
359 .HasColumnType(
"bigint unsigned");
361 b.Property<
long>(
"InstanceId")
362 .HasColumnType(
"bigint");
364 b.Property<ulong>(
"InstancePermissionSetRights")
365 .HasColumnType(
"bigint unsigned");
367 b.Property<
long>(
"PermissionSetId")
368 .HasColumnType(
"bigint");
370 b.Property<ulong>(
"RepositoryRights")
371 .HasColumnType(
"bigint unsigned");
375 b.HasIndex(
"InstanceId");
377 b.HasIndex(
"PermissionSetId",
"InstanceId")
380 b.ToTable(
"InstancePermissionSets");
383 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Job", b =>
385 b.Property<
long?>(
"Id")
386 .ValueGeneratedOnAdd()
387 .HasColumnType(
"bigint");
389 b.Property<ulong?>(
"CancelRight")
390 .HasColumnType(
"bigint unsigned");
392 b.Property<ulong?>(
"CancelRightsType")
393 .HasColumnType(
"bigint unsigned");
395 b.Property<
bool?>(
"Cancelled")
397 .HasColumnType(
"tinyint(1)");
399 b.Property<
long?>(
"CancelledById")
400 .HasColumnType(
"bigint");
402 b.Property<
string>(
"Description")
404 .HasColumnType(
"longtext");
406 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"Description"),
"utf8mb4");
408 b.Property<uint?>(
"ErrorCode")
409 .HasColumnType(
"int unsigned");
411 b.Property<
string>(
"ExceptionDetails")
412 .HasColumnType(
"longtext");
414 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"ExceptionDetails"),
"utf8mb4");
416 b.Property<
long>(
"InstanceId")
417 .HasColumnType(
"bigint");
419 b.Property<DateTimeOffset?>(
"StartedAt")
421 .HasColumnType(
"datetime(6)");
423 b.Property<
long>(
"StartedById")
424 .HasColumnType(
"bigint");
426 b.Property<DateTimeOffset?>(
"StoppedAt")
427 .HasColumnType(
"datetime(6)");
431 b.HasIndex(
"CancelledById");
433 b.HasIndex(
"InstanceId");
435 b.HasIndex(
"StartedById");
440 modelBuilder.Entity(
"Tgstation.Server.Host.Models.OAuthConnection", b =>
442 b.Property<
long>(
"Id")
443 .ValueGeneratedOnAdd()
444 .HasColumnType(
"bigint");
446 b.Property<
string>(
"ExternalUserId")
449 .HasColumnType(
"varchar(100)");
451 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"ExternalUserId"),
"utf8mb4");
453 b.Property<
int>(
"Provider")
454 .HasColumnType(
"int");
456 b.Property<
long?>(
"UserId")
457 .HasColumnType(
"bigint");
461 b.HasIndex(
"UserId");
463 b.HasIndex(
"Provider",
"ExternalUserId")
466 b.ToTable(
"OAuthConnections");
469 modelBuilder.Entity(
"Tgstation.Server.Host.Models.PermissionSet", b =>
471 b.Property<
long?>(
"Id")
472 .ValueGeneratedOnAdd()
473 .HasColumnType(
"bigint");
475 b.Property<ulong>(
"AdministrationRights")
476 .HasColumnType(
"bigint unsigned");
478 b.Property<
long?>(
"GroupId")
479 .HasColumnType(
"bigint");
481 b.Property<ulong>(
"InstanceManagerRights")
482 .HasColumnType(
"bigint unsigned");
484 b.Property<
long?>(
"UserId")
485 .HasColumnType(
"bigint");
489 b.HasIndex(
"GroupId")
495 b.ToTable(
"PermissionSets");
498 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ReattachInformation", b =>
500 b.Property<
long>(
"Id")
501 .ValueGeneratedOnAdd()
502 .HasColumnType(
"bigint");
504 b.Property<
string>(
"AccessIdentifier")
506 .HasColumnType(
"longtext");
508 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"AccessIdentifier"),
"utf8mb4");
510 b.Property<
long>(
"CompileJobId")
511 .HasColumnType(
"bigint");
513 b.Property<
long?>(
"InitialCompileJobId")
514 .HasColumnType(
"bigint");
516 b.Property<
int>(
"LaunchSecurityLevel")
517 .HasColumnType(
"int");
519 b.Property<
int>(
"LaunchVisibility")
520 .HasColumnType(
"int");
522 b.Property<ushort>(
"Port")
523 .HasColumnType(
"smallint unsigned");
525 b.Property<
int>(
"ProcessId")
526 .HasColumnType(
"int");
528 b.Property<
int>(
"RebootState")
529 .HasColumnType(
"int");
533 b.HasIndex(
"CompileJobId");
535 b.HasIndex(
"InitialCompileJobId");
537 b.ToTable(
"ReattachInformations");
540 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RepositorySettings", b =>
542 b.Property<
long>(
"Id")
543 .ValueGeneratedOnAdd()
544 .HasColumnType(
"bigint");
546 b.Property<
string>(
"AccessToken")
548 .HasColumnType(
"longtext");
550 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"AccessToken"),
"utf8mb4");
552 b.Property<
string>(
"AccessUser")
554 .HasColumnType(
"longtext");
556 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"AccessUser"),
"utf8mb4");
558 b.Property<
bool?>(
"AutoUpdatesKeepTestMerges")
560 .HasColumnType(
"tinyint(1)");
562 b.Property<
bool?>(
"AutoUpdatesSynchronize")
564 .HasColumnType(
"tinyint(1)");
566 b.Property<
string>(
"CommitterEmail")
569 .HasColumnType(
"longtext");
571 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"CommitterEmail"),
"utf8mb4");
573 b.Property<
string>(
"CommitterName")
576 .HasColumnType(
"longtext");
578 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"CommitterName"),
"utf8mb4");
580 b.Property<
bool?>(
"CreateGitHubDeployments")
582 .HasColumnType(
"tinyint(1)");
584 b.Property<
long>(
"InstanceId")
585 .HasColumnType(
"bigint");
587 b.Property<
bool?>(
"PostTestMergeComment")
589 .HasColumnType(
"tinyint(1)");
591 b.Property<
bool?>(
"PushTestMergeCommits")
593 .HasColumnType(
"tinyint(1)");
595 b.Property<
bool?>(
"ShowTestMergeCommitters")
597 .HasColumnType(
"tinyint(1)");
599 b.Property<
bool?>(
"UpdateSubmodules")
601 .HasColumnType(
"tinyint(1)");
605 b.HasIndex(
"InstanceId")
608 b.ToTable(
"RepositorySettings");
611 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
613 b.Property<
long>(
"Id")
614 .ValueGeneratedOnAdd()
615 .HasColumnType(
"bigint");
617 b.Property<
long>(
"RevisionInformationId")
618 .HasColumnType(
"bigint");
620 b.Property<
long>(
"TestMergeId")
621 .HasColumnType(
"bigint");
625 b.HasIndex(
"RevisionInformationId");
627 b.HasIndex(
"TestMergeId");
629 b.ToTable(
"RevInfoTestMerges");
632 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevisionInformation", b =>
634 b.Property<
long>(
"Id")
635 .ValueGeneratedOnAdd()
636 .HasColumnType(
"bigint");
638 b.Property<
string>(
"CommitSha")
641 .HasColumnType(
"varchar(40)");
643 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"CommitSha"),
"utf8mb4");
645 b.Property<
long>(
"InstanceId")
646 .HasColumnType(
"bigint");
648 b.Property<
string>(
"OriginCommitSha")
651 .HasColumnType(
"varchar(40)");
653 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"OriginCommitSha"),
"utf8mb4");
655 b.Property<DateTimeOffset>(
"Timestamp")
656 .HasColumnType(
"datetime(6)");
660 b.HasIndex(
"InstanceId",
"CommitSha")
663 b.ToTable(
"RevisionInformations");
666 modelBuilder.Entity(
"Tgstation.Server.Host.Models.TestMerge", b =>
668 b.Property<
long>(
"Id")
669 .ValueGeneratedOnAdd()
670 .HasColumnType(
"bigint");
672 b.Property<
string>(
"Author")
674 .HasColumnType(
"longtext");
676 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"Author"),
"utf8mb4");
678 b.Property<
string>(
"BodyAtMerge")
680 .HasColumnType(
"longtext");
682 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"BodyAtMerge"),
"utf8mb4");
684 b.Property<
string>(
"Comment")
686 .HasColumnType(
"longtext");
688 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"Comment"),
"utf8mb4");
690 b.Property<DateTimeOffset>(
"MergedAt")
691 .HasColumnType(
"datetime(6)");
693 b.Property<
long>(
"MergedById")
694 .HasColumnType(
"bigint");
696 b.Property<
int>(
"Number")
697 .HasColumnType(
"int");
699 b.Property<
long?>(
"PrimaryRevisionInformationId")
701 .HasColumnType(
"bigint");
703 b.Property<
string>(
"TargetCommitSha")
706 .HasColumnType(
"varchar(40)");
708 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"TargetCommitSha"),
"utf8mb4");
710 b.Property<
string>(
"TitleAtMerge")
712 .HasColumnType(
"longtext");
714 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"TitleAtMerge"),
"utf8mb4");
716 b.Property<
string>(
"Url")
718 .HasColumnType(
"longtext");
720 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"Url"),
"utf8mb4");
724 b.HasIndex(
"MergedById");
726 b.HasIndex(
"PrimaryRevisionInformationId")
729 b.ToTable(
"TestMerges");
732 modelBuilder.Entity(
"Tgstation.Server.Host.Models.User", b =>
734 b.Property<
long?>(
"Id")
735 .ValueGeneratedOnAdd()
736 .HasColumnType(
"bigint");
738 b.Property<
string>(
"CanonicalName")
741 .HasColumnType(
"varchar(100)");
743 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"CanonicalName"),
"utf8mb4");
745 b.Property<DateTimeOffset?>(
"CreatedAt")
747 .HasColumnType(
"datetime(6)");
749 b.Property<
long?>(
"CreatedById")
750 .HasColumnType(
"bigint");
752 b.Property<
bool?>(
"Enabled")
754 .HasColumnType(
"tinyint(1)");
756 b.Property<
long?>(
"GroupId")
757 .HasColumnType(
"bigint");
759 b.Property<DateTimeOffset?>(
"LastPasswordUpdate")
760 .HasColumnType(
"datetime(6)");
762 b.Property<
string>(
"Name")
765 .HasColumnType(
"varchar(100)");
767 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"Name"),
"utf8mb4");
769 b.Property<
string>(
"PasswordHash")
770 .HasColumnType(
"longtext");
772 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"PasswordHash"),
"utf8mb4");
774 b.Property<
string>(
"SystemIdentifier")
776 .HasColumnType(
"varchar(100)");
778 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"SystemIdentifier"),
"utf8mb4");
782 b.HasIndex(
"CanonicalName")
785 b.HasIndex(
"CreatedById");
787 b.HasIndex(
"GroupId");
789 b.HasIndex(
"SystemIdentifier")
795 modelBuilder.Entity(
"Tgstation.Server.Host.Models.UserGroup", b =>
797 b.Property<
long?>(
"Id")
798 .ValueGeneratedOnAdd()
799 .HasColumnType(
"bigint");
801 b.Property<
string>(
"Name")
804 .HasColumnType(
"varchar(100)");
806 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"Name"),
"utf8mb4");
816 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatBot", b =>
818 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
819 .WithMany(
"ChatSettings")
820 .HasForeignKey(
"InstanceId")
821 .OnDelete(DeleteBehavior.Cascade)
824 b.Navigation(
"Instance");
827 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatChannel", b =>
829 b.HasOne(
"Tgstation.Server.Host.Models.ChatBot",
"ChatSettings")
830 .WithMany(
"Channels")
831 .HasForeignKey(
"ChatSettingsId")
832 .OnDelete(DeleteBehavior.Cascade)
835 b.Navigation(
"ChatSettings");
838 modelBuilder.Entity(
"Tgstation.Server.Host.Models.CompileJob", b =>
840 b.HasOne(
"Tgstation.Server.Host.Models.Job",
"Job")
842 .HasForeignKey(
"Tgstation.Server.Host.Models.CompileJob",
"JobId")
843 .OnDelete(DeleteBehavior.Cascade)
846 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"RevisionInformation")
847 .WithMany(
"CompileJobs")
848 .HasForeignKey(
"RevisionInformationId")
849 .OnDelete(DeleteBehavior.Cascade)
854 b.Navigation(
"RevisionInformation");
857 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamDaemonSettings", b =>
859 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
860 .WithOne(
"DreamDaemonSettings")
861 .HasForeignKey(
"Tgstation.Server.Host.Models.DreamDaemonSettings",
"InstanceId")
862 .OnDelete(DeleteBehavior.Cascade)
865 b.Navigation(
"Instance");
868 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamMakerSettings", b =>
870 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
871 .WithOne(
"DreamMakerSettings")
872 .HasForeignKey(
"Tgstation.Server.Host.Models.DreamMakerSettings",
"InstanceId")
873 .OnDelete(DeleteBehavior.Cascade)
876 b.Navigation(
"Instance");
879 modelBuilder.Entity(
"Tgstation.Server.Host.Models.InstancePermissionSet", b =>
881 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
882 .WithMany(
"InstancePermissionSets")
883 .HasForeignKey(
"InstanceId")
884 .OnDelete(DeleteBehavior.Cascade)
887 b.HasOne(
"Tgstation.Server.Host.Models.PermissionSet",
"PermissionSet")
888 .WithMany(
"InstancePermissionSets")
889 .HasForeignKey(
"PermissionSetId")
890 .OnDelete(DeleteBehavior.Cascade)
893 b.Navigation(
"Instance");
895 b.Navigation(
"PermissionSet");
898 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Job", b =>
900 b.HasOne(
"Tgstation.Server.Host.Models.User",
"CancelledBy")
902 .HasForeignKey(
"CancelledById");
904 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
906 .HasForeignKey(
"InstanceId")
907 .OnDelete(DeleteBehavior.Cascade)
910 b.HasOne(
"Tgstation.Server.Host.Models.User",
"StartedBy")
912 .HasForeignKey(
"StartedById")
913 .OnDelete(DeleteBehavior.Cascade)
916 b.Navigation(
"CancelledBy");
918 b.Navigation(
"Instance");
920 b.Navigation(
"StartedBy");
923 modelBuilder.Entity(
"Tgstation.Server.Host.Models.OAuthConnection", b =>
925 b.HasOne(
"Tgstation.Server.Host.Models.User",
"User")
926 .WithMany(
"OAuthConnections")
927 .HasForeignKey(
"UserId")
928 .OnDelete(DeleteBehavior.Cascade);
930 b.Navigation(
"User");
933 modelBuilder.Entity(
"Tgstation.Server.Host.Models.PermissionSet", b =>
935 b.HasOne(
"Tgstation.Server.Host.Models.UserGroup",
"Group")
936 .WithOne(
"PermissionSet")
937 .HasForeignKey(
"Tgstation.Server.Host.Models.PermissionSet",
"GroupId")
938 .OnDelete(DeleteBehavior.Cascade);
940 b.HasOne(
"Tgstation.Server.Host.Models.User",
"User")
941 .WithOne(
"PermissionSet")
942 .HasForeignKey(
"Tgstation.Server.Host.Models.PermissionSet",
"UserId")
943 .OnDelete(DeleteBehavior.Cascade);
945 b.Navigation(
"Group");
947 b.Navigation(
"User");
950 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ReattachInformation", b =>
952 b.HasOne(
"Tgstation.Server.Host.Models.CompileJob",
"CompileJob")
954 .HasForeignKey(
"CompileJobId")
955 .OnDelete(DeleteBehavior.Cascade)
958 b.HasOne(
"Tgstation.Server.Host.Models.CompileJob",
"InitialCompileJob")
960 .HasForeignKey(
"InitialCompileJobId");
962 b.Navigation(
"CompileJob");
964 b.Navigation(
"InitialCompileJob");
967 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RepositorySettings", b =>
969 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
970 .WithOne(
"RepositorySettings")
971 .HasForeignKey(
"Tgstation.Server.Host.Models.RepositorySettings",
"InstanceId")
972 .OnDelete(DeleteBehavior.Cascade)
975 b.Navigation(
"Instance");
978 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
980 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"RevisionInformation")
981 .WithMany(
"ActiveTestMerges")
982 .HasForeignKey(
"RevisionInformationId")
983 .OnDelete(DeleteBehavior.Cascade)
986 b.HasOne(
"Tgstation.Server.Host.Models.TestMerge",
"TestMerge")
987 .WithMany(
"RevisonInformations")
988 .HasForeignKey(
"TestMergeId")
989 .OnDelete(DeleteBehavior.ClientNoAction)
992 b.Navigation(
"RevisionInformation");
994 b.Navigation(
"TestMerge");
997 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevisionInformation", b =>
999 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
1000 .WithMany(
"RevisionInformations")
1001 .HasForeignKey(
"InstanceId")
1002 .OnDelete(DeleteBehavior.Cascade)
1005 b.Navigation(
"Instance");
1008 modelBuilder.Entity(
"Tgstation.Server.Host.Models.TestMerge", b =>
1010 b.HasOne(
"Tgstation.Server.Host.Models.User",
"MergedBy")
1011 .WithMany(
"TestMerges")
1012 .HasForeignKey(
"MergedById")
1013 .OnDelete(DeleteBehavior.Restrict)
1016 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"PrimaryRevisionInformation")
1017 .WithOne(
"PrimaryTestMerge")
1018 .HasForeignKey(
"Tgstation.Server.Host.Models.TestMerge",
"PrimaryRevisionInformationId")
1019 .OnDelete(DeleteBehavior.Cascade)
1022 b.Navigation(
"MergedBy");
1024 b.Navigation(
"PrimaryRevisionInformation");
1027 modelBuilder.Entity(
"Tgstation.Server.Host.Models.User", b =>
1029 b.HasOne(
"Tgstation.Server.Host.Models.User",
"CreatedBy")
1030 .WithMany(
"CreatedUsers")
1031 .HasForeignKey(
"CreatedById");
1033 b.HasOne(
"Tgstation.Server.Host.Models.UserGroup",
"Group")
1035 .HasForeignKey(
"GroupId");
1037 b.Navigation(
"CreatedBy");
1039 b.Navigation(
"Group");
1042 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatBot", b =>
1044 b.Navigation(
"Channels");
1047 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Instance", b =>
1049 b.Navigation(
"ChatSettings");
1051 b.Navigation(
"DreamDaemonSettings");
1053 b.Navigation(
"DreamMakerSettings");
1055 b.Navigation(
"InstancePermissionSets");
1057 b.Navigation(
"Jobs");
1059 b.Navigation(
"RepositorySettings");
1061 b.Navigation(
"RevisionInformations");
1064 modelBuilder.Entity(
"Tgstation.Server.Host.Models.PermissionSet", b =>
1066 b.Navigation(
"InstancePermissionSets");
1069 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevisionInformation", b =>
1071 b.Navigation(
"ActiveTestMerges");
1073 b.Navigation(
"CompileJobs");
1075 b.Navigation(
"PrimaryTestMerge");
1078 modelBuilder.Entity(
"Tgstation.Server.Host.Models.TestMerge", b =>
1080 b.Navigation(
"RevisonInformations");
1083 modelBuilder.Entity(
"Tgstation.Server.Host.Models.User", b =>
1085 b.Navigation(
"CreatedUsers");
1087 b.Navigation(
"OAuthConnections");
1089 b.Navigation(
"PermissionSet");
1091 b.Navigation(
"TestMerges");
1094 modelBuilder.Entity(
"Tgstation.Server.Host.Models.UserGroup", b =>
1096 b.Navigation(
"PermissionSet")
1099 b.Navigation(
"Users");
1101#pragma warning restore 612, 618