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