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