tgstation-server 6.16.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
SqliteDatabaseContextModelSnapshot.cs
Go to the documentation of this file.
1// <auto-generated />
2using System;
3
4using Microsoft.EntityFrameworkCore;
5using Microsoft.EntityFrameworkCore.Infrastructure;
6
8{
9 [DbContext(typeof(SqliteDatabaseContext))]
11 {
12 protected override void BuildModel(ModelBuilder modelBuilder)
13 {
14#pragma warning disable 612, 618
15 modelBuilder.HasAnnotation("ProductVersion", "8.0.13");
16
17 modelBuilder.Entity("Tgstation.Server.Host.Models.ChatBot", b =>
18 {
19 b.Property<long?>("Id")
20 .ValueGeneratedOnAdd()
21 .HasColumnType("INTEGER");
22
23 b.Property<ushort?>("ChannelLimit")
24 .IsRequired()
25 .HasColumnType("INTEGER");
26
27 b.Property<string>("ConnectionString")
28 .IsRequired()
29 .HasMaxLength(10000)
30 .HasColumnType("TEXT");
31
32 b.Property<bool?>("Enabled")
33 .HasColumnType("INTEGER");
34
35 b.Property<long>("InstanceId")
36 .HasColumnType("INTEGER");
37
38 b.Property<string>("Name")
39 .IsRequired()
40 .HasMaxLength(100)
41 .HasColumnType("TEXT");
42
43 b.Property<int>("Provider")
44 .HasColumnType("INTEGER");
45
46 b.Property<uint?>("ReconnectionInterval")
47 .IsRequired()
48 .HasColumnType("INTEGER");
49
50 b.HasKey("Id");
51
52 b.HasIndex("InstanceId", "Name")
53 .IsUnique();
54
55 b.ToTable("ChatBots");
56 });
57
58 modelBuilder.Entity("Tgstation.Server.Host.Models.ChatChannel", b =>
59 {
60 b.Property<long>("Id")
61 .ValueGeneratedOnAdd()
62 .HasColumnType("INTEGER");
63
64 b.Property<long>("ChatSettingsId")
65 .HasColumnType("INTEGER");
66
67 b.Property<ulong?>("DiscordChannelId")
68 .HasColumnType("INTEGER");
69
70 b.Property<string>("IrcChannel")
71 .HasMaxLength(100)
72 .HasColumnType("TEXT");
73
74 b.Property<bool?>("IsAdminChannel")
75 .IsRequired()
76 .HasColumnType("INTEGER");
77
78 b.Property<bool?>("IsSystemChannel")
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 .HasMaxLength(10000)
92 .HasColumnType("TEXT");
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<int?>("DMApiMajorVersion")
112 .HasColumnType("INTEGER");
113
114 b.Property<int?>("DMApiMinorVersion")
115 .HasColumnType("INTEGER");
116
117 b.Property<int?>("DMApiPatchVersion")
118 .HasColumnType("INTEGER");
119
120 b.Property<Guid?>("DirectoryName")
121 .IsRequired()
122 .HasColumnType("TEXT");
123
124 b.Property<string>("DmeName")
125 .IsRequired()
126 .HasColumnType("TEXT");
127
128 b.Property<string>("EngineVersion")
129 .IsRequired()
130 .HasColumnType("TEXT");
131
132 b.Property<long?>("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 .HasMaxLength(10000)
175 .HasColumnType("TEXT");
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<bool?>("DumpOnHealthCheckRestart")
186 .IsRequired()
187 .HasColumnType("INTEGER");
188
189 b.Property<uint?>("HealthCheckSeconds")
190 .IsRequired()
191 .HasColumnType("INTEGER");
192
193 b.Property<long>("InstanceId")
194 .HasColumnType("INTEGER");
195
196 b.Property<bool?>("LogOutput")
197 .IsRequired()
198 .HasColumnType("INTEGER");
199
200 b.Property<uint?>("MapThreads")
201 .IsRequired()
202 .HasColumnType("INTEGER");
203
204 b.Property<bool?>("Minidumps")
205 .IsRequired()
206 .HasColumnType("INTEGER");
207
208 b.Property<ushort?>("OpenDreamTopicPort")
209 .IsRequired()
210 .HasColumnType("INTEGER");
211
212 b.Property<ushort?>("Port")
213 .IsRequired()
214 .HasColumnType("INTEGER");
215
216 b.Property<int>("SecurityLevel")
217 .HasColumnType("INTEGER");
218
219 b.Property<bool?>("StartProfiler")
220 .IsRequired()
221 .HasColumnType("INTEGER");
222
223 b.Property<uint?>("StartupTimeout")
224 .IsRequired()
225 .HasColumnType("INTEGER");
226
227 b.Property<uint?>("TopicRequestTimeout")
228 .IsRequired()
229 .HasColumnType("INTEGER");
230
231 b.Property<int>("Visibility")
232 .HasColumnType("INTEGER");
233
234 b.HasKey("Id");
235
236 b.HasIndex("InstanceId")
237 .IsUnique();
238
239 b.ToTable("DreamDaemonSettings");
240 });
241
242 modelBuilder.Entity("Tgstation.Server.Host.Models.DreamMakerSettings", b =>
243 {
244 b.Property<long>("Id")
245 .ValueGeneratedOnAdd()
246 .HasColumnType("INTEGER");
247
248 b.Property<ushort?>("ApiValidationPort")
249 .IsRequired()
250 .HasColumnType("INTEGER");
251
252 b.Property<int>("ApiValidationSecurityLevel")
253 .HasColumnType("INTEGER");
254
255 b.Property<string>("CompilerAdditionalArguments")
256 .HasMaxLength(10000)
257 .HasColumnType("TEXT");
258
259 b.Property<int>("DMApiValidationMode")
260 .HasColumnType("INTEGER");
261
262 b.Property<long>("InstanceId")
263 .HasColumnType("INTEGER");
264
265 b.Property<string>("ProjectName")
266 .HasMaxLength(10000)
267 .HasColumnType("TEXT");
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>("AutoStartCron")
288 .IsRequired()
289 .HasMaxLength(1000)
290 .HasColumnType("TEXT");
291
292 b.Property<string>("AutoStopCron")
293 .IsRequired()
294 .HasMaxLength(1000)
295 .HasColumnType("TEXT");
296
297 b.Property<string>("AutoUpdateCron")
298 .IsRequired()
299 .HasMaxLength(1000)
300 .HasColumnType("TEXT");
301
302 b.Property<uint?>("AutoUpdateInterval")
303 .IsRequired()
304 .HasColumnType("INTEGER");
305
306 b.Property<ushort?>("ChatBotLimit")
307 .IsRequired()
308 .HasColumnType("INTEGER");
309
310 b.Property<int>("ConfigurationType")
311 .HasColumnType("INTEGER");
312
313 b.Property<string>("Name")
314 .IsRequired()
315 .HasMaxLength(100)
316 .HasColumnType("TEXT");
317
318 b.Property<bool?>("Online")
319 .IsRequired()
320 .HasColumnType("INTEGER");
321
322 b.Property<string>("Path")
323 .IsRequired()
324 .HasColumnType("TEXT");
325
326 b.Property<string>("SwarmIdentifer")
327 .HasColumnType("TEXT");
328
329 b.HasKey("Id");
330
331 b.HasIndex("Path", "SwarmIdentifer")
332 .IsUnique();
333
334 b.ToTable("Instances");
335 });
336
337 modelBuilder.Entity("Tgstation.Server.Host.Models.InstancePermissionSet", b =>
338 {
339 b.Property<long>("Id")
340 .ValueGeneratedOnAdd()
341 .HasColumnType("INTEGER");
342
343 b.Property<ulong>("ChatBotRights")
344 .HasColumnType("INTEGER");
345
346 b.Property<ulong>("ConfigurationRights")
347 .HasColumnType("INTEGER");
348
349 b.Property<ulong>("DreamDaemonRights")
350 .HasColumnType("INTEGER");
351
352 b.Property<ulong>("DreamMakerRights")
353 .HasColumnType("INTEGER");
354
355 b.Property<ulong>("EngineRights")
356 .HasColumnType("INTEGER");
357
358 b.Property<long>("InstanceId")
359 .HasColumnType("INTEGER");
360
361 b.Property<ulong>("InstancePermissionSetRights")
362 .HasColumnType("INTEGER");
363
364 b.Property<long>("PermissionSetId")
365 .HasColumnType("INTEGER");
366
367 b.Property<ulong>("RepositoryRights")
368 .HasColumnType("INTEGER");
369
370 b.HasKey("Id");
371
372 b.HasIndex("InstanceId");
373
374 b.HasIndex("PermissionSetId", "InstanceId")
375 .IsUnique();
376
377 b.ToTable("InstancePermissionSets");
378 });
379
380 modelBuilder.Entity("Tgstation.Server.Host.Models.Job", b =>
381 {
382 b.Property<long?>("Id")
383 .ValueGeneratedOnAdd()
384 .HasColumnType("INTEGER");
385
386 b.Property<ulong?>("CancelRight")
387 .HasColumnType("INTEGER");
388
389 b.Property<ulong?>("CancelRightsType")
390 .HasColumnType("INTEGER");
391
392 b.Property<bool?>("Cancelled")
393 .IsRequired()
394 .HasColumnType("INTEGER");
395
396 b.Property<long?>("CancelledById")
397 .HasColumnType("INTEGER");
398
399 b.Property<string>("Description")
400 .IsRequired()
401 .HasColumnType("TEXT");
402
403 b.Property<uint?>("ErrorCode")
404 .HasColumnType("INTEGER");
405
406 b.Property<string>("ExceptionDetails")
407 .HasColumnType("TEXT");
408
409 b.Property<long>("InstanceId")
410 .HasColumnType("INTEGER");
411
412 b.Property<byte>("JobCode")
413 .HasColumnType("INTEGER");
414
415 b.Property<DateTimeOffset?>("StartedAt")
416 .IsRequired()
417 .HasColumnType("TEXT");
418
419 b.Property<long>("StartedById")
420 .HasColumnType("INTEGER");
421
422 b.Property<DateTimeOffset?>("StoppedAt")
423 .HasColumnType("TEXT");
424
425 b.HasKey("Id");
426
427 b.HasIndex("CancelledById");
428
429 b.HasIndex("InstanceId");
430
431 b.HasIndex("StartedById");
432
433 b.ToTable("Jobs");
434 });
435
436 modelBuilder.Entity("Tgstation.Server.Host.Models.OAuthConnection", b =>
437 {
438 b.Property<long>("Id")
439 .ValueGeneratedOnAdd()
440 .HasColumnType("INTEGER");
441
442 b.Property<string>("ExternalUserId")
443 .IsRequired()
444 .HasMaxLength(100)
445 .HasColumnType("TEXT");
446
447 b.Property<int>("Provider")
448 .HasColumnType("INTEGER");
449
450 b.Property<long>("UserId")
451 .HasColumnType("INTEGER");
452
453 b.HasKey("Id");
454
455 b.HasIndex("UserId");
456
457 b.HasIndex("Provider", "ExternalUserId")
458 .IsUnique();
459
460 b.ToTable("OAuthConnections");
461 });
462
463 modelBuilder.Entity("Tgstation.Server.Host.Models.OidcConnection", b =>
464 {
465 b.Property<long>("Id")
466 .ValueGeneratedOnAdd()
467 .HasColumnType("INTEGER");
468
469 b.Property<string>("ExternalUserId")
470 .IsRequired()
471 .HasMaxLength(100)
472 .HasColumnType("TEXT");
473
474 b.Property<string>("SchemeKey")
475 .IsRequired()
476 .HasMaxLength(100)
477 .HasColumnType("TEXT");
478
479 b.Property<long>("UserId")
480 .HasColumnType("INTEGER");
481
482 b.HasKey("Id");
483
484 b.HasIndex("UserId");
485
486 b.HasIndex("SchemeKey", "ExternalUserId")
487 .IsUnique();
488
489 b.ToTable("OidcConnections");
490 });
491
492 modelBuilder.Entity("Tgstation.Server.Host.Models.PermissionSet", b =>
493 {
494 b.Property<long?>("Id")
495 .ValueGeneratedOnAdd()
496 .HasColumnType("INTEGER");
497
498 b.Property<ulong>("AdministrationRights")
499 .HasColumnType("INTEGER");
500
501 b.Property<long?>("GroupId")
502 .HasColumnType("INTEGER");
503
504 b.Property<ulong>("InstanceManagerRights")
505 .HasColumnType("INTEGER");
506
507 b.Property<long?>("UserId")
508 .HasColumnType("INTEGER");
509
510 b.HasKey("Id");
511
512 b.HasIndex("GroupId")
513 .IsUnique();
514
515 b.HasIndex("UserId")
516 .IsUnique();
517
518 b.ToTable("PermissionSets");
519 });
520
521 modelBuilder.Entity("Tgstation.Server.Host.Models.ReattachInformation", b =>
522 {
523 b.Property<long?>("Id")
524 .ValueGeneratedOnAdd()
525 .HasColumnType("INTEGER");
526
527 b.Property<string>("AccessIdentifier")
528 .IsRequired()
529 .HasColumnType("TEXT");
530
531 b.Property<long>("CompileJobId")
532 .HasColumnType("INTEGER");
533
534 b.Property<long?>("InitialCompileJobId")
535 .HasColumnType("INTEGER");
536
537 b.Property<int>("LaunchSecurityLevel")
538 .HasColumnType("INTEGER");
539
540 b.Property<int>("LaunchVisibility")
541 .HasColumnType("INTEGER");
542
543 b.Property<ushort>("Port")
544 .HasColumnType("INTEGER");
545
546 b.Property<int>("ProcessId")
547 .HasColumnType("INTEGER");
548
549 b.Property<int>("RebootState")
550 .HasColumnType("INTEGER");
551
552 b.Property<ushort?>("TopicPort")
553 .HasColumnType("INTEGER");
554
555 b.HasKey("Id");
556
557 b.HasIndex("CompileJobId");
558
559 b.HasIndex("InitialCompileJobId");
560
561 b.ToTable("ReattachInformations");
562 });
563
564 modelBuilder.Entity("Tgstation.Server.Host.Models.RepositorySettings", b =>
565 {
566 b.Property<long>("Id")
567 .ValueGeneratedOnAdd()
568 .HasColumnType("INTEGER");
569
570 b.Property<string>("AccessToken")
571 .HasMaxLength(10000)
572 .HasColumnType("TEXT");
573
574 b.Property<string>("AccessUser")
575 .HasMaxLength(10000)
576 .HasColumnType("TEXT");
577
578 b.Property<bool?>("AutoUpdatesKeepTestMerges")
579 .IsRequired()
580 .HasColumnType("INTEGER");
581
582 b.Property<bool?>("AutoUpdatesSynchronize")
583 .IsRequired()
584 .HasColumnType("INTEGER");
585
586 b.Property<string>("CommitterEmail")
587 .IsRequired()
588 .HasMaxLength(10000)
589 .HasColumnType("TEXT");
590
591 b.Property<string>("CommitterName")
592 .IsRequired()
593 .HasMaxLength(10000)
594 .HasColumnType("TEXT");
595
596 b.Property<bool?>("CreateGitHubDeployments")
597 .IsRequired()
598 .HasColumnType("INTEGER");
599
600 b.Property<long>("InstanceId")
601 .HasColumnType("INTEGER");
602
603 b.Property<bool?>("PostTestMergeComment")
604 .IsRequired()
605 .HasColumnType("INTEGER");
606
607 b.Property<bool?>("PushTestMergeCommits")
608 .IsRequired()
609 .HasColumnType("INTEGER");
610
611 b.Property<bool?>("ShowTestMergeCommitters")
612 .IsRequired()
613 .HasColumnType("INTEGER");
614
615 b.Property<bool?>("UpdateSubmodules")
616 .IsRequired()
617 .HasColumnType("INTEGER");
618
619 b.HasKey("Id");
620
621 b.HasIndex("InstanceId")
622 .IsUnique();
623
624 b.ToTable("RepositorySettings");
625 });
626
627 modelBuilder.Entity("Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
628 {
629 b.Property<long>("Id")
630 .ValueGeneratedOnAdd()
631 .HasColumnType("INTEGER");
632
633 b.Property<long>("RevisionInformationId")
634 .HasColumnType("INTEGER");
635
636 b.Property<long>("TestMergeId")
637 .HasColumnType("INTEGER");
638
639 b.HasKey("Id");
640
641 b.HasIndex("RevisionInformationId");
642
643 b.HasIndex("TestMergeId");
644
645 b.ToTable("RevInfoTestMerges");
646 });
647
648 modelBuilder.Entity("Tgstation.Server.Host.Models.RevisionInformation", b =>
649 {
650 b.Property<long>("Id")
651 .ValueGeneratedOnAdd()
652 .HasColumnType("INTEGER");
653
654 b.Property<string>("CommitSha")
655 .IsRequired()
656 .HasMaxLength(40)
657 .HasColumnType("TEXT");
658
659 b.Property<long>("InstanceId")
660 .HasColumnType("INTEGER");
661
662 b.Property<string>("OriginCommitSha")
663 .IsRequired()
664 .HasMaxLength(40)
665 .HasColumnType("TEXT");
666
667 b.Property<DateTimeOffset>("Timestamp")
668 .HasColumnType("TEXT");
669
670 b.HasKey("Id");
671
672 b.HasIndex("InstanceId", "CommitSha")
673 .IsUnique();
674
675 b.ToTable("RevisionInformations");
676 });
677
678 modelBuilder.Entity("Tgstation.Server.Host.Models.TestMerge", b =>
679 {
680 b.Property<long>("Id")
681 .ValueGeneratedOnAdd()
682 .HasColumnType("INTEGER");
683
684 b.Property<string>("Author")
685 .IsRequired()
686 .HasColumnType("TEXT");
687
688 b.Property<string>("BodyAtMerge")
689 .IsRequired()
690 .HasColumnType("TEXT");
691
692 b.Property<string>("Comment")
693 .HasMaxLength(10000)
694 .HasColumnType("TEXT");
695
696 b.Property<DateTimeOffset>("MergedAt")
697 .HasColumnType("TEXT");
698
699 b.Property<long>("MergedById")
700 .HasColumnType("INTEGER");
701
702 b.Property<int>("Number")
703 .HasColumnType("INTEGER");
704
705 b.Property<long?>("PrimaryRevisionInformationId")
706 .IsRequired()
707 .HasColumnType("INTEGER");
708
709 b.Property<string>("TargetCommitSha")
710 .IsRequired()
711 .HasMaxLength(40)
712 .HasColumnType("TEXT");
713
714 b.Property<string>("TitleAtMerge")
715 .IsRequired()
716 .HasColumnType("TEXT");
717
718 b.Property<string>("Url")
719 .IsRequired()
720 .HasColumnType("TEXT");
721
722 b.HasKey("Id");
723
724 b.HasIndex("MergedById");
725
726 b.HasIndex("PrimaryRevisionInformationId")
727 .IsUnique();
728
729 b.ToTable("TestMerges");
730 });
731
732 modelBuilder.Entity("Tgstation.Server.Host.Models.User", b =>
733 {
734 b.Property<long?>("Id")
735 .ValueGeneratedOnAdd()
736 .HasColumnType("INTEGER");
737
738 b.Property<string>("CanonicalName")
739 .IsRequired()
740 .HasMaxLength(100)
741 .HasColumnType("TEXT");
742
743 b.Property<DateTimeOffset?>("CreatedAt")
744 .IsRequired()
745 .HasColumnType("TEXT");
746
747 b.Property<long?>("CreatedById")
748 .HasColumnType("INTEGER");
749
750 b.Property<bool?>("Enabled")
751 .IsRequired()
752 .HasColumnType("INTEGER");
753
754 b.Property<long?>("GroupId")
755 .HasColumnType("INTEGER");
756
757 b.Property<DateTimeOffset?>("LastPasswordUpdate")
758 .HasColumnType("TEXT");
759
760 b.Property<string>("Name")
761 .IsRequired()
762 .HasMaxLength(100)
763 .HasColumnType("TEXT");
764
765 b.Property<string>("PasswordHash")
766 .HasColumnType("TEXT");
767
768 b.Property<string>("SystemIdentifier")
769 .HasMaxLength(100)
770 .HasColumnType("TEXT");
771
772 b.HasKey("Id");
773
774 b.HasIndex("CanonicalName")
775 .IsUnique();
776
777 b.HasIndex("CreatedById");
778
779 b.HasIndex("GroupId");
780
781 b.HasIndex("SystemIdentifier")
782 .IsUnique();
783
784 b.ToTable("Users");
785 });
786
787 modelBuilder.Entity("Tgstation.Server.Host.Models.UserGroup", b =>
788 {
789 b.Property<long?>("Id")
790 .ValueGeneratedOnAdd()
791 .HasColumnType("INTEGER");
792
793 b.Property<string>("Name")
794 .IsRequired()
795 .HasMaxLength(100)
796 .HasColumnType("TEXT");
797
798 b.HasKey("Id");
799
800 b.HasIndex("Name")
801 .IsUnique();
802
803 b.ToTable("Groups");
804 });
805
806 modelBuilder.Entity("Tgstation.Server.Host.Models.ChatBot", b =>
807 {
808 b.HasOne("Tgstation.Server.Host.Models.Instance", "Instance")
809 .WithMany("ChatSettings")
810 .HasForeignKey("InstanceId")
811 .OnDelete(DeleteBehavior.Cascade)
812 .IsRequired();
813
814 b.Navigation("Instance");
815 });
816
817 modelBuilder.Entity("Tgstation.Server.Host.Models.ChatChannel", b =>
818 {
819 b.HasOne("Tgstation.Server.Host.Models.ChatBot", "ChatSettings")
820 .WithMany("Channels")
821 .HasForeignKey("ChatSettingsId")
822 .OnDelete(DeleteBehavior.Cascade)
823 .IsRequired();
824
825 b.Navigation("ChatSettings");
826 });
827
828 modelBuilder.Entity("Tgstation.Server.Host.Models.CompileJob", b =>
829 {
830 b.HasOne("Tgstation.Server.Host.Models.Job", "Job")
831 .WithOne()
832 .HasForeignKey("Tgstation.Server.Host.Models.CompileJob", "JobId")
833 .OnDelete(DeleteBehavior.Cascade)
834 .IsRequired();
835
836 b.HasOne("Tgstation.Server.Host.Models.RevisionInformation", "RevisionInformation")
837 .WithMany("CompileJobs")
838 .HasForeignKey("RevisionInformationId")
839 .OnDelete(DeleteBehavior.ClientNoAction)
840 .IsRequired();
841
842 b.Navigation("Job");
843
844 b.Navigation("RevisionInformation");
845 });
846
847 modelBuilder.Entity("Tgstation.Server.Host.Models.DreamDaemonSettings", b =>
848 {
849 b.HasOne("Tgstation.Server.Host.Models.Instance", "Instance")
850 .WithOne("DreamDaemonSettings")
851 .HasForeignKey("Tgstation.Server.Host.Models.DreamDaemonSettings", "InstanceId")
852 .OnDelete(DeleteBehavior.Cascade)
853 .IsRequired();
854
855 b.Navigation("Instance");
856 });
857
858 modelBuilder.Entity("Tgstation.Server.Host.Models.DreamMakerSettings", b =>
859 {
860 b.HasOne("Tgstation.Server.Host.Models.Instance", "Instance")
861 .WithOne("DreamMakerSettings")
862 .HasForeignKey("Tgstation.Server.Host.Models.DreamMakerSettings", "InstanceId")
863 .OnDelete(DeleteBehavior.Cascade)
864 .IsRequired();
865
866 b.Navigation("Instance");
867 });
868
869 modelBuilder.Entity("Tgstation.Server.Host.Models.InstancePermissionSet", b =>
870 {
871 b.HasOne("Tgstation.Server.Host.Models.Instance", "Instance")
872 .WithMany("InstancePermissionSets")
873 .HasForeignKey("InstanceId")
874 .OnDelete(DeleteBehavior.Cascade)
875 .IsRequired();
876
877 b.HasOne("Tgstation.Server.Host.Models.PermissionSet", "PermissionSet")
878 .WithMany("InstancePermissionSets")
879 .HasForeignKey("PermissionSetId")
880 .OnDelete(DeleteBehavior.Cascade)
881 .IsRequired();
882
883 b.Navigation("Instance");
884
885 b.Navigation("PermissionSet");
886 });
887
888 modelBuilder.Entity("Tgstation.Server.Host.Models.Job", b =>
889 {
890 b.HasOne("Tgstation.Server.Host.Models.User", "CancelledBy")
891 .WithMany()
892 .HasForeignKey("CancelledById");
893
894 b.HasOne("Tgstation.Server.Host.Models.Instance", "Instance")
895 .WithMany("Jobs")
896 .HasForeignKey("InstanceId")
897 .OnDelete(DeleteBehavior.Cascade)
898 .IsRequired();
899
900 b.HasOne("Tgstation.Server.Host.Models.User", "StartedBy")
901 .WithMany()
902 .HasForeignKey("StartedById")
903 .OnDelete(DeleteBehavior.Cascade)
904 .IsRequired();
905
906 b.Navigation("CancelledBy");
907
908 b.Navigation("Instance");
909
910 b.Navigation("StartedBy");
911 });
912
913 modelBuilder.Entity("Tgstation.Server.Host.Models.OAuthConnection", b =>
914 {
915 b.HasOne("Tgstation.Server.Host.Models.User", "User")
916 .WithMany("OAuthConnections")
917 .HasForeignKey("UserId")
918 .OnDelete(DeleteBehavior.Cascade)
919 .IsRequired();
920
921 b.Navigation("User");
922 });
923
924 modelBuilder.Entity("Tgstation.Server.Host.Models.OidcConnection", b =>
925 {
926 b.HasOne("Tgstation.Server.Host.Models.User", "User")
927 .WithMany("OidcConnections")
928 .HasForeignKey("UserId")
929 .OnDelete(DeleteBehavior.Cascade)
930 .IsRequired();
931
932 b.Navigation("User");
933 });
934
935 modelBuilder.Entity("Tgstation.Server.Host.Models.PermissionSet", b =>
936 {
937 b.HasOne("Tgstation.Server.Host.Models.UserGroup", "Group")
938 .WithOne("PermissionSet")
939 .HasForeignKey("Tgstation.Server.Host.Models.PermissionSet", "GroupId")
940 .OnDelete(DeleteBehavior.Cascade);
941
942 b.HasOne("Tgstation.Server.Host.Models.User", "User")
943 .WithOne("PermissionSet")
944 .HasForeignKey("Tgstation.Server.Host.Models.PermissionSet", "UserId")
945 .OnDelete(DeleteBehavior.Cascade);
946
947 b.Navigation("Group");
948
949 b.Navigation("User");
950 });
951
952 modelBuilder.Entity("Tgstation.Server.Host.Models.ReattachInformation", b =>
953 {
954 b.HasOne("Tgstation.Server.Host.Models.CompileJob", "CompileJob")
955 .WithMany()
956 .HasForeignKey("CompileJobId")
957 .OnDelete(DeleteBehavior.Cascade)
958 .IsRequired();
959
960 b.HasOne("Tgstation.Server.Host.Models.CompileJob", "InitialCompileJob")
961 .WithMany()
962 .HasForeignKey("InitialCompileJobId");
963
964 b.Navigation("CompileJob");
965
966 b.Navigation("InitialCompileJob");
967 });
968
969 modelBuilder.Entity("Tgstation.Server.Host.Models.RepositorySettings", b =>
970 {
971 b.HasOne("Tgstation.Server.Host.Models.Instance", "Instance")
972 .WithOne("RepositorySettings")
973 .HasForeignKey("Tgstation.Server.Host.Models.RepositorySettings", "InstanceId")
974 .OnDelete(DeleteBehavior.Cascade)
975 .IsRequired();
976
977 b.Navigation("Instance");
978 });
979
980 modelBuilder.Entity("Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
981 {
982 b.HasOne("Tgstation.Server.Host.Models.RevisionInformation", "RevisionInformation")
983 .WithMany("ActiveTestMerges")
984 .HasForeignKey("RevisionInformationId")
985 .OnDelete(DeleteBehavior.Cascade)
986 .IsRequired();
987
988 b.HasOne("Tgstation.Server.Host.Models.TestMerge", "TestMerge")
989 .WithMany("RevisonInformations")
990 .HasForeignKey("TestMergeId")
991 .OnDelete(DeleteBehavior.ClientNoAction)
992 .IsRequired();
993
994 b.Navigation("RevisionInformation");
995
996 b.Navigation("TestMerge");
997 });
998
999 modelBuilder.Entity("Tgstation.Server.Host.Models.RevisionInformation", b =>
1000 {
1001 b.HasOne("Tgstation.Server.Host.Models.Instance", "Instance")
1002 .WithMany("RevisionInformations")
1003 .HasForeignKey("InstanceId")
1004 .OnDelete(DeleteBehavior.Cascade)
1005 .IsRequired();
1006
1007 b.Navigation("Instance");
1008 });
1009
1010 modelBuilder.Entity("Tgstation.Server.Host.Models.TestMerge", b =>
1011 {
1012 b.HasOne("Tgstation.Server.Host.Models.User", "MergedBy")
1013 .WithMany("TestMerges")
1014 .HasForeignKey("MergedById")
1015 .OnDelete(DeleteBehavior.Restrict)
1016 .IsRequired();
1017
1018 b.HasOne("Tgstation.Server.Host.Models.RevisionInformation", "PrimaryRevisionInformation")
1019 .WithOne("PrimaryTestMerge")
1020 .HasForeignKey("Tgstation.Server.Host.Models.TestMerge", "PrimaryRevisionInformationId")
1021 .OnDelete(DeleteBehavior.Cascade)
1022 .IsRequired();
1023
1024 b.Navigation("MergedBy");
1025
1026 b.Navigation("PrimaryRevisionInformation");
1027 });
1028
1029 modelBuilder.Entity("Tgstation.Server.Host.Models.User", b =>
1030 {
1031 b.HasOne("Tgstation.Server.Host.Models.User", "CreatedBy")
1032 .WithMany("CreatedUsers")
1033 .HasForeignKey("CreatedById");
1034
1035 b.HasOne("Tgstation.Server.Host.Models.UserGroup", "Group")
1036 .WithMany("Users")
1037 .HasForeignKey("GroupId");
1038
1039 b.Navigation("CreatedBy");
1040
1041 b.Navigation("Group");
1042 });
1043
1044 modelBuilder.Entity("Tgstation.Server.Host.Models.ChatBot", b =>
1045 {
1046 b.Navigation("Channels");
1047 });
1048
1049 modelBuilder.Entity("Tgstation.Server.Host.Models.Instance", b =>
1050 {
1051 b.Navigation("ChatSettings");
1052
1053 b.Navigation("DreamDaemonSettings");
1054
1055 b.Navigation("DreamMakerSettings");
1056
1057 b.Navigation("InstancePermissionSets");
1058
1059 b.Navigation("Jobs");
1060
1061 b.Navigation("RepositorySettings");
1062
1063 b.Navigation("RevisionInformations");
1064 });
1065
1066 modelBuilder.Entity("Tgstation.Server.Host.Models.PermissionSet", b =>
1067 {
1068 b.Navigation("InstancePermissionSets");
1069 });
1070
1071 modelBuilder.Entity("Tgstation.Server.Host.Models.RevisionInformation", b =>
1072 {
1073 b.Navigation("ActiveTestMerges");
1074
1075 b.Navigation("CompileJobs");
1076
1077 b.Navigation("PrimaryTestMerge");
1078 });
1079
1080 modelBuilder.Entity("Tgstation.Server.Host.Models.TestMerge", b =>
1081 {
1082 b.Navigation("RevisonInformations");
1083 });
1084
1085 modelBuilder.Entity("Tgstation.Server.Host.Models.User", b =>
1086 {
1087 b.Navigation("CreatedUsers");
1088
1089 b.Navigation("OAuthConnections");
1090
1091 b.Navigation("OidcConnections");
1092
1093 b.Navigation("PermissionSet");
1094
1095 b.Navigation("TestMerges");
1096 });
1097
1098 modelBuilder.Entity("Tgstation.Server.Host.Models.UserGroup", b =>
1099 {
1100 b.Navigation("PermissionSet")
1101 .IsRequired();
1102
1103 b.Navigation("Users");
1104 });
1105#pragma warning restore 612, 618
1106 }
1107 }
1108}