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