17#pragma warning disable 612, 618
19 .HasAnnotation(
"Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn)
20 .HasAnnotation(
"ProductVersion",
"3.1.10")
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<
int?>(
"GitHubDeploymentId")
136 .HasColumnType(
"integer");
138 b.Property<
long?>(
"GitHubRepoId")
139 .HasColumnType(
"bigint");
141 b.Property<
long>(
"JobId")
142 .HasColumnType(
"bigint");
144 b.Property<
int?>(
"MinimumSecurityLevel")
145 .HasColumnType(
"integer");
147 b.Property<
string>(
"Output")
149 .HasColumnType(
"text");
151 b.Property<
string>(
"RepositoryOrigin")
152 .HasColumnType(
"text");
154 b.Property<
long>(
"RevisionInformationId")
155 .HasColumnType(
"bigint");
159 b.HasIndex(
"DirectoryName");
164 b.HasIndex(
"RevisionInformationId");
166 b.ToTable(
"CompileJobs");
169 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamDaemonSettings", b =>
171 b.Property<
long>(
"Id")
172 .ValueGeneratedOnAdd()
173 .HasColumnType(
"bigint")
174 .HasAnnotation(
"Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
176 b.Property<
string>(
"AdditionalParameters")
178 .HasColumnType(
"character varying(10000)")
179 .HasMaxLength(10000);
181 b.Property<
bool?>(
"AllowWebClient")
183 .HasColumnType(
"boolean");
185 b.Property<
bool?>(
"AutoStart")
187 .HasColumnType(
"boolean");
189 b.Property<
long>(
"HeartbeatSeconds")
190 .HasColumnType(
"bigint");
192 b.Property<
long>(
"InstanceId")
193 .HasColumnType(
"bigint");
195 b.Property<
int>(
"Port")
196 .HasColumnType(
"integer");
198 b.Property<
int>(
"SecurityLevel")
199 .HasColumnType(
"integer");
201 b.Property<
long>(
"StartupTimeout")
202 .HasColumnType(
"bigint");
204 b.Property<
long>(
"TopicRequestTimeout")
205 .HasColumnType(
"bigint");
209 b.HasIndex(
"InstanceId")
212 b.ToTable(
"DreamDaemonSettings");
215 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamMakerSettings", b =>
217 b.Property<
long>(
"Id")
218 .ValueGeneratedOnAdd()
219 .HasColumnType(
"bigint")
220 .HasAnnotation(
"Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
222 b.Property<
int>(
"ApiValidationPort")
223 .HasColumnType(
"integer");
225 b.Property<
int>(
"ApiValidationSecurityLevel")
226 .HasColumnType(
"integer");
228 b.Property<
long>(
"InstanceId")
229 .HasColumnType(
"bigint");
231 b.Property<
string>(
"ProjectName")
232 .HasColumnType(
"character varying(10000)")
233 .HasMaxLength(10000);
235 b.Property<
bool?>(
"RequireDMApiValidation")
237 .HasColumnType(
"boolean");
241 b.HasIndex(
"InstanceId")
244 b.ToTable(
"DreamMakerSettings");
247 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Instance", b =>
249 b.Property<
long>(
"Id")
250 .ValueGeneratedOnAdd()
251 .HasColumnType(
"bigint")
252 .HasAnnotation(
"Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
254 b.Property<
long>(
"AutoUpdateInterval")
255 .HasColumnType(
"bigint");
257 b.Property<
int>(
"ChatBotLimit")
258 .HasColumnType(
"integer");
260 b.Property<
int>(
"ConfigurationType")
261 .HasColumnType(
"integer");
263 b.Property<
string>(
"Name")
265 .HasColumnType(
"character varying(10000)")
266 .HasMaxLength(10000);
268 b.Property<
bool?>(
"Online")
270 .HasColumnType(
"boolean");
272 b.Property<
string>(
"Path")
274 .HasColumnType(
"text");
281 b.ToTable(
"Instances");
284 modelBuilder.Entity(
"Tgstation.Server.Host.Models.InstanceUser", b =>
286 b.Property<
long>(
"Id")
287 .ValueGeneratedOnAdd()
288 .HasColumnType(
"bigint")
289 .HasAnnotation(
"Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
291 b.Property<decimal>(
"ByondRights")
292 .HasColumnType(
"numeric(20,0)");
294 b.Property<decimal>(
"ChatBotRights")
295 .HasColumnType(
"numeric(20,0)");
297 b.Property<decimal>(
"ConfigurationRights")
298 .HasColumnType(
"numeric(20,0)");
300 b.Property<decimal>(
"DreamDaemonRights")
301 .HasColumnType(
"numeric(20,0)");
303 b.Property<decimal>(
"DreamMakerRights")
304 .HasColumnType(
"numeric(20,0)");
306 b.Property<
long>(
"InstanceId")
307 .HasColumnType(
"bigint");
309 b.Property<decimal>(
"InstanceUserRights")
310 .HasColumnType(
"numeric(20,0)");
312 b.Property<decimal>(
"RepositoryRights")
313 .HasColumnType(
"numeric(20,0)");
315 b.Property<
long>(
"UserId")
316 .HasColumnType(
"bigint");
320 b.HasIndex(
"InstanceId");
322 b.HasIndex(
"UserId",
"InstanceId")
325 b.ToTable(
"InstanceUsers");
328 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Job", b =>
330 b.Property<
long>(
"Id")
331 .ValueGeneratedOnAdd()
332 .HasColumnType(
"bigint")
333 .HasAnnotation(
"Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
335 b.Property<decimal?>(
"CancelRight")
336 .HasColumnType(
"numeric(20,0)");
338 b.Property<decimal?>(
"CancelRightsType")
339 .HasColumnType(
"numeric(20,0)");
341 b.Property<
bool?>(
"Cancelled")
343 .HasColumnType(
"boolean");
345 b.Property<
long?>(
"CancelledById")
346 .HasColumnType(
"bigint");
348 b.Property<
string>(
"Description")
350 .HasColumnType(
"text");
352 b.Property<
long?>(
"ErrorCode")
353 .HasColumnType(
"bigint");
355 b.Property<
string>(
"ExceptionDetails")
356 .HasColumnType(
"text");
358 b.Property<
long>(
"InstanceId")
359 .HasColumnType(
"bigint");
361 b.Property<DateTimeOffset?>(
"StartedAt")
363 .HasColumnType(
"timestamp with time zone");
365 b.Property<
long>(
"StartedById")
366 .HasColumnType(
"bigint");
368 b.Property<DateTimeOffset?>(
"StoppedAt")
369 .HasColumnType(
"timestamp with time zone");
373 b.HasIndex(
"CancelledById");
375 b.HasIndex(
"InstanceId");
377 b.HasIndex(
"StartedById");
382 modelBuilder.Entity(
"Tgstation.Server.Host.Models.OAuthConnection", b =>
384 b.Property<
long>(
"Id")
385 .ValueGeneratedOnAdd()
386 .HasColumnType(
"bigint")
387 .HasAnnotation(
"Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
389 b.Property<
string>(
"ExternalUserId")
391 .HasColumnType(
"character varying(100)")
394 b.Property<
int>(
"Provider")
395 .HasColumnType(
"integer");
397 b.Property<
long?>(
"UserId")
398 .HasColumnType(
"bigint");
402 b.HasIndex(
"UserId");
404 b.HasIndex(
"Provider",
"ExternalUserId")
407 b.ToTable(
"OAuthConnections");
410 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ReattachInformation", b =>
412 b.Property<
long>(
"Id")
413 .ValueGeneratedOnAdd()
414 .HasColumnType(
"bigint")
415 .HasAnnotation(
"Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
417 b.Property<
string>(
"AccessIdentifier")
419 .HasColumnType(
"text");
421 b.Property<
long>(
"CompileJobId")
422 .HasColumnType(
"bigint");
424 b.Property<
int>(
"LaunchSecurityLevel")
425 .HasColumnType(
"integer");
427 b.Property<
int>(
"Port")
428 .HasColumnType(
"integer");
430 b.Property<
int>(
"ProcessId")
431 .HasColumnType(
"integer");
433 b.Property<
int>(
"RebootState")
434 .HasColumnType(
"integer");
438 b.HasIndex(
"CompileJobId");
440 b.ToTable(
"ReattachInformations");
443 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RepositorySettings", b =>
445 b.Property<
long>(
"Id")
446 .ValueGeneratedOnAdd()
447 .HasColumnType(
"bigint")
448 .HasAnnotation(
"Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
450 b.Property<
string>(
"AccessToken")
451 .HasColumnType(
"character varying(10000)")
452 .HasMaxLength(10000);
454 b.Property<
string>(
"AccessUser")
455 .HasColumnType(
"character varying(10000)")
456 .HasMaxLength(10000);
458 b.Property<
bool?>(
"AutoUpdatesKeepTestMerges")
460 .HasColumnType(
"boolean");
462 b.Property<
bool?>(
"AutoUpdatesSynchronize")
464 .HasColumnType(
"boolean");
466 b.Property<
string>(
"CommitterEmail")
468 .HasColumnType(
"character varying(10000)")
469 .HasMaxLength(10000);
471 b.Property<
string>(
"CommitterName")
473 .HasColumnType(
"character varying(10000)")
474 .HasMaxLength(10000);
476 b.Property<
bool?>(
"CreateGitHubDeployments")
478 .HasColumnType(
"boolean");
480 b.Property<
long>(
"InstanceId")
481 .HasColumnType(
"bigint");
483 b.Property<
bool?>(
"PostTestMergeComment")
485 .HasColumnType(
"boolean");
487 b.Property<
bool?>(
"PushTestMergeCommits")
489 .HasColumnType(
"boolean");
491 b.Property<
bool?>(
"ShowTestMergeCommitters")
493 .HasColumnType(
"boolean");
497 b.HasIndex(
"InstanceId")
500 b.ToTable(
"RepositorySettings");
503 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
505 b.Property<
long>(
"Id")
506 .ValueGeneratedOnAdd()
507 .HasColumnType(
"bigint")
508 .HasAnnotation(
"Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
510 b.Property<
long>(
"RevisionInformationId")
511 .HasColumnType(
"bigint");
513 b.Property<
long>(
"TestMergeId")
514 .HasColumnType(
"bigint");
518 b.HasIndex(
"RevisionInformationId");
520 b.HasIndex(
"TestMergeId");
522 b.ToTable(
"RevInfoTestMerges");
525 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevisionInformation", b =>
527 b.Property<
long>(
"Id")
528 .ValueGeneratedOnAdd()
529 .HasColumnType(
"bigint")
530 .HasAnnotation(
"Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
532 b.Property<
string>(
"CommitSha")
534 .HasColumnType(
"character varying(40)")
537 b.Property<
long>(
"InstanceId")
538 .HasColumnType(
"bigint");
540 b.Property<
string>(
"OriginCommitSha")
542 .HasColumnType(
"character varying(40)")
547 b.HasIndex(
"InstanceId",
"CommitSha")
550 b.ToTable(
"RevisionInformations");
553 modelBuilder.Entity(
"Tgstation.Server.Host.Models.TestMerge", b =>
555 b.Property<
long>(
"Id")
556 .ValueGeneratedOnAdd()
557 .HasColumnType(
"bigint")
558 .HasAnnotation(
"Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
560 b.Property<
string>(
"Author")
562 .HasColumnType(
"text");
564 b.Property<
string>(
"BodyAtMerge")
566 .HasColumnType(
"text");
568 b.Property<
string>(
"Comment")
569 .HasColumnType(
"character varying(10000)")
570 .HasMaxLength(10000);
572 b.Property<DateTimeOffset>(
"MergedAt")
573 .HasColumnType(
"timestamp with time zone");
575 b.Property<
long>(
"MergedById")
576 .HasColumnType(
"bigint");
578 b.Property<
int>(
"Number")
579 .HasColumnType(
"integer");
581 b.Property<
long?>(
"PrimaryRevisionInformationId")
583 .HasColumnType(
"bigint");
585 b.Property<
string>(
"TargetCommitSha")
587 .HasColumnType(
"character varying(40)")
590 b.Property<
string>(
"TitleAtMerge")
592 .HasColumnType(
"text");
594 b.Property<
string>(
"Url")
596 .HasColumnType(
"text");
600 b.HasIndex(
"MergedById");
602 b.HasIndex(
"PrimaryRevisionInformationId")
605 b.ToTable(
"TestMerges");
608 modelBuilder.Entity(
"Tgstation.Server.Host.Models.User", b =>
610 b.Property<
long?>(
"Id")
611 .ValueGeneratedOnAdd()
612 .HasColumnType(
"bigint")
613 .HasAnnotation(
"Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
615 b.Property<decimal>(
"AdministrationRights")
616 .HasColumnType(
"numeric(20,0)");
618 b.Property<
string>(
"CanonicalName")
620 .HasColumnType(
"text");
622 b.Property<DateTimeOffset?>(
"CreatedAt")
624 .HasColumnType(
"timestamp with time zone");
626 b.Property<
long?>(
"CreatedById")
627 .HasColumnType(
"bigint");
629 b.Property<
bool?>(
"Enabled")
631 .HasColumnType(
"boolean");
633 b.Property<decimal>(
"InstanceManagerRights")
634 .HasColumnType(
"numeric(20,0)");
636 b.Property<DateTimeOffset?>(
"LastPasswordUpdate")
637 .HasColumnType(
"timestamp with time zone");
639 b.Property<
string>(
"Name")
641 .HasColumnType(
"character varying(10000)")
642 .HasMaxLength(10000);
644 b.Property<
string>(
"PasswordHash")
645 .HasColumnType(
"text");
647 b.Property<
string>(
"SystemIdentifier")
648 .HasColumnType(
"text");
652 b.HasIndex(
"CanonicalName")
655 b.HasIndex(
"CreatedById");
657 b.HasIndex(
"SystemIdentifier")
663 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatBot", b =>
665 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
666 .WithMany(
"ChatSettings")
667 .HasForeignKey(
"InstanceId")
668 .OnDelete(DeleteBehavior.Cascade)
672 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatChannel", b =>
674 b.HasOne(
"Tgstation.Server.Host.Models.ChatBot",
"ChatSettings")
675 .WithMany(
"Channels")
676 .HasForeignKey(
"ChatSettingsId")
677 .OnDelete(DeleteBehavior.Cascade)
681 modelBuilder.Entity(
"Tgstation.Server.Host.Models.CompileJob", b =>
683 b.HasOne(
"Tgstation.Server.Host.Models.Job",
"Job")
685 .HasForeignKey(
"Tgstation.Server.Host.Models.CompileJob",
"JobId")
686 .OnDelete(DeleteBehavior.Cascade)
689 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"RevisionInformation")
690 .WithMany(
"CompileJobs")
691 .HasForeignKey(
"RevisionInformationId")
692 .OnDelete(DeleteBehavior.Cascade)
696 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamDaemonSettings", b =>
698 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
699 .WithOne(
"DreamDaemonSettings")
700 .HasForeignKey(
"Tgstation.Server.Host.Models.DreamDaemonSettings",
"InstanceId")
701 .OnDelete(DeleteBehavior.Cascade)
705 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamMakerSettings", b =>
707 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
708 .WithOne(
"DreamMakerSettings")
709 .HasForeignKey(
"Tgstation.Server.Host.Models.DreamMakerSettings",
"InstanceId")
710 .OnDelete(DeleteBehavior.Cascade)
714 modelBuilder.Entity(
"Tgstation.Server.Host.Models.InstanceUser", b =>
716 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
717 .WithMany(
"InstanceUsers")
718 .HasForeignKey(
"InstanceId")
719 .OnDelete(DeleteBehavior.Cascade)
722 b.HasOne(
"Tgstation.Server.Host.Models.User",
null)
723 .WithMany(
"InstanceUsers")
724 .HasForeignKey(
"UserId")
725 .OnDelete(DeleteBehavior.Cascade)
729 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Job", b =>
731 b.HasOne(
"Tgstation.Server.Host.Models.User",
"CancelledBy")
733 .HasForeignKey(
"CancelledById");
735 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
737 .HasForeignKey(
"InstanceId")
738 .OnDelete(DeleteBehavior.Cascade)
741 b.HasOne(
"Tgstation.Server.Host.Models.User",
"StartedBy")
743 .HasForeignKey(
"StartedById")
744 .OnDelete(DeleteBehavior.Cascade)
748 modelBuilder.Entity(
"Tgstation.Server.Host.Models.OAuthConnection", b =>
750 b.HasOne(
"Tgstation.Server.Host.Models.User",
"User")
751 .WithMany(
"OAuthConnections")
752 .HasForeignKey(
"UserId")
753 .OnDelete(DeleteBehavior.Cascade);
756 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ReattachInformation", b =>
758 b.HasOne(
"Tgstation.Server.Host.Models.CompileJob",
"CompileJob")
760 .HasForeignKey(
"CompileJobId")
761 .OnDelete(DeleteBehavior.Cascade)
765 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RepositorySettings", b =>
767 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
768 .WithOne(
"RepositorySettings")
769 .HasForeignKey(
"Tgstation.Server.Host.Models.RepositorySettings",
"InstanceId")
770 .OnDelete(DeleteBehavior.Cascade)
774 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
776 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"RevisionInformation")
777 .WithMany(
"ActiveTestMerges")
778 .HasForeignKey(
"RevisionInformationId")
779 .OnDelete(DeleteBehavior.Cascade)
782 b.HasOne(
"Tgstation.Server.Host.Models.TestMerge",
"TestMerge")
783 .WithMany(
"RevisonInformations")
784 .HasForeignKey(
"TestMergeId")
785 .OnDelete(DeleteBehavior.ClientNoAction)
789 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevisionInformation", b =>
791 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
792 .WithMany(
"RevisionInformations")
793 .HasForeignKey(
"InstanceId")
794 .OnDelete(DeleteBehavior.Cascade)
798 modelBuilder.Entity(
"Tgstation.Server.Host.Models.TestMerge", b =>
800 b.HasOne(
"Tgstation.Server.Host.Models.User",
"MergedBy")
801 .WithMany(
"TestMerges")
802 .HasForeignKey(
"MergedById")
803 .OnDelete(DeleteBehavior.Restrict)
806 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"PrimaryRevisionInformation")
807 .WithOne(
"PrimaryTestMerge")
808 .HasForeignKey(
"Tgstation.Server.Host.Models.TestMerge",
"PrimaryRevisionInformationId")
809 .OnDelete(DeleteBehavior.Cascade)
813 modelBuilder.Entity(
"Tgstation.Server.Host.Models.User", b =>
815 b.HasOne(
"Tgstation.Server.Host.Models.User",
"CreatedBy")
816 .WithMany(
"CreatedUsers")
817 .HasForeignKey(
"CreatedById");
819#pragma warning restore 612, 618