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