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