tgstation-server 6.12.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
20240202202121_SLAddMinidumpsOption.Designer.cs
Go to the documentation of this file.
1// <auto-generated />
2using System;
3
4using Microsoft.EntityFrameworkCore;
5using Microsoft.EntityFrameworkCore.Infrastructure;
6using Microsoft.EntityFrameworkCore.Migrations;
7
9{
10 [DbContext(typeof(SqliteDatabaseContext))]
11 [Migration("20240202202121_SLAddMinidumpsOption")]
12 partial class SLAddMinidumpsOption
13 {
15 protected override void BuildTargetModel(ModelBuilder modelBuilder)
16 {
17#pragma warning disable 612, 618
18 modelBuilder.HasAnnotation("ProductVersion", "8.0.1");
19
20 modelBuilder.Entity("Tgstation.Server.Host.Models.ChatBot", b =>
21 {
22 b.Property<long?>("Id")
23 .ValueGeneratedOnAdd()
24 .HasColumnType("INTEGER");
25
26 b.Property<ushort?>("ChannelLimit")
27 .IsRequired()
28 .HasColumnType("INTEGER");
29
30 b.Property<string>("ConnectionString")
31 .IsRequired()
32 .HasMaxLength(10000)
33 .HasColumnType("TEXT");
34
35 b.Property<bool?>("Enabled")
36 .HasColumnType("INTEGER");
37
38 b.Property<long>("InstanceId")
39 .HasColumnType("INTEGER");
40
41 b.Property<string>("Name")
42 .IsRequired()
43 .HasMaxLength(100)
44 .HasColumnType("TEXT");
45
46 b.Property<int>("Provider")
47 .HasColumnType("INTEGER");
48
49 b.Property<uint?>("ReconnectionInterval")
50 .IsRequired()
51 .HasColumnType("INTEGER");
52
53 b.HasKey("Id");
54
55 b.HasIndex("InstanceId", "Name")
56 .IsUnique();
57
58 b.ToTable("ChatBots");
59 });
60
61 modelBuilder.Entity("Tgstation.Server.Host.Models.ChatChannel", b =>
62 {
63 b.Property<long>("Id")
64 .ValueGeneratedOnAdd()
65 .HasColumnType("INTEGER");
66
67 b.Property<long>("ChatSettingsId")
68 .HasColumnType("INTEGER");
69
70 b.Property<ulong?>("DiscordChannelId")
71 .HasColumnType("INTEGER");
72
73 b.Property<string>("IrcChannel")
74 .HasMaxLength(100)
75 .HasColumnType("TEXT");
76
77 b.Property<bool?>("IsAdminChannel")
78 .IsRequired()
79 .HasColumnType("INTEGER");
80
81 b.Property<bool?>("IsSystemChannel")
82 .IsRequired()
83 .HasColumnType("INTEGER");
84
85 b.Property<bool?>("IsUpdatesChannel")
86 .IsRequired()
87 .HasColumnType("INTEGER");
88
89 b.Property<bool?>("IsWatchdogChannel")
90 .IsRequired()
91 .HasColumnType("INTEGER");
92
93 b.Property<string>("Tag")
94 .HasMaxLength(10000)
95 .HasColumnType("TEXT");
96
97 b.HasKey("Id");
98
99 b.HasIndex("ChatSettingsId", "DiscordChannelId")
100 .IsUnique();
101
102 b.HasIndex("ChatSettingsId", "IrcChannel")
103 .IsUnique();
104
105 b.ToTable("ChatChannels");
106 });
107
108 modelBuilder.Entity("Tgstation.Server.Host.Models.CompileJob", b =>
109 {
110 b.Property<long?>("Id")
111 .ValueGeneratedOnAdd()
112 .HasColumnType("INTEGER");
113
114 b.Property<int?>("DMApiMajorVersion")
115 .HasColumnType("INTEGER");
116
117 b.Property<int?>("DMApiMinorVersion")
118 .HasColumnType("INTEGER");
119
120 b.Property<int?>("DMApiPatchVersion")
121 .HasColumnType("INTEGER");
122
123 b.Property<Guid?>("DirectoryName")
124 .IsRequired()
125 .HasColumnType("TEXT");
126
127 b.Property<string>("DmeName")
128 .IsRequired()
129 .HasColumnType("TEXT");
130
131 b.Property<string>("EngineVersion")
132 .IsRequired()
133 .HasColumnType("TEXT");
134
135 b.Property<int?>("GitHubDeploymentId")
136 .HasColumnType("INTEGER");
137
138 b.Property<long?>("GitHubRepoId")
139 .HasColumnType("INTEGER");
140
141 b.Property<long>("JobId")
142 .HasColumnType("INTEGER");
143
144 b.Property<int?>("MinimumSecurityLevel")
145 .HasColumnType("INTEGER");
146
147 b.Property<string>("Output")
148 .IsRequired()
149 .HasColumnType("TEXT");
150
151 b.Property<string>("RepositoryOrigin")
152 .HasColumnType("TEXT");
153
154 b.Property<long>("RevisionInformationId")
155 .HasColumnType("INTEGER");
156
157 b.HasKey("Id");
158
159 b.HasIndex("DirectoryName");
160
161 b.HasIndex("JobId")
162 .IsUnique();
163
164 b.HasIndex("RevisionInformationId");
165
166 b.ToTable("CompileJobs");
167 });
168
169 modelBuilder.Entity("Tgstation.Server.Host.Models.DreamDaemonSettings", b =>
170 {
171 b.Property<long>("Id")
172 .ValueGeneratedOnAdd()
173 .HasColumnType("INTEGER");
174
175 b.Property<string>("AdditionalParameters")
176 .IsRequired()
177 .HasMaxLength(10000)
178 .HasColumnType("TEXT");
179
180 b.Property<bool?>("AllowWebClient")
181 .IsRequired()
182 .HasColumnType("INTEGER");
183
184 b.Property<bool?>("AutoStart")
185 .IsRequired()
186 .HasColumnType("INTEGER");
187
188 b.Property<bool?>("DumpOnHealthCheckRestart")
189 .IsRequired()
190 .HasColumnType("INTEGER");
191
192 b.Property<uint?>("HealthCheckSeconds")
193 .IsRequired()
194 .HasColumnType("INTEGER");
195
196 b.Property<long>("InstanceId")
197 .HasColumnType("INTEGER");
198
199 b.Property<bool?>("LogOutput")
200 .IsRequired()
201 .HasColumnType("INTEGER");
202
203 b.Property<uint?>("MapThreads")
204 .IsRequired()
205 .HasColumnType("INTEGER");
206
207 b.Property<bool?>("Minidumps")
208 .IsRequired()
209 .HasColumnType("INTEGER");
210
211 b.Property<ushort?>("Port")
212 .IsRequired()
213 .HasColumnType("INTEGER");
214
215 b.Property<int>("SecurityLevel")
216 .HasColumnType("INTEGER");
217
218 b.Property<bool?>("StartProfiler")
219 .IsRequired()
220 .HasColumnType("INTEGER");
221
222 b.Property<uint?>("StartupTimeout")
223 .IsRequired()
224 .HasColumnType("INTEGER");
225
226 b.Property<uint?>("TopicRequestTimeout")
227 .IsRequired()
228 .HasColumnType("INTEGER");
229
230 b.Property<int>("Visibility")
231 .HasColumnType("INTEGER");
232
233 b.HasKey("Id");
234
235 b.HasIndex("InstanceId")
236 .IsUnique();
237
238 b.ToTable("DreamDaemonSettings");
239 });
240
241 modelBuilder.Entity("Tgstation.Server.Host.Models.DreamMakerSettings", b =>
242 {
243 b.Property<long>("Id")
244 .ValueGeneratedOnAdd()
245 .HasColumnType("INTEGER");
246
247 b.Property<ushort?>("ApiValidationPort")
248 .IsRequired()
249 .HasColumnType("INTEGER");
250
251 b.Property<int>("ApiValidationSecurityLevel")
252 .HasColumnType("INTEGER");
253
254 b.Property<long>("InstanceId")
255 .HasColumnType("INTEGER");
256
257 b.Property<string>("ProjectName")
258 .HasMaxLength(10000)
259 .HasColumnType("TEXT");
260
261 b.Property<bool?>("RequireDMApiValidation")
262 .IsRequired()
263 .HasColumnType("INTEGER");
264
265 b.Property<TimeSpan?>("Timeout")
266 .IsRequired()
267 .HasColumnType("TEXT");
268
269 b.HasKey("Id");
270
271 b.HasIndex("InstanceId")
272 .IsUnique();
273
274 b.ToTable("DreamMakerSettings");
275 });
276
277 modelBuilder.Entity("Tgstation.Server.Host.Models.Instance", b =>
278 {
279 b.Property<long?>("Id")
280 .ValueGeneratedOnAdd()
281 .HasColumnType("INTEGER");
282
283 b.Property<uint?>("AutoUpdateInterval")
284 .IsRequired()
285 .HasColumnType("INTEGER");
286
287 b.Property<ushort?>("ChatBotLimit")
288 .IsRequired()
289 .HasColumnType("INTEGER");
290
291 b.Property<int>("ConfigurationType")
292 .HasColumnType("INTEGER");
293
294 b.Property<string>("Name")
295 .IsRequired()
296 .HasMaxLength(100)
297 .HasColumnType("TEXT");
298
299 b.Property<bool?>("Online")
300 .IsRequired()
301 .HasColumnType("INTEGER");
302
303 b.Property<string>("Path")
304 .IsRequired()
305 .HasColumnType("TEXT");
306
307 b.Property<string>("SwarmIdentifer")
308 .HasColumnType("TEXT");
309
310 b.HasKey("Id");
311
312 b.HasIndex("Path", "SwarmIdentifer")
313 .IsUnique();
314
315 b.ToTable("Instances");
316 });
317
318 modelBuilder.Entity("Tgstation.Server.Host.Models.InstancePermissionSet", b =>
319 {
320 b.Property<long>("Id")
321 .ValueGeneratedOnAdd()
322 .HasColumnType("INTEGER");
323
324 b.Property<ulong>("ChatBotRights")
325 .HasColumnType("INTEGER");
326
327 b.Property<ulong>("ConfigurationRights")
328 .HasColumnType("INTEGER");
329
330 b.Property<ulong>("DreamDaemonRights")
331 .HasColumnType("INTEGER");
332
333 b.Property<ulong>("DreamMakerRights")
334 .HasColumnType("INTEGER");
335
336 b.Property<ulong>("EngineRights")
337 .HasColumnType("INTEGER");
338
339 b.Property<long>("InstanceId")
340 .HasColumnType("INTEGER");
341
342 b.Property<ulong>("InstancePermissionSetRights")
343 .HasColumnType("INTEGER");
344
345 b.Property<long>("PermissionSetId")
346 .HasColumnType("INTEGER");
347
348 b.Property<ulong>("RepositoryRights")
349 .HasColumnType("INTEGER");
350
351 b.HasKey("Id");
352
353 b.HasIndex("InstanceId");
354
355 b.HasIndex("PermissionSetId", "InstanceId")
356 .IsUnique();
357
358 b.ToTable("InstancePermissionSets");
359 });
360
361 modelBuilder.Entity("Tgstation.Server.Host.Models.Job", b =>
362 {
363 b.Property<long?>("Id")
364 .ValueGeneratedOnAdd()
365 .HasColumnType("INTEGER");
366
367 b.Property<ulong?>("CancelRight")
368 .HasColumnType("INTEGER");
369
370 b.Property<ulong?>("CancelRightsType")
371 .HasColumnType("INTEGER");
372
373 b.Property<bool?>("Cancelled")
374 .IsRequired()
375 .HasColumnType("INTEGER");
376
377 b.Property<long?>("CancelledById")
378 .HasColumnType("INTEGER");
379
380 b.Property<string>("Description")
381 .IsRequired()
382 .HasColumnType("TEXT");
383
384 b.Property<uint?>("ErrorCode")
385 .HasColumnType("INTEGER");
386
387 b.Property<string>("ExceptionDetails")
388 .HasColumnType("TEXT");
389
390 b.Property<long>("InstanceId")
391 .HasColumnType("INTEGER");
392
393 b.Property<byte>("JobCode")
394 .HasColumnType("INTEGER");
395
396 b.Property<DateTimeOffset?>("StartedAt")
397 .IsRequired()
398 .HasColumnType("TEXT");
399
400 b.Property<long>("StartedById")
401 .HasColumnType("INTEGER");
402
403 b.Property<DateTimeOffset?>("StoppedAt")
404 .HasColumnType("TEXT");
405
406 b.HasKey("Id");
407
408 b.HasIndex("CancelledById");
409
410 b.HasIndex("InstanceId");
411
412 b.HasIndex("StartedById");
413
414 b.ToTable("Jobs");
415 });
416
417 modelBuilder.Entity("Tgstation.Server.Host.Models.OAuthConnection", b =>
418 {
419 b.Property<long>("Id")
420 .ValueGeneratedOnAdd()
421 .HasColumnType("INTEGER");
422
423 b.Property<string>("ExternalUserId")
424 .IsRequired()
425 .HasMaxLength(100)
426 .HasColumnType("TEXT");
427
428 b.Property<int>("Provider")
429 .HasColumnType("INTEGER");
430
431 b.Property<long?>("UserId")
432 .HasColumnType("INTEGER");
433
434 b.HasKey("Id");
435
436 b.HasIndex("UserId");
437
438 b.HasIndex("Provider", "ExternalUserId")
439 .IsUnique();
440
441 b.ToTable("OAuthConnections");
442 });
443
444 modelBuilder.Entity("Tgstation.Server.Host.Models.PermissionSet", b =>
445 {
446 b.Property<long?>("Id")
447 .ValueGeneratedOnAdd()
448 .HasColumnType("INTEGER");
449
450 b.Property<ulong>("AdministrationRights")
451 .HasColumnType("INTEGER");
452
453 b.Property<long?>("GroupId")
454 .HasColumnType("INTEGER");
455
456 b.Property<ulong>("InstanceManagerRights")
457 .HasColumnType("INTEGER");
458
459 b.Property<long?>("UserId")
460 .HasColumnType("INTEGER");
461
462 b.HasKey("Id");
463
464 b.HasIndex("GroupId")
465 .IsUnique();
466
467 b.HasIndex("UserId")
468 .IsUnique();
469
470 b.ToTable("PermissionSets");
471 });
472
473 modelBuilder.Entity("Tgstation.Server.Host.Models.ReattachInformation", b =>
474 {
475 b.Property<long?>("Id")
476 .ValueGeneratedOnAdd()
477 .HasColumnType("INTEGER");
478
479 b.Property<string>("AccessIdentifier")
480 .IsRequired()
481 .HasColumnType("TEXT");
482
483 b.Property<long>("CompileJobId")
484 .HasColumnType("INTEGER");
485
486 b.Property<long?>("InitialCompileJobId")
487 .HasColumnType("INTEGER");
488
489 b.Property<int>("LaunchSecurityLevel")
490 .HasColumnType("INTEGER");
491
492 b.Property<int>("LaunchVisibility")
493 .HasColumnType("INTEGER");
494
495 b.Property<ushort>("Port")
496 .HasColumnType("INTEGER");
497
498 b.Property<int>("ProcessId")
499 .HasColumnType("INTEGER");
500
501 b.Property<int>("RebootState")
502 .HasColumnType("INTEGER");
503
504 b.Property<ushort?>("TopicPort")
505 .HasColumnType("INTEGER");
506
507 b.HasKey("Id");
508
509 b.HasIndex("CompileJobId");
510
511 b.HasIndex("InitialCompileJobId");
512
513 b.ToTable("ReattachInformations");
514 });
515
516 modelBuilder.Entity("Tgstation.Server.Host.Models.RepositorySettings", b =>
517 {
518 b.Property<long>("Id")
519 .ValueGeneratedOnAdd()
520 .HasColumnType("INTEGER");
521
522 b.Property<string>("AccessToken")
523 .HasMaxLength(10000)
524 .HasColumnType("TEXT");
525
526 b.Property<string>("AccessUser")
527 .HasMaxLength(10000)
528 .HasColumnType("TEXT");
529
530 b.Property<bool?>("AutoUpdatesKeepTestMerges")
531 .IsRequired()
532 .HasColumnType("INTEGER");
533
534 b.Property<bool?>("AutoUpdatesSynchronize")
535 .IsRequired()
536 .HasColumnType("INTEGER");
537
538 b.Property<string>("CommitterEmail")
539 .IsRequired()
540 .HasMaxLength(10000)
541 .HasColumnType("TEXT");
542
543 b.Property<string>("CommitterName")
544 .IsRequired()
545 .HasMaxLength(10000)
546 .HasColumnType("TEXT");
547
548 b.Property<bool?>("CreateGitHubDeployments")
549 .IsRequired()
550 .HasColumnType("INTEGER");
551
552 b.Property<long>("InstanceId")
553 .HasColumnType("INTEGER");
554
555 b.Property<bool?>("PostTestMergeComment")
556 .IsRequired()
557 .HasColumnType("INTEGER");
558
559 b.Property<bool?>("PushTestMergeCommits")
560 .IsRequired()
561 .HasColumnType("INTEGER");
562
563 b.Property<bool?>("ShowTestMergeCommitters")
564 .IsRequired()
565 .HasColumnType("INTEGER");
566
567 b.Property<bool?>("UpdateSubmodules")
568 .IsRequired()
569 .HasColumnType("INTEGER");
570
571 b.HasKey("Id");
572
573 b.HasIndex("InstanceId")
574 .IsUnique();
575
576 b.ToTable("RepositorySettings");
577 });
578
579 modelBuilder.Entity("Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
580 {
581 b.Property<long>("Id")
582 .ValueGeneratedOnAdd()
583 .HasColumnType("INTEGER");
584
585 b.Property<long>("RevisionInformationId")
586 .HasColumnType("INTEGER");
587
588 b.Property<long>("TestMergeId")
589 .HasColumnType("INTEGER");
590
591 b.HasKey("Id");
592
593 b.HasIndex("RevisionInformationId");
594
595 b.HasIndex("TestMergeId");
596
597 b.ToTable("RevInfoTestMerges");
598 });
599
600 modelBuilder.Entity("Tgstation.Server.Host.Models.RevisionInformation", b =>
601 {
602 b.Property<long>("Id")
603 .ValueGeneratedOnAdd()
604 .HasColumnType("INTEGER");
605
606 b.Property<string>("CommitSha")
607 .IsRequired()
608 .HasMaxLength(40)
609 .HasColumnType("TEXT");
610
611 b.Property<long>("InstanceId")
612 .HasColumnType("INTEGER");
613
614 b.Property<string>("OriginCommitSha")
615 .IsRequired()
616 .HasMaxLength(40)
617 .HasColumnType("TEXT");
618
619 b.Property<DateTimeOffset>("Timestamp")
620 .HasColumnType("TEXT");
621
622 b.HasKey("Id");
623
624 b.HasIndex("InstanceId", "CommitSha")
625 .IsUnique();
626
627 b.ToTable("RevisionInformations");
628 });
629
630 modelBuilder.Entity("Tgstation.Server.Host.Models.TestMerge", b =>
631 {
632 b.Property<long>("Id")
633 .ValueGeneratedOnAdd()
634 .HasColumnType("INTEGER");
635
636 b.Property<string>("Author")
637 .IsRequired()
638 .HasColumnType("TEXT");
639
640 b.Property<string>("BodyAtMerge")
641 .IsRequired()
642 .HasColumnType("TEXT");
643
644 b.Property<string>("Comment")
645 .HasMaxLength(10000)
646 .HasColumnType("TEXT");
647
648 b.Property<DateTimeOffset>("MergedAt")
649 .HasColumnType("TEXT");
650
651 b.Property<long>("MergedById")
652 .HasColumnType("INTEGER");
653
654 b.Property<int>("Number")
655 .HasColumnType("INTEGER");
656
657 b.Property<long?>("PrimaryRevisionInformationId")
658 .IsRequired()
659 .HasColumnType("INTEGER");
660
661 b.Property<string>("TargetCommitSha")
662 .IsRequired()
663 .HasMaxLength(40)
664 .HasColumnType("TEXT");
665
666 b.Property<string>("TitleAtMerge")
667 .IsRequired()
668 .HasColumnType("TEXT");
669
670 b.Property<string>("Url")
671 .IsRequired()
672 .HasColumnType("TEXT");
673
674 b.HasKey("Id");
675
676 b.HasIndex("MergedById");
677
678 b.HasIndex("PrimaryRevisionInformationId")
679 .IsUnique();
680
681 b.ToTable("TestMerges");
682 });
683
684 modelBuilder.Entity("Tgstation.Server.Host.Models.User", b =>
685 {
686 b.Property<long?>("Id")
687 .ValueGeneratedOnAdd()
688 .HasColumnType("INTEGER");
689
690 b.Property<string>("CanonicalName")
691 .IsRequired()
692 .HasMaxLength(100)
693 .HasColumnType("TEXT");
694
695 b.Property<DateTimeOffset?>("CreatedAt")
696 .IsRequired()
697 .HasColumnType("TEXT");
698
699 b.Property<long?>("CreatedById")
700 .HasColumnType("INTEGER");
701
702 b.Property<bool?>("Enabled")
703 .IsRequired()
704 .HasColumnType("INTEGER");
705
706 b.Property<long?>("GroupId")
707 .HasColumnType("INTEGER");
708
709 b.Property<DateTimeOffset?>("LastPasswordUpdate")
710 .HasColumnType("TEXT");
711
712 b.Property<string>("Name")
713 .IsRequired()
714 .HasMaxLength(100)
715 .HasColumnType("TEXT");
716
717 b.Property<string>("PasswordHash")
718 .HasColumnType("TEXT");
719
720 b.Property<string>("SystemIdentifier")
721 .HasMaxLength(100)
722 .HasColumnType("TEXT");
723
724 b.HasKey("Id");
725
726 b.HasIndex("CanonicalName")
727 .IsUnique();
728
729 b.HasIndex("CreatedById");
730
731 b.HasIndex("GroupId");
732
733 b.HasIndex("SystemIdentifier")
734 .IsUnique();
735
736 b.ToTable("Users");
737 });
738
739 modelBuilder.Entity("Tgstation.Server.Host.Models.UserGroup", b =>
740 {
741 b.Property<long?>("Id")
742 .ValueGeneratedOnAdd()
743 .HasColumnType("INTEGER");
744
745 b.Property<string>("Name")
746 .IsRequired()
747 .HasMaxLength(100)
748 .HasColumnType("TEXT");
749
750 b.HasKey("Id");
751
752 b.HasIndex("Name")
753 .IsUnique();
754
755 b.ToTable("Groups");
756 });
757
758 modelBuilder.Entity("Tgstation.Server.Host.Models.ChatBot", b =>
759 {
760 b.HasOne("Tgstation.Server.Host.Models.Instance", "Instance")
761 .WithMany("ChatSettings")
762 .HasForeignKey("InstanceId")
763 .OnDelete(DeleteBehavior.Cascade)
764 .IsRequired();
765
766 b.Navigation("Instance");
767 });
768
769 modelBuilder.Entity("Tgstation.Server.Host.Models.ChatChannel", b =>
770 {
771 b.HasOne("Tgstation.Server.Host.Models.ChatBot", "ChatSettings")
772 .WithMany("Channels")
773 .HasForeignKey("ChatSettingsId")
774 .OnDelete(DeleteBehavior.Cascade)
775 .IsRequired();
776
777 b.Navigation("ChatSettings");
778 });
779
780 modelBuilder.Entity("Tgstation.Server.Host.Models.CompileJob", b =>
781 {
782 b.HasOne("Tgstation.Server.Host.Models.Job", "Job")
783 .WithOne()
784 .HasForeignKey("Tgstation.Server.Host.Models.CompileJob", "JobId")
785 .OnDelete(DeleteBehavior.Cascade)
786 .IsRequired();
787
788 b.HasOne("Tgstation.Server.Host.Models.RevisionInformation", "RevisionInformation")
789 .WithMany("CompileJobs")
790 .HasForeignKey("RevisionInformationId")
791 .OnDelete(DeleteBehavior.ClientNoAction)
792 .IsRequired();
793
794 b.Navigation("Job");
795
796 b.Navigation("RevisionInformation");
797 });
798
799 modelBuilder.Entity("Tgstation.Server.Host.Models.DreamDaemonSettings", b =>
800 {
801 b.HasOne("Tgstation.Server.Host.Models.Instance", "Instance")
802 .WithOne("DreamDaemonSettings")
803 .HasForeignKey("Tgstation.Server.Host.Models.DreamDaemonSettings", "InstanceId")
804 .OnDelete(DeleteBehavior.Cascade)
805 .IsRequired();
806
807 b.Navigation("Instance");
808 });
809
810 modelBuilder.Entity("Tgstation.Server.Host.Models.DreamMakerSettings", b =>
811 {
812 b.HasOne("Tgstation.Server.Host.Models.Instance", "Instance")
813 .WithOne("DreamMakerSettings")
814 .HasForeignKey("Tgstation.Server.Host.Models.DreamMakerSettings", "InstanceId")
815 .OnDelete(DeleteBehavior.Cascade)
816 .IsRequired();
817
818 b.Navigation("Instance");
819 });
820
821 modelBuilder.Entity("Tgstation.Server.Host.Models.InstancePermissionSet", b =>
822 {
823 b.HasOne("Tgstation.Server.Host.Models.Instance", "Instance")
824 .WithMany("InstancePermissionSets")
825 .HasForeignKey("InstanceId")
826 .OnDelete(DeleteBehavior.Cascade)
827 .IsRequired();
828
829 b.HasOne("Tgstation.Server.Host.Models.PermissionSet", "PermissionSet")
830 .WithMany("InstancePermissionSets")
831 .HasForeignKey("PermissionSetId")
832 .OnDelete(DeleteBehavior.Cascade)
833 .IsRequired();
834
835 b.Navigation("Instance");
836
837 b.Navigation("PermissionSet");
838 });
839
840 modelBuilder.Entity("Tgstation.Server.Host.Models.Job", b =>
841 {
842 b.HasOne("Tgstation.Server.Host.Models.User", "CancelledBy")
843 .WithMany()
844 .HasForeignKey("CancelledById");
845
846 b.HasOne("Tgstation.Server.Host.Models.Instance", "Instance")
847 .WithMany("Jobs")
848 .HasForeignKey("InstanceId")
849 .OnDelete(DeleteBehavior.Cascade)
850 .IsRequired();
851
852 b.HasOne("Tgstation.Server.Host.Models.User", "StartedBy")
853 .WithMany()
854 .HasForeignKey("StartedById")
855 .OnDelete(DeleteBehavior.Cascade)
856 .IsRequired();
857
858 b.Navigation("CancelledBy");
859
860 b.Navigation("Instance");
861
862 b.Navigation("StartedBy");
863 });
864
865 modelBuilder.Entity("Tgstation.Server.Host.Models.OAuthConnection", b =>
866 {
867 b.HasOne("Tgstation.Server.Host.Models.User", "User")
868 .WithMany("OAuthConnections")
869 .HasForeignKey("UserId")
870 .OnDelete(DeleteBehavior.Cascade);
871
872 b.Navigation("User");
873 });
874
875 modelBuilder.Entity("Tgstation.Server.Host.Models.PermissionSet", b =>
876 {
877 b.HasOne("Tgstation.Server.Host.Models.UserGroup", "Group")
878 .WithOne("PermissionSet")
879 .HasForeignKey("Tgstation.Server.Host.Models.PermissionSet", "GroupId")
880 .OnDelete(DeleteBehavior.Cascade);
881
882 b.HasOne("Tgstation.Server.Host.Models.User", "User")
883 .WithOne("PermissionSet")
884 .HasForeignKey("Tgstation.Server.Host.Models.PermissionSet", "UserId")
885 .OnDelete(DeleteBehavior.Cascade);
886
887 b.Navigation("Group");
888
889 b.Navigation("User");
890 });
891
892 modelBuilder.Entity("Tgstation.Server.Host.Models.ReattachInformation", b =>
893 {
894 b.HasOne("Tgstation.Server.Host.Models.CompileJob", "CompileJob")
895 .WithMany()
896 .HasForeignKey("CompileJobId")
897 .OnDelete(DeleteBehavior.Cascade)
898 .IsRequired();
899
900 b.HasOne("Tgstation.Server.Host.Models.CompileJob", "InitialCompileJob")
901 .WithMany()
902 .HasForeignKey("InitialCompileJobId");
903
904 b.Navigation("CompileJob");
905
906 b.Navigation("InitialCompileJob");
907 });
908
909 modelBuilder.Entity("Tgstation.Server.Host.Models.RepositorySettings", b =>
910 {
911 b.HasOne("Tgstation.Server.Host.Models.Instance", "Instance")
912 .WithOne("RepositorySettings")
913 .HasForeignKey("Tgstation.Server.Host.Models.RepositorySettings", "InstanceId")
914 .OnDelete(DeleteBehavior.Cascade)
915 .IsRequired();
916
917 b.Navigation("Instance");
918 });
919
920 modelBuilder.Entity("Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
921 {
922 b.HasOne("Tgstation.Server.Host.Models.RevisionInformation", "RevisionInformation")
923 .WithMany("ActiveTestMerges")
924 .HasForeignKey("RevisionInformationId")
925 .OnDelete(DeleteBehavior.Cascade)
926 .IsRequired();
927
928 b.HasOne("Tgstation.Server.Host.Models.TestMerge", "TestMerge")
929 .WithMany("RevisonInformations")
930 .HasForeignKey("TestMergeId")
931 .OnDelete(DeleteBehavior.ClientNoAction)
932 .IsRequired();
933
934 b.Navigation("RevisionInformation");
935
936 b.Navigation("TestMerge");
937 });
938
939 modelBuilder.Entity("Tgstation.Server.Host.Models.RevisionInformation", b =>
940 {
941 b.HasOne("Tgstation.Server.Host.Models.Instance", "Instance")
942 .WithMany("RevisionInformations")
943 .HasForeignKey("InstanceId")
944 .OnDelete(DeleteBehavior.Cascade)
945 .IsRequired();
946
947 b.Navigation("Instance");
948 });
949
950 modelBuilder.Entity("Tgstation.Server.Host.Models.TestMerge", b =>
951 {
952 b.HasOne("Tgstation.Server.Host.Models.User", "MergedBy")
953 .WithMany("TestMerges")
954 .HasForeignKey("MergedById")
955 .OnDelete(DeleteBehavior.Restrict)
956 .IsRequired();
957
958 b.HasOne("Tgstation.Server.Host.Models.RevisionInformation", "PrimaryRevisionInformation")
959 .WithOne("PrimaryTestMerge")
960 .HasForeignKey("Tgstation.Server.Host.Models.TestMerge", "PrimaryRevisionInformationId")
961 .OnDelete(DeleteBehavior.Cascade)
962 .IsRequired();
963
964 b.Navigation("MergedBy");
965
966 b.Navigation("PrimaryRevisionInformation");
967 });
968
969 modelBuilder.Entity("Tgstation.Server.Host.Models.User", b =>
970 {
971 b.HasOne("Tgstation.Server.Host.Models.User", "CreatedBy")
972 .WithMany("CreatedUsers")
973 .HasForeignKey("CreatedById");
974
975 b.HasOne("Tgstation.Server.Host.Models.UserGroup", "Group")
976 .WithMany("Users")
977 .HasForeignKey("GroupId");
978
979 b.Navigation("CreatedBy");
980
981 b.Navigation("Group");
982 });
983
984 modelBuilder.Entity("Tgstation.Server.Host.Models.ChatBot", b =>
985 {
986 b.Navigation("Channels");
987 });
988
989 modelBuilder.Entity("Tgstation.Server.Host.Models.Instance", b =>
990 {
991 b.Navigation("ChatSettings");
992
993 b.Navigation("DreamDaemonSettings");
994
995 b.Navigation("DreamMakerSettings");
996
997 b.Navigation("InstancePermissionSets");
998
999 b.Navigation("Jobs");
1000
1001 b.Navigation("RepositorySettings");
1002
1003 b.Navigation("RevisionInformations");
1004 });
1005
1006 modelBuilder.Entity("Tgstation.Server.Host.Models.PermissionSet", b =>
1007 {
1008 b.Navigation("InstancePermissionSets");
1009 });
1010
1011 modelBuilder.Entity("Tgstation.Server.Host.Models.RevisionInformation", b =>
1012 {
1013 b.Navigation("ActiveTestMerges");
1014
1015 b.Navigation("CompileJobs");
1016
1017 b.Navigation("PrimaryTestMerge");
1018 });
1019
1020 modelBuilder.Entity("Tgstation.Server.Host.Models.TestMerge", b =>
1021 {
1022 b.Navigation("RevisonInformations");
1023 });
1024
1025 modelBuilder.Entity("Tgstation.Server.Host.Models.User", b =>
1026 {
1027 b.Navigation("CreatedUsers");
1028
1029 b.Navigation("OAuthConnections");
1030
1031 b.Navigation("PermissionSet");
1032
1033 b.Navigation("TestMerges");
1034 });
1035
1036 modelBuilder.Entity("Tgstation.Server.Host.Models.UserGroup", b =>
1037 {
1038 b.Navigation("PermissionSet")
1039 .IsRequired();
1040
1041 b.Navigation("Users");
1042 });
1043#pragma warning restore 612, 618
1044 }
1045 }
1046}