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