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