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