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