17#pragma warning disable 612, 618
19 .HasAnnotation(
"ProductVersion",
"3.1.10")
20 .HasAnnotation(
"Relational:MaxIdentifierLength", 128)
21 .HasAnnotation(
"SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
23 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatBot", b =>
25 b.Property<
long?>(
"Id")
26 .ValueGeneratedOnAdd()
27 .HasColumnType(
"bigint")
28 .HasAnnotation(
"SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
30 b.Property<
int>(
"ChannelLimit")
31 .HasColumnType(
"int");
33 b.Property<
string>(
"ConnectionString")
35 .HasColumnType(
"nvarchar(max)")
38 b.Property<
bool?>(
"Enabled")
39 .HasColumnType(
"bit");
41 b.Property<
long>(
"InstanceId")
42 .HasColumnType(
"bigint");
44 b.Property<
string>(
"Name")
46 .HasColumnType(
"nvarchar(100)")
49 b.Property<
int>(
"Provider")
50 .HasColumnType(
"int");
52 b.Property<
long>(
"ReconnectionInterval")
53 .HasColumnType(
"bigint");
57 b.HasIndex(
"InstanceId",
"Name")
60 b.ToTable(
"ChatBots");
63 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatChannel", b =>
65 b.Property<
long>(
"Id")
66 .ValueGeneratedOnAdd()
67 .HasColumnType(
"bigint")
68 .HasAnnotation(
"SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
70 b.Property<
long>(
"ChatSettingsId")
71 .HasColumnType(
"bigint");
73 b.Property<decimal?>(
"DiscordChannelId")
74 .HasColumnType(
"decimal(20,0)");
76 b.Property<
string>(
"IrcChannel")
77 .HasColumnType(
"nvarchar(100)")
80 b.Property<
bool?>(
"IsAdminChannel")
82 .HasColumnType(
"bit");
84 b.Property<
bool?>(
"IsUpdatesChannel")
86 .HasColumnType(
"bit");
88 b.Property<
bool?>(
"IsWatchdogChannel")
90 .HasColumnType(
"bit");
92 b.Property<
string>(
"Tag")
93 .HasColumnType(
"nvarchar(max)")
98 b.HasIndex(
"ChatSettingsId",
"DiscordChannelId")
100 .HasFilter(
"[DiscordChannelId] IS NOT NULL");
102 b.HasIndex(
"ChatSettingsId",
"IrcChannel")
104 .HasFilter(
"[IrcChannel] IS NOT NULL");
106 b.ToTable(
"ChatChannels");
109 modelBuilder.Entity(
"Tgstation.Server.Host.Models.CompileJob", b =>
111 b.Property<
long?>(
"Id")
112 .ValueGeneratedOnAdd()
113 .HasColumnType(
"bigint")
114 .HasAnnotation(
"SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
116 b.Property<
string>(
"ByondVersion")
118 .HasColumnType(
"nvarchar(max)");
120 b.Property<
int?>(
"DMApiMajorVersion")
121 .HasColumnType(
"int");
123 b.Property<
int?>(
"DMApiMinorVersion")
124 .HasColumnType(
"int");
126 b.Property<
int?>(
"DMApiPatchVersion")
127 .HasColumnType(
"int");
129 b.Property<Guid?>(
"DirectoryName")
131 .HasColumnType(
"uniqueidentifier");
133 b.Property<
string>(
"DmeName")
135 .HasColumnType(
"nvarchar(max)");
137 b.Property<
int?>(
"GitHubDeploymentId")
138 .HasColumnType(
"int");
140 b.Property<
long?>(
"GitHubRepoId")
141 .HasColumnType(
"bigint");
143 b.Property<
long>(
"JobId")
144 .HasColumnType(
"bigint");
146 b.Property<
int?>(
"MinimumSecurityLevel")
147 .HasColumnType(
"int");
149 b.Property<
string>(
"Output")
151 .HasColumnType(
"nvarchar(max)");
153 b.Property<
string>(
"RepositoryOrigin")
154 .HasColumnType(
"nvarchar(max)");
156 b.Property<
long>(
"RevisionInformationId")
157 .HasColumnType(
"bigint");
161 b.HasIndex(
"DirectoryName");
166 b.HasIndex(
"RevisionInformationId");
168 b.ToTable(
"CompileJobs");
171 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamDaemonSettings", b =>
173 b.Property<
long>(
"Id")
174 .ValueGeneratedOnAdd()
175 .HasColumnType(
"bigint")
176 .HasAnnotation(
"SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
178 b.Property<
string>(
"AdditionalParameters")
180 .HasColumnType(
"nvarchar(max)")
181 .HasMaxLength(10000);
183 b.Property<
bool?>(
"AllowWebClient")
185 .HasColumnType(
"bit");
187 b.Property<
bool?>(
"AutoStart")
189 .HasColumnType(
"bit");
191 b.Property<
long>(
"HeartbeatSeconds")
192 .HasColumnType(
"bigint");
194 b.Property<
long>(
"InstanceId")
195 .HasColumnType(
"bigint");
197 b.Property<
int>(
"Port")
198 .HasColumnType(
"int");
200 b.Property<
int>(
"SecurityLevel")
201 .HasColumnType(
"int");
203 b.Property<
long>(
"StartupTimeout")
204 .HasColumnType(
"bigint");
206 b.Property<
long>(
"TopicRequestTimeout")
207 .HasColumnType(
"bigint");
211 b.HasIndex(
"InstanceId")
214 b.ToTable(
"DreamDaemonSettings");
217 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamMakerSettings", b =>
219 b.Property<
long>(
"Id")
220 .ValueGeneratedOnAdd()
221 .HasColumnType(
"bigint")
222 .HasAnnotation(
"SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
224 b.Property<
int>(
"ApiValidationPort")
225 .HasColumnType(
"int");
227 b.Property<
int>(
"ApiValidationSecurityLevel")
228 .HasColumnType(
"int");
230 b.Property<
long>(
"InstanceId")
231 .HasColumnType(
"bigint");
233 b.Property<
string>(
"ProjectName")
234 .HasColumnType(
"nvarchar(max)")
235 .HasMaxLength(10000);
237 b.Property<
bool?>(
"RequireDMApiValidation")
239 .HasColumnType(
"bit");
243 b.HasIndex(
"InstanceId")
246 b.ToTable(
"DreamMakerSettings");
249 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Instance", b =>
251 b.Property<
long?>(
"Id")
252 .ValueGeneratedOnAdd()
253 .HasColumnType(
"bigint")
254 .HasAnnotation(
"SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
256 b.Property<
long>(
"AutoUpdateInterval")
257 .HasColumnType(
"bigint");
259 b.Property<
int>(
"ChatBotLimit")
260 .HasColumnType(
"int");
262 b.Property<
int>(
"ConfigurationType")
263 .HasColumnType(
"int");
265 b.Property<
string>(
"Name")
267 .HasColumnType(
"nvarchar(100)")
270 b.Property<
bool?>(
"Online")
272 .HasColumnType(
"bit");
274 b.Property<
string>(
"Path")
276 .HasColumnType(
"nvarchar(450)");
278 b.Property<
string>(
"SwarmIdentifer")
279 .HasColumnType(
"nvarchar(450)");
283 b.HasIndex(
"Path",
"SwarmIdentifer")
285 .HasFilter(
"[SwarmIdentifer] IS NOT NULL");
287 b.ToTable(
"Instances");
290 modelBuilder.Entity(
"Tgstation.Server.Host.Models.InstancePermissionSet", b =>
292 b.Property<
long>(
"Id")
293 .ValueGeneratedOnAdd()
294 .HasColumnType(
"bigint")
295 .HasAnnotation(
"SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
297 b.Property<decimal>(
"ByondRights")
298 .HasColumnType(
"decimal(20,0)");
300 b.Property<decimal>(
"ChatBotRights")
301 .HasColumnType(
"decimal(20,0)");
303 b.Property<decimal>(
"ConfigurationRights")
304 .HasColumnType(
"decimal(20,0)");
306 b.Property<decimal>(
"DreamDaemonRights")
307 .HasColumnType(
"decimal(20,0)");
309 b.Property<decimal>(
"DreamMakerRights")
310 .HasColumnType(
"decimal(20,0)");
312 b.Property<
long>(
"InstanceId")
313 .HasColumnType(
"bigint");
315 b.Property<decimal>(
"InstancePermissionSetRights")
316 .HasColumnType(
"decimal(20,0)");
318 b.Property<
long>(
"PermissionSetId")
319 .HasColumnType(
"bigint");
321 b.Property<decimal>(
"RepositoryRights")
322 .HasColumnType(
"decimal(20,0)");
326 b.HasIndex(
"InstanceId");
328 b.HasIndex(
"PermissionSetId",
"InstanceId")
331 b.ToTable(
"InstancePermissionSets");
334 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Job", b =>
336 b.Property<
long?>(
"Id")
337 .ValueGeneratedOnAdd()
338 .HasColumnType(
"bigint")
339 .HasAnnotation(
"SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
341 b.Property<decimal?>(
"CancelRight")
342 .HasColumnType(
"decimal(20,0)");
344 b.Property<decimal?>(
"CancelRightsType")
345 .HasColumnType(
"decimal(20,0)");
347 b.Property<
bool?>(
"Cancelled")
349 .HasColumnType(
"bit");
351 b.Property<
long?>(
"CancelledById")
352 .HasColumnType(
"bigint");
354 b.Property<
string>(
"Description")
356 .HasColumnType(
"nvarchar(max)");
358 b.Property<
long?>(
"ErrorCode")
359 .HasColumnType(
"bigint");
361 b.Property<
string>(
"ExceptionDetails")
362 .HasColumnType(
"nvarchar(max)");
364 b.Property<
long>(
"InstanceId")
365 .HasColumnType(
"bigint");
367 b.Property<DateTimeOffset?>(
"StartedAt")
369 .HasColumnType(
"datetimeoffset");
371 b.Property<
long>(
"StartedById")
372 .HasColumnType(
"bigint");
374 b.Property<DateTimeOffset?>(
"StoppedAt")
375 .HasColumnType(
"datetimeoffset");
379 b.HasIndex(
"CancelledById");
381 b.HasIndex(
"InstanceId");
383 b.HasIndex(
"StartedById");
388 modelBuilder.Entity(
"Tgstation.Server.Host.Models.OAuthConnection", b =>
390 b.Property<
long>(
"Id")
391 .ValueGeneratedOnAdd()
392 .HasColumnType(
"bigint")
393 .HasAnnotation(
"SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
395 b.Property<
string>(
"ExternalUserId")
397 .HasColumnType(
"nvarchar(100)")
400 b.Property<
int>(
"Provider")
401 .HasColumnType(
"int");
403 b.Property<
long?>(
"UserId")
404 .HasColumnType(
"bigint");
408 b.HasIndex(
"UserId");
410 b.HasIndex(
"Provider",
"ExternalUserId")
413 b.ToTable(
"OAuthConnections");
416 modelBuilder.Entity(
"Tgstation.Server.Host.Models.PermissionSet", b =>
418 b.Property<
long?>(
"Id")
419 .ValueGeneratedOnAdd()
420 .HasColumnType(
"bigint")
421 .HasAnnotation(
"SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
423 b.Property<decimal>(
"AdministrationRights")
424 .HasColumnType(
"decimal(20,0)");
426 b.Property<
long?>(
"GroupId")
427 .HasColumnType(
"bigint");
429 b.Property<decimal>(
"InstanceManagerRights")
430 .HasColumnType(
"decimal(20,0)");
432 b.Property<
long?>(
"UserId")
433 .HasColumnType(
"bigint");
437 b.HasIndex(
"GroupId")
439 .HasFilter(
"[GroupId] IS NOT NULL");
443 .HasFilter(
"[UserId] IS NOT NULL");
445 b.ToTable(
"PermissionSets");
448 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ReattachInformation", b =>
450 b.Property<
long>(
"Id")
451 .ValueGeneratedOnAdd()
452 .HasColumnType(
"bigint")
453 .HasAnnotation(
"SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
455 b.Property<
string>(
"AccessIdentifier")
457 .HasColumnType(
"nvarchar(max)");
459 b.Property<
long>(
"CompileJobId")
460 .HasColumnType(
"bigint");
462 b.Property<
int>(
"LaunchSecurityLevel")
463 .HasColumnType(
"int");
465 b.Property<
int>(
"Port")
466 .HasColumnType(
"int");
468 b.Property<
int>(
"ProcessId")
469 .HasColumnType(
"int");
471 b.Property<
int>(
"RebootState")
472 .HasColumnType(
"int");
476 b.HasIndex(
"CompileJobId");
478 b.ToTable(
"ReattachInformations");
481 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RepositorySettings", b =>
483 b.Property<
long>(
"Id")
484 .ValueGeneratedOnAdd()
485 .HasColumnType(
"bigint")
486 .HasAnnotation(
"SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
488 b.Property<
string>(
"AccessToken")
489 .HasColumnType(
"nvarchar(max)")
490 .HasMaxLength(10000);
492 b.Property<
string>(
"AccessUser")
493 .HasColumnType(
"nvarchar(max)")
494 .HasMaxLength(10000);
496 b.Property<
bool?>(
"AutoUpdatesKeepTestMerges")
498 .HasColumnType(
"bit");
500 b.Property<
bool?>(
"AutoUpdatesSynchronize")
502 .HasColumnType(
"bit");
504 b.Property<
string>(
"CommitterEmail")
506 .HasColumnType(
"nvarchar(max)")
507 .HasMaxLength(10000);
509 b.Property<
string>(
"CommitterName")
511 .HasColumnType(
"nvarchar(max)")
512 .HasMaxLength(10000);
514 b.Property<
bool?>(
"CreateGitHubDeployments")
516 .HasColumnType(
"bit");
518 b.Property<
long>(
"InstanceId")
519 .HasColumnType(
"bigint");
521 b.Property<
bool?>(
"PostTestMergeComment")
523 .HasColumnType(
"bit");
525 b.Property<
bool?>(
"PushTestMergeCommits")
527 .HasColumnType(
"bit");
529 b.Property<
bool?>(
"ShowTestMergeCommitters")
531 .HasColumnType(
"bit");
535 b.HasIndex(
"InstanceId")
538 b.ToTable(
"RepositorySettings");
541 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
543 b.Property<
long>(
"Id")
544 .ValueGeneratedOnAdd()
545 .HasColumnType(
"bigint")
546 .HasAnnotation(
"SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
548 b.Property<
long>(
"RevisionInformationId")
549 .HasColumnType(
"bigint");
551 b.Property<
long>(
"TestMergeId")
552 .HasColumnType(
"bigint");
556 b.HasIndex(
"RevisionInformationId");
558 b.HasIndex(
"TestMergeId");
560 b.ToTable(
"RevInfoTestMerges");
563 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevisionInformation", b =>
565 b.Property<
long>(
"Id")
566 .ValueGeneratedOnAdd()
567 .HasColumnType(
"bigint")
568 .HasAnnotation(
"SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
570 b.Property<
string>(
"CommitSha")
572 .HasColumnType(
"nvarchar(40)")
575 b.Property<
long>(
"InstanceId")
576 .HasColumnType(
"bigint");
578 b.Property<
string>(
"OriginCommitSha")
580 .HasColumnType(
"nvarchar(40)")
583 b.Property<DateTimeOffset>(
"Timestamp")
584 .HasColumnType(
"datetimeoffset");
588 b.HasIndex(
"InstanceId",
"CommitSha")
591 b.ToTable(
"RevisionInformations");
594 modelBuilder.Entity(
"Tgstation.Server.Host.Models.TestMerge", b =>
596 b.Property<
long>(
"Id")
597 .ValueGeneratedOnAdd()
598 .HasColumnType(
"bigint")
599 .HasAnnotation(
"SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
601 b.Property<
string>(
"Author")
603 .HasColumnType(
"nvarchar(max)");
605 b.Property<
string>(
"BodyAtMerge")
607 .HasColumnType(
"nvarchar(max)");
609 b.Property<
string>(
"Comment")
610 .HasColumnType(
"nvarchar(max)")
611 .HasMaxLength(10000);
613 b.Property<DateTimeOffset>(
"MergedAt")
614 .HasColumnType(
"datetimeoffset");
616 b.Property<
long>(
"MergedById")
617 .HasColumnType(
"bigint");
619 b.Property<
int>(
"Number")
620 .HasColumnType(
"int");
622 b.Property<
long?>(
"PrimaryRevisionInformationId")
624 .HasColumnType(
"bigint");
626 b.Property<
string>(
"TargetCommitSha")
628 .HasColumnType(
"nvarchar(40)")
631 b.Property<
string>(
"TitleAtMerge")
633 .HasColumnType(
"nvarchar(max)");
635 b.Property<
string>(
"Url")
637 .HasColumnType(
"nvarchar(max)");
641 b.HasIndex(
"MergedById");
643 b.HasIndex(
"PrimaryRevisionInformationId")
646 b.ToTable(
"TestMerges");
649 modelBuilder.Entity(
"Tgstation.Server.Host.Models.User", b =>
651 b.Property<
long?>(
"Id")
652 .ValueGeneratedOnAdd()
653 .HasColumnType(
"bigint")
654 .HasAnnotation(
"SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
656 b.Property<
string>(
"CanonicalName")
658 .HasColumnType(
"nvarchar(100)")
661 b.Property<DateTimeOffset?>(
"CreatedAt")
663 .HasColumnType(
"datetimeoffset");
665 b.Property<
long?>(
"CreatedById")
666 .HasColumnType(
"bigint");
668 b.Property<
bool?>(
"Enabled")
670 .HasColumnType(
"bit");
672 b.Property<
long?>(
"GroupId")
673 .HasColumnType(
"bigint");
675 b.Property<DateTimeOffset?>(
"LastPasswordUpdate")
676 .HasColumnType(
"datetimeoffset");
678 b.Property<
string>(
"Name")
680 .HasColumnType(
"nvarchar(100)")
683 b.Property<
string>(
"PasswordHash")
684 .HasColumnType(
"nvarchar(max)");
686 b.Property<
string>(
"SystemIdentifier")
687 .HasColumnType(
"nvarchar(100)")
692 b.HasIndex(
"CanonicalName")
695 b.HasIndex(
"CreatedById");
697 b.HasIndex(
"GroupId");
699 b.HasIndex(
"SystemIdentifier")
701 .HasFilter(
"[SystemIdentifier] IS NOT NULL");
706 modelBuilder.Entity(
"Tgstation.Server.Host.Models.UserGroup", b =>
708 b.Property<
long?>(
"Id")
709 .ValueGeneratedOnAdd()
710 .HasColumnType(
"bigint")
711 .HasAnnotation(
"SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
713 b.Property<
string>(
"Name")
715 .HasColumnType(
"nvarchar(100)")
726 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatBot", b =>
728 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
729 .WithMany(
"ChatSettings")
730 .HasForeignKey(
"InstanceId")
731 .OnDelete(DeleteBehavior.Cascade)
735 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatChannel", b =>
737 b.HasOne(
"Tgstation.Server.Host.Models.ChatBot",
"ChatSettings")
738 .WithMany(
"Channels")
739 .HasForeignKey(
"ChatSettingsId")
740 .OnDelete(DeleteBehavior.Cascade)
744 modelBuilder.Entity(
"Tgstation.Server.Host.Models.CompileJob", b =>
746 b.HasOne(
"Tgstation.Server.Host.Models.Job",
"Job")
748 .HasForeignKey(
"Tgstation.Server.Host.Models.CompileJob",
"JobId")
749 .OnDelete(DeleteBehavior.Cascade)
752 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"RevisionInformation")
753 .WithMany(
"CompileJobs")
754 .HasForeignKey(
"RevisionInformationId")
755 .OnDelete(DeleteBehavior.ClientNoAction)
759 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamDaemonSettings", b =>
761 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
762 .WithOne(
"DreamDaemonSettings")
763 .HasForeignKey(
"Tgstation.Server.Host.Models.DreamDaemonSettings",
"InstanceId")
764 .OnDelete(DeleteBehavior.Cascade)
768 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamMakerSettings", b =>
770 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
771 .WithOne(
"DreamMakerSettings")
772 .HasForeignKey(
"Tgstation.Server.Host.Models.DreamMakerSettings",
"InstanceId")
773 .OnDelete(DeleteBehavior.Cascade)
777 modelBuilder.Entity(
"Tgstation.Server.Host.Models.InstancePermissionSet", b =>
779 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
780 .WithMany(
"InstancePermissionSets")
781 .HasForeignKey(
"InstanceId")
782 .OnDelete(DeleteBehavior.Cascade)
785 b.HasOne(
"Tgstation.Server.Host.Models.PermissionSet",
"PermissionSet")
786 .WithMany(
"InstancePermissionSets")
787 .HasForeignKey(
"PermissionSetId")
788 .OnDelete(DeleteBehavior.Cascade)
792 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Job", b =>
794 b.HasOne(
"Tgstation.Server.Host.Models.User",
"CancelledBy")
796 .HasForeignKey(
"CancelledById");
798 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
800 .HasForeignKey(
"InstanceId")
801 .OnDelete(DeleteBehavior.Cascade)
804 b.HasOne(
"Tgstation.Server.Host.Models.User",
"StartedBy")
806 .HasForeignKey(
"StartedById")
807 .OnDelete(DeleteBehavior.Cascade)
811 modelBuilder.Entity(
"Tgstation.Server.Host.Models.OAuthConnection", b =>
813 b.HasOne(
"Tgstation.Server.Host.Models.User",
"User")
814 .WithMany(
"OAuthConnections")
815 .HasForeignKey(
"UserId")
816 .OnDelete(DeleteBehavior.Cascade);
819 modelBuilder.Entity(
"Tgstation.Server.Host.Models.PermissionSet", b =>
821 b.HasOne(
"Tgstation.Server.Host.Models.UserGroup",
"Group")
822 .WithOne(
"PermissionSet")
823 .HasForeignKey(
"Tgstation.Server.Host.Models.PermissionSet",
"GroupId")
824 .OnDelete(DeleteBehavior.Cascade);
826 b.HasOne(
"Tgstation.Server.Host.Models.User",
"User")
827 .WithOne(
"PermissionSet")
828 .HasForeignKey(
"Tgstation.Server.Host.Models.PermissionSet",
"UserId")
829 .OnDelete(DeleteBehavior.Cascade);
832 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ReattachInformation", b =>
834 b.HasOne(
"Tgstation.Server.Host.Models.CompileJob",
"CompileJob")
836 .HasForeignKey(
"CompileJobId")
837 .OnDelete(DeleteBehavior.Cascade)
841 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RepositorySettings", b =>
843 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
844 .WithOne(
"RepositorySettings")
845 .HasForeignKey(
"Tgstation.Server.Host.Models.RepositorySettings",
"InstanceId")
846 .OnDelete(DeleteBehavior.Cascade)
850 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
852 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"RevisionInformation")
853 .WithMany(
"ActiveTestMerges")
854 .HasForeignKey(
"RevisionInformationId")
855 .OnDelete(DeleteBehavior.Cascade)
858 b.HasOne(
"Tgstation.Server.Host.Models.TestMerge",
"TestMerge")
859 .WithMany(
"RevisonInformations")
860 .HasForeignKey(
"TestMergeId")
861 .OnDelete(DeleteBehavior.ClientNoAction)
865 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevisionInformation", b =>
867 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
868 .WithMany(
"RevisionInformations")
869 .HasForeignKey(
"InstanceId")
870 .OnDelete(DeleteBehavior.Cascade)
874 modelBuilder.Entity(
"Tgstation.Server.Host.Models.TestMerge", b =>
876 b.HasOne(
"Tgstation.Server.Host.Models.User",
"MergedBy")
877 .WithMany(
"TestMerges")
878 .HasForeignKey(
"MergedById")
879 .OnDelete(DeleteBehavior.Restrict)
882 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"PrimaryRevisionInformation")
883 .WithOne(
"PrimaryTestMerge")
884 .HasForeignKey(
"Tgstation.Server.Host.Models.TestMerge",
"PrimaryRevisionInformationId")
885 .OnDelete(DeleteBehavior.Cascade)
889 modelBuilder.Entity(
"Tgstation.Server.Host.Models.User", b =>
891 b.HasOne(
"Tgstation.Server.Host.Models.User",
"CreatedBy")
892 .WithMany(
"CreatedUsers")
893 .HasForeignKey(
"CreatedById");
895 b.HasOne(
"Tgstation.Server.Host.Models.UserGroup",
"Group")
897 .HasForeignKey(
"GroupId");
899#pragma warning restore 612, 618