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