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