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)")
580 b.HasIndex(
"InstanceId",
"CommitSha")
583 b.ToTable(
"RevisionInformations");
586 modelBuilder.Entity(
"Tgstation.Server.Host.Models.TestMerge", b =>
588 b.Property<
long>(
"Id")
589 .ValueGeneratedOnAdd()
590 .HasColumnType(
"bigint")
591 .HasAnnotation(
"Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
593 b.Property<
string>(
"Author")
595 .HasColumnType(
"text");
597 b.Property<
string>(
"BodyAtMerge")
599 .HasColumnType(
"text");
601 b.Property<
string>(
"Comment")
602 .HasColumnType(
"character varying(10000)")
603 .HasMaxLength(10000);
605 b.Property<DateTimeOffset>(
"MergedAt")
606 .HasColumnType(
"timestamp with time zone");
608 b.Property<
long>(
"MergedById")
609 .HasColumnType(
"bigint");
611 b.Property<
int>(
"Number")
612 .HasColumnType(
"integer");
614 b.Property<
long?>(
"PrimaryRevisionInformationId")
616 .HasColumnType(
"bigint");
618 b.Property<
string>(
"TargetCommitSha")
620 .HasColumnType(
"character varying(40)")
623 b.Property<
string>(
"TitleAtMerge")
625 .HasColumnType(
"text");
627 b.Property<
string>(
"Url")
629 .HasColumnType(
"text");
633 b.HasIndex(
"MergedById");
635 b.HasIndex(
"PrimaryRevisionInformationId")
638 b.ToTable(
"TestMerges");
641 modelBuilder.Entity(
"Tgstation.Server.Host.Models.User", b =>
643 b.Property<
long?>(
"Id")
644 .ValueGeneratedOnAdd()
645 .HasColumnType(
"bigint")
646 .HasAnnotation(
"Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
648 b.Property<
string>(
"CanonicalName")
650 .HasColumnType(
"character varying(100)")
653 b.Property<DateTimeOffset?>(
"CreatedAt")
655 .HasColumnType(
"timestamp with time zone");
657 b.Property<
long?>(
"CreatedById")
658 .HasColumnType(
"bigint");
660 b.Property<
bool?>(
"Enabled")
662 .HasColumnType(
"boolean");
664 b.Property<
long?>(
"GroupId")
665 .HasColumnType(
"bigint");
667 b.Property<DateTimeOffset?>(
"LastPasswordUpdate")
668 .HasColumnType(
"timestamp with time zone");
670 b.Property<
string>(
"Name")
672 .HasColumnType(
"character varying(100)")
675 b.Property<
string>(
"PasswordHash")
676 .HasColumnType(
"text");
678 b.Property<
string>(
"SystemIdentifier")
679 .HasColumnType(
"character varying(100)")
684 b.HasIndex(
"CanonicalName")
687 b.HasIndex(
"CreatedById");
689 b.HasIndex(
"GroupId");
691 b.HasIndex(
"SystemIdentifier")
697 modelBuilder.Entity(
"Tgstation.Server.Host.Models.UserGroup", b =>
699 b.Property<
long>(
"Id")
700 .ValueGeneratedOnAdd()
701 .HasColumnType(
"bigint")
702 .HasAnnotation(
"Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
704 b.Property<
string>(
"Name")
706 .HasColumnType(
"character varying(100)")
717 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatBot", b =>
719 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
720 .WithMany(
"ChatSettings")
721 .HasForeignKey(
"InstanceId")
722 .OnDelete(DeleteBehavior.Cascade)
726 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatChannel", b =>
728 b.HasOne(
"Tgstation.Server.Host.Models.ChatBot",
"ChatSettings")
729 .WithMany(
"Channels")
730 .HasForeignKey(
"ChatSettingsId")
731 .OnDelete(DeleteBehavior.Cascade)
735 modelBuilder.Entity(
"Tgstation.Server.Host.Models.CompileJob", b =>
737 b.HasOne(
"Tgstation.Server.Host.Models.Job",
"Job")
739 .HasForeignKey(
"Tgstation.Server.Host.Models.CompileJob",
"JobId")
740 .OnDelete(DeleteBehavior.Cascade)
743 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"RevisionInformation")
744 .WithMany(
"CompileJobs")
745 .HasForeignKey(
"RevisionInformationId")
746 .OnDelete(DeleteBehavior.Cascade)
750 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamDaemonSettings", b =>
752 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
753 .WithOne(
"DreamDaemonSettings")
754 .HasForeignKey(
"Tgstation.Server.Host.Models.DreamDaemonSettings",
"InstanceId")
755 .OnDelete(DeleteBehavior.Cascade)
759 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamMakerSettings", b =>
761 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
762 .WithOne(
"DreamMakerSettings")
763 .HasForeignKey(
"Tgstation.Server.Host.Models.DreamMakerSettings",
"InstanceId")
764 .OnDelete(DeleteBehavior.Cascade)
768 modelBuilder.Entity(
"Tgstation.Server.Host.Models.InstancePermissionSet", b =>
770 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
771 .WithMany(
"InstancePermissionSets")
772 .HasForeignKey(
"InstanceId")
773 .OnDelete(DeleteBehavior.Cascade)
776 b.HasOne(
"Tgstation.Server.Host.Models.PermissionSet",
"PermissionSet")
777 .WithMany(
"InstancePermissionSets")
778 .HasForeignKey(
"PermissionSetId")
779 .OnDelete(DeleteBehavior.Cascade)
783 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Job", b =>
785 b.HasOne(
"Tgstation.Server.Host.Models.User",
"CancelledBy")
787 .HasForeignKey(
"CancelledById");
789 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
791 .HasForeignKey(
"InstanceId")
792 .OnDelete(DeleteBehavior.Cascade)
795 b.HasOne(
"Tgstation.Server.Host.Models.User",
"StartedBy")
797 .HasForeignKey(
"StartedById")
798 .OnDelete(DeleteBehavior.Cascade)
802 modelBuilder.Entity(
"Tgstation.Server.Host.Models.OAuthConnection", b =>
804 b.HasOne(
"Tgstation.Server.Host.Models.User",
"User")
805 .WithMany(
"OAuthConnections")
806 .HasForeignKey(
"UserId")
807 .OnDelete(DeleteBehavior.Cascade);
810 modelBuilder.Entity(
"Tgstation.Server.Host.Models.PermissionSet", b =>
812 b.HasOne(
"Tgstation.Server.Host.Models.UserGroup",
"Group")
813 .WithOne(
"PermissionSet")
814 .HasForeignKey(
"Tgstation.Server.Host.Models.PermissionSet",
"GroupId")
815 .OnDelete(DeleteBehavior.Cascade);
817 b.HasOne(
"Tgstation.Server.Host.Models.User",
"User")
818 .WithOne(
"PermissionSet")
819 .HasForeignKey(
"Tgstation.Server.Host.Models.PermissionSet",
"UserId")
820 .OnDelete(DeleteBehavior.Cascade);
823 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ReattachInformation", b =>
825 b.HasOne(
"Tgstation.Server.Host.Models.CompileJob",
"CompileJob")
827 .HasForeignKey(
"CompileJobId")
828 .OnDelete(DeleteBehavior.Cascade)
832 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RepositorySettings", b =>
834 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
835 .WithOne(
"RepositorySettings")
836 .HasForeignKey(
"Tgstation.Server.Host.Models.RepositorySettings",
"InstanceId")
837 .OnDelete(DeleteBehavior.Cascade)
841 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
843 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"RevisionInformation")
844 .WithMany(
"ActiveTestMerges")
845 .HasForeignKey(
"RevisionInformationId")
846 .OnDelete(DeleteBehavior.Cascade)
849 b.HasOne(
"Tgstation.Server.Host.Models.TestMerge",
"TestMerge")
850 .WithMany(
"RevisonInformations")
851 .HasForeignKey(
"TestMergeId")
852 .OnDelete(DeleteBehavior.ClientNoAction)
856 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevisionInformation", b =>
858 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
859 .WithMany(
"RevisionInformations")
860 .HasForeignKey(
"InstanceId")
861 .OnDelete(DeleteBehavior.Cascade)
865 modelBuilder.Entity(
"Tgstation.Server.Host.Models.TestMerge", b =>
867 b.HasOne(
"Tgstation.Server.Host.Models.User",
"MergedBy")
868 .WithMany(
"TestMerges")
869 .HasForeignKey(
"MergedById")
870 .OnDelete(DeleteBehavior.Restrict)
873 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"PrimaryRevisionInformation")
874 .WithOne(
"PrimaryTestMerge")
875 .HasForeignKey(
"Tgstation.Server.Host.Models.TestMerge",
"PrimaryRevisionInformationId")
876 .OnDelete(DeleteBehavior.Cascade)
880 modelBuilder.Entity(
"Tgstation.Server.Host.Models.User", b =>
882 b.HasOne(
"Tgstation.Server.Host.Models.User",
"CreatedBy")
883 .WithMany(
"CreatedUsers")
884 .HasForeignKey(
"CreatedById");
886 b.HasOne(
"Tgstation.Server.Host.Models.UserGroup",
"Group")
888 .HasForeignKey(
"GroupId");
890#pragma warning restore 612, 618