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