17#pragma warning disable 612, 618
19 .HasAnnotation(
"ProductVersion",
"3.1.3")
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<
string>(
"AccessToken")
170 .HasColumnType(
"nvarchar(max)");
172 b.Property<
bool?>(
"AllowWebClient")
174 .HasColumnType(
"bit");
176 b.Property<
bool?>(
"AutoStart")
178 .HasColumnType(
"bit");
180 b.Property<
long>(
"HeartbeatSeconds")
181 .HasColumnType(
"bigint");
183 b.Property<
long>(
"InstanceId")
184 .HasColumnType(
"bigint");
186 b.Property<
int>(
"PrimaryPort")
187 .HasColumnType(
"int");
189 b.Property<
int?>(
"ProcessId")
190 .HasColumnType(
"int");
192 b.Property<
int>(
"SecondaryPort")
193 .HasColumnType(
"int");
195 b.Property<
int>(
"SecurityLevel")
196 .HasColumnType(
"int");
198 b.Property<
bool?>(
"SoftRestart")
200 .HasColumnType(
"bit");
202 b.Property<
bool?>(
"SoftShutdown")
204 .HasColumnType(
"bit");
206 b.Property<
long>(
"StartupTimeout")
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);
239 b.HasIndex(
"InstanceId")
242 b.ToTable(
"DreamMakerSettings");
245 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Instance", b =>
247 b.Property<
long>(
"Id")
248 .ValueGeneratedOnAdd()
249 .HasColumnType(
"bigint")
250 .HasAnnotation(
"SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
252 b.Property<
long>(
"AutoUpdateInterval")
253 .HasColumnType(
"bigint");
255 b.Property<
int>(
"ChatBotLimit")
256 .HasColumnType(
"int");
258 b.Property<
int>(
"ConfigurationType")
259 .HasColumnType(
"int");
261 b.Property<
string>(
"Name")
263 .HasColumnType(
"nvarchar(max)")
264 .HasMaxLength(10000);
266 b.Property<
bool?>(
"Online")
268 .HasColumnType(
"bit");
270 b.Property<
string>(
"Path")
272 .HasColumnType(
"nvarchar(450)");
279 b.ToTable(
"Instances");
282 modelBuilder.Entity(
"Tgstation.Server.Host.Models.InstanceUser", b =>
284 b.Property<
long>(
"Id")
285 .ValueGeneratedOnAdd()
286 .HasColumnType(
"bigint")
287 .HasAnnotation(
"SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
289 b.Property<decimal>(
"ByondRights")
290 .HasColumnType(
"decimal(20,0)");
292 b.Property<decimal>(
"ChatBotRights")
293 .HasColumnType(
"decimal(20,0)");
295 b.Property<decimal>(
"ConfigurationRights")
296 .HasColumnType(
"decimal(20,0)");
298 b.Property<decimal>(
"DreamDaemonRights")
299 .HasColumnType(
"decimal(20,0)");
301 b.Property<decimal>(
"DreamMakerRights")
302 .HasColumnType(
"decimal(20,0)");
304 b.Property<
long>(
"InstanceId")
305 .HasColumnType(
"bigint");
307 b.Property<decimal>(
"InstanceUserRights")
308 .HasColumnType(
"decimal(20,0)");
310 b.Property<decimal>(
"RepositoryRights")
311 .HasColumnType(
"decimal(20,0)");
313 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.ReattachInformation", b =>
383 b.Property<
long>(
"Id")
384 .ValueGeneratedOnAdd()
385 .HasColumnType(
"bigint")
386 .HasAnnotation(
"SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
388 b.Property<
string>(
"AccessIdentifier")
390 .HasColumnType(
"nvarchar(max)");
392 b.Property<
long>(
"CompileJobId")
393 .HasColumnType(
"bigint");
395 b.Property<
bool>(
"IsPrimary")
396 .HasColumnType(
"bit");
398 b.Property<
int>(
"LaunchSecurityLevel")
399 .HasColumnType(
"int");
401 b.Property<
int>(
"Port")
402 .HasColumnType(
"int");
404 b.Property<
int>(
"ProcessId")
405 .HasColumnType(
"int");
407 b.Property<
int>(
"RebootState")
408 .HasColumnType(
"int");
412 b.HasIndex(
"CompileJobId");
414 b.ToTable(
"ReattachInformations");
417 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RepositorySettings", b =>
419 b.Property<
long>(
"Id")
420 .ValueGeneratedOnAdd()
421 .HasColumnType(
"bigint")
422 .HasAnnotation(
"SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
424 b.Property<
string>(
"AccessToken")
425 .HasColumnType(
"nvarchar(max)")
426 .HasMaxLength(10000);
428 b.Property<
string>(
"AccessUser")
429 .HasColumnType(
"nvarchar(max)")
430 .HasMaxLength(10000);
432 b.Property<
bool?>(
"AutoUpdatesKeepTestMerges")
434 .HasColumnType(
"bit");
436 b.Property<
bool?>(
"AutoUpdatesSynchronize")
438 .HasColumnType(
"bit");
440 b.Property<
string>(
"CommitterEmail")
442 .HasColumnType(
"nvarchar(max)")
443 .HasMaxLength(10000);
445 b.Property<
string>(
"CommitterName")
447 .HasColumnType(
"nvarchar(max)")
448 .HasMaxLength(10000);
450 b.Property<
long>(
"InstanceId")
451 .HasColumnType(
"bigint");
453 b.Property<
bool?>(
"PostTestMergeComment")
455 .HasColumnType(
"bit");
457 b.Property<
bool?>(
"PushTestMergeCommits")
459 .HasColumnType(
"bit");
461 b.Property<
bool?>(
"ShowTestMergeCommitters")
463 .HasColumnType(
"bit");
467 b.HasIndex(
"InstanceId")
470 b.ToTable(
"RepositorySettings");
473 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
475 b.Property<
long>(
"Id")
476 .ValueGeneratedOnAdd()
477 .HasColumnType(
"bigint")
478 .HasAnnotation(
"SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
480 b.Property<
long>(
"RevisionInformationId")
481 .HasColumnType(
"bigint");
483 b.Property<
long>(
"TestMergeId")
484 .HasColumnType(
"bigint");
488 b.HasIndex(
"RevisionInformationId");
490 b.HasIndex(
"TestMergeId");
492 b.ToTable(
"RevInfoTestMerges");
495 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevisionInformation", b =>
497 b.Property<
long>(
"Id")
498 .ValueGeneratedOnAdd()
499 .HasColumnType(
"bigint")
500 .HasAnnotation(
"SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
502 b.Property<
string>(
"CommitSha")
504 .HasColumnType(
"nvarchar(40)")
507 b.Property<
long>(
"InstanceId")
508 .HasColumnType(
"bigint");
510 b.Property<
string>(
"OriginCommitSha")
512 .HasColumnType(
"nvarchar(40)")
517 b.HasIndex(
"InstanceId",
"CommitSha")
520 b.ToTable(
"RevisionInformations");
523 modelBuilder.Entity(
"Tgstation.Server.Host.Models.TestMerge", b =>
525 b.Property<
long>(
"Id")
526 .ValueGeneratedOnAdd()
527 .HasColumnType(
"bigint")
528 .HasAnnotation(
"SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
530 b.Property<
string>(
"Author")
532 .HasColumnType(
"nvarchar(max)");
534 b.Property<
string>(
"BodyAtMerge")
536 .HasColumnType(
"nvarchar(max)");
538 b.Property<
string>(
"Comment")
539 .HasColumnType(
"nvarchar(max)")
540 .HasMaxLength(10000);
542 b.Property<DateTimeOffset>(
"MergedAt")
543 .HasColumnType(
"datetimeoffset");
545 b.Property<
long>(
"MergedById")
546 .HasColumnType(
"bigint");
548 b.Property<
int>(
"Number")
549 .HasColumnType(
"int");
551 b.Property<
long?>(
"PrimaryRevisionInformationId")
553 .HasColumnType(
"bigint");
555 b.Property<
string>(
"PullRequestRevision")
557 .HasColumnType(
"nvarchar(40)")
560 b.Property<
string>(
"TitleAtMerge")
562 .HasColumnType(
"nvarchar(max)");
564 b.Property<
string>(
"Url")
566 .HasColumnType(
"nvarchar(max)");
570 b.HasIndex(
"MergedById");
572 b.HasIndex(
"PrimaryRevisionInformationId")
575 b.ToTable(
"TestMerges");
578 modelBuilder.Entity(
"Tgstation.Server.Host.Models.User", b =>
580 b.Property<
long?>(
"Id")
581 .ValueGeneratedOnAdd()
582 .HasColumnType(
"bigint")
583 .HasAnnotation(
"SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
585 b.Property<decimal>(
"AdministrationRights")
586 .HasColumnType(
"decimal(20,0)");
588 b.Property<
string>(
"CanonicalName")
590 .HasColumnType(
"nvarchar(450)");
592 b.Property<DateTimeOffset?>(
"CreatedAt")
594 .HasColumnType(
"datetimeoffset");
596 b.Property<
long?>(
"CreatedById")
597 .HasColumnType(
"bigint");
599 b.Property<
bool?>(
"Enabled")
601 .HasColumnType(
"bit");
603 b.Property<decimal>(
"InstanceManagerRights")
604 .HasColumnType(
"decimal(20,0)");
606 b.Property<DateTimeOffset?>(
"LastPasswordUpdate")
607 .HasColumnType(
"datetimeoffset");
609 b.Property<
string>(
"Name")
611 .HasColumnType(
"nvarchar(max)")
612 .HasMaxLength(10000);
614 b.Property<
string>(
"PasswordHash")
615 .HasColumnType(
"nvarchar(max)");
617 b.Property<
string>(
"SystemIdentifier")
618 .HasColumnType(
"nvarchar(450)");
622 b.HasIndex(
"CanonicalName")
625 b.HasIndex(
"CreatedById");
627 b.HasIndex(
"SystemIdentifier")
629 .HasFilter(
"[SystemIdentifier] IS NOT NULL");
634 modelBuilder.Entity(
"Tgstation.Server.Host.Models.WatchdogReattachInformation", b =>
636 b.Property<
long>(
"Id")
637 .ValueGeneratedOnAdd()
638 .HasColumnType(
"bigint")
639 .HasAnnotation(
"SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
641 b.Property<
long?>(
"AlphaId")
642 .HasColumnType(
"bigint");
644 b.Property<
bool>(
"AlphaIsActive")
645 .HasColumnType(
"bit");
647 b.Property<
long?>(
"BravoId")
648 .HasColumnType(
"bigint");
650 b.Property<
long>(
"InstanceId")
651 .HasColumnType(
"bigint");
655 b.HasIndex(
"AlphaId");
657 b.HasIndex(
"BravoId");
659 b.HasIndex(
"InstanceId")
662 b.ToTable(
"WatchdogReattachInformations");
665 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatBot", b =>
667 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
668 .WithMany(
"ChatSettings")
669 .HasForeignKey(
"InstanceId")
670 .OnDelete(DeleteBehavior.Cascade)
674 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatChannel", b =>
676 b.HasOne(
"Tgstation.Server.Host.Models.ChatBot",
"ChatSettings")
677 .WithMany(
"Channels")
678 .HasForeignKey(
"ChatSettingsId")
679 .OnDelete(DeleteBehavior.Cascade)
683 modelBuilder.Entity(
"Tgstation.Server.Host.Models.CompileJob", b =>
685 b.HasOne(
"Tgstation.Server.Host.Models.Job",
"Job")
687 .HasForeignKey(
"Tgstation.Server.Host.Models.CompileJob",
"JobId")
688 .OnDelete(DeleteBehavior.Cascade)
691 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"RevisionInformation")
692 .WithMany(
"CompileJobs")
693 .HasForeignKey(
"RevisionInformationId")
694 .OnDelete(DeleteBehavior.ClientNoAction)
698 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamDaemonSettings", b =>
700 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
701 .WithOne(
"DreamDaemonSettings")
702 .HasForeignKey(
"Tgstation.Server.Host.Models.DreamDaemonSettings",
"InstanceId")
703 .OnDelete(DeleteBehavior.Cascade)
707 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamMakerSettings", b =>
709 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
710 .WithOne(
"DreamMakerSettings")
711 .HasForeignKey(
"Tgstation.Server.Host.Models.DreamMakerSettings",
"InstanceId")
712 .OnDelete(DeleteBehavior.Cascade)
716 modelBuilder.Entity(
"Tgstation.Server.Host.Models.InstanceUser", b =>
718 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
719 .WithMany(
"InstanceUsers")
720 .HasForeignKey(
"InstanceId")
721 .OnDelete(DeleteBehavior.Cascade)
724 b.HasOne(
"Tgstation.Server.Host.Models.User",
null)
725 .WithMany(
"InstanceUsers")
726 .HasForeignKey(
"UserId")
727 .OnDelete(DeleteBehavior.Cascade)
731 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Job", b =>
733 b.HasOne(
"Tgstation.Server.Host.Models.User",
"CancelledBy")
735 .HasForeignKey(
"CancelledById");
737 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
739 .HasForeignKey(
"InstanceId")
740 .OnDelete(DeleteBehavior.Cascade)
743 b.HasOne(
"Tgstation.Server.Host.Models.User",
"StartedBy")
745 .HasForeignKey(
"StartedById")
746 .OnDelete(DeleteBehavior.Cascade)
750 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ReattachInformation", b =>
752 b.HasOne(
"Tgstation.Server.Host.Models.CompileJob",
"CompileJob")
754 .HasForeignKey(
"CompileJobId")
755 .OnDelete(DeleteBehavior.Cascade)
759 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RepositorySettings", b =>
761 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
762 .WithOne(
"RepositorySettings")
763 .HasForeignKey(
"Tgstation.Server.Host.Models.RepositorySettings",
"InstanceId")
764 .OnDelete(DeleteBehavior.Cascade)
768 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
770 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"RevisionInformation")
771 .WithMany(
"ActiveTestMerges")
772 .HasForeignKey(
"RevisionInformationId")
773 .OnDelete(DeleteBehavior.Cascade)
776 b.HasOne(
"Tgstation.Server.Host.Models.TestMerge",
"TestMerge")
777 .WithMany(
"RevisonInformations")
778 .HasForeignKey(
"TestMergeId")
779 .OnDelete(DeleteBehavior.ClientNoAction)
783 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevisionInformation", b =>
785 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
786 .WithMany(
"RevisionInformations")
787 .HasForeignKey(
"InstanceId")
788 .OnDelete(DeleteBehavior.Cascade)
792 modelBuilder.Entity(
"Tgstation.Server.Host.Models.TestMerge", b =>
794 b.HasOne(
"Tgstation.Server.Host.Models.User",
"MergedBy")
795 .WithMany(
"TestMerges")
796 .HasForeignKey(
"MergedById")
797 .OnDelete(DeleteBehavior.Restrict)
800 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"PrimaryRevisionInformation")
801 .WithOne(
"PrimaryTestMerge")
802 .HasForeignKey(
"Tgstation.Server.Host.Models.TestMerge",
"PrimaryRevisionInformationId")
803 .OnDelete(DeleteBehavior.Cascade)
807 modelBuilder.Entity(
"Tgstation.Server.Host.Models.User", b =>
809 b.HasOne(
"Tgstation.Server.Host.Models.User",
"CreatedBy")
810 .WithMany(
"CreatedUsers")
811 .HasForeignKey(
"CreatedById");
814 modelBuilder.Entity(
"Tgstation.Server.Host.Models.WatchdogReattachInformation", b =>
816 b.HasOne(
"Tgstation.Server.Host.Models.ReattachInformation",
"Alpha")
818 .HasForeignKey(
"AlphaId");
820 b.HasOne(
"Tgstation.Server.Host.Models.ReattachInformation",
"Bravo")
822 .HasForeignKey(
"BravoId");
824 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
null)
825 .WithOne(
"WatchdogReattachInformation")
826 .HasForeignKey(
"Tgstation.Server.Host.Models.WatchdogReattachInformation",
"InstanceId")
827 .OnDelete(DeleteBehavior.Cascade)
830#pragma warning restore 612, 618