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