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