tgstation-server 6.12.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
20230614053739_MSRenameHeartbeatsToHealthChecks.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("20230614053739_MSRenameHeartbeatsToHealthChecks")]
12 partial class MSRenameHeartbeatsToHealthChecks
13 {
15 protected override void BuildTargetModel(ModelBuilder modelBuilder)
16 {
17#pragma warning disable 612, 618
18 modelBuilder
19 .HasAnnotation("ProductVersion", "7.0.7")
20 .HasAnnotation("Relational:MaxIdentifierLength", 128);
21
22 SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
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"));
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"));
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?>("IsSystemChannel")
88 .IsRequired()
89 .HasColumnType("bit");
90
91 b.Property<bool?>("IsUpdatesChannel")
92 .IsRequired()
93 .HasColumnType("bit");
94
95 b.Property<bool?>("IsWatchdogChannel")
96 .IsRequired()
97 .HasColumnType("bit");
98
99 b.Property<string>("Tag")
100 .HasMaxLength(10000)
101 .HasColumnType("nvarchar(max)");
102
103 b.HasKey("Id");
104
105 b.HasIndex("ChatSettingsId", "DiscordChannelId")
106 .IsUnique()
107 .HasFilter("[DiscordChannelId] IS NOT NULL");
108
109 b.HasIndex("ChatSettingsId", "IrcChannel")
110 .IsUnique()
111 .HasFilter("[IrcChannel] IS NOT NULL");
112
113 b.ToTable("ChatChannels");
114 });
115
116 modelBuilder.Entity("Tgstation.Server.Host.Models.CompileJob", b =>
117 {
118 b.Property<long?>("Id")
119 .ValueGeneratedOnAdd()
120 .HasColumnType("bigint");
121
122 SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long?>("Id"));
123
124 b.Property<string>("ByondVersion")
125 .IsRequired()
126 .HasColumnType("nvarchar(max)");
127
128 b.Property<int?>("DMApiMajorVersion")
129 .HasColumnType("int");
130
131 b.Property<int?>("DMApiMinorVersion")
132 .HasColumnType("int");
133
134 b.Property<int?>("DMApiPatchVersion")
135 .HasColumnType("int");
136
137 b.Property<Guid?>("DirectoryName")
138 .IsRequired()
139 .HasColumnType("uniqueidentifier");
140
141 b.Property<string>("DmeName")
142 .IsRequired()
143 .HasColumnType("nvarchar(max)");
144
145 b.Property<int?>("GitHubDeploymentId")
146 .HasColumnType("int");
147
148 b.Property<long?>("GitHubRepoId")
149 .HasColumnType("bigint");
150
151 b.Property<long>("JobId")
152 .HasColumnType("bigint");
153
154 b.Property<int?>("MinimumSecurityLevel")
155 .HasColumnType("int");
156
157 b.Property<string>("Output")
158 .IsRequired()
159 .HasColumnType("nvarchar(max)");
160
161 b.Property<string>("RepositoryOrigin")
162 .HasColumnType("nvarchar(max)");
163
164 b.Property<long>("RevisionInformationId")
165 .HasColumnType("bigint");
166
167 b.HasKey("Id");
168
169 b.HasIndex("DirectoryName");
170
171 b.HasIndex("JobId")
172 .IsUnique();
173
174 b.HasIndex("RevisionInformationId");
175
176 b.ToTable("CompileJobs");
177 });
178
179 modelBuilder.Entity("Tgstation.Server.Host.Models.DreamDaemonSettings", b =>
180 {
181 b.Property<long>("Id")
182 .ValueGeneratedOnAdd()
183 .HasColumnType("bigint");
184
185 SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
186
187 b.Property<string>("AdditionalParameters")
188 .IsRequired()
189 .HasMaxLength(10000)
190 .HasColumnType("nvarchar(max)");
191
192 b.Property<bool?>("AllowWebClient")
193 .IsRequired()
194 .HasColumnType("bit");
195
196 b.Property<bool?>("AutoStart")
197 .IsRequired()
198 .HasColumnType("bit");
199
200 b.Property<bool?>("DumpOnHeartbeatRestart")
201 .IsRequired()
202 .HasColumnType("bit")
203 .HasColumnName("DumpOnHealthCheckRestart");
204
205 b.Property<long>("HeartbeatSeconds")
206 .HasColumnType("bigint")
207 .HasColumnName("HealthCheckSeconds");
208
209 b.Property<long>("InstanceId")
210 .HasColumnType("bigint");
211
212 b.Property<bool?>("LogOutput")
213 .IsRequired()
214 .HasColumnType("bit");
215
216 b.Property<int>("Port")
217 .HasColumnType("int");
218
219 b.Property<int>("SecurityLevel")
220 .HasColumnType("int");
221
222 b.Property<bool?>("StartProfiler")
223 .IsRequired()
224 .HasColumnType("bit");
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("int");
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 SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
250
251 b.Property<int>("ApiValidationPort")
252 .HasColumnType("int");
253
254 b.Property<int>("ApiValidationSecurityLevel")
255 .HasColumnType("int");
256
257 b.Property<long>("InstanceId")
258 .HasColumnType("bigint");
259
260 b.Property<string>("ProjectName")
261 .HasMaxLength(10000)
262 .HasColumnType("nvarchar(max)");
263
264 b.Property<bool?>("RequireDMApiValidation")
265 .IsRequired()
266 .HasColumnType("bit");
267
268 b.Property<TimeSpan?>("Timeout")
269 .IsRequired()
270 .HasColumnType("time");
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 SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long?>("Id"));
287
288 b.Property<long>("AutoUpdateInterval")
289 .HasColumnType("bigint");
290
291 b.Property<int>("ChatBotLimit")
292 .HasColumnType("int");
293
294 b.Property<int>("ConfigurationType")
295 .HasColumnType("int");
296
297 b.Property<string>("Name")
298 .IsRequired()
299 .HasMaxLength(100)
300 .HasColumnType("nvarchar(100)");
301
302 b.Property<bool?>("Online")
303 .IsRequired()
304 .HasColumnType("bit");
305
306 b.Property<string>("Path")
307 .IsRequired()
308 .HasColumnType("nvarchar(450)");
309
310 b.Property<string>("SwarmIdentifer")
311 .HasColumnType("nvarchar(450)");
312
313 b.HasKey("Id");
314
315 b.HasIndex("Path", "SwarmIdentifer")
316 .IsUnique()
317 .HasFilter("[SwarmIdentifer] IS NOT NULL");
318
319 b.ToTable("Instances");
320 });
321
322 modelBuilder.Entity("Tgstation.Server.Host.Models.InstancePermissionSet", b =>
323 {
324 b.Property<long>("Id")
325 .ValueGeneratedOnAdd()
326 .HasColumnType("bigint");
327
328 SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
329
330 b.Property<decimal>("ByondRights")
331 .HasColumnType("decimal(20,0)");
332
333 b.Property<decimal>("ChatBotRights")
334 .HasColumnType("decimal(20,0)");
335
336 b.Property<decimal>("ConfigurationRights")
337 .HasColumnType("decimal(20,0)");
338
339 b.Property<decimal>("DreamDaemonRights")
340 .HasColumnType("decimal(20,0)");
341
342 b.Property<decimal>("DreamMakerRights")
343 .HasColumnType("decimal(20,0)");
344
345 b.Property<long>("InstanceId")
346 .HasColumnType("bigint");
347
348 b.Property<decimal>("InstancePermissionSetRights")
349 .HasColumnType("decimal(20,0)");
350
351 b.Property<long>("PermissionSetId")
352 .HasColumnType("bigint");
353
354 b.Property<decimal>("RepositoryRights")
355 .HasColumnType("decimal(20,0)");
356
357 b.HasKey("Id");
358
359 b.HasIndex("InstanceId");
360
361 b.HasIndex("PermissionSetId", "InstanceId")
362 .IsUnique();
363
364 b.ToTable("InstancePermissionSets");
365 });
366
367 modelBuilder.Entity("Tgstation.Server.Host.Models.Job", b =>
368 {
369 b.Property<long?>("Id")
370 .ValueGeneratedOnAdd()
371 .HasColumnType("bigint");
372
373 SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long?>("Id"));
374
375 b.Property<decimal?>("CancelRight")
376 .HasColumnType("decimal(20,0)");
377
378 b.Property<decimal?>("CancelRightsType")
379 .HasColumnType("decimal(20,0)");
380
381 b.Property<bool?>("Cancelled")
382 .IsRequired()
383 .HasColumnType("bit");
384
385 b.Property<long?>("CancelledById")
386 .HasColumnType("bigint");
387
388 b.Property<string>("Description")
389 .IsRequired()
390 .HasColumnType("nvarchar(max)");
391
392 b.Property<long?>("ErrorCode")
393 .HasColumnType("bigint");
394
395 b.Property<string>("ExceptionDetails")
396 .HasColumnType("nvarchar(max)");
397
398 b.Property<long>("InstanceId")
399 .HasColumnType("bigint");
400
401 b.Property<DateTimeOffset?>("StartedAt")
402 .IsRequired()
403 .HasColumnType("datetimeoffset");
404
405 b.Property<long>("StartedById")
406 .HasColumnType("bigint");
407
408 b.Property<DateTimeOffset?>("StoppedAt")
409 .HasColumnType("datetimeoffset");
410
411 b.HasKey("Id");
412
413 b.HasIndex("CancelledById");
414
415 b.HasIndex("InstanceId");
416
417 b.HasIndex("StartedById");
418
419 b.ToTable("Jobs");
420 });
421
422 modelBuilder.Entity("Tgstation.Server.Host.Models.OAuthConnection", b =>
423 {
424 b.Property<long>("Id")
425 .ValueGeneratedOnAdd()
426 .HasColumnType("bigint");
427
428 SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
429
430 b.Property<string>("ExternalUserId")
431 .IsRequired()
432 .HasMaxLength(100)
433 .HasColumnType("nvarchar(100)");
434
435 b.Property<int>("Provider")
436 .HasColumnType("int");
437
438 b.Property<long?>("UserId")
439 .HasColumnType("bigint");
440
441 b.HasKey("Id");
442
443 b.HasIndex("UserId");
444
445 b.HasIndex("Provider", "ExternalUserId")
446 .IsUnique();
447
448 b.ToTable("OAuthConnections");
449 });
450
451 modelBuilder.Entity("Tgstation.Server.Host.Models.PermissionSet", b =>
452 {
453 b.Property<long?>("Id")
454 .ValueGeneratedOnAdd()
455 .HasColumnType("bigint");
456
457 SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long?>("Id"));
458
459 b.Property<decimal>("AdministrationRights")
460 .HasColumnType("decimal(20,0)");
461
462 b.Property<long?>("GroupId")
463 .HasColumnType("bigint");
464
465 b.Property<decimal>("InstanceManagerRights")
466 .HasColumnType("decimal(20,0)");
467
468 b.Property<long?>("UserId")
469 .HasColumnType("bigint");
470
471 b.HasKey("Id");
472
473 b.HasIndex("GroupId")
474 .IsUnique()
475 .HasFilter("[GroupId] IS NOT NULL");
476
477 b.HasIndex("UserId")
478 .IsUnique()
479 .HasFilter("[UserId] IS NOT NULL");
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 SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
491
492 b.Property<string>("AccessIdentifier")
493 .IsRequired()
494 .HasColumnType("nvarchar(max)");
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("int");
504
505 b.Property<int>("LaunchVisibility")
506 .HasColumnType("int");
507
508 b.Property<int>("Port")
509 .HasColumnType("int");
510
511 b.Property<int>("ProcessId")
512 .HasColumnType("int");
513
514 b.Property<int>("RebootState")
515 .HasColumnType("int");
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 SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
533
534 b.Property<string>("AccessToken")
535 .HasMaxLength(10000)
536 .HasColumnType("nvarchar(max)");
537
538 b.Property<string>("AccessUser")
539 .HasMaxLength(10000)
540 .HasColumnType("nvarchar(max)");
541
542 b.Property<bool?>("AutoUpdatesKeepTestMerges")
543 .IsRequired()
544 .HasColumnType("bit");
545
546 b.Property<bool?>("AutoUpdatesSynchronize")
547 .IsRequired()
548 .HasColumnType("bit");
549
550 b.Property<string>("CommitterEmail")
551 .IsRequired()
552 .HasMaxLength(10000)
553 .HasColumnType("nvarchar(max)");
554
555 b.Property<string>("CommitterName")
556 .IsRequired()
557 .HasMaxLength(10000)
558 .HasColumnType("nvarchar(max)");
559
560 b.Property<bool?>("CreateGitHubDeployments")
561 .IsRequired()
562 .HasColumnType("bit");
563
564 b.Property<long>("InstanceId")
565 .HasColumnType("bigint");
566
567 b.Property<bool?>("PostTestMergeComment")
568 .IsRequired()
569 .HasColumnType("bit");
570
571 b.Property<bool?>("PushTestMergeCommits")
572 .IsRequired()
573 .HasColumnType("bit");
574
575 b.Property<bool?>("ShowTestMergeCommitters")
576 .IsRequired()
577 .HasColumnType("bit");
578
579 b.Property<bool?>("UpdateSubmodules")
580 .IsRequired()
581 .HasColumnType("bit");
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 SqlServerPropertyBuilderExtensions.UseIdentityColumn(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 SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
621
622 b.Property<string>("CommitSha")
623 .IsRequired()
624 .HasMaxLength(40)
625 .HasColumnType("nvarchar(40)");
626
627 b.Property<long>("InstanceId")
628 .HasColumnType("bigint");
629
630 b.Property<string>("OriginCommitSha")
631 .IsRequired()
632 .HasMaxLength(40)
633 .HasColumnType("nvarchar(40)");
634
635 b.Property<DateTimeOffset>("Timestamp")
636 .HasColumnType("datetimeoffset");
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 SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
653
654 b.Property<string>("Author")
655 .IsRequired()
656 .HasColumnType("nvarchar(max)");
657
658 b.Property<string>("BodyAtMerge")
659 .IsRequired()
660 .HasColumnType("nvarchar(max)");
661
662 b.Property<string>("Comment")
663 .HasMaxLength(10000)
664 .HasColumnType("nvarchar(max)");
665
666 b.Property<DateTimeOffset>("MergedAt")
667 .HasColumnType("datetimeoffset");
668
669 b.Property<long>("MergedById")
670 .HasColumnType("bigint");
671
672 b.Property<int>("Number")
673 .HasColumnType("int");
674
675 b.Property<long?>("PrimaryRevisionInformationId")
676 .IsRequired()
677 .HasColumnType("bigint");
678
679 b.Property<string>("TargetCommitSha")
680 .IsRequired()
681 .HasMaxLength(40)
682 .HasColumnType("nvarchar(40)");
683
684 b.Property<string>("TitleAtMerge")
685 .IsRequired()
686 .HasColumnType("nvarchar(max)");
687
688 b.Property<string>("Url")
689 .IsRequired()
690 .HasColumnType("nvarchar(max)");
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 SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long?>("Id"));
709
710 b.Property<string>("CanonicalName")
711 .IsRequired()
712 .HasMaxLength(100)
713 .HasColumnType("nvarchar(100)");
714
715 b.Property<DateTimeOffset?>("CreatedAt")
716 .IsRequired()
717 .HasColumnType("datetimeoffset");
718
719 b.Property<long?>("CreatedById")
720 .HasColumnType("bigint");
721
722 b.Property<bool?>("Enabled")
723 .IsRequired()
724 .HasColumnType("bit");
725
726 b.Property<long?>("GroupId")
727 .HasColumnType("bigint");
728
729 b.Property<DateTimeOffset?>("LastPasswordUpdate")
730 .HasColumnType("datetimeoffset");
731
732 b.Property<string>("Name")
733 .IsRequired()
734 .HasMaxLength(100)
735 .HasColumnType("nvarchar(100)");
736
737 b.Property<string>("PasswordHash")
738 .HasColumnType("nvarchar(max)");
739
740 b.Property<string>("SystemIdentifier")
741 .HasMaxLength(100)
742 .HasColumnType("nvarchar(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 .HasFilter("[SystemIdentifier] IS NOT NULL");
756
757 b.ToTable("Users");
758 });
759
760 modelBuilder.Entity("Tgstation.Server.Host.Models.UserGroup", b =>
761 {
762 b.Property<long?>("Id")
763 .ValueGeneratedOnAdd()
764 .HasColumnType("bigint");
765
766 SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long?>("Id"));
767
768 b.Property<string>("Name")
769 .IsRequired()
770 .HasMaxLength(100)
771 .HasColumnType("nvarchar(100)");
772
773 b.HasKey("Id");
774
775 b.HasIndex("Name")
776 .IsUnique();
777
778 b.ToTable("Groups");
779 });
780
781 modelBuilder.Entity("Tgstation.Server.Host.Models.ChatBot", b =>
782 {
783 b.HasOne("Tgstation.Server.Host.Models.Instance", "Instance")
784 .WithMany("ChatSettings")
785 .HasForeignKey("InstanceId")
786 .OnDelete(DeleteBehavior.Cascade)
787 .IsRequired();
788
789 b.Navigation("Instance");
790 });
791
792 modelBuilder.Entity("Tgstation.Server.Host.Models.ChatChannel", b =>
793 {
794 b.HasOne("Tgstation.Server.Host.Models.ChatBot", "ChatSettings")
795 .WithMany("Channels")
796 .HasForeignKey("ChatSettingsId")
797 .OnDelete(DeleteBehavior.Cascade)
798 .IsRequired();
799
800 b.Navigation("ChatSettings");
801 });
802
803 modelBuilder.Entity("Tgstation.Server.Host.Models.CompileJob", b =>
804 {
805 b.HasOne("Tgstation.Server.Host.Models.Job", "Job")
806 .WithOne()
807 .HasForeignKey("Tgstation.Server.Host.Models.CompileJob", "JobId")
808 .OnDelete(DeleteBehavior.Cascade)
809 .IsRequired();
810
811 b.HasOne("Tgstation.Server.Host.Models.RevisionInformation", "RevisionInformation")
812 .WithMany("CompileJobs")
813 .HasForeignKey("RevisionInformationId")
814 .OnDelete(DeleteBehavior.ClientNoAction)
815 .IsRequired();
816
817 b.Navigation("Job");
818
819 b.Navigation("RevisionInformation");
820 });
821
822 modelBuilder.Entity("Tgstation.Server.Host.Models.DreamDaemonSettings", b =>
823 {
824 b.HasOne("Tgstation.Server.Host.Models.Instance", "Instance")
825 .WithOne("DreamDaemonSettings")
826 .HasForeignKey("Tgstation.Server.Host.Models.DreamDaemonSettings", "InstanceId")
827 .OnDelete(DeleteBehavior.Cascade)
828 .IsRequired();
829
830 b.Navigation("Instance");
831 });
832
833 modelBuilder.Entity("Tgstation.Server.Host.Models.DreamMakerSettings", b =>
834 {
835 b.HasOne("Tgstation.Server.Host.Models.Instance", "Instance")
836 .WithOne("DreamMakerSettings")
837 .HasForeignKey("Tgstation.Server.Host.Models.DreamMakerSettings", "InstanceId")
838 .OnDelete(DeleteBehavior.Cascade)
839 .IsRequired();
840
841 b.Navigation("Instance");
842 });
843
844 modelBuilder.Entity("Tgstation.Server.Host.Models.InstancePermissionSet", b =>
845 {
846 b.HasOne("Tgstation.Server.Host.Models.Instance", "Instance")
847 .WithMany("InstancePermissionSets")
848 .HasForeignKey("InstanceId")
849 .OnDelete(DeleteBehavior.Cascade)
850 .IsRequired();
851
852 b.HasOne("Tgstation.Server.Host.Models.PermissionSet", "PermissionSet")
853 .WithMany("InstancePermissionSets")
854 .HasForeignKey("PermissionSetId")
855 .OnDelete(DeleteBehavior.Cascade)
856 .IsRequired();
857
858 b.Navigation("Instance");
859
860 b.Navigation("PermissionSet");
861 });
862
863 modelBuilder.Entity("Tgstation.Server.Host.Models.Job", b =>
864 {
865 b.HasOne("Tgstation.Server.Host.Models.User", "CancelledBy")
866 .WithMany()
867 .HasForeignKey("CancelledById");
868
869 b.HasOne("Tgstation.Server.Host.Models.Instance", "Instance")
870 .WithMany("Jobs")
871 .HasForeignKey("InstanceId")
872 .OnDelete(DeleteBehavior.Cascade)
873 .IsRequired();
874
875 b.HasOne("Tgstation.Server.Host.Models.User", "StartedBy")
876 .WithMany()
877 .HasForeignKey("StartedById")
878 .OnDelete(DeleteBehavior.Cascade)
879 .IsRequired();
880
881 b.Navigation("CancelledBy");
882
883 b.Navigation("Instance");
884
885 b.Navigation("StartedBy");
886 });
887
888 modelBuilder.Entity("Tgstation.Server.Host.Models.OAuthConnection", b =>
889 {
890 b.HasOne("Tgstation.Server.Host.Models.User", "User")
891 .WithMany("OAuthConnections")
892 .HasForeignKey("UserId")
893 .OnDelete(DeleteBehavior.Cascade);
894
895 b.Navigation("User");
896 });
897
898 modelBuilder.Entity("Tgstation.Server.Host.Models.PermissionSet", b =>
899 {
900 b.HasOne("Tgstation.Server.Host.Models.UserGroup", "Group")
901 .WithOne("PermissionSet")
902 .HasForeignKey("Tgstation.Server.Host.Models.PermissionSet", "GroupId")
903 .OnDelete(DeleteBehavior.Cascade);
904
905 b.HasOne("Tgstation.Server.Host.Models.User", "User")
906 .WithOne("PermissionSet")
907 .HasForeignKey("Tgstation.Server.Host.Models.PermissionSet", "UserId")
908 .OnDelete(DeleteBehavior.Cascade);
909
910 b.Navigation("Group");
911
912 b.Navigation("User");
913 });
914
915 modelBuilder.Entity("Tgstation.Server.Host.Models.ReattachInformation", b =>
916 {
917 b.HasOne("Tgstation.Server.Host.Models.CompileJob", "CompileJob")
918 .WithMany()
919 .HasForeignKey("CompileJobId")
920 .OnDelete(DeleteBehavior.Cascade)
921 .IsRequired();
922
923 b.HasOne("Tgstation.Server.Host.Models.CompileJob", "InitialCompileJob")
924 .WithMany()
925 .HasForeignKey("InitialCompileJobId");
926
927 b.Navigation("CompileJob");
928
929 b.Navigation("InitialCompileJob");
930 });
931
932 modelBuilder.Entity("Tgstation.Server.Host.Models.RepositorySettings", b =>
933 {
934 b.HasOne("Tgstation.Server.Host.Models.Instance", "Instance")
935 .WithOne("RepositorySettings")
936 .HasForeignKey("Tgstation.Server.Host.Models.RepositorySettings", "InstanceId")
937 .OnDelete(DeleteBehavior.Cascade)
938 .IsRequired();
939
940 b.Navigation("Instance");
941 });
942
943 modelBuilder.Entity("Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
944 {
945 b.HasOne("Tgstation.Server.Host.Models.RevisionInformation", "RevisionInformation")
946 .WithMany("ActiveTestMerges")
947 .HasForeignKey("RevisionInformationId")
948 .OnDelete(DeleteBehavior.Cascade)
949 .IsRequired();
950
951 b.HasOne("Tgstation.Server.Host.Models.TestMerge", "TestMerge")
952 .WithMany("RevisonInformations")
953 .HasForeignKey("TestMergeId")
954 .OnDelete(DeleteBehavior.ClientNoAction)
955 .IsRequired();
956
957 b.Navigation("RevisionInformation");
958
959 b.Navigation("TestMerge");
960 });
961
962 modelBuilder.Entity("Tgstation.Server.Host.Models.RevisionInformation", b =>
963 {
964 b.HasOne("Tgstation.Server.Host.Models.Instance", "Instance")
965 .WithMany("RevisionInformations")
966 .HasForeignKey("InstanceId")
967 .OnDelete(DeleteBehavior.Cascade)
968 .IsRequired();
969
970 b.Navigation("Instance");
971 });
972
973 modelBuilder.Entity("Tgstation.Server.Host.Models.TestMerge", b =>
974 {
975 b.HasOne("Tgstation.Server.Host.Models.User", "MergedBy")
976 .WithMany("TestMerges")
977 .HasForeignKey("MergedById")
978 .OnDelete(DeleteBehavior.Restrict)
979 .IsRequired();
980
981 b.HasOne("Tgstation.Server.Host.Models.RevisionInformation", "PrimaryRevisionInformation")
982 .WithOne("PrimaryTestMerge")
983 .HasForeignKey("Tgstation.Server.Host.Models.TestMerge", "PrimaryRevisionInformationId")
984 .OnDelete(DeleteBehavior.Cascade)
985 .IsRequired();
986
987 b.Navigation("MergedBy");
988
989 b.Navigation("PrimaryRevisionInformation");
990 });
991
992 modelBuilder.Entity("Tgstation.Server.Host.Models.User", b =>
993 {
994 b.HasOne("Tgstation.Server.Host.Models.User", "CreatedBy")
995 .WithMany("CreatedUsers")
996 .HasForeignKey("CreatedById");
997
998 b.HasOne("Tgstation.Server.Host.Models.UserGroup", "Group")
999 .WithMany("Users")
1000 .HasForeignKey("GroupId");
1001
1002 b.Navigation("CreatedBy");
1003
1004 b.Navigation("Group");
1005 });
1006
1007 modelBuilder.Entity("Tgstation.Server.Host.Models.ChatBot", b =>
1008 {
1009 b.Navigation("Channels");
1010 });
1011
1012 modelBuilder.Entity("Tgstation.Server.Host.Models.Instance", b =>
1013 {
1014 b.Navigation("ChatSettings");
1015
1016 b.Navigation("DreamDaemonSettings");
1017
1018 b.Navigation("DreamMakerSettings");
1019
1020 b.Navigation("InstancePermissionSets");
1021
1022 b.Navigation("Jobs");
1023
1024 b.Navigation("RepositorySettings");
1025
1026 b.Navigation("RevisionInformations");
1027 });
1028
1029 modelBuilder.Entity("Tgstation.Server.Host.Models.PermissionSet", b =>
1030 {
1031 b.Navigation("InstancePermissionSets");
1032 });
1033
1034 modelBuilder.Entity("Tgstation.Server.Host.Models.RevisionInformation", b =>
1035 {
1036 b.Navigation("ActiveTestMerges");
1037
1038 b.Navigation("CompileJobs");
1039
1040 b.Navigation("PrimaryTestMerge");
1041 });
1042
1043 modelBuilder.Entity("Tgstation.Server.Host.Models.TestMerge", b =>
1044 {
1045 b.Navigation("RevisonInformations");
1046 });
1047
1048 modelBuilder.Entity("Tgstation.Server.Host.Models.User", b =>
1049 {
1050 b.Navigation("CreatedUsers");
1051
1052 b.Navigation("OAuthConnections");
1053
1054 b.Navigation("PermissionSet");
1055
1056 b.Navigation("TestMerges");
1057 });
1058
1059 modelBuilder.Entity("Tgstation.Server.Host.Models.UserGroup", b =>
1060 {
1061 b.Navigation("PermissionSet")
1062 .IsRequired();
1063
1064 b.Navigation("Users");
1065 });
1066#pragma warning restore 612, 618
1067 }
1068 }
1069}