tgstation-server 6.12.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
20230622020600_MSAddMapThreads.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("20230622020600_MSAddMapThreads")]
12 partial class MSAddMapThreads
13 {
15 protected override void BuildTargetModel(ModelBuilder modelBuilder)
16 {
17#pragma warning disable 612, 618
18 modelBuilder
19 .HasAnnotation("ProductVersion", "7.0.7")
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<string>("ByondVersion")
125 .IsRequired()
126 .HasColumnType("nvarchar(max)");
127
128 b.Property<int?>("DMApiMajorVersion")
129 .HasColumnType("int");
130
131 b.Property<int?>("DMApiMinorVersion")
132 .HasColumnType("int");
133
134 b.Property<int?>("DMApiPatchVersion")
135 .HasColumnType("int");
136
137 b.Property<Guid?>("DirectoryName")
138 .IsRequired()
139 .HasColumnType("uniqueidentifier");
140
141 b.Property<string>("DmeName")
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<int>("Port")
218 .HasColumnType("int");
219
220 b.Property<int>("SecurityLevel")
221 .HasColumnType("int");
222
223 b.Property<bool?>("StartProfiler")
224 .IsRequired()
225 .HasColumnType("bit");
226
227 b.Property<long>("StartupTimeout")
228 .HasColumnType("bigint");
229
230 b.Property<long>("TopicRequestTimeout")
231 .HasColumnType("bigint");
232
233 b.Property<int>("Visibility")
234 .HasColumnType("int");
235
236 b.HasKey("Id");
237
238 b.HasIndex("InstanceId")
239 .IsUnique();
240
241 b.ToTable("DreamDaemonSettings");
242 });
243
244 modelBuilder.Entity("Tgstation.Server.Host.Models.DreamMakerSettings", b =>
245 {
246 b.Property<long>("Id")
247 .ValueGeneratedOnAdd()
248 .HasColumnType("bigint");
249
250 SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
251
252 b.Property<int>("ApiValidationPort")
253 .HasColumnType("int");
254
255 b.Property<int>("ApiValidationSecurityLevel")
256 .HasColumnType("int");
257
258 b.Property<long>("InstanceId")
259 .HasColumnType("bigint");
260
261 b.Property<string>("ProjectName")
262 .HasMaxLength(10000)
263 .HasColumnType("nvarchar(max)");
264
265 b.Property<bool?>("RequireDMApiValidation")
266 .IsRequired()
267 .HasColumnType("bit");
268
269 b.Property<TimeSpan?>("Timeout")
270 .IsRequired()
271 .HasColumnType("time");
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("bigint");
286
287 SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long?>("Id"));
288
289 b.Property<long>("AutoUpdateInterval")
290 .HasColumnType("bigint");
291
292 b.Property<int>("ChatBotLimit")
293 .HasColumnType("int");
294
295 b.Property<int>("ConfigurationType")
296 .HasColumnType("int");
297
298 b.Property<string>("Name")
299 .IsRequired()
300 .HasMaxLength(100)
301 .HasColumnType("nvarchar(100)");
302
303 b.Property<bool?>("Online")
304 .IsRequired()
305 .HasColumnType("bit");
306
307 b.Property<string>("Path")
308 .IsRequired()
309 .HasColumnType("nvarchar(450)");
310
311 b.Property<string>("SwarmIdentifer")
312 .HasColumnType("nvarchar(450)");
313
314 b.HasKey("Id");
315
316 b.HasIndex("Path", "SwarmIdentifer")
317 .IsUnique()
318 .HasFilter("[SwarmIdentifer] IS NOT NULL");
319
320 b.ToTable("Instances");
321 });
322
323 modelBuilder.Entity("Tgstation.Server.Host.Models.InstancePermissionSet", b =>
324 {
325 b.Property<long>("Id")
326 .ValueGeneratedOnAdd()
327 .HasColumnType("bigint");
328
329 SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
330
331 b.Property<decimal>("ByondRights")
332 .HasColumnType("decimal(20,0)");
333
334 b.Property<decimal>("ChatBotRights")
335 .HasColumnType("decimal(20,0)");
336
337 b.Property<decimal>("ConfigurationRights")
338 .HasColumnType("decimal(20,0)");
339
340 b.Property<decimal>("DreamDaemonRights")
341 .HasColumnType("decimal(20,0)");
342
343 b.Property<decimal>("DreamMakerRights")
344 .HasColumnType("decimal(20,0)");
345
346 b.Property<long>("InstanceId")
347 .HasColumnType("bigint");
348
349 b.Property<decimal>("InstancePermissionSetRights")
350 .HasColumnType("decimal(20,0)");
351
352 b.Property<long>("PermissionSetId")
353 .HasColumnType("bigint");
354
355 b.Property<decimal>("RepositoryRights")
356 .HasColumnType("decimal(20,0)");
357
358 b.HasKey("Id");
359
360 b.HasIndex("InstanceId");
361
362 b.HasIndex("PermissionSetId", "InstanceId")
363 .IsUnique();
364
365 b.ToTable("InstancePermissionSets");
366 });
367
368 modelBuilder.Entity("Tgstation.Server.Host.Models.Job", b =>
369 {
370 b.Property<long?>("Id")
371 .ValueGeneratedOnAdd()
372 .HasColumnType("bigint");
373
374 SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long?>("Id"));
375
376 b.Property<decimal?>("CancelRight")
377 .HasColumnType("decimal(20,0)");
378
379 b.Property<decimal?>("CancelRightsType")
380 .HasColumnType("decimal(20,0)");
381
382 b.Property<bool?>("Cancelled")
383 .IsRequired()
384 .HasColumnType("bit");
385
386 b.Property<long?>("CancelledById")
387 .HasColumnType("bigint");
388
389 b.Property<string>("Description")
390 .IsRequired()
391 .HasColumnType("nvarchar(max)");
392
393 b.Property<long?>("ErrorCode")
394 .HasColumnType("bigint");
395
396 b.Property<string>("ExceptionDetails")
397 .HasColumnType("nvarchar(max)");
398
399 b.Property<long>("InstanceId")
400 .HasColumnType("bigint");
401
402 b.Property<DateTimeOffset?>("StartedAt")
403 .IsRequired()
404 .HasColumnType("datetimeoffset");
405
406 b.Property<long>("StartedById")
407 .HasColumnType("bigint");
408
409 b.Property<DateTimeOffset?>("StoppedAt")
410 .HasColumnType("datetimeoffset");
411
412 b.HasKey("Id");
413
414 b.HasIndex("CancelledById");
415
416 b.HasIndex("InstanceId");
417
418 b.HasIndex("StartedById");
419
420 b.ToTable("Jobs");
421 });
422
423 modelBuilder.Entity("Tgstation.Server.Host.Models.OAuthConnection", b =>
424 {
425 b.Property<long>("Id")
426 .ValueGeneratedOnAdd()
427 .HasColumnType("bigint");
428
429 SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
430
431 b.Property<string>("ExternalUserId")
432 .IsRequired()
433 .HasMaxLength(100)
434 .HasColumnType("nvarchar(100)");
435
436 b.Property<int>("Provider")
437 .HasColumnType("int");
438
439 b.Property<long?>("UserId")
440 .HasColumnType("bigint");
441
442 b.HasKey("Id");
443
444 b.HasIndex("UserId");
445
446 b.HasIndex("Provider", "ExternalUserId")
447 .IsUnique();
448
449 b.ToTable("OAuthConnections");
450 });
451
452 modelBuilder.Entity("Tgstation.Server.Host.Models.PermissionSet", b =>
453 {
454 b.Property<long?>("Id")
455 .ValueGeneratedOnAdd()
456 .HasColumnType("bigint");
457
458 SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long?>("Id"));
459
460 b.Property<decimal>("AdministrationRights")
461 .HasColumnType("decimal(20,0)");
462
463 b.Property<long?>("GroupId")
464 .HasColumnType("bigint");
465
466 b.Property<decimal>("InstanceManagerRights")
467 .HasColumnType("decimal(20,0)");
468
469 b.Property<long?>("UserId")
470 .HasColumnType("bigint");
471
472 b.HasKey("Id");
473
474 b.HasIndex("GroupId")
475 .IsUnique()
476 .HasFilter("[GroupId] IS NOT NULL");
477
478 b.HasIndex("UserId")
479 .IsUnique()
480 .HasFilter("[UserId] IS NOT NULL");
481
482 b.ToTable("PermissionSets");
483 });
484
485 modelBuilder.Entity("Tgstation.Server.Host.Models.ReattachInformation", b =>
486 {
487 b.Property<long>("Id")
488 .ValueGeneratedOnAdd()
489 .HasColumnType("bigint");
490
491 SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
492
493 b.Property<string>("AccessIdentifier")
494 .IsRequired()
495 .HasColumnType("nvarchar(max)");
496
497 b.Property<long>("CompileJobId")
498 .HasColumnType("bigint");
499
500 b.Property<long?>("InitialCompileJobId")
501 .HasColumnType("bigint");
502
503 b.Property<int>("LaunchSecurityLevel")
504 .HasColumnType("int");
505
506 b.Property<int>("LaunchVisibility")
507 .HasColumnType("int");
508
509 b.Property<int>("Port")
510 .HasColumnType("int");
511
512 b.Property<int>("ProcessId")
513 .HasColumnType("int");
514
515 b.Property<int>("RebootState")
516 .HasColumnType("int");
517
518 b.HasKey("Id");
519
520 b.HasIndex("CompileJobId");
521
522 b.HasIndex("InitialCompileJobId");
523
524 b.ToTable("ReattachInformations");
525 });
526
527 modelBuilder.Entity("Tgstation.Server.Host.Models.RepositorySettings", b =>
528 {
529 b.Property<long>("Id")
530 .ValueGeneratedOnAdd()
531 .HasColumnType("bigint");
532
533 SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
534
535 b.Property<string>("AccessToken")
536 .HasMaxLength(10000)
537 .HasColumnType("nvarchar(max)");
538
539 b.Property<string>("AccessUser")
540 .HasMaxLength(10000)
541 .HasColumnType("nvarchar(max)");
542
543 b.Property<bool?>("AutoUpdatesKeepTestMerges")
544 .IsRequired()
545 .HasColumnType("bit");
546
547 b.Property<bool?>("AutoUpdatesSynchronize")
548 .IsRequired()
549 .HasColumnType("bit");
550
551 b.Property<string>("CommitterEmail")
552 .IsRequired()
553 .HasMaxLength(10000)
554 .HasColumnType("nvarchar(max)");
555
556 b.Property<string>("CommitterName")
557 .IsRequired()
558 .HasMaxLength(10000)
559 .HasColumnType("nvarchar(max)");
560
561 b.Property<bool?>("CreateGitHubDeployments")
562 .IsRequired()
563 .HasColumnType("bit");
564
565 b.Property<long>("InstanceId")
566 .HasColumnType("bigint");
567
568 b.Property<bool?>("PostTestMergeComment")
569 .IsRequired()
570 .HasColumnType("bit");
571
572 b.Property<bool?>("PushTestMergeCommits")
573 .IsRequired()
574 .HasColumnType("bit");
575
576 b.Property<bool?>("ShowTestMergeCommitters")
577 .IsRequired()
578 .HasColumnType("bit");
579
580 b.Property<bool?>("UpdateSubmodules")
581 .IsRequired()
582 .HasColumnType("bit");
583
584 b.HasKey("Id");
585
586 b.HasIndex("InstanceId")
587 .IsUnique();
588
589 b.ToTable("RepositorySettings");
590 });
591
592 modelBuilder.Entity("Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
593 {
594 b.Property<long>("Id")
595 .ValueGeneratedOnAdd()
596 .HasColumnType("bigint");
597
598 SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
599
600 b.Property<long>("RevisionInformationId")
601 .HasColumnType("bigint");
602
603 b.Property<long>("TestMergeId")
604 .HasColumnType("bigint");
605
606 b.HasKey("Id");
607
608 b.HasIndex("RevisionInformationId");
609
610 b.HasIndex("TestMergeId");
611
612 b.ToTable("RevInfoTestMerges");
613 });
614
615 modelBuilder.Entity("Tgstation.Server.Host.Models.RevisionInformation", b =>
616 {
617 b.Property<long>("Id")
618 .ValueGeneratedOnAdd()
619 .HasColumnType("bigint");
620
621 SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
622
623 b.Property<string>("CommitSha")
624 .IsRequired()
625 .HasMaxLength(40)
626 .HasColumnType("nvarchar(40)");
627
628 b.Property<long>("InstanceId")
629 .HasColumnType("bigint");
630
631 b.Property<string>("OriginCommitSha")
632 .IsRequired()
633 .HasMaxLength(40)
634 .HasColumnType("nvarchar(40)");
635
636 b.Property<DateTimeOffset>("Timestamp")
637 .HasColumnType("datetimeoffset");
638
639 b.HasKey("Id");
640
641 b.HasIndex("InstanceId", "CommitSha")
642 .IsUnique();
643
644 b.ToTable("RevisionInformations");
645 });
646
647 modelBuilder.Entity("Tgstation.Server.Host.Models.TestMerge", b =>
648 {
649 b.Property<long>("Id")
650 .ValueGeneratedOnAdd()
651 .HasColumnType("bigint");
652
653 SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
654
655 b.Property<string>("Author")
656 .IsRequired()
657 .HasColumnType("nvarchar(max)");
658
659 b.Property<string>("BodyAtMerge")
660 .IsRequired()
661 .HasColumnType("nvarchar(max)");
662
663 b.Property<string>("Comment")
664 .HasMaxLength(10000)
665 .HasColumnType("nvarchar(max)");
666
667 b.Property<DateTimeOffset>("MergedAt")
668 .HasColumnType("datetimeoffset");
669
670 b.Property<long>("MergedById")
671 .HasColumnType("bigint");
672
673 b.Property<int>("Number")
674 .HasColumnType("int");
675
676 b.Property<long?>("PrimaryRevisionInformationId")
677 .IsRequired()
678 .HasColumnType("bigint");
679
680 b.Property<string>("TargetCommitSha")
681 .IsRequired()
682 .HasMaxLength(40)
683 .HasColumnType("nvarchar(40)");
684
685 b.Property<string>("TitleAtMerge")
686 .IsRequired()
687 .HasColumnType("nvarchar(max)");
688
689 b.Property<string>("Url")
690 .IsRequired()
691 .HasColumnType("nvarchar(max)");
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("bigint");
708
709 SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long?>("Id"));
710
711 b.Property<string>("CanonicalName")
712 .IsRequired()
713 .HasMaxLength(100)
714 .HasColumnType("nvarchar(100)");
715
716 b.Property<DateTimeOffset?>("CreatedAt")
717 .IsRequired()
718 .HasColumnType("datetimeoffset");
719
720 b.Property<long?>("CreatedById")
721 .HasColumnType("bigint");
722
723 b.Property<bool?>("Enabled")
724 .IsRequired()
725 .HasColumnType("bit");
726
727 b.Property<long?>("GroupId")
728 .HasColumnType("bigint");
729
730 b.Property<DateTimeOffset?>("LastPasswordUpdate")
731 .HasColumnType("datetimeoffset");
732
733 b.Property<string>("Name")
734 .IsRequired()
735 .HasMaxLength(100)
736 .HasColumnType("nvarchar(100)");
737
738 b.Property<string>("PasswordHash")
739 .HasColumnType("nvarchar(max)");
740
741 b.Property<string>("SystemIdentifier")
742 .HasMaxLength(100)
743 .HasColumnType("nvarchar(100)");
744
745 b.HasKey("Id");
746
747 b.HasIndex("CanonicalName")
748 .IsUnique();
749
750 b.HasIndex("CreatedById");
751
752 b.HasIndex("GroupId");
753
754 b.HasIndex("SystemIdentifier")
755 .IsUnique()
756 .HasFilter("[SystemIdentifier] IS NOT NULL");
757
758 b.ToTable("Users");
759 });
760
761 modelBuilder.Entity("Tgstation.Server.Host.Models.UserGroup", b =>
762 {
763 b.Property<long?>("Id")
764 .ValueGeneratedOnAdd()
765 .HasColumnType("bigint");
766
767 SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long?>("Id"));
768
769 b.Property<string>("Name")
770 .IsRequired()
771 .HasMaxLength(100)
772 .HasColumnType("nvarchar(100)");
773
774 b.HasKey("Id");
775
776 b.HasIndex("Name")
777 .IsUnique();
778
779 b.ToTable("Groups");
780 });
781
782 modelBuilder.Entity("Tgstation.Server.Host.Models.ChatBot", b =>
783 {
784 b.HasOne("Tgstation.Server.Host.Models.Instance", "Instance")
785 .WithMany("ChatSettings")
786 .HasForeignKey("InstanceId")
787 .OnDelete(DeleteBehavior.Cascade)
788 .IsRequired();
789
790 b.Navigation("Instance");
791 });
792
793 modelBuilder.Entity("Tgstation.Server.Host.Models.ChatChannel", b =>
794 {
795 b.HasOne("Tgstation.Server.Host.Models.ChatBot", "ChatSettings")
796 .WithMany("Channels")
797 .HasForeignKey("ChatSettingsId")
798 .OnDelete(DeleteBehavior.Cascade)
799 .IsRequired();
800
801 b.Navigation("ChatSettings");
802 });
803
804 modelBuilder.Entity("Tgstation.Server.Host.Models.CompileJob", b =>
805 {
806 b.HasOne("Tgstation.Server.Host.Models.Job", "Job")
807 .WithOne()
808 .HasForeignKey("Tgstation.Server.Host.Models.CompileJob", "JobId")
809 .OnDelete(DeleteBehavior.Cascade)
810 .IsRequired();
811
812 b.HasOne("Tgstation.Server.Host.Models.RevisionInformation", "RevisionInformation")
813 .WithMany("CompileJobs")
814 .HasForeignKey("RevisionInformationId")
815 .OnDelete(DeleteBehavior.ClientNoAction)
816 .IsRequired();
817
818 b.Navigation("Job");
819
820 b.Navigation("RevisionInformation");
821 });
822
823 modelBuilder.Entity("Tgstation.Server.Host.Models.DreamDaemonSettings", b =>
824 {
825 b.HasOne("Tgstation.Server.Host.Models.Instance", "Instance")
826 .WithOne("DreamDaemonSettings")
827 .HasForeignKey("Tgstation.Server.Host.Models.DreamDaemonSettings", "InstanceId")
828 .OnDelete(DeleteBehavior.Cascade)
829 .IsRequired();
830
831 b.Navigation("Instance");
832 });
833
834 modelBuilder.Entity("Tgstation.Server.Host.Models.DreamMakerSettings", b =>
835 {
836 b.HasOne("Tgstation.Server.Host.Models.Instance", "Instance")
837 .WithOne("DreamMakerSettings")
838 .HasForeignKey("Tgstation.Server.Host.Models.DreamMakerSettings", "InstanceId")
839 .OnDelete(DeleteBehavior.Cascade)
840 .IsRequired();
841
842 b.Navigation("Instance");
843 });
844
845 modelBuilder.Entity("Tgstation.Server.Host.Models.InstancePermissionSet", b =>
846 {
847 b.HasOne("Tgstation.Server.Host.Models.Instance", "Instance")
848 .WithMany("InstancePermissionSets")
849 .HasForeignKey("InstanceId")
850 .OnDelete(DeleteBehavior.Cascade)
851 .IsRequired();
852
853 b.HasOne("Tgstation.Server.Host.Models.PermissionSet", "PermissionSet")
854 .WithMany("InstancePermissionSets")
855 .HasForeignKey("PermissionSetId")
856 .OnDelete(DeleteBehavior.Cascade)
857 .IsRequired();
858
859 b.Navigation("Instance");
860
861 b.Navigation("PermissionSet");
862 });
863
864 modelBuilder.Entity("Tgstation.Server.Host.Models.Job", b =>
865 {
866 b.HasOne("Tgstation.Server.Host.Models.User", "CancelledBy")
867 .WithMany()
868 .HasForeignKey("CancelledById");
869
870 b.HasOne("Tgstation.Server.Host.Models.Instance", "Instance")
871 .WithMany("Jobs")
872 .HasForeignKey("InstanceId")
873 .OnDelete(DeleteBehavior.Cascade)
874 .IsRequired();
875
876 b.HasOne("Tgstation.Server.Host.Models.User", "StartedBy")
877 .WithMany()
878 .HasForeignKey("StartedById")
879 .OnDelete(DeleteBehavior.Cascade)
880 .IsRequired();
881
882 b.Navigation("CancelledBy");
883
884 b.Navigation("Instance");
885
886 b.Navigation("StartedBy");
887 });
888
889 modelBuilder.Entity("Tgstation.Server.Host.Models.OAuthConnection", b =>
890 {
891 b.HasOne("Tgstation.Server.Host.Models.User", "User")
892 .WithMany("OAuthConnections")
893 .HasForeignKey("UserId")
894 .OnDelete(DeleteBehavior.Cascade);
895
896 b.Navigation("User");
897 });
898
899 modelBuilder.Entity("Tgstation.Server.Host.Models.PermissionSet", b =>
900 {
901 b.HasOne("Tgstation.Server.Host.Models.UserGroup", "Group")
902 .WithOne("PermissionSet")
903 .HasForeignKey("Tgstation.Server.Host.Models.PermissionSet", "GroupId")
904 .OnDelete(DeleteBehavior.Cascade);
905
906 b.HasOne("Tgstation.Server.Host.Models.User", "User")
907 .WithOne("PermissionSet")
908 .HasForeignKey("Tgstation.Server.Host.Models.PermissionSet", "UserId")
909 .OnDelete(DeleteBehavior.Cascade);
910
911 b.Navigation("Group");
912
913 b.Navigation("User");
914 });
915
916 modelBuilder.Entity("Tgstation.Server.Host.Models.ReattachInformation", b =>
917 {
918 b.HasOne("Tgstation.Server.Host.Models.CompileJob", "CompileJob")
919 .WithMany()
920 .HasForeignKey("CompileJobId")
921 .OnDelete(DeleteBehavior.Cascade)
922 .IsRequired();
923
924 b.HasOne("Tgstation.Server.Host.Models.CompileJob", "InitialCompileJob")
925 .WithMany()
926 .HasForeignKey("InitialCompileJobId");
927
928 b.Navigation("CompileJob");
929
930 b.Navigation("InitialCompileJob");
931 });
932
933 modelBuilder.Entity("Tgstation.Server.Host.Models.RepositorySettings", b =>
934 {
935 b.HasOne("Tgstation.Server.Host.Models.Instance", "Instance")
936 .WithOne("RepositorySettings")
937 .HasForeignKey("Tgstation.Server.Host.Models.RepositorySettings", "InstanceId")
938 .OnDelete(DeleteBehavior.Cascade)
939 .IsRequired();
940
941 b.Navigation("Instance");
942 });
943
944 modelBuilder.Entity("Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
945 {
946 b.HasOne("Tgstation.Server.Host.Models.RevisionInformation", "RevisionInformation")
947 .WithMany("ActiveTestMerges")
948 .HasForeignKey("RevisionInformationId")
949 .OnDelete(DeleteBehavior.Cascade)
950 .IsRequired();
951
952 b.HasOne("Tgstation.Server.Host.Models.TestMerge", "TestMerge")
953 .WithMany("RevisonInformations")
954 .HasForeignKey("TestMergeId")
955 .OnDelete(DeleteBehavior.ClientNoAction)
956 .IsRequired();
957
958 b.Navigation("RevisionInformation");
959
960 b.Navigation("TestMerge");
961 });
962
963 modelBuilder.Entity("Tgstation.Server.Host.Models.RevisionInformation", b =>
964 {
965 b.HasOne("Tgstation.Server.Host.Models.Instance", "Instance")
966 .WithMany("RevisionInformations")
967 .HasForeignKey("InstanceId")
968 .OnDelete(DeleteBehavior.Cascade)
969 .IsRequired();
970
971 b.Navigation("Instance");
972 });
973
974 modelBuilder.Entity("Tgstation.Server.Host.Models.TestMerge", b =>
975 {
976 b.HasOne("Tgstation.Server.Host.Models.User", "MergedBy")
977 .WithMany("TestMerges")
978 .HasForeignKey("MergedById")
979 .OnDelete(DeleteBehavior.Restrict)
980 .IsRequired();
981
982 b.HasOne("Tgstation.Server.Host.Models.RevisionInformation", "PrimaryRevisionInformation")
983 .WithOne("PrimaryTestMerge")
984 .HasForeignKey("Tgstation.Server.Host.Models.TestMerge", "PrimaryRevisionInformationId")
985 .OnDelete(DeleteBehavior.Cascade)
986 .IsRequired();
987
988 b.Navigation("MergedBy");
989
990 b.Navigation("PrimaryRevisionInformation");
991 });
992
993 modelBuilder.Entity("Tgstation.Server.Host.Models.User", b =>
994 {
995 b.HasOne("Tgstation.Server.Host.Models.User", "CreatedBy")
996 .WithMany("CreatedUsers")
997 .HasForeignKey("CreatedById");
998
999 b.HasOne("Tgstation.Server.Host.Models.UserGroup", "Group")
1000 .WithMany("Users")
1001 .HasForeignKey("GroupId");
1002
1003 b.Navigation("CreatedBy");
1004
1005 b.Navigation("Group");
1006 });
1007
1008 modelBuilder.Entity("Tgstation.Server.Host.Models.ChatBot", b =>
1009 {
1010 b.Navigation("Channels");
1011 });
1012
1013 modelBuilder.Entity("Tgstation.Server.Host.Models.Instance", b =>
1014 {
1015 b.Navigation("ChatSettings");
1016
1017 b.Navigation("DreamDaemonSettings");
1018
1019 b.Navigation("DreamMakerSettings");
1020
1021 b.Navigation("InstancePermissionSets");
1022
1023 b.Navigation("Jobs");
1024
1025 b.Navigation("RepositorySettings");
1026
1027 b.Navigation("RevisionInformations");
1028 });
1029
1030 modelBuilder.Entity("Tgstation.Server.Host.Models.PermissionSet", b =>
1031 {
1032 b.Navigation("InstancePermissionSets");
1033 });
1034
1035 modelBuilder.Entity("Tgstation.Server.Host.Models.RevisionInformation", b =>
1036 {
1037 b.Navigation("ActiveTestMerges");
1038
1039 b.Navigation("CompileJobs");
1040
1041 b.Navigation("PrimaryTestMerge");
1042 });
1043
1044 modelBuilder.Entity("Tgstation.Server.Host.Models.TestMerge", b =>
1045 {
1046 b.Navigation("RevisonInformations");
1047 });
1048
1049 modelBuilder.Entity("Tgstation.Server.Host.Models.User", b =>
1050 {
1051 b.Navigation("CreatedUsers");
1052
1053 b.Navigation("OAuthConnections");
1054
1055 b.Navigation("PermissionSet");
1056
1057 b.Navigation("TestMerges");
1058 });
1059
1060 modelBuilder.Entity("Tgstation.Server.Host.Models.UserGroup", b =>
1061 {
1062 b.Navigation("PermissionSet")
1063 .IsRequired();
1064
1065 b.Navigation("Users");
1066 });
1067#pragma warning restore 612, 618
1068 }
1069 }
1070}