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