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