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