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(max)")
268 .HasMaxLength(10000);
270 b.Property<
bool?>(
"Online")
272 .HasColumnType(
"bit");
274 b.Property<
string>(
"Path")
276 .HasColumnType(
"nvarchar(450)");
283 b.ToTable(
"Instances");
286 modelBuilder.Entity(
"Tgstation.Server.Host.Models.InstanceUser", b =>
288 b.Property<
long>(
"Id")
289 .ValueGeneratedOnAdd()
290 .HasColumnType(
"bigint")
291 .HasAnnotation(
"SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
293 b.Property<decimal>(
"ByondRights")
294 .HasColumnType(
"decimal(20,0)");
296 b.Property<decimal>(
"ChatBotRights")
297 .HasColumnType(
"decimal(20,0)");
299 b.Property<decimal>(
"ConfigurationRights")
300 .HasColumnType(
"decimal(20,0)");
302 b.Property<decimal>(
"DreamDaemonRights")
303 .HasColumnType(
"decimal(20,0)");
305 b.Property<decimal>(
"DreamMakerRights")
306 .HasColumnType(
"decimal(20,0)");
308 b.Property<
long>(
"InstanceId")
309 .HasColumnType(
"bigint");
311 b.Property<decimal>(
"InstanceUserRights")
312 .HasColumnType(
"decimal(20,0)");
314 b.Property<decimal>(
"RepositoryRights")
315 .HasColumnType(
"decimal(20,0)");
317 b.Property<
long>(
"UserId")
318 .HasColumnType(
"bigint");
322 b.HasIndex(
"InstanceId");
324 b.HasIndex(
"UserId",
"InstanceId")
327 b.ToTable(
"InstanceUsers");
330 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Job", b =>
332 b.Property<
long>(
"Id")
333 .ValueGeneratedOnAdd()
334 .HasColumnType(
"bigint")
335 .HasAnnotation(
"SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
337 b.Property<decimal?>(
"CancelRight")
338 .HasColumnType(
"decimal(20,0)");
340 b.Property<decimal?>(
"CancelRightsType")
341 .HasColumnType(
"decimal(20,0)");
343 b.Property<
bool?>(
"Cancelled")
345 .HasColumnType(
"bit");
347 b.Property<
long?>(
"CancelledById")
348 .HasColumnType(
"bigint");
350 b.Property<
string>(
"Description")
352 .HasColumnType(
"nvarchar(max)");
354 b.Property<
long?>(
"ErrorCode")
355 .HasColumnType(
"bigint");
357 b.Property<
string>(
"ExceptionDetails")
358 .HasColumnType(
"nvarchar(max)");
360 b.Property<
long>(
"InstanceId")
361 .HasColumnType(
"bigint");
363 b.Property<DateTimeOffset?>(
"StartedAt")
365 .HasColumnType(
"datetimeoffset");
367 b.Property<
long>(
"StartedById")
368 .HasColumnType(
"bigint");
370 b.Property<DateTimeOffset?>(
"StoppedAt")
371 .HasColumnType(
"datetimeoffset");
375 b.HasIndex(
"CancelledById");
377 b.HasIndex(
"InstanceId");
379 b.HasIndex(
"StartedById");
384 modelBuilder.Entity(
"Tgstation.Server.Host.Models.OAuthConnection", b =>
386 b.Property<
long>(
"Id")
387 .ValueGeneratedOnAdd()
388 .HasColumnType(
"bigint")
389 .HasAnnotation(
"SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
391 b.Property<
string>(
"ExternalUserId")
393 .HasColumnType(
"nvarchar(100)")
396 b.Property<
int>(
"Provider")
397 .HasColumnType(
"int");
399 b.Property<
long?>(
"UserId")
400 .HasColumnType(
"bigint");
404 b.HasIndex(
"UserId");
406 b.HasIndex(
"Provider",
"ExternalUserId")
409 b.ToTable(
"OAuthConnections");
412 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ReattachInformation", b =>
414 b.Property<
long>(
"Id")
415 .ValueGeneratedOnAdd()
416 .HasColumnType(
"bigint")
417 .HasAnnotation(
"SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
419 b.Property<
string>(
"AccessIdentifier")
421 .HasColumnType(
"nvarchar(max)");
423 b.Property<
long>(
"CompileJobId")
424 .HasColumnType(
"bigint");
426 b.Property<
int>(
"LaunchSecurityLevel")
427 .HasColumnType(
"int");
429 b.Property<
int>(
"Port")
430 .HasColumnType(
"int");
432 b.Property<
int>(
"ProcessId")
433 .HasColumnType(
"int");
435 b.Property<
int>(
"RebootState")
436 .HasColumnType(
"int");
440 b.HasIndex(
"CompileJobId");
442 b.ToTable(
"ReattachInformations");
445 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RepositorySettings", b =>
447 b.Property<
long>(
"Id")
448 .ValueGeneratedOnAdd()
449 .HasColumnType(
"bigint")
450 .HasAnnotation(
"SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
452 b.Property<
string>(
"AccessToken")
453 .HasColumnType(
"nvarchar(max)")
454 .HasMaxLength(10000);
456 b.Property<
string>(
"AccessUser")
457 .HasColumnType(
"nvarchar(max)")
458 .HasMaxLength(10000);
460 b.Property<
bool?>(
"AutoUpdatesKeepTestMerges")
462 .HasColumnType(
"bit");
464 b.Property<
bool?>(
"AutoUpdatesSynchronize")
466 .HasColumnType(
"bit");
468 b.Property<
string>(
"CommitterEmail")
470 .HasColumnType(
"nvarchar(max)")
471 .HasMaxLength(10000);
473 b.Property<
string>(
"CommitterName")
475 .HasColumnType(
"nvarchar(max)")
476 .HasMaxLength(10000);
478 b.Property<
bool?>(
"CreateGitHubDeployments")
480 .HasColumnType(
"bit");
482 b.Property<
long>(
"InstanceId")
483 .HasColumnType(
"bigint");
485 b.Property<
bool?>(
"PostTestMergeComment")
487 .HasColumnType(
"bit");
489 b.Property<
bool?>(
"PushTestMergeCommits")
491 .HasColumnType(
"bit");
493 b.Property<
bool?>(
"ShowTestMergeCommitters")
495 .HasColumnType(
"bit");
499 b.HasIndex(
"InstanceId")
502 b.ToTable(
"RepositorySettings");
505 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
507 b.Property<
long>(
"Id")
508 .ValueGeneratedOnAdd()
509 .HasColumnType(
"bigint")
510 .HasAnnotation(
"SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
512 b.Property<
long>(
"RevisionInformationId")
513 .HasColumnType(
"bigint");
515 b.Property<
long>(
"TestMergeId")
516 .HasColumnType(
"bigint");
520 b.HasIndex(
"RevisionInformationId");
522 b.HasIndex(
"TestMergeId");
524 b.ToTable(
"RevInfoTestMerges");
527 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevisionInformation", b =>
529 b.Property<
long>(
"Id")
530 .ValueGeneratedOnAdd()
531 .HasColumnType(
"bigint")
532 .HasAnnotation(
"SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
534 b.Property<
string>(
"CommitSha")
536 .HasColumnType(
"nvarchar(40)")
539 b.Property<
long>(
"InstanceId")
540 .HasColumnType(
"bigint");
542 b.Property<
string>(
"OriginCommitSha")
544 .HasColumnType(
"nvarchar(40)")
549 b.HasIndex(
"InstanceId",
"CommitSha")
552 b.ToTable(
"RevisionInformations");
555 modelBuilder.Entity(
"Tgstation.Server.Host.Models.TestMerge", b =>
557 b.Property<
long>(
"Id")
558 .ValueGeneratedOnAdd()
559 .HasColumnType(
"bigint")
560 .HasAnnotation(
"SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
562 b.Property<
string>(
"Author")
564 .HasColumnType(
"nvarchar(max)");
566 b.Property<
string>(
"BodyAtMerge")
568 .HasColumnType(
"nvarchar(max)");
570 b.Property<
string>(
"Comment")
571 .HasColumnType(
"nvarchar(max)")
572 .HasMaxLength(10000);
574 b.Property<DateTimeOffset>(
"MergedAt")
575 .HasColumnType(
"datetimeoffset");
577 b.Property<
long>(
"MergedById")
578 .HasColumnType(
"bigint");
580 b.Property<
int>(
"Number")
581 .HasColumnType(
"int");
583 b.Property<
long?>(
"PrimaryRevisionInformationId")
585 .HasColumnType(
"bigint");
587 b.Property<
string>(
"TargetCommitSha")
589 .HasColumnType(
"nvarchar(40)")
592 b.Property<
string>(
"TitleAtMerge")
594 .HasColumnType(
"nvarchar(max)");
596 b.Property<
string>(
"Url")
598 .HasColumnType(
"nvarchar(max)");
602 b.HasIndex(
"MergedById");
604 b.HasIndex(
"PrimaryRevisionInformationId")
607 b.ToTable(
"TestMerges");
610 modelBuilder.Entity(
"Tgstation.Server.Host.Models.User", b =>
612 b.Property<
long?>(
"Id")
613 .ValueGeneratedOnAdd()
614 .HasColumnType(
"bigint")
615 .HasAnnotation(
"SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
617 b.Property<decimal>(
"AdministrationRights")
618 .HasColumnType(
"decimal(20,0)");
620 b.Property<
string>(
"CanonicalName")
622 .HasColumnType(
"nvarchar(450)");
624 b.Property<DateTimeOffset?>(
"CreatedAt")
626 .HasColumnType(
"datetimeoffset");
628 b.Property<
long?>(
"CreatedById")
629 .HasColumnType(
"bigint");
631 b.Property<
bool?>(
"Enabled")
633 .HasColumnType(
"bit");
635 b.Property<decimal>(
"InstanceManagerRights")
636 .HasColumnType(
"decimal(20,0)");
638 b.Property<DateTimeOffset?>(
"LastPasswordUpdate")
639 .HasColumnType(
"datetimeoffset");
641 b.Property<
string>(
"Name")
643 .HasColumnType(
"nvarchar(max)")
644 .HasMaxLength(10000);
646 b.Property<
string>(
"PasswordHash")
647 .HasColumnType(
"nvarchar(max)");
649 b.Property<
string>(
"SystemIdentifier")
650 .HasColumnType(
"nvarchar(450)");
654 b.HasIndex(
"CanonicalName")
657 b.HasIndex(
"CreatedById");
659 b.HasIndex(
"SystemIdentifier")
661 .HasFilter(
"[SystemIdentifier] IS NOT NULL");
666 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatBot", b =>
668 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
669 .WithMany(
"ChatSettings")
670 .HasForeignKey(
"InstanceId")
671 .OnDelete(DeleteBehavior.Cascade)
675 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatChannel", b =>
677 b.HasOne(
"Tgstation.Server.Host.Models.ChatBot",
"ChatSettings")
678 .WithMany(
"Channels")
679 .HasForeignKey(
"ChatSettingsId")
680 .OnDelete(DeleteBehavior.Cascade)
684 modelBuilder.Entity(
"Tgstation.Server.Host.Models.CompileJob", b =>
686 b.HasOne(
"Tgstation.Server.Host.Models.Job",
"Job")
688 .HasForeignKey(
"Tgstation.Server.Host.Models.CompileJob",
"JobId")
689 .OnDelete(DeleteBehavior.Cascade)
692 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"RevisionInformation")
693 .WithMany(
"CompileJobs")
694 .HasForeignKey(
"RevisionInformationId")
695 .OnDelete(DeleteBehavior.ClientNoAction)
699 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamDaemonSettings", b =>
701 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
702 .WithOne(
"DreamDaemonSettings")
703 .HasForeignKey(
"Tgstation.Server.Host.Models.DreamDaemonSettings",
"InstanceId")
704 .OnDelete(DeleteBehavior.Cascade)
708 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamMakerSettings", b =>
710 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
711 .WithOne(
"DreamMakerSettings")
712 .HasForeignKey(
"Tgstation.Server.Host.Models.DreamMakerSettings",
"InstanceId")
713 .OnDelete(DeleteBehavior.Cascade)
717 modelBuilder.Entity(
"Tgstation.Server.Host.Models.InstanceUser", b =>
719 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
720 .WithMany(
"InstanceUsers")
721 .HasForeignKey(
"InstanceId")
722 .OnDelete(DeleteBehavior.Cascade)
725 b.HasOne(
"Tgstation.Server.Host.Models.User",
null)
726 .WithMany(
"InstanceUsers")
727 .HasForeignKey(
"UserId")
728 .OnDelete(DeleteBehavior.Cascade)
732 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Job", b =>
734 b.HasOne(
"Tgstation.Server.Host.Models.User",
"CancelledBy")
736 .HasForeignKey(
"CancelledById");
738 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
740 .HasForeignKey(
"InstanceId")
741 .OnDelete(DeleteBehavior.Cascade)
744 b.HasOne(
"Tgstation.Server.Host.Models.User",
"StartedBy")
746 .HasForeignKey(
"StartedById")
747 .OnDelete(DeleteBehavior.Cascade)
751 modelBuilder.Entity(
"Tgstation.Server.Host.Models.OAuthConnection", b =>
753 b.HasOne(
"Tgstation.Server.Host.Models.User",
"User")
754 .WithMany(
"OAuthConnections")
755 .HasForeignKey(
"UserId")
756 .OnDelete(DeleteBehavior.Cascade);
759 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ReattachInformation", b =>
761 b.HasOne(
"Tgstation.Server.Host.Models.CompileJob",
"CompileJob")
763 .HasForeignKey(
"CompileJobId")
764 .OnDelete(DeleteBehavior.Cascade)
768 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RepositorySettings", b =>
770 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
771 .WithOne(
"RepositorySettings")
772 .HasForeignKey(
"Tgstation.Server.Host.Models.RepositorySettings",
"InstanceId")
773 .OnDelete(DeleteBehavior.Cascade)
777 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
779 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"RevisionInformation")
780 .WithMany(
"ActiveTestMerges")
781 .HasForeignKey(
"RevisionInformationId")
782 .OnDelete(DeleteBehavior.Cascade)
785 b.HasOne(
"Tgstation.Server.Host.Models.TestMerge",
"TestMerge")
786 .WithMany(
"RevisonInformations")
787 .HasForeignKey(
"TestMergeId")
788 .OnDelete(DeleteBehavior.ClientNoAction)
792 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevisionInformation", b =>
794 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
795 .WithMany(
"RevisionInformations")
796 .HasForeignKey(
"InstanceId")
797 .OnDelete(DeleteBehavior.Cascade)
801 modelBuilder.Entity(
"Tgstation.Server.Host.Models.TestMerge", b =>
803 b.HasOne(
"Tgstation.Server.Host.Models.User",
"MergedBy")
804 .WithMany(
"TestMerges")
805 .HasForeignKey(
"MergedById")
806 .OnDelete(DeleteBehavior.Restrict)
809 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"PrimaryRevisionInformation")
810 .WithOne(
"PrimaryTestMerge")
811 .HasForeignKey(
"Tgstation.Server.Host.Models.TestMerge",
"PrimaryRevisionInformationId")
812 .OnDelete(DeleteBehavior.Cascade)
816 modelBuilder.Entity(
"Tgstation.Server.Host.Models.User", b =>
818 b.HasOne(
"Tgstation.Server.Host.Models.User",
"CreatedBy")
819 .WithMany(
"CreatedUsers")
820 .HasForeignKey(
"CreatedById");
822#pragma warning restore 612, 618