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