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");
276 b.Property<
string>(
"SwarmIdentifer")
277 .HasColumnType(
"text");
281 b.HasIndex(
"Path",
"SwarmIdentifer")
284 b.ToTable(
"Instances");
287 modelBuilder.Entity(
"Tgstation.Server.Host.Models.InstancePermissionSet", b =>
289 b.Property<
long>(
"Id")
290 .ValueGeneratedOnAdd()
291 .HasColumnType(
"bigint")
292 .HasAnnotation(
"Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
294 b.Property<decimal>(
"ByondRights")
295 .HasColumnType(
"numeric(20,0)");
297 b.Property<decimal>(
"ChatBotRights")
298 .HasColumnType(
"numeric(20,0)");
300 b.Property<decimal>(
"ConfigurationRights")
301 .HasColumnType(
"numeric(20,0)");
303 b.Property<decimal>(
"DreamDaemonRights")
304 .HasColumnType(
"numeric(20,0)");
306 b.Property<decimal>(
"DreamMakerRights")
307 .HasColumnType(
"numeric(20,0)");
309 b.Property<
long>(
"InstanceId")
310 .HasColumnType(
"bigint");
312 b.Property<decimal>(
"InstancePermissionSetRights")
313 .HasColumnType(
"numeric(20,0)");
315 b.Property<
long>(
"PermissionSetId")
316 .HasColumnType(
"bigint");
318 b.Property<decimal>(
"RepositoryRights")
319 .HasColumnType(
"numeric(20,0)");
323 b.HasIndex(
"InstanceId");
325 b.HasIndex(
"PermissionSetId",
"InstanceId")
328 b.ToTable(
"InstancePermissionSets");
331 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Job", b =>
333 b.Property<
long>(
"Id")
334 .ValueGeneratedOnAdd()
335 .HasColumnType(
"bigint")
336 .HasAnnotation(
"Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
338 b.Property<decimal?>(
"CancelRight")
339 .HasColumnType(
"numeric(20,0)");
341 b.Property<decimal?>(
"CancelRightsType")
342 .HasColumnType(
"numeric(20,0)");
344 b.Property<
bool?>(
"Cancelled")
346 .HasColumnType(
"boolean");
348 b.Property<
long?>(
"CancelledById")
349 .HasColumnType(
"bigint");
351 b.Property<
string>(
"Description")
353 .HasColumnType(
"text");
355 b.Property<
long?>(
"ErrorCode")
356 .HasColumnType(
"bigint");
358 b.Property<
string>(
"ExceptionDetails")
359 .HasColumnType(
"text");
361 b.Property<
long>(
"InstanceId")
362 .HasColumnType(
"bigint");
364 b.Property<DateTimeOffset?>(
"StartedAt")
366 .HasColumnType(
"timestamp with time zone");
368 b.Property<
long>(
"StartedById")
369 .HasColumnType(
"bigint");
371 b.Property<DateTimeOffset?>(
"StoppedAt")
372 .HasColumnType(
"timestamp with time zone");
376 b.HasIndex(
"CancelledById");
378 b.HasIndex(
"InstanceId");
380 b.HasIndex(
"StartedById");
385 modelBuilder.Entity(
"Tgstation.Server.Host.Models.OAuthConnection", b =>
387 b.Property<
long>(
"Id")
388 .ValueGeneratedOnAdd()
389 .HasColumnType(
"bigint")
390 .HasAnnotation(
"Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
392 b.Property<
string>(
"ExternalUserId")
394 .HasColumnType(
"character varying(100)")
397 b.Property<
int>(
"Provider")
398 .HasColumnType(
"integer");
400 b.Property<
long?>(
"UserId")
401 .HasColumnType(
"bigint");
405 b.HasIndex(
"UserId");
407 b.HasIndex(
"Provider",
"ExternalUserId")
410 b.ToTable(
"OAuthConnections");
413 modelBuilder.Entity(
"Tgstation.Server.Host.Models.PermissionSet", b =>
415 b.Property<
long?>(
"Id")
416 .ValueGeneratedOnAdd()
417 .HasColumnType(
"bigint")
418 .HasAnnotation(
"Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
420 b.Property<decimal>(
"AdministrationRights")
421 .HasColumnType(
"numeric(20,0)");
423 b.Property<
long?>(
"GroupId")
424 .HasColumnType(
"bigint");
426 b.Property<decimal>(
"InstanceManagerRights")
427 .HasColumnType(
"numeric(20,0)");
429 b.Property<
long?>(
"UserId")
430 .HasColumnType(
"bigint");
434 b.HasIndex(
"GroupId")
440 b.ToTable(
"PermissionSets");
443 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ReattachInformation", b =>
445 b.Property<
long>(
"Id")
446 .ValueGeneratedOnAdd()
447 .HasColumnType(
"bigint")
448 .HasAnnotation(
"Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
450 b.Property<
string>(
"AccessIdentifier")
452 .HasColumnType(
"text");
454 b.Property<
long>(
"CompileJobId")
455 .HasColumnType(
"bigint");
457 b.Property<
int>(
"LaunchSecurityLevel")
458 .HasColumnType(
"integer");
460 b.Property<
int>(
"Port")
461 .HasColumnType(
"integer");
463 b.Property<
int>(
"ProcessId")
464 .HasColumnType(
"integer");
466 b.Property<
int>(
"RebootState")
467 .HasColumnType(
"integer");
471 b.HasIndex(
"CompileJobId");
473 b.ToTable(
"ReattachInformations");
476 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RepositorySettings", b =>
478 b.Property<
long>(
"Id")
479 .ValueGeneratedOnAdd()
480 .HasColumnType(
"bigint")
481 .HasAnnotation(
"Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
483 b.Property<
string>(
"AccessToken")
484 .HasColumnType(
"character varying(10000)")
485 .HasMaxLength(10000);
487 b.Property<
string>(
"AccessUser")
488 .HasColumnType(
"character varying(10000)")
489 .HasMaxLength(10000);
491 b.Property<
bool?>(
"AutoUpdatesKeepTestMerges")
493 .HasColumnType(
"boolean");
495 b.Property<
bool?>(
"AutoUpdatesSynchronize")
497 .HasColumnType(
"boolean");
499 b.Property<
string>(
"CommitterEmail")
501 .HasColumnType(
"character varying(10000)")
502 .HasMaxLength(10000);
504 b.Property<
string>(
"CommitterName")
506 .HasColumnType(
"character varying(10000)")
507 .HasMaxLength(10000);
509 b.Property<
bool?>(
"CreateGitHubDeployments")
511 .HasColumnType(
"boolean");
513 b.Property<
long>(
"InstanceId")
514 .HasColumnType(
"bigint");
516 b.Property<
bool?>(
"PostTestMergeComment")
518 .HasColumnType(
"boolean");
520 b.Property<
bool?>(
"PushTestMergeCommits")
522 .HasColumnType(
"boolean");
524 b.Property<
bool?>(
"ShowTestMergeCommitters")
526 .HasColumnType(
"boolean");
530 b.HasIndex(
"InstanceId")
533 b.ToTable(
"RepositorySettings");
536 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
538 b.Property<
long>(
"Id")
539 .ValueGeneratedOnAdd()
540 .HasColumnType(
"bigint")
541 .HasAnnotation(
"Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
543 b.Property<
long>(
"RevisionInformationId")
544 .HasColumnType(
"bigint");
546 b.Property<
long>(
"TestMergeId")
547 .HasColumnType(
"bigint");
551 b.HasIndex(
"RevisionInformationId");
553 b.HasIndex(
"TestMergeId");
555 b.ToTable(
"RevInfoTestMerges");
558 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevisionInformation", b =>
560 b.Property<
long>(
"Id")
561 .ValueGeneratedOnAdd()
562 .HasColumnType(
"bigint")
563 .HasAnnotation(
"Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
565 b.Property<
string>(
"CommitSha")
567 .HasColumnType(
"character varying(40)")
570 b.Property<
long>(
"InstanceId")
571 .HasColumnType(
"bigint");
573 b.Property<
string>(
"OriginCommitSha")
575 .HasColumnType(
"character varying(40)")
578 b.Property<DateTimeOffset>(
"Timestamp")
579 .HasColumnType(
"timestamp with time zone");
583 b.HasIndex(
"InstanceId",
"CommitSha")
586 b.ToTable(
"RevisionInformations");
589 modelBuilder.Entity(
"Tgstation.Server.Host.Models.TestMerge", b =>
591 b.Property<
long>(
"Id")
592 .ValueGeneratedOnAdd()
593 .HasColumnType(
"bigint")
594 .HasAnnotation(
"Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
596 b.Property<
string>(
"Author")
598 .HasColumnType(
"text");
600 b.Property<
string>(
"BodyAtMerge")
602 .HasColumnType(
"text");
604 b.Property<
string>(
"Comment")
605 .HasColumnType(
"character varying(10000)")
606 .HasMaxLength(10000);
608 b.Property<DateTimeOffset>(
"MergedAt")
609 .HasColumnType(
"timestamp with time zone");
611 b.Property<
long>(
"MergedById")
612 .HasColumnType(
"bigint");
614 b.Property<
int>(
"Number")
615 .HasColumnType(
"integer");
617 b.Property<
long?>(
"PrimaryRevisionInformationId")
619 .HasColumnType(
"bigint");
621 b.Property<
string>(
"TargetCommitSha")
623 .HasColumnType(
"character varying(40)")
626 b.Property<
string>(
"TitleAtMerge")
628 .HasColumnType(
"text");
630 b.Property<
string>(
"Url")
632 .HasColumnType(
"text");
636 b.HasIndex(
"MergedById");
638 b.HasIndex(
"PrimaryRevisionInformationId")
641 b.ToTable(
"TestMerges");
644 modelBuilder.Entity(
"Tgstation.Server.Host.Models.User", b =>
646 b.Property<
long?>(
"Id")
647 .ValueGeneratedOnAdd()
648 .HasColumnType(
"bigint")
649 .HasAnnotation(
"Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
651 b.Property<
string>(
"CanonicalName")
653 .HasColumnType(
"character varying(100)")
656 b.Property<DateTimeOffset?>(
"CreatedAt")
658 .HasColumnType(
"timestamp with time zone");
660 b.Property<
long?>(
"CreatedById")
661 .HasColumnType(
"bigint");
663 b.Property<
bool?>(
"Enabled")
665 .HasColumnType(
"boolean");
667 b.Property<
long?>(
"GroupId")
668 .HasColumnType(
"bigint");
670 b.Property<DateTimeOffset?>(
"LastPasswordUpdate")
671 .HasColumnType(
"timestamp with time zone");
673 b.Property<
string>(
"Name")
675 .HasColumnType(
"character varying(100)")
678 b.Property<
string>(
"PasswordHash")
679 .HasColumnType(
"text");
681 b.Property<
string>(
"SystemIdentifier")
682 .HasColumnType(
"character varying(100)")
687 b.HasIndex(
"CanonicalName")
690 b.HasIndex(
"CreatedById");
692 b.HasIndex(
"GroupId");
694 b.HasIndex(
"SystemIdentifier")
700 modelBuilder.Entity(
"Tgstation.Server.Host.Models.UserGroup", b =>
702 b.Property<
long>(
"Id")
703 .ValueGeneratedOnAdd()
704 .HasColumnType(
"bigint")
705 .HasAnnotation(
"Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
707 b.Property<
string>(
"Name")
709 .HasColumnType(
"character varying(100)")
720 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatBot", b =>
722 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
723 .WithMany(
"ChatSettings")
724 .HasForeignKey(
"InstanceId")
725 .OnDelete(DeleteBehavior.Cascade)
729 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatChannel", b =>
731 b.HasOne(
"Tgstation.Server.Host.Models.ChatBot",
"ChatSettings")
732 .WithMany(
"Channels")
733 .HasForeignKey(
"ChatSettingsId")
734 .OnDelete(DeleteBehavior.Cascade)
738 modelBuilder.Entity(
"Tgstation.Server.Host.Models.CompileJob", b =>
740 b.HasOne(
"Tgstation.Server.Host.Models.Job",
"Job")
742 .HasForeignKey(
"Tgstation.Server.Host.Models.CompileJob",
"JobId")
743 .OnDelete(DeleteBehavior.Cascade)
746 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"RevisionInformation")
747 .WithMany(
"CompileJobs")
748 .HasForeignKey(
"RevisionInformationId")
749 .OnDelete(DeleteBehavior.Cascade)
753 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamDaemonSettings", b =>
755 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
756 .WithOne(
"DreamDaemonSettings")
757 .HasForeignKey(
"Tgstation.Server.Host.Models.DreamDaemonSettings",
"InstanceId")
758 .OnDelete(DeleteBehavior.Cascade)
762 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamMakerSettings", b =>
764 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
765 .WithOne(
"DreamMakerSettings")
766 .HasForeignKey(
"Tgstation.Server.Host.Models.DreamMakerSettings",
"InstanceId")
767 .OnDelete(DeleteBehavior.Cascade)
771 modelBuilder.Entity(
"Tgstation.Server.Host.Models.InstancePermissionSet", b =>
773 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
774 .WithMany(
"InstancePermissionSets")
775 .HasForeignKey(
"InstanceId")
776 .OnDelete(DeleteBehavior.Cascade)
779 b.HasOne(
"Tgstation.Server.Host.Models.PermissionSet",
"PermissionSet")
780 .WithMany(
"InstancePermissionSets")
781 .HasForeignKey(
"PermissionSetId")
782 .OnDelete(DeleteBehavior.Cascade)
786 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Job", b =>
788 b.HasOne(
"Tgstation.Server.Host.Models.User",
"CancelledBy")
790 .HasForeignKey(
"CancelledById");
792 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
794 .HasForeignKey(
"InstanceId")
795 .OnDelete(DeleteBehavior.Cascade)
798 b.HasOne(
"Tgstation.Server.Host.Models.User",
"StartedBy")
800 .HasForeignKey(
"StartedById")
801 .OnDelete(DeleteBehavior.Cascade)
805 modelBuilder.Entity(
"Tgstation.Server.Host.Models.OAuthConnection", b =>
807 b.HasOne(
"Tgstation.Server.Host.Models.User",
"User")
808 .WithMany(
"OAuthConnections")
809 .HasForeignKey(
"UserId")
810 .OnDelete(DeleteBehavior.Cascade);
813 modelBuilder.Entity(
"Tgstation.Server.Host.Models.PermissionSet", b =>
815 b.HasOne(
"Tgstation.Server.Host.Models.UserGroup",
"Group")
816 .WithOne(
"PermissionSet")
817 .HasForeignKey(
"Tgstation.Server.Host.Models.PermissionSet",
"GroupId")
818 .OnDelete(DeleteBehavior.Cascade);
820 b.HasOne(
"Tgstation.Server.Host.Models.User",
"User")
821 .WithOne(
"PermissionSet")
822 .HasForeignKey(
"Tgstation.Server.Host.Models.PermissionSet",
"UserId")
823 .OnDelete(DeleteBehavior.Cascade);
826 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ReattachInformation", b =>
828 b.HasOne(
"Tgstation.Server.Host.Models.CompileJob",
"CompileJob")
830 .HasForeignKey(
"CompileJobId")
831 .OnDelete(DeleteBehavior.Cascade)
835 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RepositorySettings", b =>
837 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
838 .WithOne(
"RepositorySettings")
839 .HasForeignKey(
"Tgstation.Server.Host.Models.RepositorySettings",
"InstanceId")
840 .OnDelete(DeleteBehavior.Cascade)
844 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
846 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"RevisionInformation")
847 .WithMany(
"ActiveTestMerges")
848 .HasForeignKey(
"RevisionInformationId")
849 .OnDelete(DeleteBehavior.Cascade)
852 b.HasOne(
"Tgstation.Server.Host.Models.TestMerge",
"TestMerge")
853 .WithMany(
"RevisonInformations")
854 .HasForeignKey(
"TestMergeId")
855 .OnDelete(DeleteBehavior.ClientNoAction)
859 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevisionInformation", b =>
861 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
862 .WithMany(
"RevisionInformations")
863 .HasForeignKey(
"InstanceId")
864 .OnDelete(DeleteBehavior.Cascade)
868 modelBuilder.Entity(
"Tgstation.Server.Host.Models.TestMerge", b =>
870 b.HasOne(
"Tgstation.Server.Host.Models.User",
"MergedBy")
871 .WithMany(
"TestMerges")
872 .HasForeignKey(
"MergedById")
873 .OnDelete(DeleteBehavior.Restrict)
876 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"PrimaryRevisionInformation")
877 .WithOne(
"PrimaryTestMerge")
878 .HasForeignKey(
"Tgstation.Server.Host.Models.TestMerge",
"PrimaryRevisionInformationId")
879 .OnDelete(DeleteBehavior.Cascade)
883 modelBuilder.Entity(
"Tgstation.Server.Host.Models.User", b =>
885 b.HasOne(
"Tgstation.Server.Host.Models.User",
"CreatedBy")
886 .WithMany(
"CreatedUsers")
887 .HasForeignKey(
"CreatedById");
889 b.HasOne(
"Tgstation.Server.Host.Models.UserGroup",
"Group")
891 .HasForeignKey(
"GroupId");
893#pragma warning restore 612, 618