17#pragma warning disable 612, 618
19 .HasAnnotation(
"ProductVersion",
"3.1.10")
20 .HasAnnotation(
"Relational:MaxIdentifierLength", 128)
21 .HasAnnotation(
"SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
23 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatBot", b =>
25 b.Property<
long>(
"Id")
26 .ValueGeneratedOnAdd()
27 .HasColumnType(
"bigint")
28 .HasAnnotation(
"SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
30 b.Property<
int>(
"ChannelLimit")
31 .HasColumnType(
"int");
33 b.Property<
string>(
"ConnectionString")
35 .HasColumnType(
"nvarchar(max)")
38 b.Property<
bool?>(
"Enabled")
39 .HasColumnType(
"bit");
41 b.Property<
long>(
"InstanceId")
42 .HasColumnType(
"bigint");
44 b.Property<
string>(
"Name")
46 .HasColumnType(
"nvarchar(100)")
49 b.Property<
int>(
"Provider")
50 .HasColumnType(
"int");
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(
"SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
70 b.Property<
long>(
"ChatSettingsId")
71 .HasColumnType(
"bigint");
73 b.Property<decimal?>(
"DiscordChannelId")
74 .HasColumnType(
"decimal(20,0)");
76 b.Property<
string>(
"IrcChannel")
77 .HasColumnType(
"nvarchar(100)")
80 b.Property<
bool?>(
"IsAdminChannel")
82 .HasColumnType(
"bit");
84 b.Property<
bool?>(
"IsUpdatesChannel")
86 .HasColumnType(
"bit");
88 b.Property<
bool?>(
"IsWatchdogChannel")
90 .HasColumnType(
"bit");
92 b.Property<
string>(
"Tag")
93 .HasColumnType(
"nvarchar(max)")
98 b.HasIndex(
"ChatSettingsId",
"DiscordChannelId")
100 .HasFilter(
"[DiscordChannelId] IS NOT NULL");
102 b.HasIndex(
"ChatSettingsId",
"IrcChannel")
104 .HasFilter(
"[IrcChannel] IS NOT NULL");
106 b.ToTable(
"ChatChannels");
109 modelBuilder.Entity(
"Tgstation.Server.Host.Models.CompileJob", b =>
111 b.Property<
long>(
"Id")
112 .ValueGeneratedOnAdd()
113 .HasColumnType(
"bigint")
114 .HasAnnotation(
"SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
116 b.Property<
string>(
"ByondVersion")
118 .HasColumnType(
"nvarchar(max)");
120 b.Property<
int?>(
"DMApiMajorVersion")
121 .HasColumnType(
"int");
123 b.Property<
int?>(
"DMApiMinorVersion")
124 .HasColumnType(
"int");
126 b.Property<
int?>(
"DMApiPatchVersion")
127 .HasColumnType(
"int");
129 b.Property<Guid?>(
"DirectoryName")
131 .HasColumnType(
"uniqueidentifier");
133 b.Property<
string>(
"DmeName")
135 .HasColumnType(
"nvarchar(max)");
137 b.Property<
int?>(
"GitHubDeploymentId")
138 .HasColumnType(
"int");
140 b.Property<
long?>(
"GitHubRepoId")
141 .HasColumnType(
"bigint");
143 b.Property<
long>(
"JobId")
144 .HasColumnType(
"bigint");
146 b.Property<
int?>(
"MinimumSecurityLevel")
147 .HasColumnType(
"int");
149 b.Property<
string>(
"Output")
151 .HasColumnType(
"nvarchar(max)");
153 b.Property<
string>(
"RepositoryOrigin")
154 .HasColumnType(
"nvarchar(max)");
156 b.Property<
long>(
"RevisionInformationId")
157 .HasColumnType(
"bigint");
161 b.HasIndex(
"DirectoryName");
166 b.HasIndex(
"RevisionInformationId");
168 b.ToTable(
"CompileJobs");
171 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamDaemonSettings", b =>
173 b.Property<
long>(
"Id")
174 .ValueGeneratedOnAdd()
175 .HasColumnType(
"bigint")
176 .HasAnnotation(
"SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
178 b.Property<
string>(
"AdditionalParameters")
180 .HasColumnType(
"nvarchar(max)")
181 .HasMaxLength(10000);
183 b.Property<
bool?>(
"AllowWebClient")
185 .HasColumnType(
"bit");
187 b.Property<
bool?>(
"AutoStart")
189 .HasColumnType(
"bit");
191 b.Property<
long>(
"HeartbeatSeconds")
192 .HasColumnType(
"bigint");
194 b.Property<
long>(
"InstanceId")
195 .HasColumnType(
"bigint");
197 b.Property<
int>(
"Port")
198 .HasColumnType(
"int");
200 b.Property<
int>(
"SecurityLevel")
201 .HasColumnType(
"int");
203 b.Property<
long>(
"StartupTimeout")
204 .HasColumnType(
"bigint");
206 b.Property<
long>(
"TopicRequestTimeout")
207 .HasColumnType(
"bigint");
211 b.HasIndex(
"InstanceId")
214 b.ToTable(
"DreamDaemonSettings");
217 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamMakerSettings", b =>
219 b.Property<
long>(
"Id")
220 .ValueGeneratedOnAdd()
221 .HasColumnType(
"bigint")
222 .HasAnnotation(
"SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
224 b.Property<
int>(
"ApiValidationPort")
225 .HasColumnType(
"int");
227 b.Property<
int>(
"ApiValidationSecurityLevel")
228 .HasColumnType(
"int");
230 b.Property<
long>(
"InstanceId")
231 .HasColumnType(
"bigint");
233 b.Property<
string>(
"ProjectName")
234 .HasColumnType(
"nvarchar(max)")
235 .HasMaxLength(10000);
237 b.Property<
bool?>(
"RequireDMApiValidation")
239 .HasColumnType(
"bit");
243 b.HasIndex(
"InstanceId")
246 b.ToTable(
"DreamMakerSettings");
249 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Instance", b =>
251 b.Property<
long>(
"Id")
252 .ValueGeneratedOnAdd()
253 .HasColumnType(
"bigint")
254 .HasAnnotation(
"SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
256 b.Property<
long>(
"AutoUpdateInterval")
257 .HasColumnType(
"bigint");
259 b.Property<
int>(
"ChatBotLimit")
260 .HasColumnType(
"int");
262 b.Property<
int>(
"ConfigurationType")
263 .HasColumnType(
"int");
265 b.Property<
string>(
"Name")
267 .HasColumnType(
"nvarchar(max)")
268 .HasMaxLength(10000);
270 b.Property<
bool?>(
"Online")
272 .HasColumnType(
"bit");
274 b.Property<
string>(
"Path")
276 .HasColumnType(
"nvarchar(450)");
278 b.Property<
string>(
"SwarmIdentifer")
279 .HasColumnType(
"nvarchar(450)");
283 b.HasIndex(
"Path",
"SwarmIdentifer")
285 .HasFilter(
"[SwarmIdentifer] IS NOT NULL");
287 b.ToTable(
"Instances");
290 modelBuilder.Entity(
"Tgstation.Server.Host.Models.InstancePermissionSet", b =>
292 b.Property<
long>(
"Id")
293 .ValueGeneratedOnAdd()
294 .HasColumnType(
"bigint")
295 .HasAnnotation(
"SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
297 b.Property<decimal>(
"ByondRights")
298 .HasColumnType(
"decimal(20,0)");
300 b.Property<decimal>(
"ChatBotRights")
301 .HasColumnType(
"decimal(20,0)");
303 b.Property<decimal>(
"ConfigurationRights")
304 .HasColumnType(
"decimal(20,0)");
306 b.Property<decimal>(
"DreamDaemonRights")
307 .HasColumnType(
"decimal(20,0)");
309 b.Property<decimal>(
"DreamMakerRights")
310 .HasColumnType(
"decimal(20,0)");
312 b.Property<
long>(
"InstanceId")
313 .HasColumnType(
"bigint");
315 b.Property<decimal>(
"InstancePermissionSetRights")
316 .HasColumnType(
"decimal(20,0)");
318 b.Property<
long>(
"PermissionSetId")
319 .HasColumnType(
"bigint");
321 b.Property<decimal>(
"RepositoryRights")
322 .HasColumnType(
"decimal(20,0)");
326 b.HasIndex(
"InstanceId");
328 b.HasIndex(
"PermissionSetId",
"InstanceId")
331 b.ToTable(
"InstancePermissionSets");
334 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Job", b =>
336 b.Property<
long>(
"Id")
337 .ValueGeneratedOnAdd()
338 .HasColumnType(
"bigint")
339 .HasAnnotation(
"SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
341 b.Property<decimal?>(
"CancelRight")
342 .HasColumnType(
"decimal(20,0)");
344 b.Property<decimal?>(
"CancelRightsType")
345 .HasColumnType(
"decimal(20,0)");
347 b.Property<
bool?>(
"Cancelled")
349 .HasColumnType(
"bit");
351 b.Property<
long?>(
"CancelledById")
352 .HasColumnType(
"bigint");
354 b.Property<
string>(
"Description")
356 .HasColumnType(
"nvarchar(max)");
358 b.Property<
long?>(
"ErrorCode")
359 .HasColumnType(
"bigint");
361 b.Property<
string>(
"ExceptionDetails")
362 .HasColumnType(
"nvarchar(max)");
364 b.Property<
long>(
"InstanceId")
365 .HasColumnType(
"bigint");
367 b.Property<DateTimeOffset?>(
"StartedAt")
369 .HasColumnType(
"datetimeoffset");
371 b.Property<
long>(
"StartedById")
372 .HasColumnType(
"bigint");
374 b.Property<DateTimeOffset?>(
"StoppedAt")
375 .HasColumnType(
"datetimeoffset");
379 b.HasIndex(
"CancelledById");
381 b.HasIndex(
"InstanceId");
383 b.HasIndex(
"StartedById");
388 modelBuilder.Entity(
"Tgstation.Server.Host.Models.OAuthConnection", b =>
390 b.Property<
long>(
"Id")
391 .ValueGeneratedOnAdd()
392 .HasColumnType(
"bigint")
393 .HasAnnotation(
"SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
395 b.Property<
string>(
"ExternalUserId")
397 .HasColumnType(
"nvarchar(100)")
400 b.Property<
int>(
"Provider")
401 .HasColumnType(
"int");
403 b.Property<
long?>(
"UserId")
404 .HasColumnType(
"bigint");
408 b.HasIndex(
"UserId");
410 b.HasIndex(
"Provider",
"ExternalUserId")
413 b.ToTable(
"OAuthConnections");
416 modelBuilder.Entity(
"Tgstation.Server.Host.Models.PermissionSet", b =>
418 b.Property<
long?>(
"Id")
419 .ValueGeneratedOnAdd()
420 .HasColumnType(
"bigint")
421 .HasAnnotation(
"SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
423 b.Property<decimal>(
"AdministrationRights")
424 .HasColumnType(
"decimal(20,0)");
426 b.Property<
long?>(
"GroupId")
427 .HasColumnType(
"bigint");
429 b.Property<decimal>(
"InstanceManagerRights")
430 .HasColumnType(
"decimal(20,0)");
432 b.Property<
long?>(
"UserId")
433 .HasColumnType(
"bigint");
437 b.HasIndex(
"GroupId")
439 .HasFilter(
"[GroupId] IS NOT NULL");
443 .HasFilter(
"[UserId] IS NOT NULL");
445 b.ToTable(
"PermissionSets");
448 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ReattachInformation", b =>
450 b.Property<
long>(
"Id")
451 .ValueGeneratedOnAdd()
452 .HasColumnType(
"bigint")
453 .HasAnnotation(
"SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
455 b.Property<
string>(
"AccessIdentifier")
457 .HasColumnType(
"nvarchar(max)");
459 b.Property<
long>(
"CompileJobId")
460 .HasColumnType(
"bigint");
462 b.Property<
int>(
"LaunchSecurityLevel")
463 .HasColumnType(
"int");
465 b.Property<
int>(
"Port")
466 .HasColumnType(
"int");
468 b.Property<
int>(
"ProcessId")
469 .HasColumnType(
"int");
471 b.Property<
int>(
"RebootState")
472 .HasColumnType(
"int");
476 b.HasIndex(
"CompileJobId");
478 b.ToTable(
"ReattachInformations");
481 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RepositorySettings", b =>
483 b.Property<
long>(
"Id")
484 .ValueGeneratedOnAdd()
485 .HasColumnType(
"bigint")
486 .HasAnnotation(
"SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
488 b.Property<
string>(
"AccessToken")
489 .HasColumnType(
"nvarchar(max)")
490 .HasMaxLength(10000);
492 b.Property<
string>(
"AccessUser")
493 .HasColumnType(
"nvarchar(max)")
494 .HasMaxLength(10000);
496 b.Property<
bool?>(
"AutoUpdatesKeepTestMerges")
498 .HasColumnType(
"bit");
500 b.Property<
bool?>(
"AutoUpdatesSynchronize")
502 .HasColumnType(
"bit");
504 b.Property<
string>(
"CommitterEmail")
506 .HasColumnType(
"nvarchar(max)")
507 .HasMaxLength(10000);
509 b.Property<
string>(
"CommitterName")
511 .HasColumnType(
"nvarchar(max)")
512 .HasMaxLength(10000);
514 b.Property<
bool?>(
"CreateGitHubDeployments")
516 .HasColumnType(
"bit");
518 b.Property<
long>(
"InstanceId")
519 .HasColumnType(
"bigint");
521 b.Property<
bool?>(
"PostTestMergeComment")
523 .HasColumnType(
"bit");
525 b.Property<
bool?>(
"PushTestMergeCommits")
527 .HasColumnType(
"bit");
529 b.Property<
bool?>(
"ShowTestMergeCommitters")
531 .HasColumnType(
"bit");
535 b.HasIndex(
"InstanceId")
538 b.ToTable(
"RepositorySettings");
541 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
543 b.Property<
long>(
"Id")
544 .ValueGeneratedOnAdd()
545 .HasColumnType(
"bigint")
546 .HasAnnotation(
"SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
548 b.Property<
long>(
"RevisionInformationId")
549 .HasColumnType(
"bigint");
551 b.Property<
long>(
"TestMergeId")
552 .HasColumnType(
"bigint");
556 b.HasIndex(
"RevisionInformationId");
558 b.HasIndex(
"TestMergeId");
560 b.ToTable(
"RevInfoTestMerges");
563 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevisionInformation", b =>
565 b.Property<
long>(
"Id")
566 .ValueGeneratedOnAdd()
567 .HasColumnType(
"bigint")
568 .HasAnnotation(
"SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
570 b.Property<
string>(
"CommitSha")
572 .HasColumnType(
"nvarchar(40)")
575 b.Property<
long>(
"InstanceId")
576 .HasColumnType(
"bigint");
578 b.Property<
string>(
"OriginCommitSha")
580 .HasColumnType(
"nvarchar(40)")
585 b.HasIndex(
"InstanceId",
"CommitSha")
588 b.ToTable(
"RevisionInformations");
591 modelBuilder.Entity(
"Tgstation.Server.Host.Models.TestMerge", b =>
593 b.Property<
long>(
"Id")
594 .ValueGeneratedOnAdd()
595 .HasColumnType(
"bigint")
596 .HasAnnotation(
"SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
598 b.Property<
string>(
"Author")
600 .HasColumnType(
"nvarchar(max)");
602 b.Property<
string>(
"BodyAtMerge")
604 .HasColumnType(
"nvarchar(max)");
606 b.Property<
string>(
"Comment")
607 .HasColumnType(
"nvarchar(max)")
608 .HasMaxLength(10000);
610 b.Property<DateTimeOffset>(
"MergedAt")
611 .HasColumnType(
"datetimeoffset");
613 b.Property<
long>(
"MergedById")
614 .HasColumnType(
"bigint");
616 b.Property<
int>(
"Number")
617 .HasColumnType(
"int");
619 b.Property<
long?>(
"PrimaryRevisionInformationId")
621 .HasColumnType(
"bigint");
623 b.Property<
string>(
"TargetCommitSha")
625 .HasColumnType(
"nvarchar(40)")
628 b.Property<
string>(
"TitleAtMerge")
630 .HasColumnType(
"nvarchar(max)");
632 b.Property<
string>(
"Url")
634 .HasColumnType(
"nvarchar(max)");
638 b.HasIndex(
"MergedById");
640 b.HasIndex(
"PrimaryRevisionInformationId")
643 b.ToTable(
"TestMerges");
646 modelBuilder.Entity(
"Tgstation.Server.Host.Models.User", b =>
648 b.Property<
long?>(
"Id")
649 .ValueGeneratedOnAdd()
650 .HasColumnType(
"bigint")
651 .HasAnnotation(
"SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
653 b.Property<
string>(
"CanonicalName")
655 .HasColumnType(
"nvarchar(100)")
658 b.Property<DateTimeOffset?>(
"CreatedAt")
660 .HasColumnType(
"datetimeoffset");
662 b.Property<
long?>(
"CreatedById")
663 .HasColumnType(
"bigint");
665 b.Property<
bool?>(
"Enabled")
667 .HasColumnType(
"bit");
669 b.Property<
long?>(
"GroupId")
670 .HasColumnType(
"bigint");
672 b.Property<DateTimeOffset?>(
"LastPasswordUpdate")
673 .HasColumnType(
"datetimeoffset");
675 b.Property<
string>(
"Name")
677 .HasColumnType(
"nvarchar(100)")
680 b.Property<
string>(
"PasswordHash")
681 .HasColumnType(
"nvarchar(max)");
683 b.Property<
string>(
"SystemIdentifier")
684 .HasColumnType(
"nvarchar(100)")
689 b.HasIndex(
"CanonicalName")
692 b.HasIndex(
"CreatedById");
694 b.HasIndex(
"GroupId");
696 b.HasIndex(
"SystemIdentifier")
698 .HasFilter(
"[SystemIdentifier] IS NOT NULL");
703 modelBuilder.Entity(
"Tgstation.Server.Host.Models.UserGroup", b =>
705 b.Property<
long>(
"Id")
706 .ValueGeneratedOnAdd()
707 .HasColumnType(
"bigint")
708 .HasAnnotation(
"SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
710 b.Property<
string>(
"Name")
712 .HasColumnType(
"nvarchar(100)")
723 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatBot", b =>
725 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
726 .WithMany(
"ChatSettings")
727 .HasForeignKey(
"InstanceId")
728 .OnDelete(DeleteBehavior.Cascade)
732 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ChatChannel", b =>
734 b.HasOne(
"Tgstation.Server.Host.Models.ChatBot",
"ChatSettings")
735 .WithMany(
"Channels")
736 .HasForeignKey(
"ChatSettingsId")
737 .OnDelete(DeleteBehavior.Cascade)
741 modelBuilder.Entity(
"Tgstation.Server.Host.Models.CompileJob", b =>
743 b.HasOne(
"Tgstation.Server.Host.Models.Job",
"Job")
745 .HasForeignKey(
"Tgstation.Server.Host.Models.CompileJob",
"JobId")
746 .OnDelete(DeleteBehavior.Cascade)
749 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"RevisionInformation")
750 .WithMany(
"CompileJobs")
751 .HasForeignKey(
"RevisionInformationId")
752 .OnDelete(DeleteBehavior.ClientNoAction)
756 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamDaemonSettings", b =>
758 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
759 .WithOne(
"DreamDaemonSettings")
760 .HasForeignKey(
"Tgstation.Server.Host.Models.DreamDaemonSettings",
"InstanceId")
761 .OnDelete(DeleteBehavior.Cascade)
765 modelBuilder.Entity(
"Tgstation.Server.Host.Models.DreamMakerSettings", b =>
767 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
768 .WithOne(
"DreamMakerSettings")
769 .HasForeignKey(
"Tgstation.Server.Host.Models.DreamMakerSettings",
"InstanceId")
770 .OnDelete(DeleteBehavior.Cascade)
774 modelBuilder.Entity(
"Tgstation.Server.Host.Models.InstancePermissionSet", b =>
776 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
777 .WithMany(
"InstancePermissionSets")
778 .HasForeignKey(
"InstanceId")
779 .OnDelete(DeleteBehavior.Cascade)
782 b.HasOne(
"Tgstation.Server.Host.Models.PermissionSet",
"PermissionSet")
783 .WithMany(
"InstancePermissionSets")
784 .HasForeignKey(
"PermissionSetId")
785 .OnDelete(DeleteBehavior.Cascade)
789 modelBuilder.Entity(
"Tgstation.Server.Host.Models.Job", b =>
791 b.HasOne(
"Tgstation.Server.Host.Models.User",
"CancelledBy")
793 .HasForeignKey(
"CancelledById");
795 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
797 .HasForeignKey(
"InstanceId")
798 .OnDelete(DeleteBehavior.Cascade)
801 b.HasOne(
"Tgstation.Server.Host.Models.User",
"StartedBy")
803 .HasForeignKey(
"StartedById")
804 .OnDelete(DeleteBehavior.Cascade)
808 modelBuilder.Entity(
"Tgstation.Server.Host.Models.OAuthConnection", b =>
810 b.HasOne(
"Tgstation.Server.Host.Models.User",
"User")
811 .WithMany(
"OAuthConnections")
812 .HasForeignKey(
"UserId")
813 .OnDelete(DeleteBehavior.Cascade);
816 modelBuilder.Entity(
"Tgstation.Server.Host.Models.PermissionSet", b =>
818 b.HasOne(
"Tgstation.Server.Host.Models.UserGroup",
"Group")
819 .WithOne(
"PermissionSet")
820 .HasForeignKey(
"Tgstation.Server.Host.Models.PermissionSet",
"GroupId")
821 .OnDelete(DeleteBehavior.Cascade);
823 b.HasOne(
"Tgstation.Server.Host.Models.User",
"User")
824 .WithOne(
"PermissionSet")
825 .HasForeignKey(
"Tgstation.Server.Host.Models.PermissionSet",
"UserId")
826 .OnDelete(DeleteBehavior.Cascade);
829 modelBuilder.Entity(
"Tgstation.Server.Host.Models.ReattachInformation", b =>
831 b.HasOne(
"Tgstation.Server.Host.Models.CompileJob",
"CompileJob")
833 .HasForeignKey(
"CompileJobId")
834 .OnDelete(DeleteBehavior.Cascade)
838 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RepositorySettings", b =>
840 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
841 .WithOne(
"RepositorySettings")
842 .HasForeignKey(
"Tgstation.Server.Host.Models.RepositorySettings",
"InstanceId")
843 .OnDelete(DeleteBehavior.Cascade)
847 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
849 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"RevisionInformation")
850 .WithMany(
"ActiveTestMerges")
851 .HasForeignKey(
"RevisionInformationId")
852 .OnDelete(DeleteBehavior.Cascade)
855 b.HasOne(
"Tgstation.Server.Host.Models.TestMerge",
"TestMerge")
856 .WithMany(
"RevisonInformations")
857 .HasForeignKey(
"TestMergeId")
858 .OnDelete(DeleteBehavior.ClientNoAction)
862 modelBuilder.Entity(
"Tgstation.Server.Host.Models.RevisionInformation", b =>
864 b.HasOne(
"Tgstation.Server.Host.Models.Instance",
"Instance")
865 .WithMany(
"RevisionInformations")
866 .HasForeignKey(
"InstanceId")
867 .OnDelete(DeleteBehavior.Cascade)
871 modelBuilder.Entity(
"Tgstation.Server.Host.Models.TestMerge", b =>
873 b.HasOne(
"Tgstation.Server.Host.Models.User",
"MergedBy")
874 .WithMany(
"TestMerges")
875 .HasForeignKey(
"MergedById")
876 .OnDelete(DeleteBehavior.Restrict)
879 b.HasOne(
"Tgstation.Server.Host.Models.RevisionInformation",
"PrimaryRevisionInformation")
880 .WithOne(
"PrimaryTestMerge")
881 .HasForeignKey(
"Tgstation.Server.Host.Models.TestMerge",
"PrimaryRevisionInformationId")
882 .OnDelete(DeleteBehavior.Cascade)
886 modelBuilder.Entity(
"Tgstation.Server.Host.Models.User", b =>
888 b.HasOne(
"Tgstation.Server.Host.Models.User",
"CreatedBy")
889 .WithMany(
"CreatedUsers")
890 .HasForeignKey(
"CreatedById");
892 b.HasOne(
"Tgstation.Server.Host.Models.UserGroup",
"Group")
894 .HasForeignKey(
"GroupId");
896#pragma warning restore 612, 618