tgstation-server 6.12.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
20210826213805_PGAddDeploymentTimeout.Designer.cs
Go to the documentation of this file.
1// <auto-generated />
2using System;
3
4using Microsoft.EntityFrameworkCore;
5using Microsoft.EntityFrameworkCore.Infrastructure;
6using Microsoft.EntityFrameworkCore.Migrations;
7using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
8
10{
11 [DbContext(typeof(PostgresSqlDatabaseContext))]
12 [Migration("20210826213805_PGAddDeploymentTimeout")]
13 partial class PGAddDeploymentTimeout
14 {
16 protected override void BuildTargetModel(ModelBuilder modelBuilder)
17 {
18#pragma warning disable 612, 618
19 modelBuilder
20 .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn)
21 .HasAnnotation("ProductVersion", "3.1.18")
22 .HasAnnotation("Relational:MaxIdentifierLength", 63);
23
24 modelBuilder.Entity("Tgstation.Server.Host.Models.ChatBot", b =>
25 {
26 b.Property<long?>("Id")
27 .ValueGeneratedOnAdd()
28 .HasColumnType("bigint")
29 .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
30
31 b.Property<int>("ChannelLimit")
32 .HasColumnType("integer");
33
34 b.Property<string>("ConnectionString")
35 .IsRequired()
36 .HasColumnType("character varying(10000)")
37 .HasMaxLength(10000);
38
39 b.Property<bool?>("Enabled")
40 .HasColumnType("boolean");
41
42 b.Property<long>("InstanceId")
43 .HasColumnType("bigint");
44
45 b.Property<string>("Name")
46 .IsRequired()
47 .HasColumnType("character varying(100)")
48 .HasMaxLength(100);
49
50 b.Property<int>("Provider")
51 .HasColumnType("integer");
52
53 b.Property<long>("ReconnectionInterval")
54 .HasColumnType("bigint");
55
56 b.HasKey("Id");
57
58 b.HasIndex("InstanceId", "Name")
59 .IsUnique();
60
61 b.ToTable("ChatBots");
62 });
63
64 modelBuilder.Entity("Tgstation.Server.Host.Models.ChatChannel", b =>
65 {
66 b.Property<long>("Id")
67 .ValueGeneratedOnAdd()
68 .HasColumnType("bigint")
69 .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
70
71 b.Property<long>("ChatSettingsId")
72 .HasColumnType("bigint");
73
74 b.Property<decimal?>("DiscordChannelId")
75 .HasColumnType("numeric(20,0)");
76
77 b.Property<string>("IrcChannel")
78 .HasColumnType("character varying(100)")
79 .HasMaxLength(100);
80
81 b.Property<bool?>("IsAdminChannel")
82 .IsRequired()
83 .HasColumnType("boolean");
84
85 b.Property<bool?>("IsUpdatesChannel")
86 .IsRequired()
87 .HasColumnType("boolean");
88
89 b.Property<bool?>("IsWatchdogChannel")
90 .IsRequired()
91 .HasColumnType("boolean");
92
93 b.Property<string>("Tag")
94 .HasColumnType("character varying(10000)")
95 .HasMaxLength(10000);
96
97 b.HasKey("Id");
98
99 b.HasIndex("ChatSettingsId", "DiscordChannelId")
100 .IsUnique();
101
102 b.HasIndex("ChatSettingsId", "IrcChannel")
103 .IsUnique();
104
105 b.ToTable("ChatChannels");
106 });
107
108 modelBuilder.Entity("Tgstation.Server.Host.Models.CompileJob", b =>
109 {
110 b.Property<long?>("Id")
111 .ValueGeneratedOnAdd()
112 .HasColumnType("bigint")
113 .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
114
115 b.Property<string>("ByondVersion")
116 .IsRequired()
117 .HasColumnType("text");
118
119 b.Property<int?>("DMApiMajorVersion")
120 .HasColumnType("integer");
121
122 b.Property<int?>("DMApiMinorVersion")
123 .HasColumnType("integer");
124
125 b.Property<int?>("DMApiPatchVersion")
126 .HasColumnType("integer");
127
128 b.Property<Guid?>("DirectoryName")
129 .IsRequired()
130 .HasColumnType("uuid");
131
132 b.Property<string>("DmeName")
133 .IsRequired()
134 .HasColumnType("text");
135
136 b.Property<int?>("GitHubDeploymentId")
137 .HasColumnType("integer");
138
139 b.Property<long?>("GitHubRepoId")
140 .HasColumnType("bigint");
141
142 b.Property<long>("JobId")
143 .HasColumnType("bigint");
144
145 b.Property<int?>("MinimumSecurityLevel")
146 .HasColumnType("integer");
147
148 b.Property<string>("Output")
149 .IsRequired()
150 .HasColumnType("text");
151
152 b.Property<string>("RepositoryOrigin")
153 .HasColumnType("text");
154
155 b.Property<long>("RevisionInformationId")
156 .HasColumnType("bigint");
157
158 b.HasKey("Id");
159
160 b.HasIndex("DirectoryName");
161
162 b.HasIndex("JobId")
163 .IsUnique();
164
165 b.HasIndex("RevisionInformationId");
166
167 b.ToTable("CompileJobs");
168 });
169
170 modelBuilder.Entity("Tgstation.Server.Host.Models.DreamDaemonSettings", b =>
171 {
172 b.Property<long>("Id")
173 .ValueGeneratedOnAdd()
174 .HasColumnType("bigint")
175 .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
176
177 b.Property<string>("AdditionalParameters")
178 .IsRequired()
179 .HasColumnType("character varying(10000)")
180 .HasMaxLength(10000);
181
182 b.Property<bool?>("AllowWebClient")
183 .IsRequired()
184 .HasColumnType("boolean");
185
186 b.Property<bool?>("AutoStart")
187 .IsRequired()
188 .HasColumnType("boolean");
189
190 b.Property<long>("HeartbeatSeconds")
191 .HasColumnType("bigint");
192
193 b.Property<long>("InstanceId")
194 .HasColumnType("bigint");
195
196 b.Property<int>("Port")
197 .HasColumnType("integer");
198
199 b.Property<int>("SecurityLevel")
200 .HasColumnType("integer");
201
202 b.Property<long>("StartupTimeout")
203 .HasColumnType("bigint");
204
205 b.Property<long>("TopicRequestTimeout")
206 .HasColumnType("bigint");
207
208 b.Property<int>("Visibility")
209 .HasColumnType("integer");
210
211 b.HasKey("Id");
212
213 b.HasIndex("InstanceId")
214 .IsUnique();
215
216 b.ToTable("DreamDaemonSettings");
217 });
218
219 modelBuilder.Entity("Tgstation.Server.Host.Models.DreamMakerSettings", b =>
220 {
221 b.Property<long>("Id")
222 .ValueGeneratedOnAdd()
223 .HasColumnType("bigint")
224 .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
225
226 b.Property<int>("ApiValidationPort")
227 .HasColumnType("integer");
228
229 b.Property<int>("ApiValidationSecurityLevel")
230 .HasColumnType("integer");
231
232 b.Property<long>("InstanceId")
233 .HasColumnType("bigint");
234
235 b.Property<string>("ProjectName")
236 .HasColumnType("character varying(10000)")
237 .HasMaxLength(10000);
238
239 b.Property<bool?>("RequireDMApiValidation")
240 .IsRequired()
241 .HasColumnType("boolean");
242
243 b.Property<TimeSpan?>("Timeout")
244 .IsRequired()
245 .HasColumnType("interval");
246
247 b.HasKey("Id");
248
249 b.HasIndex("InstanceId")
250 .IsUnique();
251
252 b.ToTable("DreamMakerSettings");
253 });
254
255 modelBuilder.Entity("Tgstation.Server.Host.Models.Instance", b =>
256 {
257 b.Property<long?>("Id")
258 .ValueGeneratedOnAdd()
259 .HasColumnType("bigint")
260 .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
261
262 b.Property<long>("AutoUpdateInterval")
263 .HasColumnType("bigint");
264
265 b.Property<int>("ChatBotLimit")
266 .HasColumnType("integer");
267
268 b.Property<int>("ConfigurationType")
269 .HasColumnType("integer");
270
271 b.Property<string>("Name")
272 .IsRequired()
273 .HasColumnType("character varying(100)")
274 .HasMaxLength(100);
275
276 b.Property<bool?>("Online")
277 .IsRequired()
278 .HasColumnType("boolean");
279
280 b.Property<string>("Path")
281 .IsRequired()
282 .HasColumnType("text");
283
284 b.Property<string>("SwarmIdentifer")
285 .HasColumnType("text");
286
287 b.HasKey("Id");
288
289 b.HasIndex("Path", "SwarmIdentifer")
290 .IsUnique();
291
292 b.ToTable("Instances");
293 });
294
295 modelBuilder.Entity("Tgstation.Server.Host.Models.InstancePermissionSet", b =>
296 {
297 b.Property<long>("Id")
298 .ValueGeneratedOnAdd()
299 .HasColumnType("bigint")
300 .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
301
302 b.Property<decimal>("ByondRights")
303 .HasColumnType("numeric(20,0)");
304
305 b.Property<decimal>("ChatBotRights")
306 .HasColumnType("numeric(20,0)");
307
308 b.Property<decimal>("ConfigurationRights")
309 .HasColumnType("numeric(20,0)");
310
311 b.Property<decimal>("DreamDaemonRights")
312 .HasColumnType("numeric(20,0)");
313
314 b.Property<decimal>("DreamMakerRights")
315 .HasColumnType("numeric(20,0)");
316
317 b.Property<long>("InstanceId")
318 .HasColumnType("bigint");
319
320 b.Property<decimal>("InstancePermissionSetRights")
321 .HasColumnType("numeric(20,0)");
322
323 b.Property<long>("PermissionSetId")
324 .HasColumnType("bigint");
325
326 b.Property<decimal>("RepositoryRights")
327 .HasColumnType("numeric(20,0)");
328
329 b.HasKey("Id");
330
331 b.HasIndex("InstanceId");
332
333 b.HasIndex("PermissionSetId", "InstanceId")
334 .IsUnique();
335
336 b.ToTable("InstancePermissionSets");
337 });
338
339 modelBuilder.Entity("Tgstation.Server.Host.Models.Job", b =>
340 {
341 b.Property<long?>("Id")
342 .ValueGeneratedOnAdd()
343 .HasColumnType("bigint")
344 .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
345
346 b.Property<decimal?>("CancelRight")
347 .HasColumnType("numeric(20,0)");
348
349 b.Property<decimal?>("CancelRightsType")
350 .HasColumnType("numeric(20,0)");
351
352 b.Property<bool?>("Cancelled")
353 .IsRequired()
354 .HasColumnType("boolean");
355
356 b.Property<long?>("CancelledById")
357 .HasColumnType("bigint");
358
359 b.Property<string>("Description")
360 .IsRequired()
361 .HasColumnType("text");
362
363 b.Property<long?>("ErrorCode")
364 .HasColumnType("bigint");
365
366 b.Property<string>("ExceptionDetails")
367 .HasColumnType("text");
368
369 b.Property<long>("InstanceId")
370 .HasColumnType("bigint");
371
372 b.Property<DateTimeOffset?>("StartedAt")
373 .IsRequired()
374 .HasColumnType("timestamp with time zone");
375
376 b.Property<long>("StartedById")
377 .HasColumnType("bigint");
378
379 b.Property<DateTimeOffset?>("StoppedAt")
380 .HasColumnType("timestamp with time zone");
381
382 b.HasKey("Id");
383
384 b.HasIndex("CancelledById");
385
386 b.HasIndex("InstanceId");
387
388 b.HasIndex("StartedById");
389
390 b.ToTable("Jobs");
391 });
392
393 modelBuilder.Entity("Tgstation.Server.Host.Models.OAuthConnection", b =>
394 {
395 b.Property<long>("Id")
396 .ValueGeneratedOnAdd()
397 .HasColumnType("bigint")
398 .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
399
400 b.Property<string>("ExternalUserId")
401 .IsRequired()
402 .HasColumnType("character varying(100)")
403 .HasMaxLength(100);
404
405 b.Property<int>("Provider")
406 .HasColumnType("integer");
407
408 b.Property<long?>("UserId")
409 .HasColumnType("bigint");
410
411 b.HasKey("Id");
412
413 b.HasIndex("UserId");
414
415 b.HasIndex("Provider", "ExternalUserId")
416 .IsUnique();
417
418 b.ToTable("OAuthConnections");
419 });
420
421 modelBuilder.Entity("Tgstation.Server.Host.Models.PermissionSet", b =>
422 {
423 b.Property<long?>("Id")
424 .ValueGeneratedOnAdd()
425 .HasColumnType("bigint")
426 .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
427
428 b.Property<decimal>("AdministrationRights")
429 .HasColumnType("numeric(20,0)");
430
431 b.Property<long?>("GroupId")
432 .HasColumnType("bigint");
433
434 b.Property<decimal>("InstanceManagerRights")
435 .HasColumnType("numeric(20,0)");
436
437 b.Property<long?>("UserId")
438 .HasColumnType("bigint");
439
440 b.HasKey("Id");
441
442 b.HasIndex("GroupId")
443 .IsUnique();
444
445 b.HasIndex("UserId")
446 .IsUnique();
447
448 b.ToTable("PermissionSets");
449 });
450
451 modelBuilder.Entity("Tgstation.Server.Host.Models.ReattachInformation", b =>
452 {
453 b.Property<long>("Id")
454 .ValueGeneratedOnAdd()
455 .HasColumnType("bigint")
456 .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
457
458 b.Property<string>("AccessIdentifier")
459 .IsRequired()
460 .HasColumnType("text");
461
462 b.Property<long>("CompileJobId")
463 .HasColumnType("bigint");
464
465 b.Property<int>("LaunchSecurityLevel")
466 .HasColumnType("integer");
467
468 b.Property<int>("LaunchVisibility")
469 .HasColumnType("integer");
470
471 b.Property<int>("Port")
472 .HasColumnType("integer");
473
474 b.Property<int>("ProcessId")
475 .HasColumnType("integer");
476
477 b.Property<int>("RebootState")
478 .HasColumnType("integer");
479
480 b.HasKey("Id");
481
482 b.HasIndex("CompileJobId");
483
484 b.ToTable("ReattachInformations");
485 });
486
487 modelBuilder.Entity("Tgstation.Server.Host.Models.RepositorySettings", b =>
488 {
489 b.Property<long>("Id")
490 .ValueGeneratedOnAdd()
491 .HasColumnType("bigint")
492 .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
493
494 b.Property<string>("AccessToken")
495 .HasColumnType("character varying(10000)")
496 .HasMaxLength(10000);
497
498 b.Property<string>("AccessUser")
499 .HasColumnType("character varying(10000)")
500 .HasMaxLength(10000);
501
502 b.Property<bool?>("AutoUpdatesKeepTestMerges")
503 .IsRequired()
504 .HasColumnType("boolean");
505
506 b.Property<bool?>("AutoUpdatesSynchronize")
507 .IsRequired()
508 .HasColumnType("boolean");
509
510 b.Property<string>("CommitterEmail")
511 .IsRequired()
512 .HasColumnType("character varying(10000)")
513 .HasMaxLength(10000);
514
515 b.Property<string>("CommitterName")
516 .IsRequired()
517 .HasColumnType("character varying(10000)")
518 .HasMaxLength(10000);
519
520 b.Property<bool?>("CreateGitHubDeployments")
521 .IsRequired()
522 .HasColumnType("boolean");
523
524 b.Property<long>("InstanceId")
525 .HasColumnType("bigint");
526
527 b.Property<bool?>("PostTestMergeComment")
528 .IsRequired()
529 .HasColumnType("boolean");
530
531 b.Property<bool?>("PushTestMergeCommits")
532 .IsRequired()
533 .HasColumnType("boolean");
534
535 b.Property<bool?>("ShowTestMergeCommitters")
536 .IsRequired()
537 .HasColumnType("boolean");
538
539 b.HasKey("Id");
540
541 b.HasIndex("InstanceId")
542 .IsUnique();
543
544 b.ToTable("RepositorySettings");
545 });
546
547 modelBuilder.Entity("Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
548 {
549 b.Property<long>("Id")
550 .ValueGeneratedOnAdd()
551 .HasColumnType("bigint")
552 .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
553
554 b.Property<long>("RevisionInformationId")
555 .HasColumnType("bigint");
556
557 b.Property<long>("TestMergeId")
558 .HasColumnType("bigint");
559
560 b.HasKey("Id");
561
562 b.HasIndex("RevisionInformationId");
563
564 b.HasIndex("TestMergeId");
565
566 b.ToTable("RevInfoTestMerges");
567 });
568
569 modelBuilder.Entity("Tgstation.Server.Host.Models.RevisionInformation", b =>
570 {
571 b.Property<long>("Id")
572 .ValueGeneratedOnAdd()
573 .HasColumnType("bigint")
574 .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
575
576 b.Property<string>("CommitSha")
577 .IsRequired()
578 .HasColumnType("character varying(40)")
579 .HasMaxLength(40);
580
581 b.Property<long>("InstanceId")
582 .HasColumnType("bigint");
583
584 b.Property<string>("OriginCommitSha")
585 .IsRequired()
586 .HasColumnType("character varying(40)")
587 .HasMaxLength(40);
588
589 b.Property<DateTimeOffset>("Timestamp")
590 .HasColumnType("timestamp with time zone");
591
592 b.HasKey("Id");
593
594 b.HasIndex("InstanceId", "CommitSha")
595 .IsUnique();
596
597 b.ToTable("RevisionInformations");
598 });
599
600 modelBuilder.Entity("Tgstation.Server.Host.Models.TestMerge", b =>
601 {
602 b.Property<long>("Id")
603 .ValueGeneratedOnAdd()
604 .HasColumnType("bigint")
605 .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
606
607 b.Property<string>("Author")
608 .IsRequired()
609 .HasColumnType("text");
610
611 b.Property<string>("BodyAtMerge")
612 .IsRequired()
613 .HasColumnType("text");
614
615 b.Property<string>("Comment")
616 .HasColumnType("character varying(10000)")
617 .HasMaxLength(10000);
618
619 b.Property<DateTimeOffset>("MergedAt")
620 .HasColumnType("timestamp with time zone");
621
622 b.Property<long>("MergedById")
623 .HasColumnType("bigint");
624
625 b.Property<int>("Number")
626 .HasColumnType("integer");
627
628 b.Property<long?>("PrimaryRevisionInformationId")
629 .IsRequired()
630 .HasColumnType("bigint");
631
632 b.Property<string>("TargetCommitSha")
633 .IsRequired()
634 .HasColumnType("character varying(40)")
635 .HasMaxLength(40);
636
637 b.Property<string>("TitleAtMerge")
638 .IsRequired()
639 .HasColumnType("text");
640
641 b.Property<string>("Url")
642 .IsRequired()
643 .HasColumnType("text");
644
645 b.HasKey("Id");
646
647 b.HasIndex("MergedById");
648
649 b.HasIndex("PrimaryRevisionInformationId")
650 .IsUnique();
651
652 b.ToTable("TestMerges");
653 });
654
655 modelBuilder.Entity("Tgstation.Server.Host.Models.User", b =>
656 {
657 b.Property<long?>("Id")
658 .ValueGeneratedOnAdd()
659 .HasColumnType("bigint")
660 .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
661
662 b.Property<string>("CanonicalName")
663 .IsRequired()
664 .HasColumnType("character varying(100)")
665 .HasMaxLength(100);
666
667 b.Property<DateTimeOffset?>("CreatedAt")
668 .IsRequired()
669 .HasColumnType("timestamp with time zone");
670
671 b.Property<long?>("CreatedById")
672 .HasColumnType("bigint");
673
674 b.Property<bool?>("Enabled")
675 .IsRequired()
676 .HasColumnType("boolean");
677
678 b.Property<long?>("GroupId")
679 .HasColumnType("bigint");
680
681 b.Property<DateTimeOffset?>("LastPasswordUpdate")
682 .HasColumnType("timestamp with time zone");
683
684 b.Property<string>("Name")
685 .IsRequired()
686 .HasColumnType("character varying(100)")
687 .HasMaxLength(100);
688
689 b.Property<string>("PasswordHash")
690 .HasColumnType("text");
691
692 b.Property<string>("SystemIdentifier")
693 .HasColumnType("character varying(100)")
694 .HasMaxLength(100);
695
696 b.HasKey("Id");
697
698 b.HasIndex("CanonicalName")
699 .IsUnique();
700
701 b.HasIndex("CreatedById");
702
703 b.HasIndex("GroupId");
704
705 b.HasIndex("SystemIdentifier")
706 .IsUnique();
707
708 b.ToTable("Users");
709 });
710
711 modelBuilder.Entity("Tgstation.Server.Host.Models.UserGroup", b =>
712 {
713 b.Property<long?>("Id")
714 .ValueGeneratedOnAdd()
715 .HasColumnType("bigint")
716 .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
717
718 b.Property<string>("Name")
719 .IsRequired()
720 .HasColumnType("character varying(100)")
721 .HasMaxLength(100);
722
723 b.HasKey("Id");
724
725 b.HasIndex("Name")
726 .IsUnique();
727
728 b.ToTable("Groups");
729 });
730
731 modelBuilder.Entity("Tgstation.Server.Host.Models.ChatBot", b =>
732 {
733 b.HasOne("Tgstation.Server.Host.Models.Instance", "Instance")
734 .WithMany("ChatSettings")
735 .HasForeignKey("InstanceId")
736 .OnDelete(DeleteBehavior.Cascade)
737 .IsRequired();
738 });
739
740 modelBuilder.Entity("Tgstation.Server.Host.Models.ChatChannel", b =>
741 {
742 b.HasOne("Tgstation.Server.Host.Models.ChatBot", "ChatSettings")
743 .WithMany("Channels")
744 .HasForeignKey("ChatSettingsId")
745 .OnDelete(DeleteBehavior.Cascade)
746 .IsRequired();
747 });
748
749 modelBuilder.Entity("Tgstation.Server.Host.Models.CompileJob", b =>
750 {
751 b.HasOne("Tgstation.Server.Host.Models.Job", "Job")
752 .WithOne()
753 .HasForeignKey("Tgstation.Server.Host.Models.CompileJob", "JobId")
754 .OnDelete(DeleteBehavior.Cascade)
755 .IsRequired();
756
757 b.HasOne("Tgstation.Server.Host.Models.RevisionInformation", "RevisionInformation")
758 .WithMany("CompileJobs")
759 .HasForeignKey("RevisionInformationId")
760 .OnDelete(DeleteBehavior.Cascade)
761 .IsRequired();
762 });
763
764 modelBuilder.Entity("Tgstation.Server.Host.Models.DreamDaemonSettings", b =>
765 {
766 b.HasOne("Tgstation.Server.Host.Models.Instance", "Instance")
767 .WithOne("DreamDaemonSettings")
768 .HasForeignKey("Tgstation.Server.Host.Models.DreamDaemonSettings", "InstanceId")
769 .OnDelete(DeleteBehavior.Cascade)
770 .IsRequired();
771 });
772
773 modelBuilder.Entity("Tgstation.Server.Host.Models.DreamMakerSettings", b =>
774 {
775 b.HasOne("Tgstation.Server.Host.Models.Instance", "Instance")
776 .WithOne("DreamMakerSettings")
777 .HasForeignKey("Tgstation.Server.Host.Models.DreamMakerSettings", "InstanceId")
778 .OnDelete(DeleteBehavior.Cascade)
779 .IsRequired();
780 });
781
782 modelBuilder.Entity("Tgstation.Server.Host.Models.InstancePermissionSet", b =>
783 {
784 b.HasOne("Tgstation.Server.Host.Models.Instance", "Instance")
785 .WithMany("InstancePermissionSets")
786 .HasForeignKey("InstanceId")
787 .OnDelete(DeleteBehavior.Cascade)
788 .IsRequired();
789
790 b.HasOne("Tgstation.Server.Host.Models.PermissionSet", "PermissionSet")
791 .WithMany("InstancePermissionSets")
792 .HasForeignKey("PermissionSetId")
793 .OnDelete(DeleteBehavior.Cascade)
794 .IsRequired();
795 });
796
797 modelBuilder.Entity("Tgstation.Server.Host.Models.Job", b =>
798 {
799 b.HasOne("Tgstation.Server.Host.Models.User", "CancelledBy")
800 .WithMany()
801 .HasForeignKey("CancelledById");
802
803 b.HasOne("Tgstation.Server.Host.Models.Instance", "Instance")
804 .WithMany("Jobs")
805 .HasForeignKey("InstanceId")
806 .OnDelete(DeleteBehavior.Cascade)
807 .IsRequired();
808
809 b.HasOne("Tgstation.Server.Host.Models.User", "StartedBy")
810 .WithMany()
811 .HasForeignKey("StartedById")
812 .OnDelete(DeleteBehavior.Cascade)
813 .IsRequired();
814 });
815
816 modelBuilder.Entity("Tgstation.Server.Host.Models.OAuthConnection", b =>
817 {
818 b.HasOne("Tgstation.Server.Host.Models.User", "User")
819 .WithMany("OAuthConnections")
820 .HasForeignKey("UserId")
821 .OnDelete(DeleteBehavior.Cascade);
822 });
823
824 modelBuilder.Entity("Tgstation.Server.Host.Models.PermissionSet", b =>
825 {
826 b.HasOne("Tgstation.Server.Host.Models.UserGroup", "Group")
827 .WithOne("PermissionSet")
828 .HasForeignKey("Tgstation.Server.Host.Models.PermissionSet", "GroupId")
829 .OnDelete(DeleteBehavior.Cascade);
830
831 b.HasOne("Tgstation.Server.Host.Models.User", "User")
832 .WithOne("PermissionSet")
833 .HasForeignKey("Tgstation.Server.Host.Models.PermissionSet", "UserId")
834 .OnDelete(DeleteBehavior.Cascade);
835 });
836
837 modelBuilder.Entity("Tgstation.Server.Host.Models.ReattachInformation", b =>
838 {
839 b.HasOne("Tgstation.Server.Host.Models.CompileJob", "CompileJob")
840 .WithMany()
841 .HasForeignKey("CompileJobId")
842 .OnDelete(DeleteBehavior.Cascade)
843 .IsRequired();
844 });
845
846 modelBuilder.Entity("Tgstation.Server.Host.Models.RepositorySettings", b =>
847 {
848 b.HasOne("Tgstation.Server.Host.Models.Instance", "Instance")
849 .WithOne("RepositorySettings")
850 .HasForeignKey("Tgstation.Server.Host.Models.RepositorySettings", "InstanceId")
851 .OnDelete(DeleteBehavior.Cascade)
852 .IsRequired();
853 });
854
855 modelBuilder.Entity("Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
856 {
857 b.HasOne("Tgstation.Server.Host.Models.RevisionInformation", "RevisionInformation")
858 .WithMany("ActiveTestMerges")
859 .HasForeignKey("RevisionInformationId")
860 .OnDelete(DeleteBehavior.Cascade)
861 .IsRequired();
862
863 b.HasOne("Tgstation.Server.Host.Models.TestMerge", "TestMerge")
864 .WithMany("RevisonInformations")
865 .HasForeignKey("TestMergeId")
866 .OnDelete(DeleteBehavior.ClientNoAction)
867 .IsRequired();
868 });
869
870 modelBuilder.Entity("Tgstation.Server.Host.Models.RevisionInformation", b =>
871 {
872 b.HasOne("Tgstation.Server.Host.Models.Instance", "Instance")
873 .WithMany("RevisionInformations")
874 .HasForeignKey("InstanceId")
875 .OnDelete(DeleteBehavior.Cascade)
876 .IsRequired();
877 });
878
879 modelBuilder.Entity("Tgstation.Server.Host.Models.TestMerge", b =>
880 {
881 b.HasOne("Tgstation.Server.Host.Models.User", "MergedBy")
882 .WithMany("TestMerges")
883 .HasForeignKey("MergedById")
884 .OnDelete(DeleteBehavior.Restrict)
885 .IsRequired();
886
887 b.HasOne("Tgstation.Server.Host.Models.RevisionInformation", "PrimaryRevisionInformation")
888 .WithOne("PrimaryTestMerge")
889 .HasForeignKey("Tgstation.Server.Host.Models.TestMerge", "PrimaryRevisionInformationId")
890 .OnDelete(DeleteBehavior.Cascade)
891 .IsRequired();
892 });
893
894 modelBuilder.Entity("Tgstation.Server.Host.Models.User", b =>
895 {
896 b.HasOne("Tgstation.Server.Host.Models.User", "CreatedBy")
897 .WithMany("CreatedUsers")
898 .HasForeignKey("CreatedById");
899
900 b.HasOne("Tgstation.Server.Host.Models.UserGroup", "Group")
901 .WithMany("Users")
902 .HasForeignKey("GroupId");
903 });
904#pragma warning restore 612, 618
905 }
906 }
907}