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