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