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