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