17#pragma warning disable 612, 618
19 .HasAnnotation(
"Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn)
20 .HasAnnotation(
"ProductVersion",
"3.1.4")
21 .HasAnnotation(
"Relational:MaxIdentifierLength", 63);
23 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatBot", b =>
25 b.Property<
long>(
"Id")
26 .ValueGeneratedOnAdd()
27 .HasColumnType(
"bigint")
28 .HasAnnotation(
"Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
30 b.Property<
int>(
"ChannelLimit")
31 .HasColumnType(
"integer");
33 b.Property<
string>(
"ConnectionString")
35 .HasColumnType(
"character varying(10000)")
38 b.Property<
bool?>(
"Enabled")
39 .HasColumnType(
"boolean");
41 b.Property<
long>(
"InstanceId")
42 .HasColumnType(
"bigint");
44 b.Property<
string>(
"Name")
46 .HasColumnType(
"character varying(100)")
49 b.Property<
int>(
"Provider")
50 .HasColumnType(
"integer");
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(
"Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
70 b.Property<
long>(
"ChatSettingsId")
71 .HasColumnType(
"bigint");
73 b.Property<decimal?>(
"DiscordChannelId")
74 .HasColumnType(
"numeric(20,0)");
76 b.Property<
string>(
"IrcChannel")
77 .HasColumnType(
"character varying(100)")
80 b.Property<
bool?>(
"IsAdminChannel")
82 .HasColumnType(
"boolean");
84 b.Property<
bool?>(
"IsUpdatesChannel")
86 .HasColumnType(
"boolean");
88 b.Property<
bool?>(
"IsWatchdogChannel")
90 .HasColumnType(
"boolean");
92 b.Property<
string>(
"Tag")
93 .HasColumnType(
"character varying(10000)")
98 b.HasIndex(
"ChatSettingsId",
"DiscordChannelId")
101 b.HasIndex(
"ChatSettingsId",
"IrcChannel")
104 b.ToTable(
"ChatChannels");
107 modelBuilder.Entity(
"Tgstation.Server.Host.Models.CompileJob", b =>
109 b.Property<
long>(
"Id")
110 .ValueGeneratedOnAdd()
111 .HasColumnType(
"bigint")
112 .HasAnnotation(
"Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
114 b.Property<
string>(
"ByondVersion")
116 .HasColumnType(
"text");
118 b.Property<
int?>(
"DMApiMajorVersion")
119 .HasColumnType(
"integer");
121 b.Property<
int?>(
"DMApiMinorVersion")
122 .HasColumnType(
"integer");
124 b.Property<
int?>(
"DMApiPatchVersion")
125 .HasColumnType(
"integer");
127 b.Property<Guid?>(
"DirectoryName")
129 .HasColumnType(
"uuid");
131 b.Property<
string>(
"DmeName")
133 .HasColumnType(
"text");
135 b.Property<
long>(
"JobId")
136 .HasColumnType(
"bigint");
138 b.Property<
int>(
"MinimumSecurityLevel")
139 .HasColumnType(
"integer");
141 b.Property<
string>(
"Output")
143 .HasColumnType(
"text");
145 b.Property<
long>(
"RevisionInformationId")
146 .HasColumnType(
"bigint");
150 b.HasIndex(
"DirectoryName");
155 b.HasIndex(
"RevisionInformationId");
157 b.ToTable(
"CompileJobs");
160 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamDaemonSettings", b =>
162 b.Property<
long>(
"Id")
163 .ValueGeneratedOnAdd()
164 .HasColumnType(
"bigint")
165 .HasAnnotation(
"Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
167 b.Property<
bool?>(
"AllowWebClient")
169 .HasColumnType(
"boolean");
171 b.Property<
bool?>(
"AutoStart")
173 .HasColumnType(
"boolean");
175 b.Property<
long>(
"HeartbeatSeconds")
176 .HasColumnType(
"bigint");
178 b.Property<
long>(
"InstanceId")
179 .HasColumnType(
"bigint");
181 b.Property<
int>(
"PrimaryPort")
182 .HasColumnType(
"integer");
184 b.Property<
int>(
"SecondaryPort")
185 .HasColumnType(
"integer");
187 b.Property<
int>(
"SecurityLevel")
188 .HasColumnType(
"integer");
190 b.Property<
long>(
"StartupTimeout")
191 .HasColumnType(
"bigint");
193 b.Property<
long>(
"TopicRequestTimeout")
194 .HasColumnType(
"bigint");
198 b.HasIndex(
"InstanceId")
201 b.ToTable(
"DreamDaemonSettings");
204 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamMakerSettings", b =>
206 b.Property<
long>(
"Id")
207 .ValueGeneratedOnAdd()
208 .HasColumnType(
"bigint")
209 .HasAnnotation(
"Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
211 b.Property<
int>(
"ApiValidationPort")
212 .HasColumnType(
"integer");
214 b.Property<
int>(
"ApiValidationSecurityLevel")
215 .HasColumnType(
"integer");
217 b.Property<
long>(
"InstanceId")
218 .HasColumnType(
"bigint");
220 b.Property<
string>(
"ProjectName")
221 .HasColumnType(
"character varying(10000)")
222 .HasMaxLength(10000);
226 b.HasIndex(
"InstanceId")
229 b.ToTable(
"DreamMakerSettings");
232 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DualReattachInformation", b =>
234 b.Property<
long>(
"Id")
235 .ValueGeneratedOnAdd()
236 .HasColumnType(
"bigint")
237 .HasAnnotation(
"Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
239 b.Property<
long?>(
"AlphaId")
240 .HasColumnType(
"bigint");
242 b.Property<
bool>(
"AlphaIsActive")
243 .HasColumnType(
"boolean");
245 b.Property<
long?>(
"BravoId")
246 .HasColumnType(
"bigint");
248 b.Property<
long>(
"InstanceId")
249 .HasColumnType(
"bigint");
253 b.HasIndex(
"AlphaId");
255 b.HasIndex(
"BravoId");
257 b.HasIndex(
"InstanceId")
260 b.ToTable(
"WatchdogReattachInformations");
263 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Instance", b =>
265 b.Property<
long>(
"Id")
266 .ValueGeneratedOnAdd()
267 .HasColumnType(
"bigint")
268 .HasAnnotation(
"Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
270 b.Property<
long>(
"AutoUpdateInterval")
271 .HasColumnType(
"bigint");
273 b.Property<
int>(
"ChatBotLimit")
274 .HasColumnType(
"integer");
276 b.Property<
int>(
"ConfigurationType")
277 .HasColumnType(
"integer");
279 b.Property<
string>(
"Name")
281 .HasColumnType(
"character varying(10000)")
282 .HasMaxLength(10000);
284 b.Property<
bool?>(
"Online")
286 .HasColumnType(
"boolean");
288 b.Property<
string>(
"Path")
290 .HasColumnType(
"text");
297 b.ToTable(
"Instances");
300 modelBuilder.Entity(
"Tgstation.Server.Host.Models.InstanceUser", b =>
302 b.Property<
long>(
"Id")
303 .ValueGeneratedOnAdd()
304 .HasColumnType(
"bigint")
305 .HasAnnotation(
"Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
307 b.Property<decimal>(
"ByondRights")
308 .HasColumnType(
"numeric(20,0)");
310 b.Property<decimal>(
"ChatBotRights")
311 .HasColumnType(
"numeric(20,0)");
313 b.Property<decimal>(
"ConfigurationRights")
314 .HasColumnType(
"numeric(20,0)");
316 b.Property<decimal>(
"DreamDaemonRights")
317 .HasColumnType(
"numeric(20,0)");
319 b.Property<decimal>(
"DreamMakerRights")
320 .HasColumnType(
"numeric(20,0)");
322 b.Property<
long>(
"InstanceId")
323 .HasColumnType(
"bigint");
325 b.Property<decimal>(
"InstanceUserRights")
326 .HasColumnType(
"numeric(20,0)");
328 b.Property<decimal>(
"RepositoryRights")
329 .HasColumnType(
"numeric(20,0)");
331 b.Property<
long?>(
"UserId")
333 .HasColumnType(
"bigint");
337 b.HasIndex(
"InstanceId");
339 b.HasIndex(
"UserId",
"InstanceId")
342 b.ToTable(
"InstanceUsers");
345 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Job", b =>
347 b.Property<
long>(
"Id")
348 .ValueGeneratedOnAdd()
349 .HasColumnType(
"bigint")
350 .HasAnnotation(
"Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
352 b.Property<decimal?>(
"CancelRight")
353 .HasColumnType(
"numeric(20,0)");
355 b.Property<decimal?>(
"CancelRightsType")
356 .HasColumnType(
"numeric(20,0)");
358 b.Property<
bool?>(
"Cancelled")
360 .HasColumnType(
"boolean");
362 b.Property<
long?>(
"CancelledById")
363 .HasColumnType(
"bigint");
365 b.Property<
string>(
"Description")
367 .HasColumnType(
"text");
369 b.Property<
long?>(
"ErrorCode")
370 .HasColumnType(
"bigint");
372 b.Property<
string>(
"ExceptionDetails")
373 .HasColumnType(
"text");
375 b.Property<
long>(
"InstanceId")
376 .HasColumnType(
"bigint");
378 b.Property<DateTimeOffset?>(
"StartedAt")
380 .HasColumnType(
"timestamp with time zone");
382 b.Property<
long>(
"StartedById")
383 .HasColumnType(
"bigint");
385 b.Property<DateTimeOffset?>(
"StoppedAt")
386 .HasColumnType(
"timestamp with time zone");
390 b.HasIndex(
"CancelledById");
392 b.HasIndex(
"InstanceId");
394 b.HasIndex(
"StartedById");
399 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ReattachInformation", b =>
401 b.Property<
long>(
"Id")
402 .ValueGeneratedOnAdd()
403 .HasColumnType(
"bigint")
404 .HasAnnotation(
"Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
406 b.Property<
string>(
"AccessIdentifier")
408 .HasColumnType(
"text");
410 b.Property<
long>(
"CompileJobId")
411 .HasColumnType(
"bigint");
413 b.Property<
bool>(
"IsPrimary")
414 .HasColumnType(
"boolean");
416 b.Property<
int>(
"LaunchSecurityLevel")
417 .HasColumnType(
"integer");
419 b.Property<
int>(
"Port")
420 .HasColumnType(
"integer");
422 b.Property<
int>(
"ProcessId")
423 .HasColumnType(
"integer");
425 b.Property<
int>(
"RebootState")
426 .HasColumnType(
"integer");
430 b.HasIndex(
"CompileJobId");
432 b.ToTable(
"ReattachInformations");
435 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RepositorySettings", b =>
437 b.Property<
long>(
"Id")
438 .ValueGeneratedOnAdd()
439 .HasColumnType(
"bigint")
440 .HasAnnotation(
"Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
442 b.Property<
string>(
"AccessToken")
443 .HasColumnType(
"character varying(10000)")
444 .HasMaxLength(10000);
446 b.Property<
string>(
"AccessUser")
447 .HasColumnType(
"character varying(10000)")
448 .HasMaxLength(10000);
450 b.Property<
bool?>(
"AutoUpdatesKeepTestMerges")
452 .HasColumnType(
"boolean");
454 b.Property<
bool?>(
"AutoUpdatesSynchronize")
456 .HasColumnType(
"boolean");
458 b.Property<
string>(
"CommitterEmail")
460 .HasColumnType(
"character varying(10000)")
461 .HasMaxLength(10000);
463 b.Property<
string>(
"CommitterName")
465 .HasColumnType(
"character varying(10000)")
466 .HasMaxLength(10000);
468 b.Property<
long>(
"InstanceId")
469 .HasColumnType(
"bigint");
471 b.Property<
bool?>(
"PostTestMergeComment")
473 .HasColumnType(
"boolean");
475 b.Property<
bool?>(
"PushTestMergeCommits")
477 .HasColumnType(
"boolean");
479 b.Property<
bool?>(
"ShowTestMergeCommitters")
481 .HasColumnType(
"boolean");
485 b.HasIndex(
"InstanceId")
488 b.ToTable(
"RepositorySettings");
491 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
493 b.Property<
long>(
"Id")
494 .ValueGeneratedOnAdd()
495 .HasColumnType(
"bigint")
496 .HasAnnotation(
"Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
498 b.Property<
long>(
"RevisionInformationId")
499 .HasColumnType(
"bigint");
501 b.Property<
long>(
"TestMergeId")
502 .HasColumnType(
"bigint");
506 b.HasIndex(
"RevisionInformationId");
508 b.HasIndex(
"TestMergeId");
510 b.ToTable(
"RevInfoTestMerges");
513 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevisionInformation", b =>
515 b.Property<
long>(
"Id")
516 .ValueGeneratedOnAdd()
517 .HasColumnType(
"bigint")
518 .HasAnnotation(
"Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
520 b.Property<
string>(
"CommitSha")
522 .HasColumnType(
"character varying(40)")
525 b.Property<
long>(
"InstanceId")
526 .HasColumnType(
"bigint");
528 b.Property<
string>(
"OriginCommitSha")
530 .HasColumnType(
"character varying(40)")
535 b.HasIndex(
"InstanceId",
"CommitSha")
538 b.ToTable(
"RevisionInformations");
541 modelBuilder.Entity(
"Tgstation.Server.Host.Models.TestMerge", b =>
543 b.Property<
long>(
"Id")
544 .ValueGeneratedOnAdd()
545 .HasColumnType(
"bigint")
546 .HasAnnotation(
"Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
548 b.Property<
string>(
"Author")
550 .HasColumnType(
"text");
552 b.Property<
string>(
"BodyAtMerge")
554 .HasColumnType(
"text");
556 b.Property<
string>(
"Comment")
557 .HasColumnType(
"character varying(10000)")
558 .HasMaxLength(10000);
560 b.Property<DateTimeOffset>(
"MergedAt")
561 .HasColumnType(
"timestamp with time zone");
563 b.Property<
long>(
"MergedById")
564 .HasColumnType(
"bigint");
566 b.Property<
int>(
"Number")
567 .HasColumnType(
"integer");
569 b.Property<
long?>(
"PrimaryRevisionInformationId")
571 .HasColumnType(
"bigint");
573 b.Property<
string>(
"PullRequestRevision")
575 .HasColumnType(
"character varying(40)")
578 b.Property<
string>(
"TitleAtMerge")
580 .HasColumnType(
"text");
582 b.Property<
string>(
"Url")
584 .HasColumnType(
"text");
588 b.HasIndex(
"MergedById");
590 b.HasIndex(
"PrimaryRevisionInformationId")
593 b.ToTable(
"TestMerges");
596 modelBuilder.Entity(
"Tgstation.Server.Host.Models.User", b =>
598 b.Property<
long?>(
"Id")
599 .ValueGeneratedOnAdd()
600 .HasColumnType(
"bigint")
601 .HasAnnotation(
"Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
603 b.Property<decimal>(
"AdministrationRights")
604 .HasColumnType(
"numeric(20,0)");
606 b.Property<
string>(
"CanonicalName")
608 .HasColumnType(
"text");
610 b.Property<DateTimeOffset?>(
"CreatedAt")
612 .HasColumnType(
"timestamp with time zone");
614 b.Property<
long?>(
"CreatedById")
615 .HasColumnType(
"bigint");
617 b.Property<
bool?>(
"Enabled")
619 .HasColumnType(
"boolean");
621 b.Property<decimal>(
"InstanceManagerRights")
622 .HasColumnType(
"numeric(20,0)");
624 b.Property<DateTimeOffset?>(
"LastPasswordUpdate")
625 .HasColumnType(
"timestamp with time zone");
627 b.Property<
string>(
"Name")
629 .HasColumnType(
"character varying(10000)")
630 .HasMaxLength(10000);
632 b.Property<
string>(
"PasswordHash")
633 .HasColumnType(
"text");
635 b.Property<
string>(
"SystemIdentifier")
636 .HasColumnType(
"text");
640 b.HasIndex(
"CanonicalName")
643 b.HasIndex(
"CreatedById");
645 b.HasIndex(
"SystemIdentifier")
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.Cascade)
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.DualReattachInformation", b =>
704 b.HasOne(
"Tgstation.Server.Host.Models.ReattachInformation",
"Alpha")
706 .HasForeignKey(
"AlphaId");
708 b.HasOne(
"Tgstation.Server.Host.Models.ReattachInformation",
"Bravo")
710 .HasForeignKey(
"BravoId");
712 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
null)
713 .WithOne(
"WatchdogReattachInformation")
714 .HasForeignKey(
"Tgstation.Server.Host.Models.DualReattachInformation",
"InstanceId")
715 .OnDelete(DeleteBehavior.Cascade)
719 modelBuilder.Entity(
"Tgstation.Server.Host.Models.InstanceUser", b =>
721 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
722 .WithMany(
"InstanceUsers")
723 .HasForeignKey(
"InstanceId")
724 .OnDelete(DeleteBehavior.Cascade)
727 b.HasOne(
"Tgstation.Server.Host.Models.User",
null)
728 .WithMany(
"InstanceUsers")
729 .HasForeignKey(
"UserId")
730 .OnDelete(DeleteBehavior.Cascade)
734 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Job", b =>
736 b.HasOne(
"Tgstation.Server.Host.Models.User",
"CancelledBy")
738 .HasForeignKey(
"CancelledById");
740 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
742 .HasForeignKey(
"InstanceId")
743 .OnDelete(DeleteBehavior.Cascade)
746 b.HasOne(
"Tgstation.Server.Host.Models.User",
"StartedBy")
748 .HasForeignKey(
"StartedById")
749 .OnDelete(DeleteBehavior.Cascade)
753 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ReattachInformation", b =>
755 b.HasOne(
"Tgstation.Server.Host.Models.CompileJob",
"CompileJob")
757 .HasForeignKey(
"CompileJobId")
758 .OnDelete(DeleteBehavior.Cascade)
762 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RepositorySettings", b =>
764 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
765 .WithOne(
"RepositorySettings")
766 .HasForeignKey(
"Tgstation.Server.Host.Models.RepositorySettings",
"InstanceId")
767 .OnDelete(DeleteBehavior.Cascade)
771 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
773 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"RevisionInformation")
774 .WithMany(
"ActiveTestMerges")
775 .HasForeignKey(
"RevisionInformationId")
776 .OnDelete(DeleteBehavior.Cascade)
779 b.HasOne(
"Tgstation.Server.Host.Models.TestMerge",
"TestMerge")
780 .WithMany(
"RevisonInformations")
781 .HasForeignKey(
"TestMergeId")
782 .OnDelete(DeleteBehavior.ClientNoAction)
786 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevisionInformation", b =>
788 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
789 .WithMany(
"RevisionInformations")
790 .HasForeignKey(
"InstanceId")
791 .OnDelete(DeleteBehavior.Cascade)
795 modelBuilder.Entity(
"Tgstation.Server.Host.Models.TestMerge", b =>
797 b.HasOne(
"Tgstation.Server.Host.Models.User",
"MergedBy")
798 .WithMany(
"TestMerges")
799 .HasForeignKey(
"MergedById")
800 .OnDelete(DeleteBehavior.Restrict)
803 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"PrimaryRevisionInformation")
804 .WithOne(
"PrimaryTestMerge")
805 .HasForeignKey(
"Tgstation.Server.Host.Models.TestMerge",
"PrimaryRevisionInformationId")
806 .OnDelete(DeleteBehavior.Cascade)
810 modelBuilder.Entity(
"Tgstation.Server.Host.Models.User", b =>
812 b.HasOne(
"Tgstation.Server.Host.Models.User",
"CreatedBy")
813 .WithMany(
"CreatedUsers")
814 .HasForeignKey(
"CreatedById");
816#pragma warning restore 612, 618