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