17#pragma warning disable 612, 618
19 .HasAnnotation(
"ProductVersion",
"7.0.13")
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<
byte>(
"JobCode")
420 .HasColumnType(
"tinyint unsigned");
422 b.Property<DateTimeOffset?>(
"StartedAt")
424 .HasColumnType(
"datetime(6)");
426 b.Property<
long>(
"StartedById")
427 .HasColumnType(
"bigint");
429 b.Property<DateTimeOffset?>(
"StoppedAt")
430 .HasColumnType(
"datetime(6)");
434 b.HasIndex(
"CancelledById");
436 b.HasIndex(
"InstanceId");
438 b.HasIndex(
"StartedById");
443 modelBuilder.Entity(
"Tgstation.Server.Host.Models.OAuthConnection", b =>
445 b.Property<
long>(
"Id")
446 .ValueGeneratedOnAdd()
447 .HasColumnType(
"bigint");
449 b.Property<
string>(
"ExternalUserId")
452 .HasColumnType(
"varchar(100)");
454 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"ExternalUserId"),
"utf8mb4");
456 b.Property<
int>(
"Provider")
457 .HasColumnType(
"int");
459 b.Property<
long?>(
"UserId")
460 .HasColumnType(
"bigint");
464 b.HasIndex(
"UserId");
466 b.HasIndex(
"Provider",
"ExternalUserId")
469 b.ToTable(
"OAuthConnections");
472 modelBuilder.Entity(
"Tgstation.Server.Host.Models.PermissionSet", b =>
474 b.Property<
long?>(
"Id")
475 .ValueGeneratedOnAdd()
476 .HasColumnType(
"bigint");
478 b.Property<ulong>(
"AdministrationRights")
479 .HasColumnType(
"bigint unsigned");
481 b.Property<
long?>(
"GroupId")
482 .HasColumnType(
"bigint");
484 b.Property<ulong>(
"InstanceManagerRights")
485 .HasColumnType(
"bigint unsigned");
487 b.Property<
long?>(
"UserId")
488 .HasColumnType(
"bigint");
492 b.HasIndex(
"GroupId")
498 b.ToTable(
"PermissionSets");
501 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ReattachInformation", b =>
503 b.Property<
long>(
"Id")
504 .ValueGeneratedOnAdd()
505 .HasColumnType(
"bigint");
507 b.Property<
string>(
"AccessIdentifier")
509 .HasColumnType(
"longtext");
511 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"AccessIdentifier"),
"utf8mb4");
513 b.Property<
long>(
"CompileJobId")
514 .HasColumnType(
"bigint");
516 b.Property<
long?>(
"InitialCompileJobId")
517 .HasColumnType(
"bigint");
519 b.Property<
int>(
"LaunchSecurityLevel")
520 .HasColumnType(
"int");
522 b.Property<
int>(
"LaunchVisibility")
523 .HasColumnType(
"int");
525 b.Property<ushort>(
"Port")
526 .HasColumnType(
"smallint unsigned");
528 b.Property<
int>(
"ProcessId")
529 .HasColumnType(
"int");
531 b.Property<
int>(
"RebootState")
532 .HasColumnType(
"int");
536 b.HasIndex(
"CompileJobId");
538 b.HasIndex(
"InitialCompileJobId");
540 b.ToTable(
"ReattachInformations");
543 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RepositorySettings", b =>
545 b.Property<
long>(
"Id")
546 .ValueGeneratedOnAdd()
547 .HasColumnType(
"bigint");
549 b.Property<
string>(
"AccessToken")
551 .HasColumnType(
"longtext");
553 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"AccessToken"),
"utf8mb4");
555 b.Property<
string>(
"AccessUser")
557 .HasColumnType(
"longtext");
559 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"AccessUser"),
"utf8mb4");
561 b.Property<
bool?>(
"AutoUpdatesKeepTestMerges")
563 .HasColumnType(
"tinyint(1)");
565 b.Property<
bool?>(
"AutoUpdatesSynchronize")
567 .HasColumnType(
"tinyint(1)");
569 b.Property<
string>(
"CommitterEmail")
572 .HasColumnType(
"longtext");
574 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"CommitterEmail"),
"utf8mb4");
576 b.Property<
string>(
"CommitterName")
579 .HasColumnType(
"longtext");
581 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"CommitterName"),
"utf8mb4");
583 b.Property<
bool?>(
"CreateGitHubDeployments")
585 .HasColumnType(
"tinyint(1)");
587 b.Property<
long>(
"InstanceId")
588 .HasColumnType(
"bigint");
590 b.Property<
bool?>(
"PostTestMergeComment")
592 .HasColumnType(
"tinyint(1)");
594 b.Property<
bool?>(
"PushTestMergeCommits")
596 .HasColumnType(
"tinyint(1)");
598 b.Property<
bool?>(
"ShowTestMergeCommitters")
600 .HasColumnType(
"tinyint(1)");
602 b.Property<
bool?>(
"UpdateSubmodules")
604 .HasColumnType(
"tinyint(1)");
608 b.HasIndex(
"InstanceId")
611 b.ToTable(
"RepositorySettings");
614 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
616 b.Property<
long>(
"Id")
617 .ValueGeneratedOnAdd()
618 .HasColumnType(
"bigint");
620 b.Property<
long>(
"RevisionInformationId")
621 .HasColumnType(
"bigint");
623 b.Property<
long>(
"TestMergeId")
624 .HasColumnType(
"bigint");
628 b.HasIndex(
"RevisionInformationId");
630 b.HasIndex(
"TestMergeId");
632 b.ToTable(
"RevInfoTestMerges");
635 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevisionInformation", b =>
637 b.Property<
long>(
"Id")
638 .ValueGeneratedOnAdd()
639 .HasColumnType(
"bigint");
641 b.Property<
string>(
"CommitSha")
644 .HasColumnType(
"varchar(40)");
646 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"CommitSha"),
"utf8mb4");
648 b.Property<
long>(
"InstanceId")
649 .HasColumnType(
"bigint");
651 b.Property<
string>(
"OriginCommitSha")
654 .HasColumnType(
"varchar(40)");
656 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"OriginCommitSha"),
"utf8mb4");
658 b.Property<DateTimeOffset>(
"Timestamp")
659 .HasColumnType(
"datetime(6)");
663 b.HasIndex(
"InstanceId",
"CommitSha")
666 b.ToTable(
"RevisionInformations");
669 modelBuilder.Entity(
"Tgstation.Server.Host.Models.TestMerge", b =>
671 b.Property<
long>(
"Id")
672 .ValueGeneratedOnAdd()
673 .HasColumnType(
"bigint");
675 b.Property<
string>(
"Author")
677 .HasColumnType(
"longtext");
679 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"Author"),
"utf8mb4");
681 b.Property<
string>(
"BodyAtMerge")
683 .HasColumnType(
"longtext");
685 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"BodyAtMerge"),
"utf8mb4");
687 b.Property<
string>(
"Comment")
689 .HasColumnType(
"longtext");
691 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"Comment"),
"utf8mb4");
693 b.Property<DateTimeOffset>(
"MergedAt")
694 .HasColumnType(
"datetime(6)");
696 b.Property<
long>(
"MergedById")
697 .HasColumnType(
"bigint");
699 b.Property<
int>(
"Number")
700 .HasColumnType(
"int");
702 b.Property<
long?>(
"PrimaryRevisionInformationId")
704 .HasColumnType(
"bigint");
706 b.Property<
string>(
"TargetCommitSha")
709 .HasColumnType(
"varchar(40)");
711 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"TargetCommitSha"),
"utf8mb4");
713 b.Property<
string>(
"TitleAtMerge")
715 .HasColumnType(
"longtext");
717 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"TitleAtMerge"),
"utf8mb4");
719 b.Property<
string>(
"Url")
721 .HasColumnType(
"longtext");
723 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"Url"),
"utf8mb4");
727 b.HasIndex(
"MergedById");
729 b.HasIndex(
"PrimaryRevisionInformationId")
732 b.ToTable(
"TestMerges");
735 modelBuilder.Entity(
"Tgstation.Server.Host.Models.User", b =>
737 b.Property<
long?>(
"Id")
738 .ValueGeneratedOnAdd()
739 .HasColumnType(
"bigint");
741 b.Property<
string>(
"CanonicalName")
744 .HasColumnType(
"varchar(100)");
746 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"CanonicalName"),
"utf8mb4");
748 b.Property<DateTimeOffset?>(
"CreatedAt")
750 .HasColumnType(
"datetime(6)");
752 b.Property<
long?>(
"CreatedById")
753 .HasColumnType(
"bigint");
755 b.Property<
bool?>(
"Enabled")
757 .HasColumnType(
"tinyint(1)");
759 b.Property<
long?>(
"GroupId")
760 .HasColumnType(
"bigint");
762 b.Property<DateTimeOffset?>(
"LastPasswordUpdate")
763 .HasColumnType(
"datetime(6)");
765 b.Property<
string>(
"Name")
768 .HasColumnType(
"varchar(100)");
770 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"Name"),
"utf8mb4");
772 b.Property<
string>(
"PasswordHash")
773 .HasColumnType(
"longtext");
775 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"PasswordHash"),
"utf8mb4");
777 b.Property<
string>(
"SystemIdentifier")
779 .HasColumnType(
"varchar(100)");
781 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"SystemIdentifier"),
"utf8mb4");
785 b.HasIndex(
"CanonicalName")
788 b.HasIndex(
"CreatedById");
790 b.HasIndex(
"GroupId");
792 b.HasIndex(
"SystemIdentifier")
798 modelBuilder.Entity(
"Tgstation.Server.Host.Models.UserGroup", b =>
800 b.Property<
long?>(
"Id")
801 .ValueGeneratedOnAdd()
802 .HasColumnType(
"bigint");
804 b.Property<
string>(
"Name")
807 .HasColumnType(
"varchar(100)");
809 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<
string>(
"Name"),
"utf8mb4");
819 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatBot", b =>
821 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
822 .WithMany(
"ChatSettings")
823 .HasForeignKey(
"InstanceId")
824 .OnDelete(DeleteBehavior.Cascade)
827 b.Navigation(
"Instance");
830 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatChannel", b =>
832 b.HasOne(
"Tgstation.Server.Host.Models.ChatBot",
"ChatSettings")
833 .WithMany(
"Channels")
834 .HasForeignKey(
"ChatSettingsId")
835 .OnDelete(DeleteBehavior.Cascade)
838 b.Navigation(
"ChatSettings");
841 modelBuilder.Entity(
"Tgstation.Server.Host.Models.CompileJob", b =>
843 b.HasOne(
"Tgstation.Server.Host.Models.Job",
"Job")
845 .HasForeignKey(
"Tgstation.Server.Host.Models.CompileJob",
"JobId")
846 .OnDelete(DeleteBehavior.Cascade)
849 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"RevisionInformation")
850 .WithMany(
"CompileJobs")
851 .HasForeignKey(
"RevisionInformationId")
852 .OnDelete(DeleteBehavior.Cascade)
857 b.Navigation(
"RevisionInformation");
860 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamDaemonSettings", b =>
862 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
863 .WithOne(
"DreamDaemonSettings")
864 .HasForeignKey(
"Tgstation.Server.Host.Models.DreamDaemonSettings",
"InstanceId")
865 .OnDelete(DeleteBehavior.Cascade)
868 b.Navigation(
"Instance");
871 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamMakerSettings", b =>
873 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
874 .WithOne(
"DreamMakerSettings")
875 .HasForeignKey(
"Tgstation.Server.Host.Models.DreamMakerSettings",
"InstanceId")
876 .OnDelete(DeleteBehavior.Cascade)
879 b.Navigation(
"Instance");
882 modelBuilder.Entity(
"Tgstation.Server.Host.Models.InstancePermissionSet", b =>
884 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
885 .WithMany(
"InstancePermissionSets")
886 .HasForeignKey(
"InstanceId")
887 .OnDelete(DeleteBehavior.Cascade)
890 b.HasOne(
"Tgstation.Server.Host.Models.PermissionSet",
"PermissionSet")
891 .WithMany(
"InstancePermissionSets")
892 .HasForeignKey(
"PermissionSetId")
893 .OnDelete(DeleteBehavior.Cascade)
896 b.Navigation(
"Instance");
898 b.Navigation(
"PermissionSet");
901 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Job", b =>
903 b.HasOne(
"Tgstation.Server.Host.Models.User",
"CancelledBy")
905 .HasForeignKey(
"CancelledById");
907 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
909 .HasForeignKey(
"InstanceId")
910 .OnDelete(DeleteBehavior.Cascade)
913 b.HasOne(
"Tgstation.Server.Host.Models.User",
"StartedBy")
915 .HasForeignKey(
"StartedById")
916 .OnDelete(DeleteBehavior.Cascade)
919 b.Navigation(
"CancelledBy");
921 b.Navigation(
"Instance");
923 b.Navigation(
"StartedBy");
926 modelBuilder.Entity(
"Tgstation.Server.Host.Models.OAuthConnection", b =>
928 b.HasOne(
"Tgstation.Server.Host.Models.User",
"User")
929 .WithMany(
"OAuthConnections")
930 .HasForeignKey(
"UserId")
931 .OnDelete(DeleteBehavior.Cascade);
933 b.Navigation(
"User");
936 modelBuilder.Entity(
"Tgstation.Server.Host.Models.PermissionSet", b =>
938 b.HasOne(
"Tgstation.Server.Host.Models.UserGroup",
"Group")
939 .WithOne(
"PermissionSet")
940 .HasForeignKey(
"Tgstation.Server.Host.Models.PermissionSet",
"GroupId")
941 .OnDelete(DeleteBehavior.Cascade);
943 b.HasOne(
"Tgstation.Server.Host.Models.User",
"User")
944 .WithOne(
"PermissionSet")
945 .HasForeignKey(
"Tgstation.Server.Host.Models.PermissionSet",
"UserId")
946 .OnDelete(DeleteBehavior.Cascade);
948 b.Navigation(
"Group");
950 b.Navigation(
"User");
953 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ReattachInformation", b =>
955 b.HasOne(
"Tgstation.Server.Host.Models.CompileJob",
"CompileJob")
957 .HasForeignKey(
"CompileJobId")
958 .OnDelete(DeleteBehavior.Cascade)
961 b.HasOne(
"Tgstation.Server.Host.Models.CompileJob",
"InitialCompileJob")
963 .HasForeignKey(
"InitialCompileJobId");
965 b.Navigation(
"CompileJob");
967 b.Navigation(
"InitialCompileJob");
970 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RepositorySettings", b =>
972 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
973 .WithOne(
"RepositorySettings")
974 .HasForeignKey(
"Tgstation.Server.Host.Models.RepositorySettings",
"InstanceId")
975 .OnDelete(DeleteBehavior.Cascade)
978 b.Navigation(
"Instance");
981 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
983 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"RevisionInformation")
984 .WithMany(
"ActiveTestMerges")
985 .HasForeignKey(
"RevisionInformationId")
986 .OnDelete(DeleteBehavior.Cascade)
989 b.HasOne(
"Tgstation.Server.Host.Models.TestMerge",
"TestMerge")
990 .WithMany(
"RevisonInformations")
991 .HasForeignKey(
"TestMergeId")
992 .OnDelete(DeleteBehavior.ClientNoAction)
995 b.Navigation(
"RevisionInformation");
997 b.Navigation(
"TestMerge");
1000 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevisionInformation", b =>
1002 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
1003 .WithMany(
"RevisionInformations")
1004 .HasForeignKey(
"InstanceId")
1005 .OnDelete(DeleteBehavior.Cascade)
1008 b.Navigation(
"Instance");
1011 modelBuilder.Entity(
"Tgstation.Server.Host.Models.TestMerge", b =>
1013 b.HasOne(
"Tgstation.Server.Host.Models.User",
"MergedBy")
1014 .WithMany(
"TestMerges")
1015 .HasForeignKey(
"MergedById")
1016 .OnDelete(DeleteBehavior.Restrict)
1019 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"PrimaryRevisionInformation")
1020 .WithOne(
"PrimaryTestMerge")
1021 .HasForeignKey(
"Tgstation.Server.Host.Models.TestMerge",
"PrimaryRevisionInformationId")
1022 .OnDelete(DeleteBehavior.Cascade)
1025 b.Navigation(
"MergedBy");
1027 b.Navigation(
"PrimaryRevisionInformation");
1030 modelBuilder.Entity(
"Tgstation.Server.Host.Models.User", b =>
1032 b.HasOne(
"Tgstation.Server.Host.Models.User",
"CreatedBy")
1033 .WithMany(
"CreatedUsers")
1034 .HasForeignKey(
"CreatedById");
1036 b.HasOne(
"Tgstation.Server.Host.Models.UserGroup",
"Group")
1038 .HasForeignKey(
"GroupId");
1040 b.Navigation(
"CreatedBy");
1042 b.Navigation(
"Group");
1045 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatBot", b =>
1047 b.Navigation(
"Channels");
1050 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Instance", b =>
1052 b.Navigation(
"ChatSettings");
1054 b.Navigation(
"DreamDaemonSettings");
1056 b.Navigation(
"DreamMakerSettings");
1058 b.Navigation(
"InstancePermissionSets");
1060 b.Navigation(
"Jobs");
1062 b.Navigation(
"RepositorySettings");
1064 b.Navigation(
"RevisionInformations");
1067 modelBuilder.Entity(
"Tgstation.Server.Host.Models.PermissionSet", b =>
1069 b.Navigation(
"InstancePermissionSets");
1072 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevisionInformation", b =>
1074 b.Navigation(
"ActiveTestMerges");
1076 b.Navigation(
"CompileJobs");
1078 b.Navigation(
"PrimaryTestMerge");
1081 modelBuilder.Entity(
"Tgstation.Server.Host.Models.TestMerge", b =>
1083 b.Navigation(
"RevisonInformations");
1086 modelBuilder.Entity(
"Tgstation.Server.Host.Models.User", b =>
1088 b.Navigation(
"CreatedUsers");
1090 b.Navigation(
"OAuthConnections");
1092 b.Navigation(
"PermissionSet");
1094 b.Navigation(
"TestMerges");
1097 modelBuilder.Entity(
"Tgstation.Server.Host.Models.UserGroup", b =>
1099 b.Navigation(
"PermissionSet")
1102 b.Navigation(
"Users");
1104#pragma warning restore 612, 618