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