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