tgstation-server 6.12.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
20200616180842_PGTopicTimeout.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;
6using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
7
9{
10 [DbContext(typeof(PostgresSqlDatabaseContext))]
11 [Migration("20200616180842_PGTopicTimeout")]
12 partial class PGTopicTimeout
13 {
15 protected override void BuildTargetModel(ModelBuilder modelBuilder)
16 {
17#pragma warning disable 612, 618
18 modelBuilder
19 .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn)
20 .HasAnnotation("ProductVersion", "3.1.4")
21 .HasAnnotation("Relational:MaxIdentifierLength", 63);
22
23 modelBuilder.Entity("Tgstation.Server.Host.Models.ChatBot", b =>
24 {
25 b.Property<long>("Id")
26 .ValueGeneratedOnAdd()
27 .HasColumnType("bigint")
28 .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
29
30 b.Property<int>("ChannelLimit")
31 .HasColumnType("integer");
32
33 b.Property<string>("ConnectionString")
34 .IsRequired()
35 .HasColumnType("character varying(10000)")
36 .HasMaxLength(10000);
37
38 b.Property<bool?>("Enabled")
39 .HasColumnType("boolean");
40
41 b.Property<long>("InstanceId")
42 .HasColumnType("bigint");
43
44 b.Property<string>("Name")
45 .IsRequired()
46 .HasColumnType("character varying(100)")
47 .HasMaxLength(100);
48
49 b.Property<int>("Provider")
50 .HasColumnType("integer");
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("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
69
70 b.Property<long>("ChatSettingsId")
71 .HasColumnType("bigint");
72
73 b.Property<decimal?>("DiscordChannelId")
74 .HasColumnType("numeric(20,0)");
75
76 b.Property<string>("IrcChannel")
77 .HasColumnType("character varying(100)")
78 .HasMaxLength(100);
79
80 b.Property<bool?>("IsAdminChannel")
81 .IsRequired()
82 .HasColumnType("boolean");
83
84 b.Property<bool?>("IsUpdatesChannel")
85 .IsRequired()
86 .HasColumnType("boolean");
87
88 b.Property<bool?>("IsWatchdogChannel")
89 .IsRequired()
90 .HasColumnType("boolean");
91
92 b.Property<string>("Tag")
93 .HasColumnType("character varying(10000)")
94 .HasMaxLength(10000);
95
96 b.HasKey("Id");
97
98 b.HasIndex("ChatSettingsId", "DiscordChannelId")
99 .IsUnique();
100
101 b.HasIndex("ChatSettingsId", "IrcChannel")
102 .IsUnique();
103
104 b.ToTable("ChatChannels");
105 });
106
107 modelBuilder.Entity("Tgstation.Server.Host.Models.CompileJob", b =>
108 {
109 b.Property<long>("Id")
110 .ValueGeneratedOnAdd()
111 .HasColumnType("bigint")
112 .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
113
114 b.Property<string>("ByondVersion")
115 .IsRequired()
116 .HasColumnType("text");
117
118 b.Property<int?>("DMApiMajorVersion")
119 .HasColumnType("integer");
120
121 b.Property<int?>("DMApiMinorVersion")
122 .HasColumnType("integer");
123
124 b.Property<int?>("DMApiPatchVersion")
125 .HasColumnType("integer");
126
127 b.Property<Guid?>("DirectoryName")
128 .IsRequired()
129 .HasColumnType("uuid");
130
131 b.Property<string>("DmeName")
132 .IsRequired()
133 .HasColumnType("text");
134
135 b.Property<long>("JobId")
136 .HasColumnType("bigint");
137
138 b.Property<int>("MinimumSecurityLevel")
139 .HasColumnType("integer");
140
141 b.Property<string>("Output")
142 .IsRequired()
143 .HasColumnType("text");
144
145 b.Property<long>("RevisionInformationId")
146 .HasColumnType("bigint");
147
148 b.HasKey("Id");
149
150 b.HasIndex("DirectoryName");
151
152 b.HasIndex("JobId")
153 .IsUnique();
154
155 b.HasIndex("RevisionInformationId");
156
157 b.ToTable("CompileJobs");
158 });
159
160 modelBuilder.Entity("Tgstation.Server.Host.Models.DreamDaemonSettings", b =>
161 {
162 b.Property<long>("Id")
163 .ValueGeneratedOnAdd()
164 .HasColumnType("bigint")
165 .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
166
167 b.Property<bool?>("AllowWebClient")
168 .IsRequired()
169 .HasColumnType("boolean");
170
171 b.Property<bool?>("AutoStart")
172 .IsRequired()
173 .HasColumnType("boolean");
174
175 b.Property<long>("HeartbeatSeconds")
176 .HasColumnType("bigint");
177
178 b.Property<long>("InstanceId")
179 .HasColumnType("bigint");
180
181 b.Property<int>("PrimaryPort")
182 .HasColumnType("integer");
183
184 b.Property<int>("SecondaryPort")
185 .HasColumnType("integer");
186
187 b.Property<int>("SecurityLevel")
188 .HasColumnType("integer");
189
190 b.Property<long>("StartupTimeout")
191 .HasColumnType("bigint");
192
193 b.Property<long>("TopicRequestTimeout")
194 .HasColumnType("bigint");
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("bigint")
209 .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
210
211 b.Property<int>("ApiValidationPort")
212 .HasColumnType("integer");
213
214 b.Property<int>("ApiValidationSecurityLevel")
215 .HasColumnType("integer");
216
217 b.Property<long>("InstanceId")
218 .HasColumnType("bigint");
219
220 b.Property<string>("ProjectName")
221 .HasColumnType("character varying(10000)")
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("bigint")
237 .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
238
239 b.Property<long?>("AlphaId")
240 .HasColumnType("bigint");
241
242 b.Property<bool>("AlphaIsActive")
243 .HasColumnType("boolean");
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 .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
269
270 b.Property<long>("AutoUpdateInterval")
271 .HasColumnType("bigint");
272
273 b.Property<int>("ChatBotLimit")
274 .HasColumnType("integer");
275
276 b.Property<int>("ConfigurationType")
277 .HasColumnType("integer");
278
279 b.Property<string>("Name")
280 .IsRequired()
281 .HasColumnType("character varying(10000)")
282 .HasMaxLength(10000);
283
284 b.Property<bool?>("Online")
285 .IsRequired()
286 .HasColumnType("boolean");
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("bigint")
305 .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
306
307 b.Property<decimal>("ByondRights")
308 .HasColumnType("numeric(20,0)");
309
310 b.Property<decimal>("ChatBotRights")
311 .HasColumnType("numeric(20,0)");
312
313 b.Property<decimal>("ConfigurationRights")
314 .HasColumnType("numeric(20,0)");
315
316 b.Property<decimal>("DreamDaemonRights")
317 .HasColumnType("numeric(20,0)");
318
319 b.Property<decimal>("DreamMakerRights")
320 .HasColumnType("numeric(20,0)");
321
322 b.Property<long>("InstanceId")
323 .HasColumnType("bigint");
324
325 b.Property<decimal>("InstanceUserRights")
326 .HasColumnType("numeric(20,0)");
327
328 b.Property<decimal>("RepositoryRights")
329 .HasColumnType("numeric(20,0)");
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 .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
351
352 b.Property<decimal?>("CancelRight")
353 .HasColumnType("numeric(20,0)");
354
355 b.Property<decimal?>("CancelRightsType")
356 .HasColumnType("numeric(20,0)");
357
358 b.Property<bool?>("Cancelled")
359 .IsRequired()
360 .HasColumnType("boolean");
361
362 b.Property<long?>("CancelledById")
363 .HasColumnType("bigint");
364
365 b.Property<string>("Description")
366 .IsRequired()
367 .HasColumnType("text");
368
369 b.Property<long?>("ErrorCode")
370 .HasColumnType("bigint");
371
372 b.Property<string>("ExceptionDetails")
373 .HasColumnType("text");
374
375 b.Property<long>("InstanceId")
376 .HasColumnType("bigint");
377
378 b.Property<DateTimeOffset?>("StartedAt")
379 .IsRequired()
380 .HasColumnType("timestamp with time zone");
381
382 b.Property<long>("StartedById")
383 .HasColumnType("bigint");
384
385 b.Property<DateTimeOffset?>("StoppedAt")
386 .HasColumnType("timestamp with time zone");
387
388 b.HasKey("Id");
389
390 b.HasIndex("CancelledById");
391
392 b.HasIndex("InstanceId");
393
394 b.HasIndex("StartedById");
395
396 b.ToTable("Jobs");
397 });
398
399 modelBuilder.Entity("Tgstation.Server.Host.Models.ReattachInformation", b =>
400 {
401 b.Property<long>("Id")
402 .ValueGeneratedOnAdd()
403 .HasColumnType("bigint")
404 .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
405
406 b.Property<string>("AccessIdentifier")
407 .IsRequired()
408 .HasColumnType("text");
409
410 b.Property<long>("CompileJobId")
411 .HasColumnType("bigint");
412
413 b.Property<bool>("IsPrimary")
414 .HasColumnType("boolean");
415
416 b.Property<int>("LaunchSecurityLevel")
417 .HasColumnType("integer");
418
419 b.Property<int>("Port")
420 .HasColumnType("integer");
421
422 b.Property<int>("ProcessId")
423 .HasColumnType("integer");
424
425 b.Property<int>("RebootState")
426 .HasColumnType("integer");
427
428 b.HasKey("Id");
429
430 b.HasIndex("CompileJobId");
431
432 b.ToTable("ReattachInformations");
433 });
434
435 modelBuilder.Entity("Tgstation.Server.Host.Models.RepositorySettings", b =>
436 {
437 b.Property<long>("Id")
438 .ValueGeneratedOnAdd()
439 .HasColumnType("bigint")
440 .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
441
442 b.Property<string>("AccessToken")
443 .HasColumnType("character varying(10000)")
444 .HasMaxLength(10000);
445
446 b.Property<string>("AccessUser")
447 .HasColumnType("character varying(10000)")
448 .HasMaxLength(10000);
449
450 b.Property<bool?>("AutoUpdatesKeepTestMerges")
451 .IsRequired()
452 .HasColumnType("boolean");
453
454 b.Property<bool?>("AutoUpdatesSynchronize")
455 .IsRequired()
456 .HasColumnType("boolean");
457
458 b.Property<string>("CommitterEmail")
459 .IsRequired()
460 .HasColumnType("character varying(10000)")
461 .HasMaxLength(10000);
462
463 b.Property<string>("CommitterName")
464 .IsRequired()
465 .HasColumnType("character varying(10000)")
466 .HasMaxLength(10000);
467
468 b.Property<long>("InstanceId")
469 .HasColumnType("bigint");
470
471 b.Property<bool?>("PostTestMergeComment")
472 .IsRequired()
473 .HasColumnType("boolean");
474
475 b.Property<bool?>("PushTestMergeCommits")
476 .IsRequired()
477 .HasColumnType("boolean");
478
479 b.Property<bool?>("ShowTestMergeCommitters")
480 .IsRequired()
481 .HasColumnType("boolean");
482
483 b.HasKey("Id");
484
485 b.HasIndex("InstanceId")
486 .IsUnique();
487
488 b.ToTable("RepositorySettings");
489 });
490
491 modelBuilder.Entity("Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
492 {
493 b.Property<long>("Id")
494 .ValueGeneratedOnAdd()
495 .HasColumnType("bigint")
496 .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
497
498 b.Property<long>("RevisionInformationId")
499 .HasColumnType("bigint");
500
501 b.Property<long>("TestMergeId")
502 .HasColumnType("bigint");
503
504 b.HasKey("Id");
505
506 b.HasIndex("RevisionInformationId");
507
508 b.HasIndex("TestMergeId");
509
510 b.ToTable("RevInfoTestMerges");
511 });
512
513 modelBuilder.Entity("Tgstation.Server.Host.Models.RevisionInformation", b =>
514 {
515 b.Property<long>("Id")
516 .ValueGeneratedOnAdd()
517 .HasColumnType("bigint")
518 .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
519
520 b.Property<string>("CommitSha")
521 .IsRequired()
522 .HasColumnType("character varying(40)")
523 .HasMaxLength(40);
524
525 b.Property<long>("InstanceId")
526 .HasColumnType("bigint");
527
528 b.Property<string>("OriginCommitSha")
529 .IsRequired()
530 .HasColumnType("character varying(40)")
531 .HasMaxLength(40);
532
533 b.HasKey("Id");
534
535 b.HasIndex("InstanceId", "CommitSha")
536 .IsUnique();
537
538 b.ToTable("RevisionInformations");
539 });
540
541 modelBuilder.Entity("Tgstation.Server.Host.Models.TestMerge", b =>
542 {
543 b.Property<long>("Id")
544 .ValueGeneratedOnAdd()
545 .HasColumnType("bigint")
546 .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
547
548 b.Property<string>("Author")
549 .IsRequired()
550 .HasColumnType("text");
551
552 b.Property<string>("BodyAtMerge")
553 .IsRequired()
554 .HasColumnType("text");
555
556 b.Property<string>("Comment")
557 .HasColumnType("character varying(10000)")
558 .HasMaxLength(10000);
559
560 b.Property<DateTimeOffset>("MergedAt")
561 .HasColumnType("timestamp with time zone");
562
563 b.Property<long>("MergedById")
564 .HasColumnType("bigint");
565
566 b.Property<int>("Number")
567 .HasColumnType("integer");
568
569 b.Property<long?>("PrimaryRevisionInformationId")
570 .IsRequired()
571 .HasColumnType("bigint");
572
573 b.Property<string>("PullRequestRevision")
574 .IsRequired()
575 .HasColumnType("character varying(40)")
576 .HasMaxLength(40);
577
578 b.Property<string>("TitleAtMerge")
579 .IsRequired()
580 .HasColumnType("text");
581
582 b.Property<string>("Url")
583 .IsRequired()
584 .HasColumnType("text");
585
586 b.HasKey("Id");
587
588 b.HasIndex("MergedById");
589
590 b.HasIndex("PrimaryRevisionInformationId")
591 .IsUnique();
592
593 b.ToTable("TestMerges");
594 });
595
596 modelBuilder.Entity("Tgstation.Server.Host.Models.User", b =>
597 {
598 b.Property<long?>("Id")
599 .ValueGeneratedOnAdd()
600 .HasColumnType("bigint")
601 .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
602
603 b.Property<decimal>("AdministrationRights")
604 .HasColumnType("numeric(20,0)");
605
606 b.Property<string>("CanonicalName")
607 .IsRequired()
608 .HasColumnType("text");
609
610 b.Property<DateTimeOffset?>("CreatedAt")
611 .IsRequired()
612 .HasColumnType("timestamp with time zone");
613
614 b.Property<long?>("CreatedById")
615 .HasColumnType("bigint");
616
617 b.Property<bool?>("Enabled")
618 .IsRequired()
619 .HasColumnType("boolean");
620
621 b.Property<decimal>("InstanceManagerRights")
622 .HasColumnType("numeric(20,0)");
623
624 b.Property<DateTimeOffset?>("LastPasswordUpdate")
625 .HasColumnType("timestamp with time zone");
626
627 b.Property<string>("Name")
628 .IsRequired()
629 .HasColumnType("character varying(10000)")
630 .HasMaxLength(10000);
631
632 b.Property<string>("PasswordHash")
633 .HasColumnType("text");
634
635 b.Property<string>("SystemIdentifier")
636 .HasColumnType("text");
637
638 b.HasKey("Id");
639
640 b.HasIndex("CanonicalName")
641 .IsUnique();
642
643 b.HasIndex("CreatedById");
644
645 b.HasIndex("SystemIdentifier")
646 .IsUnique();
647
648 b.ToTable("Users");
649 });
650
651 modelBuilder.Entity("Tgstation.Server.Host.Models.ChatBot", b =>
652 {
653 b.HasOne("Tgstation.Server.Host.Models.Instance", "Instance")
654 .WithMany("ChatSettings")
655 .HasForeignKey("InstanceId")
656 .OnDelete(DeleteBehavior.Cascade)
657 .IsRequired();
658 });
659
660 modelBuilder.Entity("Tgstation.Server.Host.Models.ChatChannel", b =>
661 {
662 b.HasOne("Tgstation.Server.Host.Models.ChatBot", "ChatSettings")
663 .WithMany("Channels")
664 .HasForeignKey("ChatSettingsId")
665 .OnDelete(DeleteBehavior.Cascade)
666 .IsRequired();
667 });
668
669 modelBuilder.Entity("Tgstation.Server.Host.Models.CompileJob", b =>
670 {
671 b.HasOne("Tgstation.Server.Host.Models.Job", "Job")
672 .WithOne()
673 .HasForeignKey("Tgstation.Server.Host.Models.CompileJob", "JobId")
674 .OnDelete(DeleteBehavior.Cascade)
675 .IsRequired();
676
677 b.HasOne("Tgstation.Server.Host.Models.RevisionInformation", "RevisionInformation")
678 .WithMany("CompileJobs")
679 .HasForeignKey("RevisionInformationId")
680 .OnDelete(DeleteBehavior.Cascade)
681 .IsRequired();
682 });
683
684 modelBuilder.Entity("Tgstation.Server.Host.Models.DreamDaemonSettings", b =>
685 {
686 b.HasOne("Tgstation.Server.Host.Models.Instance", "Instance")
687 .WithOne("DreamDaemonSettings")
688 .HasForeignKey("Tgstation.Server.Host.Models.DreamDaemonSettings", "InstanceId")
689 .OnDelete(DeleteBehavior.Cascade)
690 .IsRequired();
691 });
692
693 modelBuilder.Entity("Tgstation.Server.Host.Models.DreamMakerSettings", b =>
694 {
695 b.HasOne("Tgstation.Server.Host.Models.Instance", "Instance")
696 .WithOne("DreamMakerSettings")
697 .HasForeignKey("Tgstation.Server.Host.Models.DreamMakerSettings", "InstanceId")
698 .OnDelete(DeleteBehavior.Cascade)
699 .IsRequired();
700 });
701
702 modelBuilder.Entity("Tgstation.Server.Host.Models.DualReattachInformation", b =>
703 {
704 b.HasOne("Tgstation.Server.Host.Models.ReattachInformation", "Alpha")
705 .WithMany()
706 .HasForeignKey("AlphaId");
707
708 b.HasOne("Tgstation.Server.Host.Models.ReattachInformation", "Bravo")
709 .WithMany()
710 .HasForeignKey("BravoId");
711
712 b.HasOne("Tgstation.Server.Host.Models.Instance", null)
713 .WithOne("WatchdogReattachInformation")
714 .HasForeignKey("Tgstation.Server.Host.Models.DualReattachInformation", "InstanceId")
715 .OnDelete(DeleteBehavior.Cascade)
716 .IsRequired();
717 });
718
719 modelBuilder.Entity("Tgstation.Server.Host.Models.InstanceUser", b =>
720 {
721 b.HasOne("Tgstation.Server.Host.Models.Instance", "Instance")
722 .WithMany("InstanceUsers")
723 .HasForeignKey("InstanceId")
724 .OnDelete(DeleteBehavior.Cascade)
725 .IsRequired();
726
727 b.HasOne("Tgstation.Server.Host.Models.User", null)
728 .WithMany("InstanceUsers")
729 .HasForeignKey("UserId")
730 .OnDelete(DeleteBehavior.Cascade)
731 .IsRequired();
732 });
733
734 modelBuilder.Entity("Tgstation.Server.Host.Models.Job", b =>
735 {
736 b.HasOne("Tgstation.Server.Host.Models.User", "CancelledBy")
737 .WithMany()
738 .HasForeignKey("CancelledById");
739
740 b.HasOne("Tgstation.Server.Host.Models.Instance", "Instance")
741 .WithMany("Jobs")
742 .HasForeignKey("InstanceId")
743 .OnDelete(DeleteBehavior.Cascade)
744 .IsRequired();
745
746 b.HasOne("Tgstation.Server.Host.Models.User", "StartedBy")
747 .WithMany()
748 .HasForeignKey("StartedById")
749 .OnDelete(DeleteBehavior.Cascade)
750 .IsRequired();
751 });
752
753 modelBuilder.Entity("Tgstation.Server.Host.Models.ReattachInformation", b =>
754 {
755 b.HasOne("Tgstation.Server.Host.Models.CompileJob", "CompileJob")
756 .WithMany()
757 .HasForeignKey("CompileJobId")
758 .OnDelete(DeleteBehavior.Cascade)
759 .IsRequired();
760 });
761
762 modelBuilder.Entity("Tgstation.Server.Host.Models.RepositorySettings", b =>
763 {
764 b.HasOne("Tgstation.Server.Host.Models.Instance", "Instance")
765 .WithOne("RepositorySettings")
766 .HasForeignKey("Tgstation.Server.Host.Models.RepositorySettings", "InstanceId")
767 .OnDelete(DeleteBehavior.Cascade)
768 .IsRequired();
769 });
770
771 modelBuilder.Entity("Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
772 {
773 b.HasOne("Tgstation.Server.Host.Models.RevisionInformation", "RevisionInformation")
774 .WithMany("ActiveTestMerges")
775 .HasForeignKey("RevisionInformationId")
776 .OnDelete(DeleteBehavior.Cascade)
777 .IsRequired();
778
779 b.HasOne("Tgstation.Server.Host.Models.TestMerge", "TestMerge")
780 .WithMany("RevisonInformations")
781 .HasForeignKey("TestMergeId")
782 .OnDelete(DeleteBehavior.ClientNoAction)
783 .IsRequired();
784 });
785
786 modelBuilder.Entity("Tgstation.Server.Host.Models.RevisionInformation", b =>
787 {
788 b.HasOne("Tgstation.Server.Host.Models.Instance", "Instance")
789 .WithMany("RevisionInformations")
790 .HasForeignKey("InstanceId")
791 .OnDelete(DeleteBehavior.Cascade)
792 .IsRequired();
793 });
794
795 modelBuilder.Entity("Tgstation.Server.Host.Models.TestMerge", b =>
796 {
797 b.HasOne("Tgstation.Server.Host.Models.User", "MergedBy")
798 .WithMany("TestMerges")
799 .HasForeignKey("MergedById")
800 .OnDelete(DeleteBehavior.Restrict)
801 .IsRequired();
802
803 b.HasOne("Tgstation.Server.Host.Models.RevisionInformation", "PrimaryRevisionInformation")
804 .WithOne("PrimaryTestMerge")
805 .HasForeignKey("Tgstation.Server.Host.Models.TestMerge", "PrimaryRevisionInformationId")
806 .OnDelete(DeleteBehavior.Cascade)
807 .IsRequired();
808 });
809
810 modelBuilder.Entity("Tgstation.Server.Host.Models.User", b =>
811 {
812 b.HasOne("Tgstation.Server.Host.Models.User", "CreatedBy")
813 .WithMany("CreatedUsers")
814 .HasForeignKey("CreatedById");
815 });
816#pragma warning restore 612, 618
817 }
818 }
819}