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<
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");
197 b.HasIndex(
"InstanceId")
200 b.ToTable(
"DreamDaemonSettings");
203 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamMakerSettings", b =>
205 b.Property<
long>(
"Id")
206 .ValueGeneratedOnAdd()
207 .HasColumnType(
"bigint")
208 .HasAnnotation(
"SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
210 b.Property<
int>(
"ApiValidationPort")
211 .HasColumnType(
"int");
213 b.Property<
int>(
"ApiValidationSecurityLevel")
214 .HasColumnType(
"int");
216 b.Property<
long>(
"InstanceId")
217 .HasColumnType(
"bigint");
219 b.Property<
string>(
"ProjectName")
220 .HasColumnType(
"nvarchar(max)")
221 .HasMaxLength(10000);
225 b.HasIndex(
"InstanceId")
228 b.ToTable(
"DreamMakerSettings");
231 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Instance", b =>
233 b.Property<
long>(
"Id")
234 .ValueGeneratedOnAdd()
235 .HasColumnType(
"bigint")
236 .HasAnnotation(
"SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
238 b.Property<
long>(
"AutoUpdateInterval")
239 .HasColumnType(
"bigint");
241 b.Property<
int>(
"ChatBotLimit")
242 .HasColumnType(
"int");
244 b.Property<
int>(
"ConfigurationType")
245 .HasColumnType(
"int");
247 b.Property<
string>(
"Name")
249 .HasColumnType(
"nvarchar(max)")
250 .HasMaxLength(10000);
252 b.Property<
bool?>(
"Online")
254 .HasColumnType(
"bit");
256 b.Property<
string>(
"Path")
258 .HasColumnType(
"nvarchar(450)");
265 b.ToTable(
"Instances");
268 modelBuilder.Entity(
"Tgstation.Server.Host.Models.InstanceUser", b =>
270 b.Property<
long>(
"Id")
271 .ValueGeneratedOnAdd()
272 .HasColumnType(
"bigint")
273 .HasAnnotation(
"SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
275 b.Property<decimal>(
"ByondRights")
276 .HasColumnType(
"decimal(20,0)");
278 b.Property<decimal>(
"ChatBotRights")
279 .HasColumnType(
"decimal(20,0)");
281 b.Property<decimal>(
"ConfigurationRights")
282 .HasColumnType(
"decimal(20,0)");
284 b.Property<decimal>(
"DreamDaemonRights")
285 .HasColumnType(
"decimal(20,0)");
287 b.Property<decimal>(
"DreamMakerRights")
288 .HasColumnType(
"decimal(20,0)");
290 b.Property<
long>(
"InstanceId")
291 .HasColumnType(
"bigint");
293 b.Property<decimal>(
"InstanceUserRights")
294 .HasColumnType(
"decimal(20,0)");
296 b.Property<decimal>(
"RepositoryRights")
297 .HasColumnType(
"decimal(20,0)");
299 b.Property<
long?>(
"UserId")
301 .HasColumnType(
"bigint");
305 b.HasIndex(
"InstanceId");
307 b.HasIndex(
"UserId",
"InstanceId")
310 b.ToTable(
"InstanceUsers");
313 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Job", b =>
315 b.Property<
long>(
"Id")
316 .ValueGeneratedOnAdd()
317 .HasColumnType(
"bigint")
318 .HasAnnotation(
"SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
320 b.Property<decimal?>(
"CancelRight")
321 .HasColumnType(
"decimal(20,0)");
323 b.Property<decimal?>(
"CancelRightsType")
324 .HasColumnType(
"decimal(20,0)");
326 b.Property<
bool?>(
"Cancelled")
328 .HasColumnType(
"bit");
330 b.Property<
long?>(
"CancelledById")
331 .HasColumnType(
"bigint");
333 b.Property<
string>(
"Description")
335 .HasColumnType(
"nvarchar(max)");
337 b.Property<
long?>(
"ErrorCode")
338 .HasColumnType(
"bigint");
340 b.Property<
string>(
"ExceptionDetails")
341 .HasColumnType(
"nvarchar(max)");
343 b.Property<
long>(
"InstanceId")
344 .HasColumnType(
"bigint");
346 b.Property<DateTimeOffset?>(
"StartedAt")
348 .HasColumnType(
"datetimeoffset");
350 b.Property<
long>(
"StartedById")
351 .HasColumnType(
"bigint");
353 b.Property<DateTimeOffset?>(
"StoppedAt")
354 .HasColumnType(
"datetimeoffset");
358 b.HasIndex(
"CancelledById");
360 b.HasIndex(
"InstanceId");
362 b.HasIndex(
"StartedById");
367 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ReattachInformation", b =>
369 b.Property<
long>(
"Id")
370 .ValueGeneratedOnAdd()
371 .HasColumnType(
"bigint")
372 .HasAnnotation(
"SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
374 b.Property<
string>(
"AccessIdentifier")
376 .HasColumnType(
"nvarchar(max)");
378 b.Property<
long>(
"CompileJobId")
379 .HasColumnType(
"bigint");
381 b.Property<
bool>(
"IsPrimary")
382 .HasColumnType(
"bit");
384 b.Property<
int>(
"LaunchSecurityLevel")
385 .HasColumnType(
"int");
387 b.Property<
int>(
"Port")
388 .HasColumnType(
"int");
390 b.Property<
int>(
"ProcessId")
391 .HasColumnType(
"int");
393 b.Property<
int>(
"RebootState")
394 .HasColumnType(
"int");
398 b.HasIndex(
"CompileJobId");
400 b.ToTable(
"ReattachInformations");
403 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RepositorySettings", b =>
405 b.Property<
long>(
"Id")
406 .ValueGeneratedOnAdd()
407 .HasColumnType(
"bigint")
408 .HasAnnotation(
"SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
410 b.Property<
string>(
"AccessToken")
411 .HasColumnType(
"nvarchar(max)")
412 .HasMaxLength(10000);
414 b.Property<
string>(
"AccessUser")
415 .HasColumnType(
"nvarchar(max)")
416 .HasMaxLength(10000);
418 b.Property<
bool?>(
"AutoUpdatesKeepTestMerges")
420 .HasColumnType(
"bit");
422 b.Property<
bool?>(
"AutoUpdatesSynchronize")
424 .HasColumnType(
"bit");
426 b.Property<
string>(
"CommitterEmail")
428 .HasColumnType(
"nvarchar(max)")
429 .HasMaxLength(10000);
431 b.Property<
string>(
"CommitterName")
433 .HasColumnType(
"nvarchar(max)")
434 .HasMaxLength(10000);
436 b.Property<
long>(
"InstanceId")
437 .HasColumnType(
"bigint");
439 b.Property<
bool?>(
"PostTestMergeComment")
441 .HasColumnType(
"bit");
443 b.Property<
bool?>(
"PushTestMergeCommits")
445 .HasColumnType(
"bit");
447 b.Property<
bool?>(
"ShowTestMergeCommitters")
449 .HasColumnType(
"bit");
453 b.HasIndex(
"InstanceId")
456 b.ToTable(
"RepositorySettings");
459 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
461 b.Property<
long>(
"Id")
462 .ValueGeneratedOnAdd()
463 .HasColumnType(
"bigint")
464 .HasAnnotation(
"SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
466 b.Property<
long>(
"RevisionInformationId")
467 .HasColumnType(
"bigint");
469 b.Property<
long>(
"TestMergeId")
470 .HasColumnType(
"bigint");
474 b.HasIndex(
"RevisionInformationId");
476 b.HasIndex(
"TestMergeId");
478 b.ToTable(
"RevInfoTestMerges");
481 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevisionInformation", b =>
483 b.Property<
long>(
"Id")
484 .ValueGeneratedOnAdd()
485 .HasColumnType(
"bigint")
486 .HasAnnotation(
"SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
488 b.Property<
string>(
"CommitSha")
490 .HasColumnType(
"nvarchar(40)")
493 b.Property<
long>(
"InstanceId")
494 .HasColumnType(
"bigint");
496 b.Property<
string>(
"OriginCommitSha")
498 .HasColumnType(
"nvarchar(40)")
503 b.HasIndex(
"InstanceId",
"CommitSha")
506 b.ToTable(
"RevisionInformations");
509 modelBuilder.Entity(
"Tgstation.Server.Host.Models.TestMerge", b =>
511 b.Property<
long>(
"Id")
512 .ValueGeneratedOnAdd()
513 .HasColumnType(
"bigint")
514 .HasAnnotation(
"SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
516 b.Property<
string>(
"Author")
518 .HasColumnType(
"nvarchar(max)");
520 b.Property<
string>(
"BodyAtMerge")
522 .HasColumnType(
"nvarchar(max)");
524 b.Property<
string>(
"Comment")
525 .HasColumnType(
"nvarchar(max)")
526 .HasMaxLength(10000);
528 b.Property<DateTimeOffset>(
"MergedAt")
529 .HasColumnType(
"datetimeoffset");
531 b.Property<
long>(
"MergedById")
532 .HasColumnType(
"bigint");
534 b.Property<
int>(
"Number")
535 .HasColumnType(
"int");
537 b.Property<
long?>(
"PrimaryRevisionInformationId")
539 .HasColumnType(
"bigint");
541 b.Property<
string>(
"PullRequestRevision")
543 .HasColumnType(
"nvarchar(40)")
546 b.Property<
string>(
"TitleAtMerge")
548 .HasColumnType(
"nvarchar(max)");
550 b.Property<
string>(
"Url")
552 .HasColumnType(
"nvarchar(max)");
556 b.HasIndex(
"MergedById");
558 b.HasIndex(
"PrimaryRevisionInformationId")
561 b.ToTable(
"TestMerges");
564 modelBuilder.Entity(
"Tgstation.Server.Host.Models.User", b =>
566 b.Property<
long?>(
"Id")
567 .ValueGeneratedOnAdd()
568 .HasColumnType(
"bigint")
569 .HasAnnotation(
"SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
571 b.Property<decimal>(
"AdministrationRights")
572 .HasColumnType(
"decimal(20,0)");
574 b.Property<
string>(
"CanonicalName")
576 .HasColumnType(
"nvarchar(450)");
578 b.Property<DateTimeOffset?>(
"CreatedAt")
580 .HasColumnType(
"datetimeoffset");
582 b.Property<
long?>(
"CreatedById")
583 .HasColumnType(
"bigint");
585 b.Property<
bool?>(
"Enabled")
587 .HasColumnType(
"bit");
589 b.Property<decimal>(
"InstanceManagerRights")
590 .HasColumnType(
"decimal(20,0)");
592 b.Property<DateTimeOffset?>(
"LastPasswordUpdate")
593 .HasColumnType(
"datetimeoffset");
595 b.Property<
string>(
"Name")
597 .HasColumnType(
"nvarchar(max)")
598 .HasMaxLength(10000);
600 b.Property<
string>(
"PasswordHash")
601 .HasColumnType(
"nvarchar(max)");
603 b.Property<
string>(
"SystemIdentifier")
604 .HasColumnType(
"nvarchar(450)");
608 b.HasIndex(
"CanonicalName")
611 b.HasIndex(
"CreatedById");
613 b.HasIndex(
"SystemIdentifier")
615 .HasFilter(
"[SystemIdentifier] IS NOT NULL");
620 modelBuilder.Entity(
"Tgstation.Server.Host.Models.WatchdogReattachInformation", b =>
622 b.Property<
long>(
"Id")
623 .ValueGeneratedOnAdd()
624 .HasColumnType(
"bigint")
625 .HasAnnotation(
"SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
627 b.Property<
long?>(
"AlphaId")
628 .HasColumnType(
"bigint");
630 b.Property<
bool>(
"AlphaIsActive")
631 .HasColumnType(
"bit");
633 b.Property<
long?>(
"BravoId")
634 .HasColumnType(
"bigint");
636 b.Property<
long>(
"InstanceId")
637 .HasColumnType(
"bigint");
641 b.HasIndex(
"AlphaId");
643 b.HasIndex(
"BravoId");
645 b.HasIndex(
"InstanceId")
648 b.ToTable(
"WatchdogReattachInformations");
651 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatBot", b =>
653 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
654 .WithMany(
"ChatSettings")
655 .HasForeignKey(
"InstanceId")
656 .OnDelete(DeleteBehavior.Cascade)
660 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatChannel", b =>
662 b.HasOne(
"Tgstation.Server.Host.Models.ChatBot",
"ChatSettings")
663 .WithMany(
"Channels")
664 .HasForeignKey(
"ChatSettingsId")
665 .OnDelete(DeleteBehavior.Cascade)
669 modelBuilder.Entity(
"Tgstation.Server.Host.Models.CompileJob", b =>
671 b.HasOne(
"Tgstation.Server.Host.Models.Job",
"Job")
673 .HasForeignKey(
"Tgstation.Server.Host.Models.CompileJob",
"JobId")
674 .OnDelete(DeleteBehavior.Cascade)
677 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"RevisionInformation")
678 .WithMany(
"CompileJobs")
679 .HasForeignKey(
"RevisionInformationId")
680 .OnDelete(DeleteBehavior.ClientNoAction)
684 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamDaemonSettings", b =>
686 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
687 .WithOne(
"DreamDaemonSettings")
688 .HasForeignKey(
"Tgstation.Server.Host.Models.DreamDaemonSettings",
"InstanceId")
689 .OnDelete(DeleteBehavior.Cascade)
693 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamMakerSettings", b =>
695 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
696 .WithOne(
"DreamMakerSettings")
697 .HasForeignKey(
"Tgstation.Server.Host.Models.DreamMakerSettings",
"InstanceId")
698 .OnDelete(DeleteBehavior.Cascade)
702 modelBuilder.Entity(
"Tgstation.Server.Host.Models.InstanceUser", b =>
704 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
705 .WithMany(
"InstanceUsers")
706 .HasForeignKey(
"InstanceId")
707 .OnDelete(DeleteBehavior.Cascade)
710 b.HasOne(
"Tgstation.Server.Host.Models.User",
null)
711 .WithMany(
"InstanceUsers")
712 .HasForeignKey(
"UserId")
713 .OnDelete(DeleteBehavior.Cascade)
717 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Job", b =>
719 b.HasOne(
"Tgstation.Server.Host.Models.User",
"CancelledBy")
721 .HasForeignKey(
"CancelledById");
723 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
725 .HasForeignKey(
"InstanceId")
726 .OnDelete(DeleteBehavior.Cascade)
729 b.HasOne(
"Tgstation.Server.Host.Models.User",
"StartedBy")
731 .HasForeignKey(
"StartedById")
732 .OnDelete(DeleteBehavior.Cascade)
736 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ReattachInformation", b =>
738 b.HasOne(
"Tgstation.Server.Host.Models.CompileJob",
"CompileJob")
740 .HasForeignKey(
"CompileJobId")
741 .OnDelete(DeleteBehavior.Cascade)
745 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RepositorySettings", b =>
747 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
748 .WithOne(
"RepositorySettings")
749 .HasForeignKey(
"Tgstation.Server.Host.Models.RepositorySettings",
"InstanceId")
750 .OnDelete(DeleteBehavior.Cascade)
754 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
756 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"RevisionInformation")
757 .WithMany(
"ActiveTestMerges")
758 .HasForeignKey(
"RevisionInformationId")
759 .OnDelete(DeleteBehavior.Cascade)
762 b.HasOne(
"Tgstation.Server.Host.Models.TestMerge",
"TestMerge")
763 .WithMany(
"RevisonInformations")
764 .HasForeignKey(
"TestMergeId")
765 .OnDelete(DeleteBehavior.ClientNoAction)
769 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevisionInformation", b =>
771 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
772 .WithMany(
"RevisionInformations")
773 .HasForeignKey(
"InstanceId")
774 .OnDelete(DeleteBehavior.Cascade)
778 modelBuilder.Entity(
"Tgstation.Server.Host.Models.TestMerge", b =>
780 b.HasOne(
"Tgstation.Server.Host.Models.User",
"MergedBy")
781 .WithMany(
"TestMerges")
782 .HasForeignKey(
"MergedById")
783 .OnDelete(DeleteBehavior.Restrict)
786 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"PrimaryRevisionInformation")
787 .WithOne(
"PrimaryTestMerge")
788 .HasForeignKey(
"Tgstation.Server.Host.Models.TestMerge",
"PrimaryRevisionInformationId")
789 .OnDelete(DeleteBehavior.Cascade)
793 modelBuilder.Entity(
"Tgstation.Server.Host.Models.User", b =>
795 b.HasOne(
"Tgstation.Server.Host.Models.User",
"CreatedBy")
796 .WithMany(
"CreatedUsers")
797 .HasForeignKey(
"CreatedById");
800 modelBuilder.Entity(
"Tgstation.Server.Host.Models.WatchdogReattachInformation", b =>
802 b.HasOne(
"Tgstation.Server.Host.Models.ReattachInformation",
"Alpha")
804 .HasForeignKey(
"AlphaId");
806 b.HasOne(
"Tgstation.Server.Host.Models.ReattachInformation",
"Bravo")
808 .HasForeignKey(
"BravoId");
810 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
null)
811 .WithOne(
"WatchdogReattachInformation")
812 .HasForeignKey(
"Tgstation.Server.Host.Models.WatchdogReattachInformation",
"InstanceId")
813 .OnDelete(DeleteBehavior.Cascade)
816#pragma warning restore 612, 618