tgstation-server 6.12.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
20200423004015_MSCheckpointRebuild.Designer.cs
Go to the documentation of this file.
1// <auto-generated />
2using System;
3using Microsoft.EntityFrameworkCore;
4using Microsoft.EntityFrameworkCore.Infrastructure;
5using Microsoft.EntityFrameworkCore.Metadata;
6using Microsoft.EntityFrameworkCore.Migrations;
7
9{
10 [DbContext(typeof(SqlServerDatabaseContext))]
11 [Migration("20200423004015_MSCheckpointRebuild")]
12 partial class MSCheckpointRebuild
13 {
15 protected override void BuildTargetModel(ModelBuilder modelBuilder)
16 {
17#pragma warning disable 612, 618
18 modelBuilder
19 .HasAnnotation("ProductVersion", "3.1.3")
20 .HasAnnotation("Relational:MaxIdentifierLength", 128)
21 .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
22
23 modelBuilder.Entity("Tgstation.Server.Host.Models.ChatBot", b =>
24 {
25 b.Property<long>("Id")
26 .ValueGeneratedOnAdd()
27 .HasColumnType("bigint")
28 .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
29
30 b.Property<int>("ChannelLimit")
31 .HasColumnType("int");
32
33 b.Property<string>("ConnectionString")
34 .IsRequired()
35 .HasColumnType("nvarchar(max)")
36 .HasMaxLength(10000);
37
38 b.Property<bool?>("Enabled")
39 .HasColumnType("bit");
40
41 b.Property<long>("InstanceId")
42 .HasColumnType("bigint");
43
44 b.Property<string>("Name")
45 .IsRequired()
46 .HasColumnType("nvarchar(100)")
47 .HasMaxLength(100);
48
49 b.Property<int>("Provider")
50 .HasColumnType("int");
51
52 b.Property<long>("ReconnectionInterval")
53 .HasColumnType("bigint");
54
55 b.HasKey("Id");
56
57 b.HasIndex("InstanceId", "Name")
58 .IsUnique();
59
60 b.ToTable("ChatBots");
61 });
62
63 modelBuilder.Entity("Tgstation.Server.Host.Models.ChatChannel", b =>
64 {
65 b.Property<long>("Id")
66 .ValueGeneratedOnAdd()
67 .HasColumnType("bigint")
68 .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
69
70 b.Property<long>("ChatSettingsId")
71 .HasColumnType("bigint");
72
73 b.Property<decimal?>("DiscordChannelId")
74 .HasColumnType("decimal(20,0)");
75
76 b.Property<string>("IrcChannel")
77 .HasColumnType("nvarchar(100)")
78 .HasMaxLength(100);
79
80 b.Property<bool?>("IsAdminChannel")
81 .IsRequired()
82 .HasColumnType("bit");
83
84 b.Property<bool?>("IsUpdatesChannel")
85 .IsRequired()
86 .HasColumnType("bit");
87
88 b.Property<bool?>("IsWatchdogChannel")
89 .IsRequired()
90 .HasColumnType("bit");
91
92 b.Property<string>("Tag")
93 .HasColumnType("nvarchar(max)")
94 .HasMaxLength(10000);
95
96 b.HasKey("Id");
97
98 b.HasIndex("ChatSettingsId", "DiscordChannelId")
99 .IsUnique()
100 .HasFilter("[DiscordChannelId] IS NOT NULL");
101
102 b.HasIndex("ChatSettingsId", "IrcChannel")
103 .IsUnique()
104 .HasFilter("[IrcChannel] IS NOT NULL");
105
106 b.ToTable("ChatChannels");
107 });
108
109 modelBuilder.Entity("Tgstation.Server.Host.Models.CompileJob", b =>
110 {
111 b.Property<long>("Id")
112 .ValueGeneratedOnAdd()
113 .HasColumnType("bigint")
114 .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
115
116 b.Property<string>("ByondVersion")
117 .IsRequired()
118 .HasColumnType("nvarchar(max)");
119
120 b.Property<Guid?>("DirectoryName")
121 .IsRequired()
122 .HasColumnType("uniqueidentifier");
123
124 b.Property<string>("DmeName")
125 .IsRequired()
126 .HasColumnType("nvarchar(max)");
127
128 b.Property<long>("JobId")
129 .HasColumnType("bigint");
130
131 b.Property<int>("MinimumSecurityLevel")
132 .HasColumnType("int");
133
134 b.Property<string>("Output")
135 .IsRequired()
136 .HasColumnType("nvarchar(max)");
137
138 b.Property<long>("RevisionInformationId")
139 .HasColumnType("bigint");
140
141 b.HasKey("Id");
142
143 b.HasIndex("DirectoryName");
144
145 b.HasIndex("JobId")
146 .IsUnique();
147
148 b.HasIndex("RevisionInformationId");
149
150 b.ToTable("CompileJobs");
151 });
152
153 modelBuilder.Entity("Tgstation.Server.Host.Models.DreamDaemonSettings", b =>
154 {
155 b.Property<long>("Id")
156 .ValueGeneratedOnAdd()
157 .HasColumnType("bigint")
158 .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
159
160 b.Property<string>("AccessToken")
161 .HasColumnType("nvarchar(max)");
162
163 b.Property<bool?>("AllowWebClient")
164 .IsRequired()
165 .HasColumnType("bit");
166
167 b.Property<bool?>("AutoStart")
168 .IsRequired()
169 .HasColumnType("bit");
170
171 b.Property<long>("InstanceId")
172 .HasColumnType("bigint");
173
174 b.Property<int>("PrimaryPort")
175 .HasColumnType("int");
176
177 b.Property<int?>("ProcessId")
178 .HasColumnType("int");
179
180 b.Property<int>("SecondaryPort")
181 .HasColumnType("int");
182
183 b.Property<int>("SecurityLevel")
184 .HasColumnType("int");
185
186 b.Property<bool?>("SoftRestart")
187 .IsRequired()
188 .HasColumnType("bit");
189
190 b.Property<bool?>("SoftShutdown")
191 .IsRequired()
192 .HasColumnType("bit");
193
194 b.Property<long>("StartupTimeout")
195 .HasColumnType("bigint");
196
197 b.HasKey("Id");
198
199 b.HasIndex("InstanceId")
200 .IsUnique();
201
202 b.ToTable("DreamDaemonSettings");
203 });
204
205 modelBuilder.Entity("Tgstation.Server.Host.Models.DreamMakerSettings", b =>
206 {
207 b.Property<long>("Id")
208 .ValueGeneratedOnAdd()
209 .HasColumnType("bigint")
210 .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
211
212 b.Property<int>("ApiValidationPort")
213 .HasColumnType("int");
214
215 b.Property<int>("ApiValidationSecurityLevel")
216 .HasColumnType("int");
217
218 b.Property<long>("InstanceId")
219 .HasColumnType("bigint");
220
221 b.Property<string>("ProjectName")
222 .HasColumnType("nvarchar(max)")
223 .HasMaxLength(10000);
224
225 b.HasKey("Id");
226
227 b.HasIndex("InstanceId")
228 .IsUnique();
229
230 b.ToTable("DreamMakerSettings");
231 });
232
233 modelBuilder.Entity("Tgstation.Server.Host.Models.Instance", b =>
234 {
235 b.Property<long>("Id")
236 .ValueGeneratedOnAdd()
237 .HasColumnType("bigint")
238 .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
239
240 b.Property<long>("AutoUpdateInterval")
241 .HasColumnType("bigint");
242
243 b.Property<int>("ChatBotLimit")
244 .HasColumnType("int");
245
246 b.Property<int>("ConfigurationType")
247 .HasColumnType("int");
248
249 b.Property<string>("Name")
250 .IsRequired()
251 .HasColumnType("nvarchar(max)")
252 .HasMaxLength(10000);
253
254 b.Property<bool?>("Online")
255 .IsRequired()
256 .HasColumnType("bit");
257
258 b.Property<string>("Path")
259 .IsRequired()
260 .HasColumnType("nvarchar(450)");
261
262 b.HasKey("Id");
263
264 b.HasIndex("Path")
265 .IsUnique();
266
267 b.ToTable("Instances");
268 });
269
270 modelBuilder.Entity("Tgstation.Server.Host.Models.InstanceUser", b =>
271 {
272 b.Property<long>("Id")
273 .ValueGeneratedOnAdd()
274 .HasColumnType("bigint")
275 .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
276
277 b.Property<decimal>("ByondRights")
278 .HasColumnType("decimal(20,0)");
279
280 b.Property<decimal>("ChatBotRights")
281 .HasColumnType("decimal(20,0)");
282
283 b.Property<decimal>("ConfigurationRights")
284 .HasColumnType("decimal(20,0)");
285
286 b.Property<decimal>("DreamDaemonRights")
287 .HasColumnType("decimal(20,0)");
288
289 b.Property<decimal>("DreamMakerRights")
290 .HasColumnType("decimal(20,0)");
291
292 b.Property<long>("InstanceId")
293 .HasColumnType("bigint");
294
295 b.Property<decimal>("InstanceUserRights")
296 .HasColumnType("decimal(20,0)");
297
298 b.Property<decimal>("RepositoryRights")
299 .HasColumnType("decimal(20,0)");
300
301 b.Property<long?>("UserId")
302 .IsRequired()
303 .HasColumnType("bigint");
304
305 b.HasKey("Id");
306
307 b.HasIndex("InstanceId");
308
309 b.HasIndex("UserId", "InstanceId")
310 .IsUnique();
311
312 b.ToTable("InstanceUsers");
313 });
314
315 modelBuilder.Entity("Tgstation.Server.Host.Models.Job", b =>
316 {
317 b.Property<long>("Id")
318 .ValueGeneratedOnAdd()
319 .HasColumnType("bigint")
320 .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
321
322 b.Property<decimal?>("CancelRight")
323 .HasColumnType("decimal(20,0)");
324
325 b.Property<decimal?>("CancelRightsType")
326 .HasColumnType("decimal(20,0)");
327
328 b.Property<bool?>("Cancelled")
329 .IsRequired()
330 .HasColumnType("bit");
331
332 b.Property<long?>("CancelledById")
333 .HasColumnType("bigint");
334
335 b.Property<string>("Description")
336 .IsRequired()
337 .HasColumnType("nvarchar(max)");
338
339 b.Property<string>("ExceptionDetails")
340 .HasColumnType("nvarchar(max)");
341
342 b.Property<long>("InstanceId")
343 .HasColumnType("bigint");
344
345 b.Property<DateTimeOffset?>("StartedAt")
346 .IsRequired()
347 .HasColumnType("datetimeoffset");
348
349 b.Property<long>("StartedById")
350 .HasColumnType("bigint");
351
352 b.Property<DateTimeOffset?>("StoppedAt")
353 .HasColumnType("datetimeoffset");
354
355 b.HasKey("Id");
356
357 b.HasIndex("CancelledById");
358
359 b.HasIndex("InstanceId");
360
361 b.HasIndex("StartedById");
362
363 b.ToTable("Jobs");
364 });
365
366 modelBuilder.Entity("Tgstation.Server.Host.Models.ReattachInformation", b =>
367 {
368 b.Property<long>("Id")
369 .ValueGeneratedOnAdd()
370 .HasColumnType("bigint")
371 .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
372
373 b.Property<string>("AccessIdentifier")
374 .IsRequired()
375 .HasColumnType("nvarchar(max)");
376
377 b.Property<string>("ChatChannelsJson")
378 .IsRequired()
379 .HasColumnType("nvarchar(max)");
380
381 b.Property<string>("ChatCommandsJson")
382 .IsRequired()
383 .HasColumnType("nvarchar(max)");
384
385 b.Property<long>("CompileJobId")
386 .HasColumnType("bigint");
387
388 b.Property<bool>("IsPrimary")
389 .HasColumnType("bit");
390
391 b.Property<int>("Port")
392 .HasColumnType("int");
393
394 b.Property<int>("ProcessId")
395 .HasColumnType("int");
396
397 b.Property<int>("RebootState")
398 .HasColumnType("int");
399
400 b.Property<string>("ServerCommandsJson")
401 .IsRequired()
402 .HasColumnType("nvarchar(max)");
403
404 b.HasKey("Id");
405
406 b.HasIndex("CompileJobId");
407
408 b.ToTable("ReattachInformations");
409 });
410
411 modelBuilder.Entity("Tgstation.Server.Host.Models.RepositorySettings", b =>
412 {
413 b.Property<long>("Id")
414 .ValueGeneratedOnAdd()
415 .HasColumnType("bigint")
416 .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
417
418 b.Property<string>("AccessToken")
419 .HasColumnType("nvarchar(max)")
420 .HasMaxLength(10000);
421
422 b.Property<string>("AccessUser")
423 .HasColumnType("nvarchar(max)")
424 .HasMaxLength(10000);
425
426 b.Property<bool?>("AutoUpdatesKeepTestMerges")
427 .IsRequired()
428 .HasColumnType("bit");
429
430 b.Property<bool?>("AutoUpdatesSynchronize")
431 .IsRequired()
432 .HasColumnType("bit");
433
434 b.Property<string>("CommitterEmail")
435 .IsRequired()
436 .HasColumnType("nvarchar(max)")
437 .HasMaxLength(10000);
438
439 b.Property<string>("CommitterName")
440 .IsRequired()
441 .HasColumnType("nvarchar(max)")
442 .HasMaxLength(10000);
443
444 b.Property<long>("InstanceId")
445 .HasColumnType("bigint");
446
447 b.Property<bool?>("PostTestMergeComment")
448 .IsRequired()
449 .HasColumnType("bit");
450
451 b.Property<bool?>("PushTestMergeCommits")
452 .IsRequired()
453 .HasColumnType("bit");
454
455 b.Property<bool?>("ShowTestMergeCommitters")
456 .IsRequired()
457 .HasColumnType("bit");
458
459 b.HasKey("Id");
460
461 b.HasIndex("InstanceId")
462 .IsUnique();
463
464 b.ToTable("RepositorySettings");
465 });
466
467 modelBuilder.Entity("Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
468 {
469 b.Property<long>("Id")
470 .ValueGeneratedOnAdd()
471 .HasColumnType("bigint")
472 .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
473
474 b.Property<long>("RevisionInformationId")
475 .HasColumnType("bigint");
476
477 b.Property<long>("TestMergeId")
478 .HasColumnType("bigint");
479
480 b.HasKey("Id");
481
482 b.HasIndex("RevisionInformationId");
483
484 b.HasIndex("TestMergeId");
485
486 b.ToTable("RevInfoTestMerges");
487 });
488
489 modelBuilder.Entity("Tgstation.Server.Host.Models.RevisionInformation", b =>
490 {
491 b.Property<long>("Id")
492 .ValueGeneratedOnAdd()
493 .HasColumnType("bigint")
494 .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
495
496 b.Property<string>("CommitSha")
497 .IsRequired()
498 .HasColumnType("nvarchar(40)")
499 .HasMaxLength(40);
500
501 b.Property<long>("InstanceId")
502 .HasColumnType("bigint");
503
504 b.Property<string>("OriginCommitSha")
505 .IsRequired()
506 .HasColumnType("nvarchar(40)")
507 .HasMaxLength(40);
508
509 b.HasKey("Id");
510
511 b.HasIndex("InstanceId", "CommitSha")
512 .IsUnique();
513
514 b.ToTable("RevisionInformations");
515 });
516
517 modelBuilder.Entity("Tgstation.Server.Host.Models.TestMerge", b =>
518 {
519 b.Property<long>("Id")
520 .ValueGeneratedOnAdd()
521 .HasColumnType("bigint")
522 .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
523
524 b.Property<string>("Author")
525 .IsRequired()
526 .HasColumnType("nvarchar(max)");
527
528 b.Property<string>("BodyAtMerge")
529 .IsRequired()
530 .HasColumnType("nvarchar(max)");
531
532 b.Property<string>("Comment")
533 .HasColumnType("nvarchar(max)")
534 .HasMaxLength(10000);
535
536 b.Property<DateTimeOffset>("MergedAt")
537 .HasColumnType("datetimeoffset");
538
539 b.Property<long>("MergedById")
540 .HasColumnType("bigint");
541
542 b.Property<int>("Number")
543 .HasColumnType("int");
544
545 b.Property<long?>("PrimaryRevisionInformationId")
546 .IsRequired()
547 .HasColumnType("bigint");
548
549 b.Property<string>("PullRequestRevision")
550 .IsRequired()
551 .HasColumnType("nvarchar(40)")
552 .HasMaxLength(40);
553
554 b.Property<string>("TitleAtMerge")
555 .IsRequired()
556 .HasColumnType("nvarchar(max)");
557
558 b.Property<string>("Url")
559 .IsRequired()
560 .HasColumnType("nvarchar(max)");
561
562 b.HasKey("Id");
563
564 b.HasIndex("MergedById");
565
566 b.HasIndex("PrimaryRevisionInformationId")
567 .IsUnique();
568
569 b.ToTable("TestMerges");
570 });
571
572 modelBuilder.Entity("Tgstation.Server.Host.Models.User", b =>
573 {
574 b.Property<long?>("Id")
575 .ValueGeneratedOnAdd()
576 .HasColumnType("bigint")
577 .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
578
579 b.Property<decimal>("AdministrationRights")
580 .HasColumnType("decimal(20,0)");
581
582 b.Property<string>("CanonicalName")
583 .IsRequired()
584 .HasColumnType("nvarchar(450)");
585
586 b.Property<DateTimeOffset?>("CreatedAt")
587 .IsRequired()
588 .HasColumnType("datetimeoffset");
589
590 b.Property<long?>("CreatedById")
591 .HasColumnType("bigint");
592
593 b.Property<bool?>("Enabled")
594 .IsRequired()
595 .HasColumnType("bit");
596
597 b.Property<decimal>("InstanceManagerRights")
598 .HasColumnType("decimal(20,0)");
599
600 b.Property<DateTimeOffset?>("LastPasswordUpdate")
601 .HasColumnType("datetimeoffset");
602
603 b.Property<string>("Name")
604 .IsRequired()
605 .HasColumnType("nvarchar(max)")
606 .HasMaxLength(10000);
607
608 b.Property<string>("PasswordHash")
609 .HasColumnType("nvarchar(max)");
610
611 b.Property<string>("SystemIdentifier")
612 .HasColumnType("nvarchar(450)");
613
614 b.HasKey("Id");
615
616 b.HasIndex("CanonicalName")
617 .IsUnique();
618
619 b.HasIndex("CreatedById");
620
621 b.HasIndex("SystemIdentifier")
622 .IsUnique()
623 .HasFilter("[SystemIdentifier] IS NOT NULL");
624
625 b.ToTable("Users");
626 });
627
628 modelBuilder.Entity("Tgstation.Server.Host.Models.WatchdogReattachInformation", b =>
629 {
630 b.Property<long>("Id")
631 .ValueGeneratedOnAdd()
632 .HasColumnType("bigint")
633 .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn);
634
635 b.Property<long?>("AlphaId")
636 .HasColumnType("bigint");
637
638 b.Property<bool>("AlphaIsActive")
639 .HasColumnType("bit");
640
641 b.Property<long?>("BravoId")
642 .HasColumnType("bigint");
643
644 b.Property<long>("InstanceId")
645 .HasColumnType("bigint");
646
647 b.HasKey("Id");
648
649 b.HasIndex("AlphaId");
650
651 b.HasIndex("BravoId");
652
653 b.HasIndex("InstanceId")
654 .IsUnique();
655
656 b.ToTable("WatchdogReattachInformations");
657 });
658
659 modelBuilder.Entity("Tgstation.Server.Host.Models.ChatBot", b =>
660 {
661 b.HasOne("Tgstation.Server.Host.Models.Instance", "Instance")
662 .WithMany("ChatSettings")
663 .HasForeignKey("InstanceId")
664 .OnDelete(DeleteBehavior.Cascade)
665 .IsRequired();
666 });
667
668 modelBuilder.Entity("Tgstation.Server.Host.Models.ChatChannel", b =>
669 {
670 b.HasOne("Tgstation.Server.Host.Models.ChatBot", "ChatSettings")
671 .WithMany("Channels")
672 .HasForeignKey("ChatSettingsId")
673 .OnDelete(DeleteBehavior.Cascade)
674 .IsRequired();
675 });
676
677 modelBuilder.Entity("Tgstation.Server.Host.Models.CompileJob", b =>
678 {
679 b.HasOne("Tgstation.Server.Host.Models.Job", "Job")
680 .WithOne()
681 .HasForeignKey("Tgstation.Server.Host.Models.CompileJob", "JobId")
682 .OnDelete(DeleteBehavior.Restrict)
683 .IsRequired();
684
685 b.HasOne("Tgstation.Server.Host.Models.RevisionInformation", "RevisionInformation")
686 .WithMany("CompileJobs")
687 .HasForeignKey("RevisionInformationId")
688 .OnDelete(DeleteBehavior.Cascade)
689 .IsRequired();
690 });
691
692 modelBuilder.Entity("Tgstation.Server.Host.Models.DreamDaemonSettings", b =>
693 {
694 b.HasOne("Tgstation.Server.Host.Models.Instance", "Instance")
695 .WithOne("DreamDaemonSettings")
696 .HasForeignKey("Tgstation.Server.Host.Models.DreamDaemonSettings", "InstanceId")
697 .OnDelete(DeleteBehavior.Cascade)
698 .IsRequired();
699 });
700
701 modelBuilder.Entity("Tgstation.Server.Host.Models.DreamMakerSettings", b =>
702 {
703 b.HasOne("Tgstation.Server.Host.Models.Instance", "Instance")
704 .WithOne("DreamMakerSettings")
705 .HasForeignKey("Tgstation.Server.Host.Models.DreamMakerSettings", "InstanceId")
706 .OnDelete(DeleteBehavior.Cascade)
707 .IsRequired();
708 });
709
710 modelBuilder.Entity("Tgstation.Server.Host.Models.InstanceUser", b =>
711 {
712 b.HasOne("Tgstation.Server.Host.Models.Instance", "Instance")
713 .WithMany("InstanceUsers")
714 .HasForeignKey("InstanceId")
715 .OnDelete(DeleteBehavior.Cascade)
716 .IsRequired();
717
718 b.HasOne("Tgstation.Server.Host.Models.User", null)
719 .WithMany("InstanceUsers")
720 .HasForeignKey("UserId")
721 .OnDelete(DeleteBehavior.Cascade)
722 .IsRequired();
723 });
724
725 modelBuilder.Entity("Tgstation.Server.Host.Models.Job", b =>
726 {
727 b.HasOne("Tgstation.Server.Host.Models.User", "CancelledBy")
728 .WithMany()
729 .HasForeignKey("CancelledById");
730
731 b.HasOne("Tgstation.Server.Host.Models.Instance", "Instance")
732 .WithMany("Jobs")
733 .HasForeignKey("InstanceId")
734 .OnDelete(DeleteBehavior.Cascade)
735 .IsRequired();
736
737 b.HasOne("Tgstation.Server.Host.Models.User", "StartedBy")
738 .WithMany()
739 .HasForeignKey("StartedById")
740 .OnDelete(DeleteBehavior.Cascade)
741 .IsRequired();
742 });
743
744 modelBuilder.Entity("Tgstation.Server.Host.Models.ReattachInformation", b =>
745 {
746 b.HasOne("Tgstation.Server.Host.Models.CompileJob", "CompileJob")
747 .WithMany()
748 .HasForeignKey("CompileJobId")
749 .OnDelete(DeleteBehavior.Cascade)
750 .IsRequired();
751 });
752
753 modelBuilder.Entity("Tgstation.Server.Host.Models.RepositorySettings", b =>
754 {
755 b.HasOne("Tgstation.Server.Host.Models.Instance", "Instance")
756 .WithOne("RepositorySettings")
757 .HasForeignKey("Tgstation.Server.Host.Models.RepositorySettings", "InstanceId")
758 .OnDelete(DeleteBehavior.Cascade)
759 .IsRequired();
760 });
761
762 modelBuilder.Entity("Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
763 {
764 b.HasOne("Tgstation.Server.Host.Models.RevisionInformation", "RevisionInformation")
765 .WithMany("ActiveTestMerges")
766 .HasForeignKey("RevisionInformationId")
767 .OnDelete(DeleteBehavior.Cascade)
768 .IsRequired();
769
770 b.HasOne("Tgstation.Server.Host.Models.TestMerge", "TestMerge")
771 .WithMany("RevisonInformations")
772 .HasForeignKey("TestMergeId")
773 .OnDelete(DeleteBehavior.Cascade)
774 .IsRequired();
775 });
776
777 modelBuilder.Entity("Tgstation.Server.Host.Models.RevisionInformation", b =>
778 {
779 b.HasOne("Tgstation.Server.Host.Models.Instance", "Instance")
780 .WithMany("RevisionInformations")
781 .HasForeignKey("InstanceId")
782 .OnDelete(DeleteBehavior.Cascade)
783 .IsRequired();
784 });
785
786 modelBuilder.Entity("Tgstation.Server.Host.Models.TestMerge", b =>
787 {
788 b.HasOne("Tgstation.Server.Host.Models.User", "MergedBy")
789 .WithMany("TestMerges")
790 .HasForeignKey("MergedById")
791 .OnDelete(DeleteBehavior.Restrict)
792 .IsRequired();
793
794 b.HasOne("Tgstation.Server.Host.Models.RevisionInformation", "PrimaryRevisionInformation")
795 .WithOne("PrimaryTestMerge")
796 .HasForeignKey("Tgstation.Server.Host.Models.TestMerge", "PrimaryRevisionInformationId")
797 .OnDelete(DeleteBehavior.Restrict)
798 .IsRequired();
799 });
800
801 modelBuilder.Entity("Tgstation.Server.Host.Models.User", b =>
802 {
803 b.HasOne("Tgstation.Server.Host.Models.User", "CreatedBy")
804 .WithMany("CreatedUsers")
805 .HasForeignKey("CreatedById");
806 });
807
808 modelBuilder.Entity("Tgstation.Server.Host.Models.WatchdogReattachInformation", b =>
809 {
810 b.HasOne("Tgstation.Server.Host.Models.ReattachInformation", "Alpha")
811 .WithMany()
812 .HasForeignKey("AlphaId");
813
814 b.HasOne("Tgstation.Server.Host.Models.ReattachInformation", "Bravo")
815 .WithMany()
816 .HasForeignKey("BravoId");
817
818 b.HasOne("Tgstation.Server.Host.Models.Instance", null)
819 .WithOne("WatchdogReattachInformation")
820 .HasForeignKey("Tgstation.Server.Host.Models.WatchdogReattachInformation", "InstanceId")
821 .OnDelete(DeleteBehavior.Cascade)
822 .IsRequired();
823 });
824#pragma warning restore 612, 618
825 }
826 }
827}