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