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