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