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