17#pragma warning disable 612, 618
19 .HasAnnotation(
"ProductVersion",
"3.1.4")
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<
long>(
"JobId")
138 .HasColumnType(
"bigint");
140 b.Property<
int>(
"MinimumSecurityLevel")
141 .HasColumnType(
"int");
143 b.Property<
string>(
"Output")
145 .HasColumnType(
"nvarchar(max)");
147 b.Property<
long>(
"RevisionInformationId")
148 .HasColumnType(
"bigint");
152 b.HasIndex(
"DirectoryName");
157 b.HasIndex(
"RevisionInformationId");
159 b.ToTable(
"CompileJobs");
162 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamDaemonSettings", b =>
164 b.Property<
long>(
"Id")
165 .ValueGeneratedOnAdd()
166 .HasColumnType(
"bigint")
167 .HasAnnotation(
"SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
169 b.Property<
bool?>(
"AllowWebClient")
171 .HasColumnType(
"bit");
173 b.Property<
bool?>(
"AutoStart")
175 .HasColumnType(
"bit");
177 b.Property<
long>(
"HeartbeatSeconds")
178 .HasColumnType(
"bigint");
180 b.Property<
long>(
"InstanceId")
181 .HasColumnType(
"bigint");
183 b.Property<
int>(
"PrimaryPort")
184 .HasColumnType(
"int");
186 b.Property<
int>(
"SecondaryPort")
187 .HasColumnType(
"int");
189 b.Property<
int>(
"SecurityLevel")
190 .HasColumnType(
"int");
192 b.Property<
long>(
"StartupTimeout")
193 .HasColumnType(
"bigint");
195 b.Property<
long>(
"TopicRequestTimeout")
196 .HasColumnType(
"bigint");
200 b.HasIndex(
"InstanceId")
203 b.ToTable(
"DreamDaemonSettings");
206 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamMakerSettings", b =>
208 b.Property<
long>(
"Id")
209 .ValueGeneratedOnAdd()
210 .HasColumnType(
"bigint")
211 .HasAnnotation(
"SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
213 b.Property<
int>(
"ApiValidationPort")
214 .HasColumnType(
"int");
216 b.Property<
int>(
"ApiValidationSecurityLevel")
217 .HasColumnType(
"int");
219 b.Property<
long>(
"InstanceId")
220 .HasColumnType(
"bigint");
222 b.Property<
string>(
"ProjectName")
223 .HasColumnType(
"nvarchar(max)")
224 .HasMaxLength(10000);
228 b.HasIndex(
"InstanceId")
231 b.ToTable(
"DreamMakerSettings");
234 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DualReattachInformation", b =>
236 b.Property<
long>(
"Id")
237 .ValueGeneratedOnAdd()
238 .HasColumnType(
"bigint")
239 .HasAnnotation(
"SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
241 b.Property<
long?>(
"AlphaId")
242 .HasColumnType(
"bigint");
244 b.Property<
bool>(
"AlphaIsActive")
245 .HasColumnType(
"bit");
247 b.Property<
long?>(
"BravoId")
248 .HasColumnType(
"bigint");
250 b.Property<
long>(
"InstanceId")
251 .HasColumnType(
"bigint");
255 b.HasIndex(
"AlphaId");
257 b.HasIndex(
"BravoId");
259 b.HasIndex(
"InstanceId")
262 b.ToTable(
"WatchdogReattachInformations");
265 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Instance", b =>
267 b.Property<
long>(
"Id")
268 .ValueGeneratedOnAdd()
269 .HasColumnType(
"bigint")
270 .HasAnnotation(
"SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
272 b.Property<
long>(
"AutoUpdateInterval")
273 .HasColumnType(
"bigint");
275 b.Property<
int>(
"ChatBotLimit")
276 .HasColumnType(
"int");
278 b.Property<
int>(
"ConfigurationType")
279 .HasColumnType(
"int");
281 b.Property<
string>(
"Name")
283 .HasColumnType(
"nvarchar(max)")
284 .HasMaxLength(10000);
286 b.Property<
bool?>(
"Online")
288 .HasColumnType(
"bit");
290 b.Property<
string>(
"Path")
292 .HasColumnType(
"nvarchar(450)");
299 b.ToTable(
"Instances");
302 modelBuilder.Entity(
"Tgstation.Server.Host.Models.InstanceUser", b =>
304 b.Property<
long>(
"Id")
305 .ValueGeneratedOnAdd()
306 .HasColumnType(
"bigint")
307 .HasAnnotation(
"SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
309 b.Property<decimal>(
"ByondRights")
310 .HasColumnType(
"decimal(20,0)");
312 b.Property<decimal>(
"ChatBotRights")
313 .HasColumnType(
"decimal(20,0)");
315 b.Property<decimal>(
"ConfigurationRights")
316 .HasColumnType(
"decimal(20,0)");
318 b.Property<decimal>(
"DreamDaemonRights")
319 .HasColumnType(
"decimal(20,0)");
321 b.Property<decimal>(
"DreamMakerRights")
322 .HasColumnType(
"decimal(20,0)");
324 b.Property<
long>(
"InstanceId")
325 .HasColumnType(
"bigint");
327 b.Property<decimal>(
"InstanceUserRights")
328 .HasColumnType(
"decimal(20,0)");
330 b.Property<decimal>(
"RepositoryRights")
331 .HasColumnType(
"decimal(20,0)");
333 b.Property<
long?>(
"UserId")
335 .HasColumnType(
"bigint");
339 b.HasIndex(
"InstanceId");
341 b.HasIndex(
"UserId",
"InstanceId")
344 b.ToTable(
"InstanceUsers");
347 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Job", b =>
349 b.Property<
long>(
"Id")
350 .ValueGeneratedOnAdd()
351 .HasColumnType(
"bigint")
352 .HasAnnotation(
"SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
354 b.Property<decimal?>(
"CancelRight")
355 .HasColumnType(
"decimal(20,0)");
357 b.Property<decimal?>(
"CancelRightsType")
358 .HasColumnType(
"decimal(20,0)");
360 b.Property<
bool?>(
"Cancelled")
362 .HasColumnType(
"bit");
364 b.Property<
long?>(
"CancelledById")
365 .HasColumnType(
"bigint");
367 b.Property<
string>(
"Description")
369 .HasColumnType(
"nvarchar(max)");
371 b.Property<
long?>(
"ErrorCode")
372 .HasColumnType(
"bigint");
374 b.Property<
string>(
"ExceptionDetails")
375 .HasColumnType(
"nvarchar(max)");
377 b.Property<
long>(
"InstanceId")
378 .HasColumnType(
"bigint");
380 b.Property<DateTimeOffset?>(
"StartedAt")
382 .HasColumnType(
"datetimeoffset");
384 b.Property<
long>(
"StartedById")
385 .HasColumnType(
"bigint");
387 b.Property<DateTimeOffset?>(
"StoppedAt")
388 .HasColumnType(
"datetimeoffset");
392 b.HasIndex(
"CancelledById");
394 b.HasIndex(
"InstanceId");
396 b.HasIndex(
"StartedById");
401 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ReattachInformation", b =>
403 b.Property<
long>(
"Id")
404 .ValueGeneratedOnAdd()
405 .HasColumnType(
"bigint")
406 .HasAnnotation(
"SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
408 b.Property<
string>(
"AccessIdentifier")
410 .HasColumnType(
"nvarchar(max)");
412 b.Property<
long>(
"CompileJobId")
413 .HasColumnType(
"bigint");
415 b.Property<
bool>(
"IsPrimary")
416 .HasColumnType(
"bit");
418 b.Property<
int>(
"LaunchSecurityLevel")
419 .HasColumnType(
"int");
421 b.Property<
int>(
"Port")
422 .HasColumnType(
"int");
424 b.Property<
int>(
"ProcessId")
425 .HasColumnType(
"int");
427 b.Property<
int>(
"RebootState")
428 .HasColumnType(
"int");
432 b.HasIndex(
"CompileJobId");
434 b.ToTable(
"ReattachInformations");
437 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RepositorySettings", b =>
439 b.Property<
long>(
"Id")
440 .ValueGeneratedOnAdd()
441 .HasColumnType(
"bigint")
442 .HasAnnotation(
"SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
444 b.Property<
string>(
"AccessToken")
445 .HasColumnType(
"nvarchar(max)")
446 .HasMaxLength(10000);
448 b.Property<
string>(
"AccessUser")
449 .HasColumnType(
"nvarchar(max)")
450 .HasMaxLength(10000);
452 b.Property<
bool?>(
"AutoUpdatesKeepTestMerges")
454 .HasColumnType(
"bit");
456 b.Property<
bool?>(
"AutoUpdatesSynchronize")
458 .HasColumnType(
"bit");
460 b.Property<
string>(
"CommitterEmail")
462 .HasColumnType(
"nvarchar(max)")
463 .HasMaxLength(10000);
465 b.Property<
string>(
"CommitterName")
467 .HasColumnType(
"nvarchar(max)")
468 .HasMaxLength(10000);
470 b.Property<
long>(
"InstanceId")
471 .HasColumnType(
"bigint");
473 b.Property<
bool?>(
"PostTestMergeComment")
475 .HasColumnType(
"bit");
477 b.Property<
bool?>(
"PushTestMergeCommits")
479 .HasColumnType(
"bit");
481 b.Property<
bool?>(
"ShowTestMergeCommitters")
483 .HasColumnType(
"bit");
487 b.HasIndex(
"InstanceId")
490 b.ToTable(
"RepositorySettings");
493 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
495 b.Property<
long>(
"Id")
496 .ValueGeneratedOnAdd()
497 .HasColumnType(
"bigint")
498 .HasAnnotation(
"SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
500 b.Property<
long>(
"RevisionInformationId")
501 .HasColumnType(
"bigint");
503 b.Property<
long>(
"TestMergeId")
504 .HasColumnType(
"bigint");
508 b.HasIndex(
"RevisionInformationId");
510 b.HasIndex(
"TestMergeId");
512 b.ToTable(
"RevInfoTestMerges");
515 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevisionInformation", b =>
517 b.Property<
long>(
"Id")
518 .ValueGeneratedOnAdd()
519 .HasColumnType(
"bigint")
520 .HasAnnotation(
"SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
522 b.Property<
string>(
"CommitSha")
524 .HasColumnType(
"nvarchar(40)")
527 b.Property<
long>(
"InstanceId")
528 .HasColumnType(
"bigint");
530 b.Property<
string>(
"OriginCommitSha")
532 .HasColumnType(
"nvarchar(40)")
537 b.HasIndex(
"InstanceId",
"CommitSha")
540 b.ToTable(
"RevisionInformations");
543 modelBuilder.Entity(
"Tgstation.Server.Host.Models.TestMerge", b =>
545 b.Property<
long>(
"Id")
546 .ValueGeneratedOnAdd()
547 .HasColumnType(
"bigint")
548 .HasAnnotation(
"SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
550 b.Property<
string>(
"Author")
552 .HasColumnType(
"nvarchar(max)");
554 b.Property<
string>(
"BodyAtMerge")
556 .HasColumnType(
"nvarchar(max)");
558 b.Property<
string>(
"Comment")
559 .HasColumnType(
"nvarchar(max)")
560 .HasMaxLength(10000);
562 b.Property<DateTimeOffset>(
"MergedAt")
563 .HasColumnType(
"datetimeoffset");
565 b.Property<
long>(
"MergedById")
566 .HasColumnType(
"bigint");
568 b.Property<
int>(
"Number")
569 .HasColumnType(
"int");
571 b.Property<
long?>(
"PrimaryRevisionInformationId")
573 .HasColumnType(
"bigint");
575 b.Property<
string>(
"PullRequestRevision")
577 .HasColumnType(
"nvarchar(40)")
580 b.Property<
string>(
"TitleAtMerge")
582 .HasColumnType(
"nvarchar(max)");
584 b.Property<
string>(
"Url")
586 .HasColumnType(
"nvarchar(max)");
590 b.HasIndex(
"MergedById");
592 b.HasIndex(
"PrimaryRevisionInformationId")
595 b.ToTable(
"TestMerges");
598 modelBuilder.Entity(
"Tgstation.Server.Host.Models.User", b =>
600 b.Property<
long?>(
"Id")
601 .ValueGeneratedOnAdd()
602 .HasColumnType(
"bigint")
603 .HasAnnotation(
"SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
605 b.Property<decimal>(
"AdministrationRights")
606 .HasColumnType(
"decimal(20,0)");
608 b.Property<
string>(
"CanonicalName")
610 .HasColumnType(
"nvarchar(450)");
612 b.Property<DateTimeOffset?>(
"CreatedAt")
614 .HasColumnType(
"datetimeoffset");
616 b.Property<
long?>(
"CreatedById")
617 .HasColumnType(
"bigint");
619 b.Property<
bool?>(
"Enabled")
621 .HasColumnType(
"bit");
623 b.Property<decimal>(
"InstanceManagerRights")
624 .HasColumnType(
"decimal(20,0)");
626 b.Property<DateTimeOffset?>(
"LastPasswordUpdate")
627 .HasColumnType(
"datetimeoffset");
629 b.Property<
string>(
"Name")
631 .HasColumnType(
"nvarchar(max)")
632 .HasMaxLength(10000);
634 b.Property<
string>(
"PasswordHash")
635 .HasColumnType(
"nvarchar(max)");
637 b.Property<
string>(
"SystemIdentifier")
638 .HasColumnType(
"nvarchar(450)");
642 b.HasIndex(
"CanonicalName")
645 b.HasIndex(
"CreatedById");
647 b.HasIndex(
"SystemIdentifier")
649 .HasFilter(
"[SystemIdentifier] IS NOT NULL");
654 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatBot", b =>
656 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
657 .WithMany(
"ChatSettings")
658 .HasForeignKey(
"InstanceId")
659 .OnDelete(DeleteBehavior.Cascade)
663 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatChannel", b =>
665 b.HasOne(
"Tgstation.Server.Host.Models.ChatBot",
"ChatSettings")
666 .WithMany(
"Channels")
667 .HasForeignKey(
"ChatSettingsId")
668 .OnDelete(DeleteBehavior.Cascade)
672 modelBuilder.Entity(
"Tgstation.Server.Host.Models.CompileJob", b =>
674 b.HasOne(
"Tgstation.Server.Host.Models.Job",
"Job")
676 .HasForeignKey(
"Tgstation.Server.Host.Models.CompileJob",
"JobId")
677 .OnDelete(DeleteBehavior.Cascade)
680 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"RevisionInformation")
681 .WithMany(
"CompileJobs")
682 .HasForeignKey(
"RevisionInformationId")
683 .OnDelete(DeleteBehavior.ClientNoAction)
687 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamDaemonSettings", b =>
689 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
690 .WithOne(
"DreamDaemonSettings")
691 .HasForeignKey(
"Tgstation.Server.Host.Models.DreamDaemonSettings",
"InstanceId")
692 .OnDelete(DeleteBehavior.Cascade)
696 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamMakerSettings", b =>
698 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
699 .WithOne(
"DreamMakerSettings")
700 .HasForeignKey(
"Tgstation.Server.Host.Models.DreamMakerSettings",
"InstanceId")
701 .OnDelete(DeleteBehavior.Cascade)
705 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DualReattachInformation", b =>
707 b.HasOne(
"Tgstation.Server.Host.Models.ReattachInformation",
"Alpha")
709 .HasForeignKey(
"AlphaId");
711 b.HasOne(
"Tgstation.Server.Host.Models.ReattachInformation",
"Bravo")
713 .HasForeignKey(
"BravoId");
715 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
null)
716 .WithOne(
"WatchdogReattachInformation")
717 .HasForeignKey(
"Tgstation.Server.Host.Models.DualReattachInformation",
"InstanceId")
718 .OnDelete(DeleteBehavior.Cascade)
722 modelBuilder.Entity(
"Tgstation.Server.Host.Models.InstanceUser", b =>
724 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
725 .WithMany(
"InstanceUsers")
726 .HasForeignKey(
"InstanceId")
727 .OnDelete(DeleteBehavior.Cascade)
730 b.HasOne(
"Tgstation.Server.Host.Models.User",
null)
731 .WithMany(
"InstanceUsers")
732 .HasForeignKey(
"UserId")
733 .OnDelete(DeleteBehavior.Cascade)
737 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Job", b =>
739 b.HasOne(
"Tgstation.Server.Host.Models.User",
"CancelledBy")
741 .HasForeignKey(
"CancelledById");
743 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
745 .HasForeignKey(
"InstanceId")
746 .OnDelete(DeleteBehavior.Cascade)
749 b.HasOne(
"Tgstation.Server.Host.Models.User",
"StartedBy")
751 .HasForeignKey(
"StartedById")
752 .OnDelete(DeleteBehavior.Cascade)
756 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ReattachInformation", b =>
758 b.HasOne(
"Tgstation.Server.Host.Models.CompileJob",
"CompileJob")
760 .HasForeignKey(
"CompileJobId")
761 .OnDelete(DeleteBehavior.Cascade)
765 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RepositorySettings", b =>
767 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
768 .WithOne(
"RepositorySettings")
769 .HasForeignKey(
"Tgstation.Server.Host.Models.RepositorySettings",
"InstanceId")
770 .OnDelete(DeleteBehavior.Cascade)
774 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
776 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"RevisionInformation")
777 .WithMany(
"ActiveTestMerges")
778 .HasForeignKey(
"RevisionInformationId")
779 .OnDelete(DeleteBehavior.Cascade)
782 b.HasOne(
"Tgstation.Server.Host.Models.TestMerge",
"TestMerge")
783 .WithMany(
"RevisonInformations")
784 .HasForeignKey(
"TestMergeId")
785 .OnDelete(DeleteBehavior.ClientNoAction)
789 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevisionInformation", b =>
791 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
792 .WithMany(
"RevisionInformations")
793 .HasForeignKey(
"InstanceId")
794 .OnDelete(DeleteBehavior.Cascade)
798 modelBuilder.Entity(
"Tgstation.Server.Host.Models.TestMerge", b =>
800 b.HasOne(
"Tgstation.Server.Host.Models.User",
"MergedBy")
801 .WithMany(
"TestMerges")
802 .HasForeignKey(
"MergedById")
803 .OnDelete(DeleteBehavior.Restrict)
806 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"PrimaryRevisionInformation")
807 .WithOne(
"PrimaryTestMerge")
808 .HasForeignKey(
"Tgstation.Server.Host.Models.TestMerge",
"PrimaryRevisionInformationId")
809 .OnDelete(DeleteBehavior.Cascade)
813 modelBuilder.Entity(
"Tgstation.Server.Host.Models.User", b =>
815 b.HasOne(
"Tgstation.Server.Host.Models.User",
"CreatedBy")
816 .WithMany(
"CreatedUsers")
817 .HasForeignKey(
"CreatedById");
819#pragma warning restore 612, 618