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<
long>(
"RevisionInformationId")
154 .HasColumnType(
"bigint");
158 b.HasIndex(
"DirectoryName");
163 b.HasIndex(
"RevisionInformationId");
165 b.ToTable(
"CompileJobs");
168 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamDaemonSettings", b =>
170 b.Property<
long>(
"Id")
171 .ValueGeneratedOnAdd()
172 .HasColumnType(
"bigint")
173 .HasAnnotation(
"SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
175 b.Property<
string>(
"AdditionalParameters")
177 .HasColumnType(
"nvarchar(max)")
178 .HasMaxLength(10000);
180 b.Property<
bool?>(
"AllowWebClient")
182 .HasColumnType(
"bit");
184 b.Property<
bool?>(
"AutoStart")
186 .HasColumnType(
"bit");
188 b.Property<
long>(
"HeartbeatSeconds")
189 .HasColumnType(
"bigint");
191 b.Property<
long>(
"InstanceId")
192 .HasColumnType(
"bigint");
194 b.Property<
int>(
"Port")
195 .HasColumnType(
"int");
197 b.Property<
int>(
"SecurityLevel")
198 .HasColumnType(
"int");
200 b.Property<
long>(
"StartupTimeout")
201 .HasColumnType(
"bigint");
203 b.Property<
long>(
"TopicRequestTimeout")
204 .HasColumnType(
"bigint");
208 b.HasIndex(
"InstanceId")
211 b.ToTable(
"DreamDaemonSettings");
214 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamMakerSettings", b =>
216 b.Property<
long>(
"Id")
217 .ValueGeneratedOnAdd()
218 .HasColumnType(
"bigint")
219 .HasAnnotation(
"SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
221 b.Property<
int>(
"ApiValidationPort")
222 .HasColumnType(
"int");
224 b.Property<
int>(
"ApiValidationSecurityLevel")
225 .HasColumnType(
"int");
227 b.Property<
long>(
"InstanceId")
228 .HasColumnType(
"bigint");
230 b.Property<
string>(
"ProjectName")
231 .HasColumnType(
"nvarchar(max)")
232 .HasMaxLength(10000);
234 b.Property<
bool?>(
"RequireDMApiValidation")
236 .HasColumnType(
"bit");
240 b.HasIndex(
"InstanceId")
243 b.ToTable(
"DreamMakerSettings");
246 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Instance", b =>
248 b.Property<
long>(
"Id")
249 .ValueGeneratedOnAdd()
250 .HasColumnType(
"bigint")
251 .HasAnnotation(
"SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
253 b.Property<
long>(
"AutoUpdateInterval")
254 .HasColumnType(
"bigint");
256 b.Property<
int>(
"ChatBotLimit")
257 .HasColumnType(
"int");
259 b.Property<
int>(
"ConfigurationType")
260 .HasColumnType(
"int");
262 b.Property<
string>(
"Name")
264 .HasColumnType(
"nvarchar(max)")
265 .HasMaxLength(10000);
267 b.Property<
bool?>(
"Online")
269 .HasColumnType(
"bit");
271 b.Property<
string>(
"Path")
273 .HasColumnType(
"nvarchar(450)");
280 b.ToTable(
"Instances");
283 modelBuilder.Entity(
"Tgstation.Server.Host.Models.InstanceUser", b =>
285 b.Property<
long>(
"Id")
286 .ValueGeneratedOnAdd()
287 .HasColumnType(
"bigint")
288 .HasAnnotation(
"SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
290 b.Property<decimal>(
"ByondRights")
291 .HasColumnType(
"decimal(20,0)");
293 b.Property<decimal>(
"ChatBotRights")
294 .HasColumnType(
"decimal(20,0)");
296 b.Property<decimal>(
"ConfigurationRights")
297 .HasColumnType(
"decimal(20,0)");
299 b.Property<decimal>(
"DreamDaemonRights")
300 .HasColumnType(
"decimal(20,0)");
302 b.Property<decimal>(
"DreamMakerRights")
303 .HasColumnType(
"decimal(20,0)");
305 b.Property<
long>(
"InstanceId")
306 .HasColumnType(
"bigint");
308 b.Property<decimal>(
"InstanceUserRights")
309 .HasColumnType(
"decimal(20,0)");
311 b.Property<decimal>(
"RepositoryRights")
312 .HasColumnType(
"decimal(20,0)");
314 b.Property<
long>(
"UserId")
315 .HasColumnType(
"bigint");
319 b.HasIndex(
"InstanceId");
321 b.HasIndex(
"UserId",
"InstanceId")
324 b.ToTable(
"InstanceUsers");
327 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Job", b =>
329 b.Property<
long>(
"Id")
330 .ValueGeneratedOnAdd()
331 .HasColumnType(
"bigint")
332 .HasAnnotation(
"SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
334 b.Property<decimal?>(
"CancelRight")
335 .HasColumnType(
"decimal(20,0)");
337 b.Property<decimal?>(
"CancelRightsType")
338 .HasColumnType(
"decimal(20,0)");
340 b.Property<
bool?>(
"Cancelled")
342 .HasColumnType(
"bit");
344 b.Property<
long?>(
"CancelledById")
345 .HasColumnType(
"bigint");
347 b.Property<
string>(
"Description")
349 .HasColumnType(
"nvarchar(max)");
351 b.Property<
long?>(
"ErrorCode")
352 .HasColumnType(
"bigint");
354 b.Property<
string>(
"ExceptionDetails")
355 .HasColumnType(
"nvarchar(max)");
357 b.Property<
long>(
"InstanceId")
358 .HasColumnType(
"bigint");
360 b.Property<DateTimeOffset?>(
"StartedAt")
362 .HasColumnType(
"datetimeoffset");
364 b.Property<
long>(
"StartedById")
365 .HasColumnType(
"bigint");
367 b.Property<DateTimeOffset?>(
"StoppedAt")
368 .HasColumnType(
"datetimeoffset");
372 b.HasIndex(
"CancelledById");
374 b.HasIndex(
"InstanceId");
376 b.HasIndex(
"StartedById");
381 modelBuilder.Entity(
"Tgstation.Server.Host.Models.OAuthConnection", b =>
383 b.Property<
long>(
"Id")
384 .ValueGeneratedOnAdd()
385 .HasColumnType(
"bigint")
386 .HasAnnotation(
"SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
388 b.Property<
string>(
"ExternalUserId")
390 .HasColumnType(
"nvarchar(100)")
393 b.Property<
int>(
"Provider")
394 .HasColumnType(
"int");
396 b.Property<
long?>(
"UserId")
397 .HasColumnType(
"bigint");
401 b.HasIndex(
"UserId");
403 b.HasIndex(
"Provider",
"ExternalUserId")
406 b.ToTable(
"OAuthConnections");
409 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ReattachInformation", b =>
411 b.Property<
long>(
"Id")
412 .ValueGeneratedOnAdd()
413 .HasColumnType(
"bigint")
414 .HasAnnotation(
"SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
416 b.Property<
string>(
"AccessIdentifier")
418 .HasColumnType(
"nvarchar(max)");
420 b.Property<
long>(
"CompileJobId")
421 .HasColumnType(
"bigint");
423 b.Property<
int>(
"LaunchSecurityLevel")
424 .HasColumnType(
"int");
426 b.Property<
int>(
"Port")
427 .HasColumnType(
"int");
429 b.Property<
int>(
"ProcessId")
430 .HasColumnType(
"int");
432 b.Property<
int>(
"RebootState")
433 .HasColumnType(
"int");
437 b.HasIndex(
"CompileJobId");
439 b.ToTable(
"ReattachInformations");
442 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RepositorySettings", b =>
444 b.Property<
long>(
"Id")
445 .ValueGeneratedOnAdd()
446 .HasColumnType(
"bigint")
447 .HasAnnotation(
"SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
449 b.Property<
string>(
"AccessToken")
450 .HasColumnType(
"nvarchar(max)")
451 .HasMaxLength(10000);
453 b.Property<
string>(
"AccessUser")
454 .HasColumnType(
"nvarchar(max)")
455 .HasMaxLength(10000);
457 b.Property<
bool?>(
"AutoUpdatesKeepTestMerges")
459 .HasColumnType(
"bit");
461 b.Property<
bool?>(
"AutoUpdatesSynchronize")
463 .HasColumnType(
"bit");
465 b.Property<
string>(
"CommitterEmail")
467 .HasColumnType(
"nvarchar(max)")
468 .HasMaxLength(10000);
470 b.Property<
string>(
"CommitterName")
472 .HasColumnType(
"nvarchar(max)")
473 .HasMaxLength(10000);
475 b.Property<
bool?>(
"CreateGitHubDeployments")
477 .HasColumnType(
"bit");
479 b.Property<
long>(
"InstanceId")
480 .HasColumnType(
"bigint");
482 b.Property<
bool?>(
"PostTestMergeComment")
484 .HasColumnType(
"bit");
486 b.Property<
bool?>(
"PushTestMergeCommits")
488 .HasColumnType(
"bit");
490 b.Property<
bool?>(
"ShowTestMergeCommitters")
492 .HasColumnType(
"bit");
496 b.HasIndex(
"InstanceId")
499 b.ToTable(
"RepositorySettings");
502 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
504 b.Property<
long>(
"Id")
505 .ValueGeneratedOnAdd()
506 .HasColumnType(
"bigint")
507 .HasAnnotation(
"SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
509 b.Property<
long>(
"RevisionInformationId")
510 .HasColumnType(
"bigint");
512 b.Property<
long>(
"TestMergeId")
513 .HasColumnType(
"bigint");
517 b.HasIndex(
"RevisionInformationId");
519 b.HasIndex(
"TestMergeId");
521 b.ToTable(
"RevInfoTestMerges");
524 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevisionInformation", b =>
526 b.Property<
long>(
"Id")
527 .ValueGeneratedOnAdd()
528 .HasColumnType(
"bigint")
529 .HasAnnotation(
"SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
531 b.Property<
string>(
"CommitSha")
533 .HasColumnType(
"nvarchar(40)")
536 b.Property<
long>(
"InstanceId")
537 .HasColumnType(
"bigint");
539 b.Property<
string>(
"OriginCommitSha")
541 .HasColumnType(
"nvarchar(40)")
546 b.HasIndex(
"InstanceId",
"CommitSha")
549 b.ToTable(
"RevisionInformations");
552 modelBuilder.Entity(
"Tgstation.Server.Host.Models.TestMerge", b =>
554 b.Property<
long>(
"Id")
555 .ValueGeneratedOnAdd()
556 .HasColumnType(
"bigint")
557 .HasAnnotation(
"SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
559 b.Property<
string>(
"Author")
561 .HasColumnType(
"nvarchar(max)");
563 b.Property<
string>(
"BodyAtMerge")
565 .HasColumnType(
"nvarchar(max)");
567 b.Property<
string>(
"Comment")
568 .HasColumnType(
"nvarchar(max)")
569 .HasMaxLength(10000);
571 b.Property<DateTimeOffset>(
"MergedAt")
572 .HasColumnType(
"datetimeoffset");
574 b.Property<
long>(
"MergedById")
575 .HasColumnType(
"bigint");
577 b.Property<
int>(
"Number")
578 .HasColumnType(
"int");
580 b.Property<
long?>(
"PrimaryRevisionInformationId")
582 .HasColumnType(
"bigint");
584 b.Property<
string>(
"PullRequestRevision")
586 .HasColumnType(
"nvarchar(40)")
589 b.Property<
string>(
"TitleAtMerge")
591 .HasColumnType(
"nvarchar(max)");
593 b.Property<
string>(
"Url")
595 .HasColumnType(
"nvarchar(max)");
599 b.HasIndex(
"MergedById");
601 b.HasIndex(
"PrimaryRevisionInformationId")
604 b.ToTable(
"TestMerges");
607 modelBuilder.Entity(
"Tgstation.Server.Host.Models.User", b =>
609 b.Property<
long?>(
"Id")
610 .ValueGeneratedOnAdd()
611 .HasColumnType(
"bigint")
612 .HasAnnotation(
"SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
614 b.Property<decimal>(
"AdministrationRights")
615 .HasColumnType(
"decimal(20,0)");
617 b.Property<
string>(
"CanonicalName")
619 .HasColumnType(
"nvarchar(450)");
621 b.Property<DateTimeOffset?>(
"CreatedAt")
623 .HasColumnType(
"datetimeoffset");
625 b.Property<
long?>(
"CreatedById")
626 .HasColumnType(
"bigint");
628 b.Property<
bool?>(
"Enabled")
630 .HasColumnType(
"bit");
632 b.Property<decimal>(
"InstanceManagerRights")
633 .HasColumnType(
"decimal(20,0)");
635 b.Property<DateTimeOffset?>(
"LastPasswordUpdate")
636 .HasColumnType(
"datetimeoffset");
638 b.Property<
string>(
"Name")
640 .HasColumnType(
"nvarchar(max)")
641 .HasMaxLength(10000);
643 b.Property<
string>(
"PasswordHash")
644 .HasColumnType(
"nvarchar(max)");
646 b.Property<
string>(
"SystemIdentifier")
647 .HasColumnType(
"nvarchar(450)");
651 b.HasIndex(
"CanonicalName")
654 b.HasIndex(
"CreatedById");
656 b.HasIndex(
"SystemIdentifier")
658 .HasFilter(
"[SystemIdentifier] IS NOT NULL");
663 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatBot", b =>
665 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
666 .WithMany(
"ChatSettings")
667 .HasForeignKey(
"InstanceId")
668 .OnDelete(DeleteBehavior.Cascade)
672 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatChannel", b =>
674 b.HasOne(
"Tgstation.Server.Host.Models.ChatBot",
"ChatSettings")
675 .WithMany(
"Channels")
676 .HasForeignKey(
"ChatSettingsId")
677 .OnDelete(DeleteBehavior.Cascade)
681 modelBuilder.Entity(
"Tgstation.Server.Host.Models.CompileJob", b =>
683 b.HasOne(
"Tgstation.Server.Host.Models.Job",
"Job")
685 .HasForeignKey(
"Tgstation.Server.Host.Models.CompileJob",
"JobId")
686 .OnDelete(DeleteBehavior.Cascade)
689 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"RevisionInformation")
690 .WithMany(
"CompileJobs")
691 .HasForeignKey(
"RevisionInformationId")
692 .OnDelete(DeleteBehavior.ClientNoAction)
696 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamDaemonSettings", b =>
698 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
699 .WithOne(
"DreamDaemonSettings")
700 .HasForeignKey(
"Tgstation.Server.Host.Models.DreamDaemonSettings",
"InstanceId")
701 .OnDelete(DeleteBehavior.Cascade)
705 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamMakerSettings", b =>
707 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
708 .WithOne(
"DreamMakerSettings")
709 .HasForeignKey(
"Tgstation.Server.Host.Models.DreamMakerSettings",
"InstanceId")
710 .OnDelete(DeleteBehavior.Cascade)
714 modelBuilder.Entity(
"Tgstation.Server.Host.Models.InstanceUser", b =>
716 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
717 .WithMany(
"InstanceUsers")
718 .HasForeignKey(
"InstanceId")
719 .OnDelete(DeleteBehavior.Cascade)
722 b.HasOne(
"Tgstation.Server.Host.Models.User",
null)
723 .WithMany(
"InstanceUsers")
724 .HasForeignKey(
"UserId")
725 .OnDelete(DeleteBehavior.Cascade)
729 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Job", b =>
731 b.HasOne(
"Tgstation.Server.Host.Models.User",
"CancelledBy")
733 .HasForeignKey(
"CancelledById");
735 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
737 .HasForeignKey(
"InstanceId")
738 .OnDelete(DeleteBehavior.Cascade)
741 b.HasOne(
"Tgstation.Server.Host.Models.User",
"StartedBy")
743 .HasForeignKey(
"StartedById")
744 .OnDelete(DeleteBehavior.Cascade)
748 modelBuilder.Entity(
"Tgstation.Server.Host.Models.OAuthConnection", b =>
750 b.HasOne(
"Tgstation.Server.Host.Models.User",
"User")
751 .WithMany(
"OAuthConnections")
752 .HasForeignKey(
"UserId")
753 .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