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<Guid?>(
"DirectoryName")
122 .HasColumnType(
"uniqueidentifier");
124 b.Property<
string>(
"DmeName")
126 .HasColumnType(
"nvarchar(max)");
128 b.Property<
long>(
"JobId")
129 .HasColumnType(
"bigint");
131 b.Property<
int>(
"MinimumSecurityLevel")
132 .HasColumnType(
"int");
134 b.Property<
string>(
"Output")
136 .HasColumnType(
"nvarchar(max)");
138 b.Property<
long>(
"RevisionInformationId")
139 .HasColumnType(
"bigint");
143 b.HasIndex(
"DirectoryName");
148 b.HasIndex(
"RevisionInformationId");
150 b.ToTable(
"CompileJobs");
153 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamDaemonSettings", b =>
155 b.Property<
long>(
"Id")
156 .ValueGeneratedOnAdd()
157 .HasColumnType(
"bigint")
158 .HasAnnotation(
"SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
160 b.Property<
string>(
"AccessToken")
161 .HasColumnType(
"nvarchar(max)");
163 b.Property<
bool?>(
"AllowWebClient")
165 .HasColumnType(
"bit");
167 b.Property<
bool?>(
"AutoStart")
169 .HasColumnType(
"bit");
171 b.Property<
long>(
"InstanceId")
172 .HasColumnType(
"bigint");
174 b.Property<
int>(
"PrimaryPort")
175 .HasColumnType(
"int");
177 b.Property<
int?>(
"ProcessId")
178 .HasColumnType(
"int");
180 b.Property<
int>(
"SecondaryPort")
181 .HasColumnType(
"int");
183 b.Property<
int>(
"SecurityLevel")
184 .HasColumnType(
"int");
186 b.Property<
bool?>(
"SoftRestart")
188 .HasColumnType(
"bit");
190 b.Property<
bool?>(
"SoftShutdown")
192 .HasColumnType(
"bit");
194 b.Property<
long>(
"StartupTimeout")
195 .HasColumnType(
"bigint");
199 b.HasIndex(
"InstanceId")
202 b.ToTable(
"DreamDaemonSettings");
205 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamMakerSettings", b =>
207 b.Property<
long>(
"Id")
208 .ValueGeneratedOnAdd()
209 .HasColumnType(
"bigint")
210 .HasAnnotation(
"SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
212 b.Property<
int>(
"ApiValidationPort")
213 .HasColumnType(
"int");
215 b.Property<
int>(
"ApiValidationSecurityLevel")
216 .HasColumnType(
"int");
218 b.Property<
long>(
"InstanceId")
219 .HasColumnType(
"bigint");
221 b.Property<
string>(
"ProjectName")
222 .HasColumnType(
"nvarchar(max)")
223 .HasMaxLength(10000);
227 b.HasIndex(
"InstanceId")
230 b.ToTable(
"DreamMakerSettings");
233 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Instance", b =>
235 b.Property<
long>(
"Id")
236 .ValueGeneratedOnAdd()
237 .HasColumnType(
"bigint")
238 .HasAnnotation(
"SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
240 b.Property<
long>(
"AutoUpdateInterval")
241 .HasColumnType(
"bigint");
243 b.Property<
int>(
"ChatBotLimit")
244 .HasColumnType(
"int");
246 b.Property<
int>(
"ConfigurationType")
247 .HasColumnType(
"int");
249 b.Property<
string>(
"Name")
251 .HasColumnType(
"nvarchar(max)")
252 .HasMaxLength(10000);
254 b.Property<
bool?>(
"Online")
256 .HasColumnType(
"bit");
258 b.Property<
string>(
"Path")
260 .HasColumnType(
"nvarchar(450)");
267 b.ToTable(
"Instances");
270 modelBuilder.Entity(
"Tgstation.Server.Host.Models.InstanceUser", b =>
272 b.Property<
long>(
"Id")
273 .ValueGeneratedOnAdd()
274 .HasColumnType(
"bigint")
275 .HasAnnotation(
"SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
277 b.Property<decimal>(
"ByondRights")
278 .HasColumnType(
"decimal(20,0)");
280 b.Property<decimal>(
"ChatBotRights")
281 .HasColumnType(
"decimal(20,0)");
283 b.Property<decimal>(
"ConfigurationRights")
284 .HasColumnType(
"decimal(20,0)");
286 b.Property<decimal>(
"DreamDaemonRights")
287 .HasColumnType(
"decimal(20,0)");
289 b.Property<decimal>(
"DreamMakerRights")
290 .HasColumnType(
"decimal(20,0)");
292 b.Property<
long>(
"InstanceId")
293 .HasColumnType(
"bigint");
295 b.Property<decimal>(
"InstanceUserRights")
296 .HasColumnType(
"decimal(20,0)");
298 b.Property<decimal>(
"RepositoryRights")
299 .HasColumnType(
"decimal(20,0)");
301 b.Property<
long?>(
"UserId")
303 .HasColumnType(
"bigint");
307 b.HasIndex(
"InstanceId");
309 b.HasIndex(
"UserId",
"InstanceId")
312 b.ToTable(
"InstanceUsers");
315 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Job", b =>
317 b.Property<
long>(
"Id")
318 .ValueGeneratedOnAdd()
319 .HasColumnType(
"bigint")
320 .HasAnnotation(
"SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
322 b.Property<decimal?>(
"CancelRight")
323 .HasColumnType(
"decimal(20,0)");
325 b.Property<decimal?>(
"CancelRightsType")
326 .HasColumnType(
"decimal(20,0)");
328 b.Property<
bool?>(
"Cancelled")
330 .HasColumnType(
"bit");
332 b.Property<
long?>(
"CancelledById")
333 .HasColumnType(
"bigint");
335 b.Property<
string>(
"Description")
337 .HasColumnType(
"nvarchar(max)");
339 b.Property<
string>(
"ExceptionDetails")
340 .HasColumnType(
"nvarchar(max)");
342 b.Property<
long>(
"InstanceId")
343 .HasColumnType(
"bigint");
345 b.Property<DateTimeOffset?>(
"StartedAt")
347 .HasColumnType(
"datetimeoffset");
349 b.Property<
long>(
"StartedById")
350 .HasColumnType(
"bigint");
352 b.Property<DateTimeOffset?>(
"StoppedAt")
353 .HasColumnType(
"datetimeoffset");
357 b.HasIndex(
"CancelledById");
359 b.HasIndex(
"InstanceId");
361 b.HasIndex(
"StartedById");
366 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ReattachInformation", b =>
368 b.Property<
long>(
"Id")
369 .ValueGeneratedOnAdd()
370 .HasColumnType(
"bigint")
371 .HasAnnotation(
"SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
373 b.Property<
string>(
"AccessIdentifier")
375 .HasColumnType(
"nvarchar(max)");
377 b.Property<
string>(
"ChatChannelsJson")
379 .HasColumnType(
"nvarchar(max)");
381 b.Property<
string>(
"ChatCommandsJson")
383 .HasColumnType(
"nvarchar(max)");
385 b.Property<
long>(
"CompileJobId")
386 .HasColumnType(
"bigint");
388 b.Property<
bool>(
"IsPrimary")
389 .HasColumnType(
"bit");
391 b.Property<
int>(
"Port")
392 .HasColumnType(
"int");
394 b.Property<
int>(
"ProcessId")
395 .HasColumnType(
"int");
397 b.Property<
int>(
"RebootState")
398 .HasColumnType(
"int");
400 b.Property<
string>(
"ServerCommandsJson")
402 .HasColumnType(
"nvarchar(max)");
406 b.HasIndex(
"CompileJobId");
408 b.ToTable(
"ReattachInformations");
411 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RepositorySettings", b =>
413 b.Property<
long>(
"Id")
414 .ValueGeneratedOnAdd()
415 .HasColumnType(
"bigint")
416 .HasAnnotation(
"SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
418 b.Property<
string>(
"AccessToken")
419 .HasColumnType(
"nvarchar(max)")
420 .HasMaxLength(10000);
422 b.Property<
string>(
"AccessUser")
423 .HasColumnType(
"nvarchar(max)")
424 .HasMaxLength(10000);
426 b.Property<
bool?>(
"AutoUpdatesKeepTestMerges")
428 .HasColumnType(
"bit");
430 b.Property<
bool?>(
"AutoUpdatesSynchronize")
432 .HasColumnType(
"bit");
434 b.Property<
string>(
"CommitterEmail")
436 .HasColumnType(
"nvarchar(max)")
437 .HasMaxLength(10000);
439 b.Property<
string>(
"CommitterName")
441 .HasColumnType(
"nvarchar(max)")
442 .HasMaxLength(10000);
444 b.Property<
long>(
"InstanceId")
445 .HasColumnType(
"bigint");
447 b.Property<
bool?>(
"PostTestMergeComment")
449 .HasColumnType(
"bit");
451 b.Property<
bool?>(
"PushTestMergeCommits")
453 .HasColumnType(
"bit");
455 b.Property<
bool?>(
"ShowTestMergeCommitters")
457 .HasColumnType(
"bit");
461 b.HasIndex(
"InstanceId")
464 b.ToTable(
"RepositorySettings");
467 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
469 b.Property<
long>(
"Id")
470 .ValueGeneratedOnAdd()
471 .HasColumnType(
"bigint")
472 .HasAnnotation(
"SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
474 b.Property<
long>(
"RevisionInformationId")
475 .HasColumnType(
"bigint");
477 b.Property<
long>(
"TestMergeId")
478 .HasColumnType(
"bigint");
482 b.HasIndex(
"RevisionInformationId");
484 b.HasIndex(
"TestMergeId");
486 b.ToTable(
"RevInfoTestMerges");
489 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevisionInformation", b =>
491 b.Property<
long>(
"Id")
492 .ValueGeneratedOnAdd()
493 .HasColumnType(
"bigint")
494 .HasAnnotation(
"SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
496 b.Property<
string>(
"CommitSha")
498 .HasColumnType(
"nvarchar(40)")
501 b.Property<
long>(
"InstanceId")
502 .HasColumnType(
"bigint");
504 b.Property<
string>(
"OriginCommitSha")
506 .HasColumnType(
"nvarchar(40)")
511 b.HasIndex(
"InstanceId",
"CommitSha")
514 b.ToTable(
"RevisionInformations");
517 modelBuilder.Entity(
"Tgstation.Server.Host.Models.TestMerge", b =>
519 b.Property<
long>(
"Id")
520 .ValueGeneratedOnAdd()
521 .HasColumnType(
"bigint")
522 .HasAnnotation(
"SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
524 b.Property<
string>(
"Author")
526 .HasColumnType(
"nvarchar(max)");
528 b.Property<
string>(
"BodyAtMerge")
530 .HasColumnType(
"nvarchar(max)");
532 b.Property<
string>(
"Comment")
533 .HasColumnType(
"nvarchar(max)")
534 .HasMaxLength(10000);
536 b.Property<DateTimeOffset>(
"MergedAt")
537 .HasColumnType(
"datetimeoffset");
539 b.Property<
long>(
"MergedById")
540 .HasColumnType(
"bigint");
542 b.Property<
int>(
"Number")
543 .HasColumnType(
"int");
545 b.Property<
long?>(
"PrimaryRevisionInformationId")
547 .HasColumnType(
"bigint");
549 b.Property<
string>(
"PullRequestRevision")
551 .HasColumnType(
"nvarchar(40)")
554 b.Property<
string>(
"TitleAtMerge")
556 .HasColumnType(
"nvarchar(max)");
558 b.Property<
string>(
"Url")
560 .HasColumnType(
"nvarchar(max)");
564 b.HasIndex(
"MergedById");
566 b.HasIndex(
"PrimaryRevisionInformationId")
569 b.ToTable(
"TestMerges");
572 modelBuilder.Entity(
"Tgstation.Server.Host.Models.User", b =>
574 b.Property<
long?>(
"Id")
575 .ValueGeneratedOnAdd()
576 .HasColumnType(
"bigint")
577 .HasAnnotation(
"SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
579 b.Property<decimal>(
"AdministrationRights")
580 .HasColumnType(
"decimal(20,0)");
582 b.Property<
string>(
"CanonicalName")
584 .HasColumnType(
"nvarchar(450)");
586 b.Property<DateTimeOffset?>(
"CreatedAt")
588 .HasColumnType(
"datetimeoffset");
590 b.Property<
long?>(
"CreatedById")
591 .HasColumnType(
"bigint");
593 b.Property<
bool?>(
"Enabled")
595 .HasColumnType(
"bit");
597 b.Property<decimal>(
"InstanceManagerRights")
598 .HasColumnType(
"decimal(20,0)");
600 b.Property<DateTimeOffset?>(
"LastPasswordUpdate")
601 .HasColumnType(
"datetimeoffset");
603 b.Property<
string>(
"Name")
605 .HasColumnType(
"nvarchar(max)")
606 .HasMaxLength(10000);
608 b.Property<
string>(
"PasswordHash")
609 .HasColumnType(
"nvarchar(max)");
611 b.Property<
string>(
"SystemIdentifier")
612 .HasColumnType(
"nvarchar(450)");
616 b.HasIndex(
"CanonicalName")
619 b.HasIndex(
"CreatedById");
621 b.HasIndex(
"SystemIdentifier")
623 .HasFilter(
"[SystemIdentifier] IS NOT NULL");
628 modelBuilder.Entity(
"Tgstation.Server.Host.Models.WatchdogReattachInformation", b =>
630 b.Property<
long>(
"Id")
631 .ValueGeneratedOnAdd()
632 .HasColumnType(
"bigint")
633 .HasAnnotation(
"SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
635 b.Property<
long?>(
"AlphaId")
636 .HasColumnType(
"bigint");
638 b.Property<
bool>(
"AlphaIsActive")
639 .HasColumnType(
"bit");
641 b.Property<
long?>(
"BravoId")
642 .HasColumnType(
"bigint");
644 b.Property<
long>(
"InstanceId")
645 .HasColumnType(
"bigint");
649 b.HasIndex(
"AlphaId");
651 b.HasIndex(
"BravoId");
653 b.HasIndex(
"InstanceId")
656 b.ToTable(
"WatchdogReattachInformations");
659 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatBot", b =>
661 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
662 .WithMany(
"ChatSettings")
663 .HasForeignKey(
"InstanceId")
664 .OnDelete(DeleteBehavior.Cascade)
668 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatChannel", b =>
670 b.HasOne(
"Tgstation.Server.Host.Models.ChatBot",
"ChatSettings")
671 .WithMany(
"Channels")
672 .HasForeignKey(
"ChatSettingsId")
673 .OnDelete(DeleteBehavior.Cascade)
677 modelBuilder.Entity(
"Tgstation.Server.Host.Models.CompileJob", b =>
679 b.HasOne(
"Tgstation.Server.Host.Models.Job",
"Job")
681 .HasForeignKey(
"Tgstation.Server.Host.Models.CompileJob",
"JobId")
682 .OnDelete(DeleteBehavior.Restrict)
685 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"RevisionInformation")
686 .WithMany(
"CompileJobs")
687 .HasForeignKey(
"RevisionInformationId")
688 .OnDelete(DeleteBehavior.Cascade)
692 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamDaemonSettings", b =>
694 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
695 .WithOne(
"DreamDaemonSettings")
696 .HasForeignKey(
"Tgstation.Server.Host.Models.DreamDaemonSettings",
"InstanceId")
697 .OnDelete(DeleteBehavior.Cascade)
701 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamMakerSettings", b =>
703 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
704 .WithOne(
"DreamMakerSettings")
705 .HasForeignKey(
"Tgstation.Server.Host.Models.DreamMakerSettings",
"InstanceId")
706 .OnDelete(DeleteBehavior.Cascade)
710 modelBuilder.Entity(
"Tgstation.Server.Host.Models.InstanceUser", b =>
712 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
713 .WithMany(
"InstanceUsers")
714 .HasForeignKey(
"InstanceId")
715 .OnDelete(DeleteBehavior.Cascade)
718 b.HasOne(
"Tgstation.Server.Host.Models.User",
null)
719 .WithMany(
"InstanceUsers")
720 .HasForeignKey(
"UserId")
721 .OnDelete(DeleteBehavior.Cascade)
725 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Job", b =>
727 b.HasOne(
"Tgstation.Server.Host.Models.User",
"CancelledBy")
729 .HasForeignKey(
"CancelledById");
731 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
733 .HasForeignKey(
"InstanceId")
734 .OnDelete(DeleteBehavior.Cascade)
737 b.HasOne(
"Tgstation.Server.Host.Models.User",
"StartedBy")
739 .HasForeignKey(
"StartedById")
740 .OnDelete(DeleteBehavior.Cascade)
744 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ReattachInformation", b =>
746 b.HasOne(
"Tgstation.Server.Host.Models.CompileJob",
"CompileJob")
748 .HasForeignKey(
"CompileJobId")
749 .OnDelete(DeleteBehavior.Cascade)
753 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RepositorySettings", b =>
755 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
756 .WithOne(
"RepositorySettings")
757 .HasForeignKey(
"Tgstation.Server.Host.Models.RepositorySettings",
"InstanceId")
758 .OnDelete(DeleteBehavior.Cascade)
762 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
764 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"RevisionInformation")
765 .WithMany(
"ActiveTestMerges")
766 .HasForeignKey(
"RevisionInformationId")
767 .OnDelete(DeleteBehavior.Cascade)
770 b.HasOne(
"Tgstation.Server.Host.Models.TestMerge",
"TestMerge")
771 .WithMany(
"RevisonInformations")
772 .HasForeignKey(
"TestMergeId")
773 .OnDelete(DeleteBehavior.Cascade)
777 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevisionInformation", b =>
779 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
780 .WithMany(
"RevisionInformations")
781 .HasForeignKey(
"InstanceId")
782 .OnDelete(DeleteBehavior.Cascade)
786 modelBuilder.Entity(
"Tgstation.Server.Host.Models.TestMerge", b =>
788 b.HasOne(
"Tgstation.Server.Host.Models.User",
"MergedBy")
789 .WithMany(
"TestMerges")
790 .HasForeignKey(
"MergedById")
791 .OnDelete(DeleteBehavior.Restrict)
794 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"PrimaryRevisionInformation")
795 .WithOne(
"PrimaryTestMerge")
796 .HasForeignKey(
"Tgstation.Server.Host.Models.TestMerge",
"PrimaryRevisionInformationId")
797 .OnDelete(DeleteBehavior.Restrict)
801 modelBuilder.Entity(
"Tgstation.Server.Host.Models.User", b =>
803 b.HasOne(
"Tgstation.Server.Host.Models.User",
"CreatedBy")
804 .WithMany(
"CreatedUsers")
805 .HasForeignKey(
"CreatedById");
808 modelBuilder.Entity(
"Tgstation.Server.Host.Models.WatchdogReattachInformation", b =>
810 b.HasOne(
"Tgstation.Server.Host.Models.ReattachInformation",
"Alpha")
812 .HasForeignKey(
"AlphaId");
814 b.HasOne(
"Tgstation.Server.Host.Models.ReattachInformation",
"Bravo")
816 .HasForeignKey(
"BravoId");
818 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
null)
819 .WithOne(
"WatchdogReattachInformation")
820 .HasForeignKey(
"Tgstation.Server.Host.Models.WatchdogReattachInformation",
"InstanceId")
821 .OnDelete(DeleteBehavior.Cascade)
824#pragma warning restore 612, 618