tgstation-server 6.12.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
20240420154525_SLAddCompilerAdditionalArguments.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("20240420154525_SLAddCompilerAdditionalArguments")]
12 partial class SLAddCompilerAdditionalArguments
13 {
15 protected override void BuildTargetModel(ModelBuilder modelBuilder)
16 {
17#pragma warning disable 612, 618
18 modelBuilder.HasAnnotation("ProductVersion", "8.0.4");
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<string>("CompilerAdditionalArguments")
255 .HasMaxLength(10000)
256 .HasColumnType("TEXT");
257
258 b.Property<long>("InstanceId")
259 .HasColumnType("INTEGER");
260
261 b.Property<string>("ProjectName")
262 .HasMaxLength(10000)
263 .HasColumnType("TEXT");
264
265 b.Property<bool?>("RequireDMApiValidation")
266 .IsRequired()
267 .HasColumnType("INTEGER");
268
269 b.Property<TimeSpan?>("Timeout")
270 .IsRequired()
271 .HasColumnType("TEXT");
272
273 b.HasKey("Id");
274
275 b.HasIndex("InstanceId")
276 .IsUnique();
277
278 b.ToTable("DreamMakerSettings");
279 });
280
281 modelBuilder.Entity("Tgstation.Server.Host.Models.Instance", b =>
282 {
283 b.Property<long?>("Id")
284 .ValueGeneratedOnAdd()
285 .HasColumnType("INTEGER");
286
287 b.Property<uint?>("AutoUpdateInterval")
288 .IsRequired()
289 .HasColumnType("INTEGER");
290
291 b.Property<ushort?>("ChatBotLimit")
292 .IsRequired()
293 .HasColumnType("INTEGER");
294
295 b.Property<int>("ConfigurationType")
296 .HasColumnType("INTEGER");
297
298 b.Property<string>("Name")
299 .IsRequired()
300 .HasMaxLength(100)
301 .HasColumnType("TEXT");
302
303 b.Property<bool?>("Online")
304 .IsRequired()
305 .HasColumnType("INTEGER");
306
307 b.Property<string>("Path")
308 .IsRequired()
309 .HasColumnType("TEXT");
310
311 b.Property<string>("SwarmIdentifer")
312 .HasColumnType("TEXT");
313
314 b.HasKey("Id");
315
316 b.HasIndex("Path", "SwarmIdentifer")
317 .IsUnique();
318
319 b.ToTable("Instances");
320 });
321
322 modelBuilder.Entity("Tgstation.Server.Host.Models.InstancePermissionSet", b =>
323 {
324 b.Property<long>("Id")
325 .ValueGeneratedOnAdd()
326 .HasColumnType("INTEGER");
327
328 b.Property<ulong>("ChatBotRights")
329 .HasColumnType("INTEGER");
330
331 b.Property<ulong>("ConfigurationRights")
332 .HasColumnType("INTEGER");
333
334 b.Property<ulong>("DreamDaemonRights")
335 .HasColumnType("INTEGER");
336
337 b.Property<ulong>("DreamMakerRights")
338 .HasColumnType("INTEGER");
339
340 b.Property<ulong>("EngineRights")
341 .HasColumnType("INTEGER");
342
343 b.Property<long>("InstanceId")
344 .HasColumnType("INTEGER");
345
346 b.Property<ulong>("InstancePermissionSetRights")
347 .HasColumnType("INTEGER");
348
349 b.Property<long>("PermissionSetId")
350 .HasColumnType("INTEGER");
351
352 b.Property<ulong>("RepositoryRights")
353 .HasColumnType("INTEGER");
354
355 b.HasKey("Id");
356
357 b.HasIndex("InstanceId");
358
359 b.HasIndex("PermissionSetId", "InstanceId")
360 .IsUnique();
361
362 b.ToTable("InstancePermissionSets");
363 });
364
365 modelBuilder.Entity("Tgstation.Server.Host.Models.Job", b =>
366 {
367 b.Property<long?>("Id")
368 .ValueGeneratedOnAdd()
369 .HasColumnType("INTEGER");
370
371 b.Property<ulong?>("CancelRight")
372 .HasColumnType("INTEGER");
373
374 b.Property<ulong?>("CancelRightsType")
375 .HasColumnType("INTEGER");
376
377 b.Property<bool?>("Cancelled")
378 .IsRequired()
379 .HasColumnType("INTEGER");
380
381 b.Property<long?>("CancelledById")
382 .HasColumnType("INTEGER");
383
384 b.Property<string>("Description")
385 .IsRequired()
386 .HasColumnType("TEXT");
387
388 b.Property<uint?>("ErrorCode")
389 .HasColumnType("INTEGER");
390
391 b.Property<string>("ExceptionDetails")
392 .HasColumnType("TEXT");
393
394 b.Property<long>("InstanceId")
395 .HasColumnType("INTEGER");
396
397 b.Property<byte>("JobCode")
398 .HasColumnType("INTEGER");
399
400 b.Property<DateTimeOffset?>("StartedAt")
401 .IsRequired()
402 .HasColumnType("TEXT");
403
404 b.Property<long>("StartedById")
405 .HasColumnType("INTEGER");
406
407 b.Property<DateTimeOffset?>("StoppedAt")
408 .HasColumnType("TEXT");
409
410 b.HasKey("Id");
411
412 b.HasIndex("CancelledById");
413
414 b.HasIndex("InstanceId");
415
416 b.HasIndex("StartedById");
417
418 b.ToTable("Jobs");
419 });
420
421 modelBuilder.Entity("Tgstation.Server.Host.Models.OAuthConnection", b =>
422 {
423 b.Property<long>("Id")
424 .ValueGeneratedOnAdd()
425 .HasColumnType("INTEGER");
426
427 b.Property<string>("ExternalUserId")
428 .IsRequired()
429 .HasMaxLength(100)
430 .HasColumnType("TEXT");
431
432 b.Property<int>("Provider")
433 .HasColumnType("INTEGER");
434
435 b.Property<long?>("UserId")
436 .HasColumnType("INTEGER");
437
438 b.HasKey("Id");
439
440 b.HasIndex("UserId");
441
442 b.HasIndex("Provider", "ExternalUserId")
443 .IsUnique();
444
445 b.ToTable("OAuthConnections");
446 });
447
448 modelBuilder.Entity("Tgstation.Server.Host.Models.PermissionSet", b =>
449 {
450 b.Property<long?>("Id")
451 .ValueGeneratedOnAdd()
452 .HasColumnType("INTEGER");
453
454 b.Property<ulong>("AdministrationRights")
455 .HasColumnType("INTEGER");
456
457 b.Property<long?>("GroupId")
458 .HasColumnType("INTEGER");
459
460 b.Property<ulong>("InstanceManagerRights")
461 .HasColumnType("INTEGER");
462
463 b.Property<long?>("UserId")
464 .HasColumnType("INTEGER");
465
466 b.HasKey("Id");
467
468 b.HasIndex("GroupId")
469 .IsUnique();
470
471 b.HasIndex("UserId")
472 .IsUnique();
473
474 b.ToTable("PermissionSets");
475 });
476
477 modelBuilder.Entity("Tgstation.Server.Host.Models.ReattachInformation", b =>
478 {
479 b.Property<long?>("Id")
480 .ValueGeneratedOnAdd()
481 .HasColumnType("INTEGER");
482
483 b.Property<string>("AccessIdentifier")
484 .IsRequired()
485 .HasColumnType("TEXT");
486
487 b.Property<long>("CompileJobId")
488 .HasColumnType("INTEGER");
489
490 b.Property<long?>("InitialCompileJobId")
491 .HasColumnType("INTEGER");
492
493 b.Property<int>("LaunchSecurityLevel")
494 .HasColumnType("INTEGER");
495
496 b.Property<int>("LaunchVisibility")
497 .HasColumnType("INTEGER");
498
499 b.Property<ushort>("Port")
500 .HasColumnType("INTEGER");
501
502 b.Property<int>("ProcessId")
503 .HasColumnType("INTEGER");
504
505 b.Property<int>("RebootState")
506 .HasColumnType("INTEGER");
507
508 b.Property<ushort?>("TopicPort")
509 .HasColumnType("INTEGER");
510
511 b.HasKey("Id");
512
513 b.HasIndex("CompileJobId");
514
515 b.HasIndex("InitialCompileJobId");
516
517 b.ToTable("ReattachInformations");
518 });
519
520 modelBuilder.Entity("Tgstation.Server.Host.Models.RepositorySettings", b =>
521 {
522 b.Property<long>("Id")
523 .ValueGeneratedOnAdd()
524 .HasColumnType("INTEGER");
525
526 b.Property<string>("AccessToken")
527 .HasMaxLength(10000)
528 .HasColumnType("TEXT");
529
530 b.Property<string>("AccessUser")
531 .HasMaxLength(10000)
532 .HasColumnType("TEXT");
533
534 b.Property<bool?>("AutoUpdatesKeepTestMerges")
535 .IsRequired()
536 .HasColumnType("INTEGER");
537
538 b.Property<bool?>("AutoUpdatesSynchronize")
539 .IsRequired()
540 .HasColumnType("INTEGER");
541
542 b.Property<string>("CommitterEmail")
543 .IsRequired()
544 .HasMaxLength(10000)
545 .HasColumnType("TEXT");
546
547 b.Property<string>("CommitterName")
548 .IsRequired()
549 .HasMaxLength(10000)
550 .HasColumnType("TEXT");
551
552 b.Property<bool?>("CreateGitHubDeployments")
553 .IsRequired()
554 .HasColumnType("INTEGER");
555
556 b.Property<long>("InstanceId")
557 .HasColumnType("INTEGER");
558
559 b.Property<bool?>("PostTestMergeComment")
560 .IsRequired()
561 .HasColumnType("INTEGER");
562
563 b.Property<bool?>("PushTestMergeCommits")
564 .IsRequired()
565 .HasColumnType("INTEGER");
566
567 b.Property<bool?>("ShowTestMergeCommitters")
568 .IsRequired()
569 .HasColumnType("INTEGER");
570
571 b.Property<bool?>("UpdateSubmodules")
572 .IsRequired()
573 .HasColumnType("INTEGER");
574
575 b.HasKey("Id");
576
577 b.HasIndex("InstanceId")
578 .IsUnique();
579
580 b.ToTable("RepositorySettings");
581 });
582
583 modelBuilder.Entity("Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
584 {
585 b.Property<long>("Id")
586 .ValueGeneratedOnAdd()
587 .HasColumnType("INTEGER");
588
589 b.Property<long>("RevisionInformationId")
590 .HasColumnType("INTEGER");
591
592 b.Property<long>("TestMergeId")
593 .HasColumnType("INTEGER");
594
595 b.HasKey("Id");
596
597 b.HasIndex("RevisionInformationId");
598
599 b.HasIndex("TestMergeId");
600
601 b.ToTable("RevInfoTestMerges");
602 });
603
604 modelBuilder.Entity("Tgstation.Server.Host.Models.RevisionInformation", b =>
605 {
606 b.Property<long>("Id")
607 .ValueGeneratedOnAdd()
608 .HasColumnType("INTEGER");
609
610 b.Property<string>("CommitSha")
611 .IsRequired()
612 .HasMaxLength(40)
613 .HasColumnType("TEXT");
614
615 b.Property<long>("InstanceId")
616 .HasColumnType("INTEGER");
617
618 b.Property<string>("OriginCommitSha")
619 .IsRequired()
620 .HasMaxLength(40)
621 .HasColumnType("TEXT");
622
623 b.Property<DateTimeOffset>("Timestamp")
624 .HasColumnType("TEXT");
625
626 b.HasKey("Id");
627
628 b.HasIndex("InstanceId", "CommitSha")
629 .IsUnique();
630
631 b.ToTable("RevisionInformations");
632 });
633
634 modelBuilder.Entity("Tgstation.Server.Host.Models.TestMerge", b =>
635 {
636 b.Property<long>("Id")
637 .ValueGeneratedOnAdd()
638 .HasColumnType("INTEGER");
639
640 b.Property<string>("Author")
641 .IsRequired()
642 .HasColumnType("TEXT");
643
644 b.Property<string>("BodyAtMerge")
645 .IsRequired()
646 .HasColumnType("TEXT");
647
648 b.Property<string>("Comment")
649 .HasMaxLength(10000)
650 .HasColumnType("TEXT");
651
652 b.Property<DateTimeOffset>("MergedAt")
653 .HasColumnType("TEXT");
654
655 b.Property<long>("MergedById")
656 .HasColumnType("INTEGER");
657
658 b.Property<int>("Number")
659 .HasColumnType("INTEGER");
660
661 b.Property<long?>("PrimaryRevisionInformationId")
662 .IsRequired()
663 .HasColumnType("INTEGER");
664
665 b.Property<string>("TargetCommitSha")
666 .IsRequired()
667 .HasMaxLength(40)
668 .HasColumnType("TEXT");
669
670 b.Property<string>("TitleAtMerge")
671 .IsRequired()
672 .HasColumnType("TEXT");
673
674 b.Property<string>("Url")
675 .IsRequired()
676 .HasColumnType("TEXT");
677
678 b.HasKey("Id");
679
680 b.HasIndex("MergedById");
681
682 b.HasIndex("PrimaryRevisionInformationId")
683 .IsUnique();
684
685 b.ToTable("TestMerges");
686 });
687
688 modelBuilder.Entity("Tgstation.Server.Host.Models.User", b =>
689 {
690 b.Property<long?>("Id")
691 .ValueGeneratedOnAdd()
692 .HasColumnType("INTEGER");
693
694 b.Property<string>("CanonicalName")
695 .IsRequired()
696 .HasMaxLength(100)
697 .HasColumnType("TEXT");
698
699 b.Property<DateTimeOffset?>("CreatedAt")
700 .IsRequired()
701 .HasColumnType("TEXT");
702
703 b.Property<long?>("CreatedById")
704 .HasColumnType("INTEGER");
705
706 b.Property<bool?>("Enabled")
707 .IsRequired()
708 .HasColumnType("INTEGER");
709
710 b.Property<long?>("GroupId")
711 .HasColumnType("INTEGER");
712
713 b.Property<DateTimeOffset?>("LastPasswordUpdate")
714 .HasColumnType("TEXT");
715
716 b.Property<string>("Name")
717 .IsRequired()
718 .HasMaxLength(100)
719 .HasColumnType("TEXT");
720
721 b.Property<string>("PasswordHash")
722 .HasColumnType("TEXT");
723
724 b.Property<string>("SystemIdentifier")
725 .HasMaxLength(100)
726 .HasColumnType("TEXT");
727
728 b.HasKey("Id");
729
730 b.HasIndex("CanonicalName")
731 .IsUnique();
732
733 b.HasIndex("CreatedById");
734
735 b.HasIndex("GroupId");
736
737 b.HasIndex("SystemIdentifier")
738 .IsUnique();
739
740 b.ToTable("Users");
741 });
742
743 modelBuilder.Entity("Tgstation.Server.Host.Models.UserGroup", b =>
744 {
745 b.Property<long?>("Id")
746 .ValueGeneratedOnAdd()
747 .HasColumnType("INTEGER");
748
749 b.Property<string>("Name")
750 .IsRequired()
751 .HasMaxLength(100)
752 .HasColumnType("TEXT");
753
754 b.HasKey("Id");
755
756 b.HasIndex("Name")
757 .IsUnique();
758
759 b.ToTable("Groups");
760 });
761
762 modelBuilder.Entity("Tgstation.Server.Host.Models.ChatBot", b =>
763 {
764 b.HasOne("Tgstation.Server.Host.Models.Instance", "Instance")
765 .WithMany("ChatSettings")
766 .HasForeignKey("InstanceId")
767 .OnDelete(DeleteBehavior.Cascade)
768 .IsRequired();
769
770 b.Navigation("Instance");
771 });
772
773 modelBuilder.Entity("Tgstation.Server.Host.Models.ChatChannel", b =>
774 {
775 b.HasOne("Tgstation.Server.Host.Models.ChatBot", "ChatSettings")
776 .WithMany("Channels")
777 .HasForeignKey("ChatSettingsId")
778 .OnDelete(DeleteBehavior.Cascade)
779 .IsRequired();
780
781 b.Navigation("ChatSettings");
782 });
783
784 modelBuilder.Entity("Tgstation.Server.Host.Models.CompileJob", b =>
785 {
786 b.HasOne("Tgstation.Server.Host.Models.Job", "Job")
787 .WithOne()
788 .HasForeignKey("Tgstation.Server.Host.Models.CompileJob", "JobId")
789 .OnDelete(DeleteBehavior.Cascade)
790 .IsRequired();
791
792 b.HasOne("Tgstation.Server.Host.Models.RevisionInformation", "RevisionInformation")
793 .WithMany("CompileJobs")
794 .HasForeignKey("RevisionInformationId")
795 .OnDelete(DeleteBehavior.ClientNoAction)
796 .IsRequired();
797
798 b.Navigation("Job");
799
800 b.Navigation("RevisionInformation");
801 });
802
803 modelBuilder.Entity("Tgstation.Server.Host.Models.DreamDaemonSettings", b =>
804 {
805 b.HasOne("Tgstation.Server.Host.Models.Instance", "Instance")
806 .WithOne("DreamDaemonSettings")
807 .HasForeignKey("Tgstation.Server.Host.Models.DreamDaemonSettings", "InstanceId")
808 .OnDelete(DeleteBehavior.Cascade)
809 .IsRequired();
810
811 b.Navigation("Instance");
812 });
813
814 modelBuilder.Entity("Tgstation.Server.Host.Models.DreamMakerSettings", b =>
815 {
816 b.HasOne("Tgstation.Server.Host.Models.Instance", "Instance")
817 .WithOne("DreamMakerSettings")
818 .HasForeignKey("Tgstation.Server.Host.Models.DreamMakerSettings", "InstanceId")
819 .OnDelete(DeleteBehavior.Cascade)
820 .IsRequired();
821
822 b.Navigation("Instance");
823 });
824
825 modelBuilder.Entity("Tgstation.Server.Host.Models.InstancePermissionSet", b =>
826 {
827 b.HasOne("Tgstation.Server.Host.Models.Instance", "Instance")
828 .WithMany("InstancePermissionSets")
829 .HasForeignKey("InstanceId")
830 .OnDelete(DeleteBehavior.Cascade)
831 .IsRequired();
832
833 b.HasOne("Tgstation.Server.Host.Models.PermissionSet", "PermissionSet")
834 .WithMany("InstancePermissionSets")
835 .HasForeignKey("PermissionSetId")
836 .OnDelete(DeleteBehavior.Cascade)
837 .IsRequired();
838
839 b.Navigation("Instance");
840
841 b.Navigation("PermissionSet");
842 });
843
844 modelBuilder.Entity("Tgstation.Server.Host.Models.Job", b =>
845 {
846 b.HasOne("Tgstation.Server.Host.Models.User", "CancelledBy")
847 .WithMany()
848 .HasForeignKey("CancelledById");
849
850 b.HasOne("Tgstation.Server.Host.Models.Instance", "Instance")
851 .WithMany("Jobs")
852 .HasForeignKey("InstanceId")
853 .OnDelete(DeleteBehavior.Cascade)
854 .IsRequired();
855
856 b.HasOne("Tgstation.Server.Host.Models.User", "StartedBy")
857 .WithMany()
858 .HasForeignKey("StartedById")
859 .OnDelete(DeleteBehavior.Cascade)
860 .IsRequired();
861
862 b.Navigation("CancelledBy");
863
864 b.Navigation("Instance");
865
866 b.Navigation("StartedBy");
867 });
868
869 modelBuilder.Entity("Tgstation.Server.Host.Models.OAuthConnection", b =>
870 {
871 b.HasOne("Tgstation.Server.Host.Models.User", "User")
872 .WithMany("OAuthConnections")
873 .HasForeignKey("UserId")
874 .OnDelete(DeleteBehavior.Cascade);
875
876 b.Navigation("User");
877 });
878
879 modelBuilder.Entity("Tgstation.Server.Host.Models.PermissionSet", b =>
880 {
881 b.HasOne("Tgstation.Server.Host.Models.UserGroup", "Group")
882 .WithOne("PermissionSet")
883 .HasForeignKey("Tgstation.Server.Host.Models.PermissionSet", "GroupId")
884 .OnDelete(DeleteBehavior.Cascade);
885
886 b.HasOne("Tgstation.Server.Host.Models.User", "User")
887 .WithOne("PermissionSet")
888 .HasForeignKey("Tgstation.Server.Host.Models.PermissionSet", "UserId")
889 .OnDelete(DeleteBehavior.Cascade);
890
891 b.Navigation("Group");
892
893 b.Navigation("User");
894 });
895
896 modelBuilder.Entity("Tgstation.Server.Host.Models.ReattachInformation", b =>
897 {
898 b.HasOne("Tgstation.Server.Host.Models.CompileJob", "CompileJob")
899 .WithMany()
900 .HasForeignKey("CompileJobId")
901 .OnDelete(DeleteBehavior.Cascade)
902 .IsRequired();
903
904 b.HasOne("Tgstation.Server.Host.Models.CompileJob", "InitialCompileJob")
905 .WithMany()
906 .HasForeignKey("InitialCompileJobId");
907
908 b.Navigation("CompileJob");
909
910 b.Navigation("InitialCompileJob");
911 });
912
913 modelBuilder.Entity("Tgstation.Server.Host.Models.RepositorySettings", b =>
914 {
915 b.HasOne("Tgstation.Server.Host.Models.Instance", "Instance")
916 .WithOne("RepositorySettings")
917 .HasForeignKey("Tgstation.Server.Host.Models.RepositorySettings", "InstanceId")
918 .OnDelete(DeleteBehavior.Cascade)
919 .IsRequired();
920
921 b.Navigation("Instance");
922 });
923
924 modelBuilder.Entity("Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
925 {
926 b.HasOne("Tgstation.Server.Host.Models.RevisionInformation", "RevisionInformation")
927 .WithMany("ActiveTestMerges")
928 .HasForeignKey("RevisionInformationId")
929 .OnDelete(DeleteBehavior.Cascade)
930 .IsRequired();
931
932 b.HasOne("Tgstation.Server.Host.Models.TestMerge", "TestMerge")
933 .WithMany("RevisonInformations")
934 .HasForeignKey("TestMergeId")
935 .OnDelete(DeleteBehavior.ClientNoAction)
936 .IsRequired();
937
938 b.Navigation("RevisionInformation");
939
940 b.Navigation("TestMerge");
941 });
942
943 modelBuilder.Entity("Tgstation.Server.Host.Models.RevisionInformation", b =>
944 {
945 b.HasOne("Tgstation.Server.Host.Models.Instance", "Instance")
946 .WithMany("RevisionInformations")
947 .HasForeignKey("InstanceId")
948 .OnDelete(DeleteBehavior.Cascade)
949 .IsRequired();
950
951 b.Navigation("Instance");
952 });
953
954 modelBuilder.Entity("Tgstation.Server.Host.Models.TestMerge", b =>
955 {
956 b.HasOne("Tgstation.Server.Host.Models.User", "MergedBy")
957 .WithMany("TestMerges")
958 .HasForeignKey("MergedById")
959 .OnDelete(DeleteBehavior.Restrict)
960 .IsRequired();
961
962 b.HasOne("Tgstation.Server.Host.Models.RevisionInformation", "PrimaryRevisionInformation")
963 .WithOne("PrimaryTestMerge")
964 .HasForeignKey("Tgstation.Server.Host.Models.TestMerge", "PrimaryRevisionInformationId")
965 .OnDelete(DeleteBehavior.Cascade)
966 .IsRequired();
967
968 b.Navigation("MergedBy");
969
970 b.Navigation("PrimaryRevisionInformation");
971 });
972
973 modelBuilder.Entity("Tgstation.Server.Host.Models.User", b =>
974 {
975 b.HasOne("Tgstation.Server.Host.Models.User", "CreatedBy")
976 .WithMany("CreatedUsers")
977 .HasForeignKey("CreatedById");
978
979 b.HasOne("Tgstation.Server.Host.Models.UserGroup", "Group")
980 .WithMany("Users")
981 .HasForeignKey("GroupId");
982
983 b.Navigation("CreatedBy");
984
985 b.Navigation("Group");
986 });
987
988 modelBuilder.Entity("Tgstation.Server.Host.Models.ChatBot", b =>
989 {
990 b.Navigation("Channels");
991 });
992
993 modelBuilder.Entity("Tgstation.Server.Host.Models.Instance", b =>
994 {
995 b.Navigation("ChatSettings");
996
997 b.Navigation("DreamDaemonSettings");
998
999 b.Navigation("DreamMakerSettings");
1000
1001 b.Navigation("InstancePermissionSets");
1002
1003 b.Navigation("Jobs");
1004
1005 b.Navigation("RepositorySettings");
1006
1007 b.Navigation("RevisionInformations");
1008 });
1009
1010 modelBuilder.Entity("Tgstation.Server.Host.Models.PermissionSet", b =>
1011 {
1012 b.Navigation("InstancePermissionSets");
1013 });
1014
1015 modelBuilder.Entity("Tgstation.Server.Host.Models.RevisionInformation", b =>
1016 {
1017 b.Navigation("ActiveTestMerges");
1018
1019 b.Navigation("CompileJobs");
1020
1021 b.Navigation("PrimaryTestMerge");
1022 });
1023
1024 modelBuilder.Entity("Tgstation.Server.Host.Models.TestMerge", b =>
1025 {
1026 b.Navigation("RevisonInformations");
1027 });
1028
1029 modelBuilder.Entity("Tgstation.Server.Host.Models.User", b =>
1030 {
1031 b.Navigation("CreatedUsers");
1032
1033 b.Navigation("OAuthConnections");
1034
1035 b.Navigation("PermissionSet");
1036
1037 b.Navigation("TestMerges");
1038 });
1039
1040 modelBuilder.Entity("Tgstation.Server.Host.Models.UserGroup", b =>
1041 {
1042 b.Navigation("PermissionSet")
1043 .IsRequired();
1044
1045 b.Navigation("Users");
1046 });
1047#pragma warning restore 612, 618
1048 }
1049 }
1050}