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>(
"InstanceId")
181 .HasColumnType(
"bigint");
183 b.Property<
int>(
"PrimaryPort")
184 .HasColumnType(
"int");
186 b.Property<
int?>(
"ProcessId")
187 .HasColumnType(
"int");
189 b.Property<
int>(
"SecondaryPort")
190 .HasColumnType(
"int");
192 b.Property<
int>(
"SecurityLevel")
193 .HasColumnType(
"int");
195 b.Property<
bool?>(
"SoftRestart")
197 .HasColumnType(
"bit");
199 b.Property<
bool?>(
"SoftShutdown")
201 .HasColumnType(
"bit");
203 b.Property<
long>(
"StartupTimeout")
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);
236 b.HasIndex(
"InstanceId")
239 b.ToTable(
"DreamMakerSettings");
242 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Instance", b =>
244 b.Property<
long>(
"Id")
245 .ValueGeneratedOnAdd()
246 .HasColumnType(
"bigint")
247 .HasAnnotation(
"SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
249 b.Property<
long>(
"AutoUpdateInterval")
250 .HasColumnType(
"bigint");
252 b.Property<
int>(
"ChatBotLimit")
253 .HasColumnType(
"int");
255 b.Property<
int>(
"ConfigurationType")
256 .HasColumnType(
"int");
258 b.Property<
string>(
"Name")
260 .HasColumnType(
"nvarchar(max)")
261 .HasMaxLength(10000);
263 b.Property<
bool?>(
"Online")
265 .HasColumnType(
"bit");
267 b.Property<
string>(
"Path")
269 .HasColumnType(
"nvarchar(450)");
276 b.ToTable(
"Instances");
279 modelBuilder.Entity(
"Tgstation.Server.Host.Models.InstanceUser", b =>
281 b.Property<
long>(
"Id")
282 .ValueGeneratedOnAdd()
283 .HasColumnType(
"bigint")
284 .HasAnnotation(
"SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
286 b.Property<decimal>(
"ByondRights")
287 .HasColumnType(
"decimal(20,0)");
289 b.Property<decimal>(
"ChatBotRights")
290 .HasColumnType(
"decimal(20,0)");
292 b.Property<decimal>(
"ConfigurationRights")
293 .HasColumnType(
"decimal(20,0)");
295 b.Property<decimal>(
"DreamDaemonRights")
296 .HasColumnType(
"decimal(20,0)");
298 b.Property<decimal>(
"DreamMakerRights")
299 .HasColumnType(
"decimal(20,0)");
301 b.Property<
long>(
"InstanceId")
302 .HasColumnType(
"bigint");
304 b.Property<decimal>(
"InstanceUserRights")
305 .HasColumnType(
"decimal(20,0)");
307 b.Property<decimal>(
"RepositoryRights")
308 .HasColumnType(
"decimal(20,0)");
310 b.Property<
long?>(
"UserId")
312 .HasColumnType(
"bigint");
316 b.HasIndex(
"InstanceId");
318 b.HasIndex(
"UserId",
"InstanceId")
321 b.ToTable(
"InstanceUsers");
324 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Job", b =>
326 b.Property<
long>(
"Id")
327 .ValueGeneratedOnAdd()
328 .HasColumnType(
"bigint")
329 .HasAnnotation(
"SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
331 b.Property<decimal?>(
"CancelRight")
332 .HasColumnType(
"decimal(20,0)");
334 b.Property<decimal?>(
"CancelRightsType")
335 .HasColumnType(
"decimal(20,0)");
337 b.Property<
bool?>(
"Cancelled")
339 .HasColumnType(
"bit");
341 b.Property<
long?>(
"CancelledById")
342 .HasColumnType(
"bigint");
344 b.Property<
string>(
"Description")
346 .HasColumnType(
"nvarchar(max)");
348 b.Property<
long?>(
"ErrorCode")
349 .HasColumnType(
"bigint");
351 b.Property<
string>(
"ExceptionDetails")
352 .HasColumnType(
"nvarchar(max)");
354 b.Property<
long>(
"InstanceId")
355 .HasColumnType(
"bigint");
357 b.Property<DateTimeOffset?>(
"StartedAt")
359 .HasColumnType(
"datetimeoffset");
361 b.Property<
long>(
"StartedById")
362 .HasColumnType(
"bigint");
364 b.Property<DateTimeOffset?>(
"StoppedAt")
365 .HasColumnType(
"datetimeoffset");
369 b.HasIndex(
"CancelledById");
371 b.HasIndex(
"InstanceId");
373 b.HasIndex(
"StartedById");
378 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ReattachInformation", b =>
380 b.Property<
long>(
"Id")
381 .ValueGeneratedOnAdd()
382 .HasColumnType(
"bigint")
383 .HasAnnotation(
"SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
385 b.Property<
string>(
"AccessIdentifier")
387 .HasColumnType(
"nvarchar(max)");
389 b.Property<
long>(
"CompileJobId")
390 .HasColumnType(
"bigint");
392 b.Property<
bool>(
"IsPrimary")
393 .HasColumnType(
"bit");
395 b.Property<
int>(
"LaunchSecurityLevel")
396 .HasColumnType(
"int");
398 b.Property<
int>(
"Port")
399 .HasColumnType(
"int");
401 b.Property<
int>(
"ProcessId")
402 .HasColumnType(
"int");
404 b.Property<
int>(
"RebootState")
405 .HasColumnType(
"int");
409 b.HasIndex(
"CompileJobId");
411 b.ToTable(
"ReattachInformations");
414 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RepositorySettings", b =>
416 b.Property<
long>(
"Id")
417 .ValueGeneratedOnAdd()
418 .HasColumnType(
"bigint")
419 .HasAnnotation(
"SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
421 b.Property<
string>(
"AccessToken")
422 .HasColumnType(
"nvarchar(max)")
423 .HasMaxLength(10000);
425 b.Property<
string>(
"AccessUser")
426 .HasColumnType(
"nvarchar(max)")
427 .HasMaxLength(10000);
429 b.Property<
bool?>(
"AutoUpdatesKeepTestMerges")
431 .HasColumnType(
"bit");
433 b.Property<
bool?>(
"AutoUpdatesSynchronize")
435 .HasColumnType(
"bit");
437 b.Property<
string>(
"CommitterEmail")
439 .HasColumnType(
"nvarchar(max)")
440 .HasMaxLength(10000);
442 b.Property<
string>(
"CommitterName")
444 .HasColumnType(
"nvarchar(max)")
445 .HasMaxLength(10000);
447 b.Property<
long>(
"InstanceId")
448 .HasColumnType(
"bigint");
450 b.Property<
bool?>(
"PostTestMergeComment")
452 .HasColumnType(
"bit");
454 b.Property<
bool?>(
"PushTestMergeCommits")
456 .HasColumnType(
"bit");
458 b.Property<
bool?>(
"ShowTestMergeCommitters")
460 .HasColumnType(
"bit");
464 b.HasIndex(
"InstanceId")
467 b.ToTable(
"RepositorySettings");
470 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
472 b.Property<
long>(
"Id")
473 .ValueGeneratedOnAdd()
474 .HasColumnType(
"bigint")
475 .HasAnnotation(
"SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
477 b.Property<
long>(
"RevisionInformationId")
478 .HasColumnType(
"bigint");
480 b.Property<
long>(
"TestMergeId")
481 .HasColumnType(
"bigint");
485 b.HasIndex(
"RevisionInformationId");
487 b.HasIndex(
"TestMergeId");
489 b.ToTable(
"RevInfoTestMerges");
492 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevisionInformation", b =>
494 b.Property<
long>(
"Id")
495 .ValueGeneratedOnAdd()
496 .HasColumnType(
"bigint")
497 .HasAnnotation(
"SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
499 b.Property<
string>(
"CommitSha")
501 .HasColumnType(
"nvarchar(40)")
504 b.Property<
long>(
"InstanceId")
505 .HasColumnType(
"bigint");
507 b.Property<
string>(
"OriginCommitSha")
509 .HasColumnType(
"nvarchar(40)")
514 b.HasIndex(
"InstanceId",
"CommitSha")
517 b.ToTable(
"RevisionInformations");
520 modelBuilder.Entity(
"Tgstation.Server.Host.Models.TestMerge", b =>
522 b.Property<
long>(
"Id")
523 .ValueGeneratedOnAdd()
524 .HasColumnType(
"bigint")
525 .HasAnnotation(
"SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
527 b.Property<
string>(
"Author")
529 .HasColumnType(
"nvarchar(max)");
531 b.Property<
string>(
"BodyAtMerge")
533 .HasColumnType(
"nvarchar(max)");
535 b.Property<
string>(
"Comment")
536 .HasColumnType(
"nvarchar(max)")
537 .HasMaxLength(10000);
539 b.Property<DateTimeOffset>(
"MergedAt")
540 .HasColumnType(
"datetimeoffset");
542 b.Property<
long>(
"MergedById")
543 .HasColumnType(
"bigint");
545 b.Property<
int>(
"Number")
546 .HasColumnType(
"int");
548 b.Property<
long?>(
"PrimaryRevisionInformationId")
550 .HasColumnType(
"bigint");
552 b.Property<
string>(
"PullRequestRevision")
554 .HasColumnType(
"nvarchar(40)")
557 b.Property<
string>(
"TitleAtMerge")
559 .HasColumnType(
"nvarchar(max)");
561 b.Property<
string>(
"Url")
563 .HasColumnType(
"nvarchar(max)");
567 b.HasIndex(
"MergedById");
569 b.HasIndex(
"PrimaryRevisionInformationId")
572 b.ToTable(
"TestMerges");
575 modelBuilder.Entity(
"Tgstation.Server.Host.Models.User", b =>
577 b.Property<
long?>(
"Id")
578 .ValueGeneratedOnAdd()
579 .HasColumnType(
"bigint")
580 .HasAnnotation(
"SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
582 b.Property<decimal>(
"AdministrationRights")
583 .HasColumnType(
"decimal(20,0)");
585 b.Property<
string>(
"CanonicalName")
587 .HasColumnType(
"nvarchar(450)");
589 b.Property<DateTimeOffset?>(
"CreatedAt")
591 .HasColumnType(
"datetimeoffset");
593 b.Property<
long?>(
"CreatedById")
594 .HasColumnType(
"bigint");
596 b.Property<
bool?>(
"Enabled")
598 .HasColumnType(
"bit");
600 b.Property<decimal>(
"InstanceManagerRights")
601 .HasColumnType(
"decimal(20,0)");
603 b.Property<DateTimeOffset?>(
"LastPasswordUpdate")
604 .HasColumnType(
"datetimeoffset");
606 b.Property<
string>(
"Name")
608 .HasColumnType(
"nvarchar(max)")
609 .HasMaxLength(10000);
611 b.Property<
string>(
"PasswordHash")
612 .HasColumnType(
"nvarchar(max)");
614 b.Property<
string>(
"SystemIdentifier")
615 .HasColumnType(
"nvarchar(450)");
619 b.HasIndex(
"CanonicalName")
622 b.HasIndex(
"CreatedById");
624 b.HasIndex(
"SystemIdentifier")
626 .HasFilter(
"[SystemIdentifier] IS NOT NULL");
631 modelBuilder.Entity(
"Tgstation.Server.Host.Models.WatchdogReattachInformation", b =>
633 b.Property<
long>(
"Id")
634 .ValueGeneratedOnAdd()
635 .HasColumnType(
"bigint")
636 .HasAnnotation(
"SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
638 b.Property<
long?>(
"AlphaId")
639 .HasColumnType(
"bigint");
641 b.Property<
bool>(
"AlphaIsActive")
642 .HasColumnType(
"bit");
644 b.Property<
long?>(
"BravoId")
645 .HasColumnType(
"bigint");
647 b.Property<
long>(
"InstanceId")
648 .HasColumnType(
"bigint");
652 b.HasIndex(
"AlphaId");
654 b.HasIndex(
"BravoId");
656 b.HasIndex(
"InstanceId")
659 b.ToTable(
"WatchdogReattachInformations");
662 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatBot", b =>
664 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
665 .WithMany(
"ChatSettings")
666 .HasForeignKey(
"InstanceId")
667 .OnDelete(DeleteBehavior.Cascade)
671 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatChannel", b =>
673 b.HasOne(
"Tgstation.Server.Host.Models.ChatBot",
"ChatSettings")
674 .WithMany(
"Channels")
675 .HasForeignKey(
"ChatSettingsId")
676 .OnDelete(DeleteBehavior.Cascade)
680 modelBuilder.Entity(
"Tgstation.Server.Host.Models.CompileJob", b =>
682 b.HasOne(
"Tgstation.Server.Host.Models.Job",
"Job")
684 .HasForeignKey(
"Tgstation.Server.Host.Models.CompileJob",
"JobId")
685 .OnDelete(DeleteBehavior.Restrict)
688 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"RevisionInformation")
689 .WithMany(
"CompileJobs")
690 .HasForeignKey(
"RevisionInformationId")
691 .OnDelete(DeleteBehavior.Cascade)
695 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamDaemonSettings", b =>
697 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
698 .WithOne(
"DreamDaemonSettings")
699 .HasForeignKey(
"Tgstation.Server.Host.Models.DreamDaemonSettings",
"InstanceId")
700 .OnDelete(DeleteBehavior.Cascade)
704 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamMakerSettings", b =>
706 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
707 .WithOne(
"DreamMakerSettings")
708 .HasForeignKey(
"Tgstation.Server.Host.Models.DreamMakerSettings",
"InstanceId")
709 .OnDelete(DeleteBehavior.Cascade)
713 modelBuilder.Entity(
"Tgstation.Server.Host.Models.InstanceUser", b =>
715 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
716 .WithMany(
"InstanceUsers")
717 .HasForeignKey(
"InstanceId")
718 .OnDelete(DeleteBehavior.Cascade)
721 b.HasOne(
"Tgstation.Server.Host.Models.User",
null)
722 .WithMany(
"InstanceUsers")
723 .HasForeignKey(
"UserId")
724 .OnDelete(DeleteBehavior.Cascade)
728 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Job", b =>
730 b.HasOne(
"Tgstation.Server.Host.Models.User",
"CancelledBy")
732 .HasForeignKey(
"CancelledById");
734 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
736 .HasForeignKey(
"InstanceId")
737 .OnDelete(DeleteBehavior.Cascade)
740 b.HasOne(
"Tgstation.Server.Host.Models.User",
"StartedBy")
742 .HasForeignKey(
"StartedById")
743 .OnDelete(DeleteBehavior.Cascade)
747 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ReattachInformation", b =>
749 b.HasOne(
"Tgstation.Server.Host.Models.CompileJob",
"CompileJob")
751 .HasForeignKey(
"CompileJobId")
752 .OnDelete(DeleteBehavior.Cascade)
756 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RepositorySettings", b =>
758 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
759 .WithOne(
"RepositorySettings")
760 .HasForeignKey(
"Tgstation.Server.Host.Models.RepositorySettings",
"InstanceId")
761 .OnDelete(DeleteBehavior.Cascade)
765 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
767 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"RevisionInformation")
768 .WithMany(
"ActiveTestMerges")
769 .HasForeignKey(
"RevisionInformationId")
770 .OnDelete(DeleteBehavior.Cascade)
773 b.HasOne(
"Tgstation.Server.Host.Models.TestMerge",
"TestMerge")
774 .WithMany(
"RevisonInformations")
775 .HasForeignKey(
"TestMergeId")
776 .OnDelete(DeleteBehavior.Cascade)
780 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevisionInformation", b =>
782 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
783 .WithMany(
"RevisionInformations")
784 .HasForeignKey(
"InstanceId")
785 .OnDelete(DeleteBehavior.Cascade)
789 modelBuilder.Entity(
"Tgstation.Server.Host.Models.TestMerge", b =>
791 b.HasOne(
"Tgstation.Server.Host.Models.User",
"MergedBy")
792 .WithMany(
"TestMerges")
793 .HasForeignKey(
"MergedById")
794 .OnDelete(DeleteBehavior.Restrict)
797 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"PrimaryRevisionInformation")
798 .WithOne(
"PrimaryTestMerge")
799 .HasForeignKey(
"Tgstation.Server.Host.Models.TestMerge",
"PrimaryRevisionInformationId")
800 .OnDelete(DeleteBehavior.Restrict)
804 modelBuilder.Entity(
"Tgstation.Server.Host.Models.User", b =>
806 b.HasOne(
"Tgstation.Server.Host.Models.User",
"CreatedBy")
807 .WithMany(
"CreatedUsers")
808 .HasForeignKey(
"CreatedById");
811 modelBuilder.Entity(
"Tgstation.Server.Host.Models.WatchdogReattachInformation", b =>
813 b.HasOne(
"Tgstation.Server.Host.Models.ReattachInformation",
"Alpha")
815 .HasForeignKey(
"AlphaId");
817 b.HasOne(
"Tgstation.Server.Host.Models.ReattachInformation",
"Bravo")
819 .HasForeignKey(
"BravoId");
821 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
null)
822 .WithOne(
"WatchdogReattachInformation")
823 .HasForeignKey(
"Tgstation.Server.Host.Models.WatchdogReattachInformation",
"InstanceId")
824 .OnDelete(DeleteBehavior.Cascade)
827#pragma warning restore 612, 618