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