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