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