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