tgstation-server 6.12.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
20230403050832_PGAddReattachInfoInitialCompileJob.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("20230403050832_PGAddReattachInfoInitialCompileJob")]
12 partial class PGAddReattachInfoInitialCompileJob
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<long?>("InitialCompileJobId")
489 .HasColumnType("bigint");
490
491 b.Property<int>("LaunchSecurityLevel")
492 .HasColumnType("integer");
493
494 b.Property<int>("LaunchVisibility")
495 .HasColumnType("integer");
496
497 b.Property<int>("Port")
498 .HasColumnType("integer");
499
500 b.Property<int>("ProcessId")
501 .HasColumnType("integer");
502
503 b.Property<int>("RebootState")
504 .HasColumnType("integer");
505
506 b.HasKey("Id");
507
508 b.HasIndex("CompileJobId");
509
510 b.HasIndex("InitialCompileJobId");
511
512 b.ToTable("ReattachInformations");
513 });
514
515 modelBuilder.Entity("Tgstation.Server.Host.Models.RepositorySettings", b =>
516 {
517 b.Property<long>("Id")
518 .ValueGeneratedOnAdd()
519 .HasColumnType("bigint");
520
521 NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<long>("Id"));
522
523 b.Property<string>("AccessToken")
524 .HasMaxLength(10000)
525 .HasColumnType("character varying(10000)");
526
527 b.Property<string>("AccessUser")
528 .HasMaxLength(10000)
529 .HasColumnType("character varying(10000)");
530
531 b.Property<bool?>("AutoUpdatesKeepTestMerges")
532 .IsRequired()
533 .HasColumnType("boolean");
534
535 b.Property<bool?>("AutoUpdatesSynchronize")
536 .IsRequired()
537 .HasColumnType("boolean");
538
539 b.Property<string>("CommitterEmail")
540 .IsRequired()
541 .HasMaxLength(10000)
542 .HasColumnType("character varying(10000)");
543
544 b.Property<string>("CommitterName")
545 .IsRequired()
546 .HasMaxLength(10000)
547 .HasColumnType("character varying(10000)");
548
549 b.Property<bool?>("CreateGitHubDeployments")
550 .IsRequired()
551 .HasColumnType("boolean");
552
553 b.Property<long>("InstanceId")
554 .HasColumnType("bigint");
555
556 b.Property<bool?>("PostTestMergeComment")
557 .IsRequired()
558 .HasColumnType("boolean");
559
560 b.Property<bool?>("PushTestMergeCommits")
561 .IsRequired()
562 .HasColumnType("boolean");
563
564 b.Property<bool?>("ShowTestMergeCommitters")
565 .IsRequired()
566 .HasColumnType("boolean");
567
568 b.Property<bool?>("UpdateSubmodules")
569 .IsRequired()
570 .HasColumnType("boolean");
571
572 b.HasKey("Id");
573
574 b.HasIndex("InstanceId")
575 .IsUnique();
576
577 b.ToTable("RepositorySettings");
578 });
579
580 modelBuilder.Entity("Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
581 {
582 b.Property<long>("Id")
583 .ValueGeneratedOnAdd()
584 .HasColumnType("bigint");
585
586 NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<long>("Id"));
587
588 b.Property<long>("RevisionInformationId")
589 .HasColumnType("bigint");
590
591 b.Property<long>("TestMergeId")
592 .HasColumnType("bigint");
593
594 b.HasKey("Id");
595
596 b.HasIndex("RevisionInformationId");
597
598 b.HasIndex("TestMergeId");
599
600 b.ToTable("RevInfoTestMerges");
601 });
602
603 modelBuilder.Entity("Tgstation.Server.Host.Models.RevisionInformation", b =>
604 {
605 b.Property<long>("Id")
606 .ValueGeneratedOnAdd()
607 .HasColumnType("bigint");
608
609 NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<long>("Id"));
610
611 b.Property<string>("CommitSha")
612 .IsRequired()
613 .HasMaxLength(40)
614 .HasColumnType("character varying(40)");
615
616 b.Property<long>("InstanceId")
617 .HasColumnType("bigint");
618
619 b.Property<string>("OriginCommitSha")
620 .IsRequired()
621 .HasMaxLength(40)
622 .HasColumnType("character varying(40)");
623
624 b.Property<DateTimeOffset>("Timestamp")
625 .HasColumnType("timestamp with time zone");
626
627 b.HasKey("Id");
628
629 b.HasIndex("InstanceId", "CommitSha")
630 .IsUnique();
631
632 b.ToTable("RevisionInformations");
633 });
634
635 modelBuilder.Entity("Tgstation.Server.Host.Models.TestMerge", b =>
636 {
637 b.Property<long>("Id")
638 .ValueGeneratedOnAdd()
639 .HasColumnType("bigint");
640
641 NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<long>("Id"));
642
643 b.Property<string>("Author")
644 .IsRequired()
645 .HasColumnType("text");
646
647 b.Property<string>("BodyAtMerge")
648 .IsRequired()
649 .HasColumnType("text");
650
651 b.Property<string>("Comment")
652 .HasMaxLength(10000)
653 .HasColumnType("character varying(10000)");
654
655 b.Property<DateTimeOffset>("MergedAt")
656 .HasColumnType("timestamp with time zone");
657
658 b.Property<long>("MergedById")
659 .HasColumnType("bigint");
660
661 b.Property<int>("Number")
662 .HasColumnType("integer");
663
664 b.Property<long?>("PrimaryRevisionInformationId")
665 .IsRequired()
666 .HasColumnType("bigint");
667
668 b.Property<string>("TargetCommitSha")
669 .IsRequired()
670 .HasMaxLength(40)
671 .HasColumnType("character varying(40)");
672
673 b.Property<string>("TitleAtMerge")
674 .IsRequired()
675 .HasColumnType("text");
676
677 b.Property<string>("Url")
678 .IsRequired()
679 .HasColumnType("text");
680
681 b.HasKey("Id");
682
683 b.HasIndex("MergedById");
684
685 b.HasIndex("PrimaryRevisionInformationId")
686 .IsUnique();
687
688 b.ToTable("TestMerges");
689 });
690
691 modelBuilder.Entity("Tgstation.Server.Host.Models.User", b =>
692 {
693 b.Property<long?>("Id")
694 .ValueGeneratedOnAdd()
695 .HasColumnType("bigint");
696
697 NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<long?>("Id"));
698
699 b.Property<string>("CanonicalName")
700 .IsRequired()
701 .HasMaxLength(100)
702 .HasColumnType("character varying(100)");
703
704 b.Property<DateTimeOffset?>("CreatedAt")
705 .IsRequired()
706 .HasColumnType("timestamp with time zone");
707
708 b.Property<long?>("CreatedById")
709 .HasColumnType("bigint");
710
711 b.Property<bool?>("Enabled")
712 .IsRequired()
713 .HasColumnType("boolean");
714
715 b.Property<long?>("GroupId")
716 .HasColumnType("bigint");
717
718 b.Property<DateTimeOffset?>("LastPasswordUpdate")
719 .HasColumnType("timestamp with time zone");
720
721 b.Property<string>("Name")
722 .IsRequired()
723 .HasMaxLength(100)
724 .HasColumnType("character varying(100)");
725
726 b.Property<string>("PasswordHash")
727 .HasColumnType("text");
728
729 b.Property<string>("SystemIdentifier")
730 .HasMaxLength(100)
731 .HasColumnType("character varying(100)");
732
733 b.HasKey("Id");
734
735 b.HasIndex("CanonicalName")
736 .IsUnique();
737
738 b.HasIndex("CreatedById");
739
740 b.HasIndex("GroupId");
741
742 b.HasIndex("SystemIdentifier")
743 .IsUnique();
744
745 b.ToTable("Users");
746 });
747
748 modelBuilder.Entity("Tgstation.Server.Host.Models.UserGroup", b =>
749 {
750 b.Property<long?>("Id")
751 .ValueGeneratedOnAdd()
752 .HasColumnType("bigint");
753
754 NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<long?>("Id"));
755
756 b.Property<string>("Name")
757 .IsRequired()
758 .HasMaxLength(100)
759 .HasColumnType("character varying(100)");
760
761 b.HasKey("Id");
762
763 b.HasIndex("Name")
764 .IsUnique();
765
766 b.ToTable("Groups");
767 });
768
769 modelBuilder.Entity("Tgstation.Server.Host.Models.ChatBot", b =>
770 {
771 b.HasOne("Tgstation.Server.Host.Models.Instance", "Instance")
772 .WithMany("ChatSettings")
773 .HasForeignKey("InstanceId")
774 .OnDelete(DeleteBehavior.Cascade)
775 .IsRequired();
776
777 b.Navigation("Instance");
778 });
779
780 modelBuilder.Entity("Tgstation.Server.Host.Models.ChatChannel", b =>
781 {
782 b.HasOne("Tgstation.Server.Host.Models.ChatBot", "ChatSettings")
783 .WithMany("Channels")
784 .HasForeignKey("ChatSettingsId")
785 .OnDelete(DeleteBehavior.Cascade)
786 .IsRequired();
787
788 b.Navigation("ChatSettings");
789 });
790
791 modelBuilder.Entity("Tgstation.Server.Host.Models.CompileJob", b =>
792 {
793 b.HasOne("Tgstation.Server.Host.Models.Job", "Job")
794 .WithOne()
795 .HasForeignKey("Tgstation.Server.Host.Models.CompileJob", "JobId")
796 .OnDelete(DeleteBehavior.Cascade)
797 .IsRequired();
798
799 b.HasOne("Tgstation.Server.Host.Models.RevisionInformation", "RevisionInformation")
800 .WithMany("CompileJobs")
801 .HasForeignKey("RevisionInformationId")
802 .OnDelete(DeleteBehavior.Cascade)
803 .IsRequired();
804
805 b.Navigation("Job");
806
807 b.Navigation("RevisionInformation");
808 });
809
810 modelBuilder.Entity("Tgstation.Server.Host.Models.DreamDaemonSettings", b =>
811 {
812 b.HasOne("Tgstation.Server.Host.Models.Instance", "Instance")
813 .WithOne("DreamDaemonSettings")
814 .HasForeignKey("Tgstation.Server.Host.Models.DreamDaemonSettings", "InstanceId")
815 .OnDelete(DeleteBehavior.Cascade)
816 .IsRequired();
817
818 b.Navigation("Instance");
819 });
820
821 modelBuilder.Entity("Tgstation.Server.Host.Models.DreamMakerSettings", b =>
822 {
823 b.HasOne("Tgstation.Server.Host.Models.Instance", "Instance")
824 .WithOne("DreamMakerSettings")
825 .HasForeignKey("Tgstation.Server.Host.Models.DreamMakerSettings", "InstanceId")
826 .OnDelete(DeleteBehavior.Cascade)
827 .IsRequired();
828
829 b.Navigation("Instance");
830 });
831
832 modelBuilder.Entity("Tgstation.Server.Host.Models.InstancePermissionSet", b =>
833 {
834 b.HasOne("Tgstation.Server.Host.Models.Instance", "Instance")
835 .WithMany("InstancePermissionSets")
836 .HasForeignKey("InstanceId")
837 .OnDelete(DeleteBehavior.Cascade)
838 .IsRequired();
839
840 b.HasOne("Tgstation.Server.Host.Models.PermissionSet", "PermissionSet")
841 .WithMany("InstancePermissionSets")
842 .HasForeignKey("PermissionSetId")
843 .OnDelete(DeleteBehavior.Cascade)
844 .IsRequired();
845
846 b.Navigation("Instance");
847
848 b.Navigation("PermissionSet");
849 });
850
851 modelBuilder.Entity("Tgstation.Server.Host.Models.Job", b =>
852 {
853 b.HasOne("Tgstation.Server.Host.Models.User", "CancelledBy")
854 .WithMany()
855 .HasForeignKey("CancelledById");
856
857 b.HasOne("Tgstation.Server.Host.Models.Instance", "Instance")
858 .WithMany("Jobs")
859 .HasForeignKey("InstanceId")
860 .OnDelete(DeleteBehavior.Cascade)
861 .IsRequired();
862
863 b.HasOne("Tgstation.Server.Host.Models.User", "StartedBy")
864 .WithMany()
865 .HasForeignKey("StartedById")
866 .OnDelete(DeleteBehavior.Cascade)
867 .IsRequired();
868
869 b.Navigation("CancelledBy");
870
871 b.Navigation("Instance");
872
873 b.Navigation("StartedBy");
874 });
875
876 modelBuilder.Entity("Tgstation.Server.Host.Models.OAuthConnection", b =>
877 {
878 b.HasOne("Tgstation.Server.Host.Models.User", "User")
879 .WithMany("OAuthConnections")
880 .HasForeignKey("UserId")
881 .OnDelete(DeleteBehavior.Cascade);
882
883 b.Navigation("User");
884 });
885
886 modelBuilder.Entity("Tgstation.Server.Host.Models.PermissionSet", b =>
887 {
888 b.HasOne("Tgstation.Server.Host.Models.UserGroup", "Group")
889 .WithOne("PermissionSet")
890 .HasForeignKey("Tgstation.Server.Host.Models.PermissionSet", "GroupId")
891 .OnDelete(DeleteBehavior.Cascade);
892
893 b.HasOne("Tgstation.Server.Host.Models.User", "User")
894 .WithOne("PermissionSet")
895 .HasForeignKey("Tgstation.Server.Host.Models.PermissionSet", "UserId")
896 .OnDelete(DeleteBehavior.Cascade);
897
898 b.Navigation("Group");
899
900 b.Navigation("User");
901 });
902
903 modelBuilder.Entity("Tgstation.Server.Host.Models.ReattachInformation", b =>
904 {
905 b.HasOne("Tgstation.Server.Host.Models.CompileJob", "CompileJob")
906 .WithMany()
907 .HasForeignKey("CompileJobId")
908 .OnDelete(DeleteBehavior.Cascade)
909 .IsRequired();
910
911 b.HasOne("Tgstation.Server.Host.Models.CompileJob", "InitialCompileJob")
912 .WithMany()
913 .HasForeignKey("InitialCompileJobId");
914
915 b.Navigation("CompileJob");
916
917 b.Navigation("InitialCompileJob");
918 });
919
920 modelBuilder.Entity("Tgstation.Server.Host.Models.RepositorySettings", b =>
921 {
922 b.HasOne("Tgstation.Server.Host.Models.Instance", "Instance")
923 .WithOne("RepositorySettings")
924 .HasForeignKey("Tgstation.Server.Host.Models.RepositorySettings", "InstanceId")
925 .OnDelete(DeleteBehavior.Cascade)
926 .IsRequired();
927
928 b.Navigation("Instance");
929 });
930
931 modelBuilder.Entity("Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
932 {
933 b.HasOne("Tgstation.Server.Host.Models.RevisionInformation", "RevisionInformation")
934 .WithMany("ActiveTestMerges")
935 .HasForeignKey("RevisionInformationId")
936 .OnDelete(DeleteBehavior.Cascade)
937 .IsRequired();
938
939 b.HasOne("Tgstation.Server.Host.Models.TestMerge", "TestMerge")
940 .WithMany("RevisonInformations")
941 .HasForeignKey("TestMergeId")
942 .OnDelete(DeleteBehavior.ClientNoAction)
943 .IsRequired();
944
945 b.Navigation("RevisionInformation");
946
947 b.Navigation("TestMerge");
948 });
949
950 modelBuilder.Entity("Tgstation.Server.Host.Models.RevisionInformation", b =>
951 {
952 b.HasOne("Tgstation.Server.Host.Models.Instance", "Instance")
953 .WithMany("RevisionInformations")
954 .HasForeignKey("InstanceId")
955 .OnDelete(DeleteBehavior.Cascade)
956 .IsRequired();
957
958 b.Navigation("Instance");
959 });
960
961 modelBuilder.Entity("Tgstation.Server.Host.Models.TestMerge", b =>
962 {
963 b.HasOne("Tgstation.Server.Host.Models.User", "MergedBy")
964 .WithMany("TestMerges")
965 .HasForeignKey("MergedById")
966 .OnDelete(DeleteBehavior.Restrict)
967 .IsRequired();
968
969 b.HasOne("Tgstation.Server.Host.Models.RevisionInformation", "PrimaryRevisionInformation")
970 .WithOne("PrimaryTestMerge")
971 .HasForeignKey("Tgstation.Server.Host.Models.TestMerge", "PrimaryRevisionInformationId")
972 .OnDelete(DeleteBehavior.Cascade)
973 .IsRequired();
974
975 b.Navigation("MergedBy");
976
977 b.Navigation("PrimaryRevisionInformation");
978 });
979
980 modelBuilder.Entity("Tgstation.Server.Host.Models.User", b =>
981 {
982 b.HasOne("Tgstation.Server.Host.Models.User", "CreatedBy")
983 .WithMany("CreatedUsers")
984 .HasForeignKey("CreatedById");
985
986 b.HasOne("Tgstation.Server.Host.Models.UserGroup", "Group")
987 .WithMany("Users")
988 .HasForeignKey("GroupId");
989
990 b.Navigation("CreatedBy");
991
992 b.Navigation("Group");
993 });
994
995 modelBuilder.Entity("Tgstation.Server.Host.Models.ChatBot", b =>
996 {
997 b.Navigation("Channels");
998 });
999
1000 modelBuilder.Entity("Tgstation.Server.Host.Models.Instance", b =>
1001 {
1002 b.Navigation("ChatSettings");
1003
1004 b.Navigation("DreamDaemonSettings");
1005
1006 b.Navigation("DreamMakerSettings");
1007
1008 b.Navigation("InstancePermissionSets");
1009
1010 b.Navigation("Jobs");
1011
1012 b.Navigation("RepositorySettings");
1013
1014 b.Navigation("RevisionInformations");
1015 });
1016
1017 modelBuilder.Entity("Tgstation.Server.Host.Models.PermissionSet", b =>
1018 {
1019 b.Navigation("InstancePermissionSets");
1020 });
1021
1022 modelBuilder.Entity("Tgstation.Server.Host.Models.RevisionInformation", b =>
1023 {
1024 b.Navigation("ActiveTestMerges");
1025
1026 b.Navigation("CompileJobs");
1027
1028 b.Navigation("PrimaryTestMerge");
1029 });
1030
1031 modelBuilder.Entity("Tgstation.Server.Host.Models.TestMerge", b =>
1032 {
1033 b.Navigation("RevisonInformations");
1034 });
1035
1036 modelBuilder.Entity("Tgstation.Server.Host.Models.User", b =>
1037 {
1038 b.Navigation("CreatedUsers");
1039
1040 b.Navigation("OAuthConnections");
1041
1042 b.Navigation("PermissionSet");
1043
1044 b.Navigation("TestMerges");
1045 });
1046
1047 modelBuilder.Entity("Tgstation.Server.Host.Models.UserGroup", b =>
1048 {
1049 b.Navigation("PermissionSet")
1050 .IsRequired();
1051
1052 b.Navigation("Users");
1053 });
1054#pragma warning restore 612, 618
1055 }
1056 }
1057}