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