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.InstancePermissionSet", 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>(
"InstancePermissionSetRights")
310 .HasColumnType(
"numeric(20,0)");
312 b.Property<
long>(
"PermissionSetId")
313 .HasColumnType(
"bigint");
315 b.Property<decimal>(
"RepositoryRights")
316 .HasColumnType(
"numeric(20,0)");
320 b.HasIndex(
"InstanceId");
322 b.HasIndex(
"PermissionSetId",
"InstanceId")
325 b.ToTable(
"InstancePermissionSets");
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.PermissionSet", b =>
412 b.Property<
long?>(
"Id")
413 .ValueGeneratedOnAdd()
414 .HasColumnType(
"bigint")
415 .HasAnnotation(
"Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
417 b.Property<decimal>(
"AdministrationRights")
418 .HasColumnType(
"numeric(20,0)");
420 b.Property<
long?>(
"GroupId")
421 .HasColumnType(
"bigint");
423 b.Property<decimal>(
"InstanceManagerRights")
424 .HasColumnType(
"numeric(20,0)");
426 b.Property<
long?>(
"UserId")
427 .HasColumnType(
"bigint");
431 b.HasIndex(
"GroupId")
437 b.ToTable(
"PermissionSets");
440 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ReattachInformation", b =>
442 b.Property<
long>(
"Id")
443 .ValueGeneratedOnAdd()
444 .HasColumnType(
"bigint")
445 .HasAnnotation(
"Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
447 b.Property<
string>(
"AccessIdentifier")
449 .HasColumnType(
"text");
451 b.Property<
long>(
"CompileJobId")
452 .HasColumnType(
"bigint");
454 b.Property<
int>(
"LaunchSecurityLevel")
455 .HasColumnType(
"integer");
457 b.Property<
int>(
"Port")
458 .HasColumnType(
"integer");
460 b.Property<
int>(
"ProcessId")
461 .HasColumnType(
"integer");
463 b.Property<
int>(
"RebootState")
464 .HasColumnType(
"integer");
468 b.HasIndex(
"CompileJobId");
470 b.ToTable(
"ReattachInformations");
473 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RepositorySettings", b =>
475 b.Property<
long>(
"Id")
476 .ValueGeneratedOnAdd()
477 .HasColumnType(
"bigint")
478 .HasAnnotation(
"Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
480 b.Property<
string>(
"AccessToken")
481 .HasColumnType(
"character varying(10000)")
482 .HasMaxLength(10000);
484 b.Property<
string>(
"AccessUser")
485 .HasColumnType(
"character varying(10000)")
486 .HasMaxLength(10000);
488 b.Property<
bool?>(
"AutoUpdatesKeepTestMerges")
490 .HasColumnType(
"boolean");
492 b.Property<
bool?>(
"AutoUpdatesSynchronize")
494 .HasColumnType(
"boolean");
496 b.Property<
string>(
"CommitterEmail")
498 .HasColumnType(
"character varying(10000)")
499 .HasMaxLength(10000);
501 b.Property<
string>(
"CommitterName")
503 .HasColumnType(
"character varying(10000)")
504 .HasMaxLength(10000);
506 b.Property<
bool?>(
"CreateGitHubDeployments")
508 .HasColumnType(
"boolean");
510 b.Property<
long>(
"InstanceId")
511 .HasColumnType(
"bigint");
513 b.Property<
bool?>(
"PostTestMergeComment")
515 .HasColumnType(
"boolean");
517 b.Property<
bool?>(
"PushTestMergeCommits")
519 .HasColumnType(
"boolean");
521 b.Property<
bool?>(
"ShowTestMergeCommitters")
523 .HasColumnType(
"boolean");
527 b.HasIndex(
"InstanceId")
530 b.ToTable(
"RepositorySettings");
533 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
535 b.Property<
long>(
"Id")
536 .ValueGeneratedOnAdd()
537 .HasColumnType(
"bigint")
538 .HasAnnotation(
"Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
540 b.Property<
long>(
"RevisionInformationId")
541 .HasColumnType(
"bigint");
543 b.Property<
long>(
"TestMergeId")
544 .HasColumnType(
"bigint");
548 b.HasIndex(
"RevisionInformationId");
550 b.HasIndex(
"TestMergeId");
552 b.ToTable(
"RevInfoTestMerges");
555 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevisionInformation", b =>
557 b.Property<
long>(
"Id")
558 .ValueGeneratedOnAdd()
559 .HasColumnType(
"bigint")
560 .HasAnnotation(
"Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
562 b.Property<
string>(
"CommitSha")
564 .HasColumnType(
"character varying(40)")
567 b.Property<
long>(
"InstanceId")
568 .HasColumnType(
"bigint");
570 b.Property<
string>(
"OriginCommitSha")
572 .HasColumnType(
"character varying(40)")
577 b.HasIndex(
"InstanceId",
"CommitSha")
580 b.ToTable(
"RevisionInformations");
583 modelBuilder.Entity(
"Tgstation.Server.Host.Models.TestMerge", b =>
585 b.Property<
long>(
"Id")
586 .ValueGeneratedOnAdd()
587 .HasColumnType(
"bigint")
588 .HasAnnotation(
"Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
590 b.Property<
string>(
"Author")
592 .HasColumnType(
"text");
594 b.Property<
string>(
"BodyAtMerge")
596 .HasColumnType(
"text");
598 b.Property<
string>(
"Comment")
599 .HasColumnType(
"character varying(10000)")
600 .HasMaxLength(10000);
602 b.Property<DateTimeOffset>(
"MergedAt")
603 .HasColumnType(
"timestamp with time zone");
605 b.Property<
long>(
"MergedById")
606 .HasColumnType(
"bigint");
608 b.Property<
int>(
"Number")
609 .HasColumnType(
"integer");
611 b.Property<
long?>(
"PrimaryRevisionInformationId")
613 .HasColumnType(
"bigint");
615 b.Property<
string>(
"TargetCommitSha")
617 .HasColumnType(
"character varying(40)")
620 b.Property<
string>(
"TitleAtMerge")
622 .HasColumnType(
"text");
624 b.Property<
string>(
"Url")
626 .HasColumnType(
"text");
630 b.HasIndex(
"MergedById");
632 b.HasIndex(
"PrimaryRevisionInformationId")
635 b.ToTable(
"TestMerges");
638 modelBuilder.Entity(
"Tgstation.Server.Host.Models.User", b =>
640 b.Property<
long?>(
"Id")
641 .ValueGeneratedOnAdd()
642 .HasColumnType(
"bigint")
643 .HasAnnotation(
"Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
645 b.Property<
string>(
"CanonicalName")
647 .HasColumnType(
"character varying(100)")
650 b.Property<DateTimeOffset?>(
"CreatedAt")
652 .HasColumnType(
"timestamp with time zone");
654 b.Property<
long?>(
"CreatedById")
655 .HasColumnType(
"bigint");
657 b.Property<
bool?>(
"Enabled")
659 .HasColumnType(
"boolean");
661 b.Property<
long?>(
"GroupId")
662 .HasColumnType(
"bigint");
664 b.Property<DateTimeOffset?>(
"LastPasswordUpdate")
665 .HasColumnType(
"timestamp with time zone");
667 b.Property<
string>(
"Name")
669 .HasColumnType(
"character varying(100)")
672 b.Property<
string>(
"PasswordHash")
673 .HasColumnType(
"text");
675 b.Property<
string>(
"SystemIdentifier")
676 .HasColumnType(
"character varying(100)")
681 b.HasIndex(
"CanonicalName")
684 b.HasIndex(
"CreatedById");
686 b.HasIndex(
"GroupId");
688 b.HasIndex(
"SystemIdentifier")
694 modelBuilder.Entity(
"Tgstation.Server.Host.Models.UserGroup", b =>
696 b.Property<
long>(
"Id")
697 .ValueGeneratedOnAdd()
698 .HasColumnType(
"bigint")
699 .HasAnnotation(
"Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
701 b.Property<
string>(
"Name")
703 .HasColumnType(
"character varying(100)")
714 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatBot", b =>
716 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
717 .WithMany(
"ChatSettings")
718 .HasForeignKey(
"InstanceId")
719 .OnDelete(DeleteBehavior.Cascade)
723 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatChannel", b =>
725 b.HasOne(
"Tgstation.Server.Host.Models.ChatBot",
"ChatSettings")
726 .WithMany(
"Channels")
727 .HasForeignKey(
"ChatSettingsId")
728 .OnDelete(DeleteBehavior.Cascade)
732 modelBuilder.Entity(
"Tgstation.Server.Host.Models.CompileJob", b =>
734 b.HasOne(
"Tgstation.Server.Host.Models.Job",
"Job")
736 .HasForeignKey(
"Tgstation.Server.Host.Models.CompileJob",
"JobId")
737 .OnDelete(DeleteBehavior.Cascade)
740 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"RevisionInformation")
741 .WithMany(
"CompileJobs")
742 .HasForeignKey(
"RevisionInformationId")
743 .OnDelete(DeleteBehavior.Cascade)
747 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamDaemonSettings", b =>
749 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
750 .WithOne(
"DreamDaemonSettings")
751 .HasForeignKey(
"Tgstation.Server.Host.Models.DreamDaemonSettings",
"InstanceId")
752 .OnDelete(DeleteBehavior.Cascade)
756 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamMakerSettings", b =>
758 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
759 .WithOne(
"DreamMakerSettings")
760 .HasForeignKey(
"Tgstation.Server.Host.Models.DreamMakerSettings",
"InstanceId")
761 .OnDelete(DeleteBehavior.Cascade)
765 modelBuilder.Entity(
"Tgstation.Server.Host.Models.InstancePermissionSet", b =>
767 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
768 .WithMany(
"InstancePermissionSets")
769 .HasForeignKey(
"InstanceId")
770 .OnDelete(DeleteBehavior.Cascade)
773 b.HasOne(
"Tgstation.Server.Host.Models.PermissionSet",
"PermissionSet")
774 .WithMany(
"InstancePermissionSets")
775 .HasForeignKey(
"PermissionSetId")
776 .OnDelete(DeleteBehavior.Cascade)
780 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Job", b =>
782 b.HasOne(
"Tgstation.Server.Host.Models.User",
"CancelledBy")
784 .HasForeignKey(
"CancelledById");
786 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
788 .HasForeignKey(
"InstanceId")
789 .OnDelete(DeleteBehavior.Cascade)
792 b.HasOne(
"Tgstation.Server.Host.Models.User",
"StartedBy")
794 .HasForeignKey(
"StartedById")
795 .OnDelete(DeleteBehavior.Cascade)
799 modelBuilder.Entity(
"Tgstation.Server.Host.Models.OAuthConnection", b =>
801 b.HasOne(
"Tgstation.Server.Host.Models.User",
"User")
802 .WithMany(
"OAuthConnections")
803 .HasForeignKey(
"UserId")
804 .OnDelete(DeleteBehavior.Cascade);
807 modelBuilder.Entity(
"Tgstation.Server.Host.Models.PermissionSet", b =>
809 b.HasOne(
"Tgstation.Server.Host.Models.UserGroup",
"Group")
810 .WithOne(
"PermissionSet")
811 .HasForeignKey(
"Tgstation.Server.Host.Models.PermissionSet",
"GroupId")
812 .OnDelete(DeleteBehavior.Cascade);
814 b.HasOne(
"Tgstation.Server.Host.Models.User",
"User")
815 .WithOne(
"PermissionSet")
816 .HasForeignKey(
"Tgstation.Server.Host.Models.PermissionSet",
"UserId")
817 .OnDelete(DeleteBehavior.Cascade);
820 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ReattachInformation", b =>
822 b.HasOne(
"Tgstation.Server.Host.Models.CompileJob",
"CompileJob")
824 .HasForeignKey(
"CompileJobId")
825 .OnDelete(DeleteBehavior.Cascade)
829 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RepositorySettings", b =>
831 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
832 .WithOne(
"RepositorySettings")
833 .HasForeignKey(
"Tgstation.Server.Host.Models.RepositorySettings",
"InstanceId")
834 .OnDelete(DeleteBehavior.Cascade)
838 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
840 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"RevisionInformation")
841 .WithMany(
"ActiveTestMerges")
842 .HasForeignKey(
"RevisionInformationId")
843 .OnDelete(DeleteBehavior.Cascade)
846 b.HasOne(
"Tgstation.Server.Host.Models.TestMerge",
"TestMerge")
847 .WithMany(
"RevisonInformations")
848 .HasForeignKey(
"TestMergeId")
849 .OnDelete(DeleteBehavior.ClientNoAction)
853 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevisionInformation", b =>
855 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
856 .WithMany(
"RevisionInformations")
857 .HasForeignKey(
"InstanceId")
858 .OnDelete(DeleteBehavior.Cascade)
862 modelBuilder.Entity(
"Tgstation.Server.Host.Models.TestMerge", b =>
864 b.HasOne(
"Tgstation.Server.Host.Models.User",
"MergedBy")
865 .WithMany(
"TestMerges")
866 .HasForeignKey(
"MergedById")
867 .OnDelete(DeleteBehavior.Restrict)
870 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"PrimaryRevisionInformation")
871 .WithOne(
"PrimaryTestMerge")
872 .HasForeignKey(
"Tgstation.Server.Host.Models.TestMerge",
"PrimaryRevisionInformationId")
873 .OnDelete(DeleteBehavior.Cascade)
877 modelBuilder.Entity(
"Tgstation.Server.Host.Models.User", b =>
879 b.HasOne(
"Tgstation.Server.Host.Models.User",
"CreatedBy")
880 .WithMany(
"CreatedUsers")
881 .HasForeignKey(
"CreatedById");
883 b.HasOne(
"Tgstation.Server.Host.Models.UserGroup",
"Group")
885 .HasForeignKey(
"GroupId");
887#pragma warning restore 612, 618