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