tgstation-server 6.12.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.10");
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.PermissionSet", b =>
464 {
465 b.Property<long?>("Id")
466 .ValueGeneratedOnAdd()
467 .HasColumnType("INTEGER");
468
469 b.Property<ulong>("AdministrationRights")
470 .HasColumnType("INTEGER");
471
472 b.Property<long?>("GroupId")
473 .HasColumnType("INTEGER");
474
475 b.Property<ulong>("InstanceManagerRights")
476 .HasColumnType("INTEGER");
477
478 b.Property<long?>("UserId")
479 .HasColumnType("INTEGER");
480
481 b.HasKey("Id");
482
483 b.HasIndex("GroupId")
484 .IsUnique();
485
486 b.HasIndex("UserId")
487 .IsUnique();
488
489 b.ToTable("PermissionSets");
490 });
491
492 modelBuilder.Entity("Tgstation.Server.Host.Models.ReattachInformation", b =>
493 {
494 b.Property<long?>("Id")
495 .ValueGeneratedOnAdd()
496 .HasColumnType("INTEGER");
497
498 b.Property<string>("AccessIdentifier")
499 .IsRequired()
500 .HasColumnType("TEXT");
501
502 b.Property<long>("CompileJobId")
503 .HasColumnType("INTEGER");
504
505 b.Property<long?>("InitialCompileJobId")
506 .HasColumnType("INTEGER");
507
508 b.Property<int>("LaunchSecurityLevel")
509 .HasColumnType("INTEGER");
510
511 b.Property<int>("LaunchVisibility")
512 .HasColumnType("INTEGER");
513
514 b.Property<ushort>("Port")
515 .HasColumnType("INTEGER");
516
517 b.Property<int>("ProcessId")
518 .HasColumnType("INTEGER");
519
520 b.Property<int>("RebootState")
521 .HasColumnType("INTEGER");
522
523 b.Property<ushort?>("TopicPort")
524 .HasColumnType("INTEGER");
525
526 b.HasKey("Id");
527
528 b.HasIndex("CompileJobId");
529
530 b.HasIndex("InitialCompileJobId");
531
532 b.ToTable("ReattachInformations");
533 });
534
535 modelBuilder.Entity("Tgstation.Server.Host.Models.RepositorySettings", b =>
536 {
537 b.Property<long>("Id")
538 .ValueGeneratedOnAdd()
539 .HasColumnType("INTEGER");
540
541 b.Property<string>("AccessToken")
542 .HasMaxLength(10000)
543 .HasColumnType("TEXT");
544
545 b.Property<string>("AccessUser")
546 .HasMaxLength(10000)
547 .HasColumnType("TEXT");
548
549 b.Property<bool?>("AutoUpdatesKeepTestMerges")
550 .IsRequired()
551 .HasColumnType("INTEGER");
552
553 b.Property<bool?>("AutoUpdatesSynchronize")
554 .IsRequired()
555 .HasColumnType("INTEGER");
556
557 b.Property<string>("CommitterEmail")
558 .IsRequired()
559 .HasMaxLength(10000)
560 .HasColumnType("TEXT");
561
562 b.Property<string>("CommitterName")
563 .IsRequired()
564 .HasMaxLength(10000)
565 .HasColumnType("TEXT");
566
567 b.Property<bool?>("CreateGitHubDeployments")
568 .IsRequired()
569 .HasColumnType("INTEGER");
570
571 b.Property<long>("InstanceId")
572 .HasColumnType("INTEGER");
573
574 b.Property<bool?>("PostTestMergeComment")
575 .IsRequired()
576 .HasColumnType("INTEGER");
577
578 b.Property<bool?>("PushTestMergeCommits")
579 .IsRequired()
580 .HasColumnType("INTEGER");
581
582 b.Property<bool?>("ShowTestMergeCommitters")
583 .IsRequired()
584 .HasColumnType("INTEGER");
585
586 b.Property<bool?>("UpdateSubmodules")
587 .IsRequired()
588 .HasColumnType("INTEGER");
589
590 b.HasKey("Id");
591
592 b.HasIndex("InstanceId")
593 .IsUnique();
594
595 b.ToTable("RepositorySettings");
596 });
597
598 modelBuilder.Entity("Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
599 {
600 b.Property<long>("Id")
601 .ValueGeneratedOnAdd()
602 .HasColumnType("INTEGER");
603
604 b.Property<long>("RevisionInformationId")
605 .HasColumnType("INTEGER");
606
607 b.Property<long>("TestMergeId")
608 .HasColumnType("INTEGER");
609
610 b.HasKey("Id");
611
612 b.HasIndex("RevisionInformationId");
613
614 b.HasIndex("TestMergeId");
615
616 b.ToTable("RevInfoTestMerges");
617 });
618
619 modelBuilder.Entity("Tgstation.Server.Host.Models.RevisionInformation", b =>
620 {
621 b.Property<long>("Id")
622 .ValueGeneratedOnAdd()
623 .HasColumnType("INTEGER");
624
625 b.Property<string>("CommitSha")
626 .IsRequired()
627 .HasMaxLength(40)
628 .HasColumnType("TEXT");
629
630 b.Property<long>("InstanceId")
631 .HasColumnType("INTEGER");
632
633 b.Property<string>("OriginCommitSha")
634 .IsRequired()
635 .HasMaxLength(40)
636 .HasColumnType("TEXT");
637
638 b.Property<DateTimeOffset>("Timestamp")
639 .HasColumnType("TEXT");
640
641 b.HasKey("Id");
642
643 b.HasIndex("InstanceId", "CommitSha")
644 .IsUnique();
645
646 b.ToTable("RevisionInformations");
647 });
648
649 modelBuilder.Entity("Tgstation.Server.Host.Models.TestMerge", b =>
650 {
651 b.Property<long>("Id")
652 .ValueGeneratedOnAdd()
653 .HasColumnType("INTEGER");
654
655 b.Property<string>("Author")
656 .IsRequired()
657 .HasColumnType("TEXT");
658
659 b.Property<string>("BodyAtMerge")
660 .IsRequired()
661 .HasColumnType("TEXT");
662
663 b.Property<string>("Comment")
664 .HasMaxLength(10000)
665 .HasColumnType("TEXT");
666
667 b.Property<DateTimeOffset>("MergedAt")
668 .HasColumnType("TEXT");
669
670 b.Property<long>("MergedById")
671 .HasColumnType("INTEGER");
672
673 b.Property<int>("Number")
674 .HasColumnType("INTEGER");
675
676 b.Property<long?>("PrimaryRevisionInformationId")
677 .IsRequired()
678 .HasColumnType("INTEGER");
679
680 b.Property<string>("TargetCommitSha")
681 .IsRequired()
682 .HasMaxLength(40)
683 .HasColumnType("TEXT");
684
685 b.Property<string>("TitleAtMerge")
686 .IsRequired()
687 .HasColumnType("TEXT");
688
689 b.Property<string>("Url")
690 .IsRequired()
691 .HasColumnType("TEXT");
692
693 b.HasKey("Id");
694
695 b.HasIndex("MergedById");
696
697 b.HasIndex("PrimaryRevisionInformationId")
698 .IsUnique();
699
700 b.ToTable("TestMerges");
701 });
702
703 modelBuilder.Entity("Tgstation.Server.Host.Models.User", b =>
704 {
705 b.Property<long?>("Id")
706 .ValueGeneratedOnAdd()
707 .HasColumnType("INTEGER");
708
709 b.Property<string>("CanonicalName")
710 .IsRequired()
711 .HasMaxLength(100)
712 .HasColumnType("TEXT");
713
714 b.Property<DateTimeOffset?>("CreatedAt")
715 .IsRequired()
716 .HasColumnType("TEXT");
717
718 b.Property<long?>("CreatedById")
719 .HasColumnType("INTEGER");
720
721 b.Property<bool?>("Enabled")
722 .IsRequired()
723 .HasColumnType("INTEGER");
724
725 b.Property<long?>("GroupId")
726 .HasColumnType("INTEGER");
727
728 b.Property<DateTimeOffset?>("LastPasswordUpdate")
729 .HasColumnType("TEXT");
730
731 b.Property<string>("Name")
732 .IsRequired()
733 .HasMaxLength(100)
734 .HasColumnType("TEXT");
735
736 b.Property<string>("PasswordHash")
737 .HasColumnType("TEXT");
738
739 b.Property<string>("SystemIdentifier")
740 .HasMaxLength(100)
741 .HasColumnType("TEXT");
742
743 b.HasKey("Id");
744
745 b.HasIndex("CanonicalName")
746 .IsUnique();
747
748 b.HasIndex("CreatedById");
749
750 b.HasIndex("GroupId");
751
752 b.HasIndex("SystemIdentifier")
753 .IsUnique();
754
755 b.ToTable("Users");
756 });
757
758 modelBuilder.Entity("Tgstation.Server.Host.Models.UserGroup", b =>
759 {
760 b.Property<long?>("Id")
761 .ValueGeneratedOnAdd()
762 .HasColumnType("INTEGER");
763
764 b.Property<string>("Name")
765 .IsRequired()
766 .HasMaxLength(100)
767 .HasColumnType("TEXT");
768
769 b.HasKey("Id");
770
771 b.HasIndex("Name")
772 .IsUnique();
773
774 b.ToTable("Groups");
775 });
776
777 modelBuilder.Entity("Tgstation.Server.Host.Models.ChatBot", b =>
778 {
779 b.HasOne("Tgstation.Server.Host.Models.Instance", "Instance")
780 .WithMany("ChatSettings")
781 .HasForeignKey("InstanceId")
782 .OnDelete(DeleteBehavior.Cascade)
783 .IsRequired();
784
785 b.Navigation("Instance");
786 });
787
788 modelBuilder.Entity("Tgstation.Server.Host.Models.ChatChannel", b =>
789 {
790 b.HasOne("Tgstation.Server.Host.Models.ChatBot", "ChatSettings")
791 .WithMany("Channels")
792 .HasForeignKey("ChatSettingsId")
793 .OnDelete(DeleteBehavior.Cascade)
794 .IsRequired();
795
796 b.Navigation("ChatSettings");
797 });
798
799 modelBuilder.Entity("Tgstation.Server.Host.Models.CompileJob", b =>
800 {
801 b.HasOne("Tgstation.Server.Host.Models.Job", "Job")
802 .WithOne()
803 .HasForeignKey("Tgstation.Server.Host.Models.CompileJob", "JobId")
804 .OnDelete(DeleteBehavior.Cascade)
805 .IsRequired();
806
807 b.HasOne("Tgstation.Server.Host.Models.RevisionInformation", "RevisionInformation")
808 .WithMany("CompileJobs")
809 .HasForeignKey("RevisionInformationId")
810 .OnDelete(DeleteBehavior.ClientNoAction)
811 .IsRequired();
812
813 b.Navigation("Job");
814
815 b.Navigation("RevisionInformation");
816 });
817
818 modelBuilder.Entity("Tgstation.Server.Host.Models.DreamDaemonSettings", b =>
819 {
820 b.HasOne("Tgstation.Server.Host.Models.Instance", "Instance")
821 .WithOne("DreamDaemonSettings")
822 .HasForeignKey("Tgstation.Server.Host.Models.DreamDaemonSettings", "InstanceId")
823 .OnDelete(DeleteBehavior.Cascade)
824 .IsRequired();
825
826 b.Navigation("Instance");
827 });
828
829 modelBuilder.Entity("Tgstation.Server.Host.Models.DreamMakerSettings", b =>
830 {
831 b.HasOne("Tgstation.Server.Host.Models.Instance", "Instance")
832 .WithOne("DreamMakerSettings")
833 .HasForeignKey("Tgstation.Server.Host.Models.DreamMakerSettings", "InstanceId")
834 .OnDelete(DeleteBehavior.Cascade)
835 .IsRequired();
836
837 b.Navigation("Instance");
838 });
839
840 modelBuilder.Entity("Tgstation.Server.Host.Models.InstancePermissionSet", b =>
841 {
842 b.HasOne("Tgstation.Server.Host.Models.Instance", "Instance")
843 .WithMany("InstancePermissionSets")
844 .HasForeignKey("InstanceId")
845 .OnDelete(DeleteBehavior.Cascade)
846 .IsRequired();
847
848 b.HasOne("Tgstation.Server.Host.Models.PermissionSet", "PermissionSet")
849 .WithMany("InstancePermissionSets")
850 .HasForeignKey("PermissionSetId")
851 .OnDelete(DeleteBehavior.Cascade)
852 .IsRequired();
853
854 b.Navigation("Instance");
855
856 b.Navigation("PermissionSet");
857 });
858
859 modelBuilder.Entity("Tgstation.Server.Host.Models.Job", b =>
860 {
861 b.HasOne("Tgstation.Server.Host.Models.User", "CancelledBy")
862 .WithMany()
863 .HasForeignKey("CancelledById");
864
865 b.HasOne("Tgstation.Server.Host.Models.Instance", "Instance")
866 .WithMany("Jobs")
867 .HasForeignKey("InstanceId")
868 .OnDelete(DeleteBehavior.Cascade)
869 .IsRequired();
870
871 b.HasOne("Tgstation.Server.Host.Models.User", "StartedBy")
872 .WithMany()
873 .HasForeignKey("StartedById")
874 .OnDelete(DeleteBehavior.Cascade)
875 .IsRequired();
876
877 b.Navigation("CancelledBy");
878
879 b.Navigation("Instance");
880
881 b.Navigation("StartedBy");
882 });
883
884 modelBuilder.Entity("Tgstation.Server.Host.Models.OAuthConnection", b =>
885 {
886 b.HasOne("Tgstation.Server.Host.Models.User", "User")
887 .WithMany("OAuthConnections")
888 .HasForeignKey("UserId")
889 .OnDelete(DeleteBehavior.Cascade)
890 .IsRequired();
891
892 b.Navigation("User");
893 });
894
895 modelBuilder.Entity("Tgstation.Server.Host.Models.PermissionSet", b =>
896 {
897 b.HasOne("Tgstation.Server.Host.Models.UserGroup", "Group")
898 .WithOne("PermissionSet")
899 .HasForeignKey("Tgstation.Server.Host.Models.PermissionSet", "GroupId")
900 .OnDelete(DeleteBehavior.Cascade);
901
902 b.HasOne("Tgstation.Server.Host.Models.User", "User")
903 .WithOne("PermissionSet")
904 .HasForeignKey("Tgstation.Server.Host.Models.PermissionSet", "UserId")
905 .OnDelete(DeleteBehavior.Cascade);
906
907 b.Navigation("Group");
908
909 b.Navigation("User");
910 });
911
912 modelBuilder.Entity("Tgstation.Server.Host.Models.ReattachInformation", b =>
913 {
914 b.HasOne("Tgstation.Server.Host.Models.CompileJob", "CompileJob")
915 .WithMany()
916 .HasForeignKey("CompileJobId")
917 .OnDelete(DeleteBehavior.Cascade)
918 .IsRequired();
919
920 b.HasOne("Tgstation.Server.Host.Models.CompileJob", "InitialCompileJob")
921 .WithMany()
922 .HasForeignKey("InitialCompileJobId");
923
924 b.Navigation("CompileJob");
925
926 b.Navigation("InitialCompileJob");
927 });
928
929 modelBuilder.Entity("Tgstation.Server.Host.Models.RepositorySettings", b =>
930 {
931 b.HasOne("Tgstation.Server.Host.Models.Instance", "Instance")
932 .WithOne("RepositorySettings")
933 .HasForeignKey("Tgstation.Server.Host.Models.RepositorySettings", "InstanceId")
934 .OnDelete(DeleteBehavior.Cascade)
935 .IsRequired();
936
937 b.Navigation("Instance");
938 });
939
940 modelBuilder.Entity("Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
941 {
942 b.HasOne("Tgstation.Server.Host.Models.RevisionInformation", "RevisionInformation")
943 .WithMany("ActiveTestMerges")
944 .HasForeignKey("RevisionInformationId")
945 .OnDelete(DeleteBehavior.Cascade)
946 .IsRequired();
947
948 b.HasOne("Tgstation.Server.Host.Models.TestMerge", "TestMerge")
949 .WithMany("RevisonInformations")
950 .HasForeignKey("TestMergeId")
951 .OnDelete(DeleteBehavior.ClientNoAction)
952 .IsRequired();
953
954 b.Navigation("RevisionInformation");
955
956 b.Navigation("TestMerge");
957 });
958
959 modelBuilder.Entity("Tgstation.Server.Host.Models.RevisionInformation", b =>
960 {
961 b.HasOne("Tgstation.Server.Host.Models.Instance", "Instance")
962 .WithMany("RevisionInformations")
963 .HasForeignKey("InstanceId")
964 .OnDelete(DeleteBehavior.Cascade)
965 .IsRequired();
966
967 b.Navigation("Instance");
968 });
969
970 modelBuilder.Entity("Tgstation.Server.Host.Models.TestMerge", b =>
971 {
972 b.HasOne("Tgstation.Server.Host.Models.User", "MergedBy")
973 .WithMany("TestMerges")
974 .HasForeignKey("MergedById")
975 .OnDelete(DeleteBehavior.Restrict)
976 .IsRequired();
977
978 b.HasOne("Tgstation.Server.Host.Models.RevisionInformation", "PrimaryRevisionInformation")
979 .WithOne("PrimaryTestMerge")
980 .HasForeignKey("Tgstation.Server.Host.Models.TestMerge", "PrimaryRevisionInformationId")
981 .OnDelete(DeleteBehavior.Cascade)
982 .IsRequired();
983
984 b.Navigation("MergedBy");
985
986 b.Navigation("PrimaryRevisionInformation");
987 });
988
989 modelBuilder.Entity("Tgstation.Server.Host.Models.User", b =>
990 {
991 b.HasOne("Tgstation.Server.Host.Models.User", "CreatedBy")
992 .WithMany("CreatedUsers")
993 .HasForeignKey("CreatedById");
994
995 b.HasOne("Tgstation.Server.Host.Models.UserGroup", "Group")
996 .WithMany("Users")
997 .HasForeignKey("GroupId");
998
999 b.Navigation("CreatedBy");
1000
1001 b.Navigation("Group");
1002 });
1003
1004 modelBuilder.Entity("Tgstation.Server.Host.Models.ChatBot", b =>
1005 {
1006 b.Navigation("Channels");
1007 });
1008
1009 modelBuilder.Entity("Tgstation.Server.Host.Models.Instance", b =>
1010 {
1011 b.Navigation("ChatSettings");
1012
1013 b.Navigation("DreamDaemonSettings");
1014
1015 b.Navigation("DreamMakerSettings");
1016
1017 b.Navigation("InstancePermissionSets");
1018
1019 b.Navigation("Jobs");
1020
1021 b.Navigation("RepositorySettings");
1022
1023 b.Navigation("RevisionInformations");
1024 });
1025
1026 modelBuilder.Entity("Tgstation.Server.Host.Models.PermissionSet", b =>
1027 {
1028 b.Navigation("InstancePermissionSets");
1029 });
1030
1031 modelBuilder.Entity("Tgstation.Server.Host.Models.RevisionInformation", b =>
1032 {
1033 b.Navigation("ActiveTestMerges");
1034
1035 b.Navigation("CompileJobs");
1036
1037 b.Navigation("PrimaryTestMerge");
1038 });
1039
1040 modelBuilder.Entity("Tgstation.Server.Host.Models.TestMerge", b =>
1041 {
1042 b.Navigation("RevisonInformations");
1043 });
1044
1045 modelBuilder.Entity("Tgstation.Server.Host.Models.User", b =>
1046 {
1047 b.Navigation("CreatedUsers");
1048
1049 b.Navigation("OAuthConnections");
1050
1051 b.Navigation("PermissionSet");
1052
1053 b.Navigation("TestMerges");
1054 });
1055
1056 modelBuilder.Entity("Tgstation.Server.Host.Models.UserGroup", b =>
1057 {
1058 b.Navigation("PermissionSet")
1059 .IsRequired();
1060
1061 b.Navigation("Users");
1062 });
1063#pragma warning restore 612, 618
1064 }
1065 }
1066}