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