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