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