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