tgstation-server 6.12.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
20201122231546_SLAddOAuthConnections.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(SqliteDatabaseContext))]
10 [Migration("20201122231546_SLAddOAuthConnections")]
11 partial class SLAddOAuthConnections
12 {
14 protected override void BuildTargetModel(ModelBuilder modelBuilder)
15 {
16#pragma warning disable 612, 618
17 modelBuilder
18 .HasAnnotation("ProductVersion", "3.1.10");
19
20 modelBuilder.Entity("Tgstation.Server.Host.Models.ChatBot", b =>
21 {
22 b.Property<long>("Id")
23 .ValueGeneratedOnAdd()
24 .HasColumnType("INTEGER");
25
26 b.Property<ushort?>("ChannelLimit")
27 .IsRequired()
28 .HasColumnType("INTEGER");
29
30 b.Property<string>("ConnectionString")
31 .IsRequired()
32 .HasColumnType("TEXT")
33 .HasMaxLength(10000);
34
35 b.Property<bool?>("Enabled")
36 .HasColumnType("INTEGER");
37
38 b.Property<long>("InstanceId")
39 .HasColumnType("INTEGER");
40
41 b.Property<string>("Name")
42 .IsRequired()
43 .HasColumnType("TEXT")
44 .HasMaxLength(100);
45
46 b.Property<int>("Provider")
47 .HasColumnType("INTEGER");
48
49 b.Property<uint?>("ReconnectionInterval")
50 .IsRequired()
51 .HasColumnType("INTEGER");
52
53 b.HasKey("Id");
54
55 b.HasIndex("InstanceId", "Name")
56 .IsUnique();
57
58 b.ToTable("ChatBots");
59 });
60
61 modelBuilder.Entity("Tgstation.Server.Host.Models.ChatChannel", b =>
62 {
63 b.Property<long>("Id")
64 .ValueGeneratedOnAdd()
65 .HasColumnType("INTEGER");
66
67 b.Property<long>("ChatSettingsId")
68 .HasColumnType("INTEGER");
69
70 b.Property<ulong?>("DiscordChannelId")
71 .HasColumnType("INTEGER");
72
73 b.Property<string>("IrcChannel")
74 .HasColumnType("TEXT")
75 .HasMaxLength(100);
76
77 b.Property<bool?>("IsAdminChannel")
78 .IsRequired()
79 .HasColumnType("INTEGER");
80
81 b.Property<bool?>("IsUpdatesChannel")
82 .IsRequired()
83 .HasColumnType("INTEGER");
84
85 b.Property<bool?>("IsWatchdogChannel")
86 .IsRequired()
87 .HasColumnType("INTEGER");
88
89 b.Property<string>("Tag")
90 .HasColumnType("TEXT")
91 .HasMaxLength(10000);
92
93 b.HasKey("Id");
94
95 b.HasIndex("ChatSettingsId", "DiscordChannelId")
96 .IsUnique();
97
98 b.HasIndex("ChatSettingsId", "IrcChannel")
99 .IsUnique();
100
101 b.ToTable("ChatChannels");
102 });
103
104 modelBuilder.Entity("Tgstation.Server.Host.Models.CompileJob", b =>
105 {
106 b.Property<long>("Id")
107 .ValueGeneratedOnAdd()
108 .HasColumnType("INTEGER");
109
110 b.Property<string>("ByondVersion")
111 .IsRequired()
112 .HasColumnType("TEXT");
113
114 b.Property<int?>("DMApiMajorVersion")
115 .HasColumnType("INTEGER");
116
117 b.Property<int?>("DMApiMinorVersion")
118 .HasColumnType("INTEGER");
119
120 b.Property<int?>("DMApiPatchVersion")
121 .HasColumnType("INTEGER");
122
123 b.Property<Guid?>("DirectoryName")
124 .IsRequired()
125 .HasColumnType("TEXT");
126
127 b.Property<string>("DmeName")
128 .IsRequired()
129 .HasColumnType("TEXT");
130
131 b.Property<int?>("GitHubDeploymentId")
132 .HasColumnType("INTEGER");
133
134 b.Property<long?>("GitHubRepoId")
135 .HasColumnType("INTEGER");
136
137 b.Property<long>("JobId")
138 .HasColumnType("INTEGER");
139
140 b.Property<int?>("MinimumSecurityLevel")
141 .HasColumnType("INTEGER");
142
143 b.Property<string>("Output")
144 .IsRequired()
145 .HasColumnType("TEXT");
146
147 b.Property<long>("RevisionInformationId")
148 .HasColumnType("INTEGER");
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("INTEGER");
167
168 b.Property<string>("AdditionalParameters")
169 .IsRequired()
170 .HasColumnType("TEXT")
171 .HasMaxLength(10000);
172
173 b.Property<bool?>("AllowWebClient")
174 .IsRequired()
175 .HasColumnType("INTEGER");
176
177 b.Property<bool?>("AutoStart")
178 .IsRequired()
179 .HasColumnType("INTEGER");
180
181 b.Property<uint?>("HeartbeatSeconds")
182 .IsRequired()
183 .HasColumnType("INTEGER");
184
185 b.Property<long>("InstanceId")
186 .HasColumnType("INTEGER");
187
188 b.Property<ushort?>("Port")
189 .IsRequired()
190 .HasColumnType("INTEGER");
191
192 b.Property<int>("SecurityLevel")
193 .HasColumnType("INTEGER");
194
195 b.Property<uint?>("StartupTimeout")
196 .IsRequired()
197 .HasColumnType("INTEGER");
198
199 b.Property<uint?>("TopicRequestTimeout")
200 .IsRequired()
201 .HasColumnType("INTEGER");
202
203 b.HasKey("Id");
204
205 b.HasIndex("InstanceId")
206 .IsUnique();
207
208 b.ToTable("DreamDaemonSettings");
209 });
210
211 modelBuilder.Entity("Tgstation.Server.Host.Models.DreamMakerSettings", b =>
212 {
213 b.Property<long>("Id")
214 .ValueGeneratedOnAdd()
215 .HasColumnType("INTEGER");
216
217 b.Property<ushort?>("ApiValidationPort")
218 .IsRequired()
219 .HasColumnType("INTEGER");
220
221 b.Property<int>("ApiValidationSecurityLevel")
222 .HasColumnType("INTEGER");
223
224 b.Property<long>("InstanceId")
225 .HasColumnType("INTEGER");
226
227 b.Property<string>("ProjectName")
228 .HasColumnType("TEXT")
229 .HasMaxLength(10000);
230
231 b.Property<bool?>("RequireDMApiValidation")
232 .IsRequired()
233 .HasColumnType("INTEGER");
234
235 b.HasKey("Id");
236
237 b.HasIndex("InstanceId")
238 .IsUnique();
239
240 b.ToTable("DreamMakerSettings");
241 });
242
243 modelBuilder.Entity("Tgstation.Server.Host.Models.Instance", b =>
244 {
245 b.Property<long>("Id")
246 .ValueGeneratedOnAdd()
247 .HasColumnType("INTEGER");
248
249 b.Property<uint?>("AutoUpdateInterval")
250 .IsRequired()
251 .HasColumnType("INTEGER");
252
253 b.Property<ushort?>("ChatBotLimit")
254 .IsRequired()
255 .HasColumnType("INTEGER");
256
257 b.Property<int>("ConfigurationType")
258 .HasColumnType("INTEGER");
259
260 b.Property<string>("Name")
261 .IsRequired()
262 .HasColumnType("TEXT")
263 .HasMaxLength(10000);
264
265 b.Property<bool?>("Online")
266 .IsRequired()
267 .HasColumnType("INTEGER");
268
269 b.Property<string>("Path")
270 .IsRequired()
271 .HasColumnType("TEXT");
272
273 b.HasKey("Id");
274
275 b.HasIndex("Path")
276 .IsUnique();
277
278 b.ToTable("Instances");
279 });
280
281 modelBuilder.Entity("Tgstation.Server.Host.Models.InstanceUser", b =>
282 {
283 b.Property<long>("Id")
284 .ValueGeneratedOnAdd()
285 .HasColumnType("INTEGER");
286
287 b.Property<ulong>("ByondRights")
288 .HasColumnType("INTEGER");
289
290 b.Property<ulong>("ChatBotRights")
291 .HasColumnType("INTEGER");
292
293 b.Property<ulong>("ConfigurationRights")
294 .HasColumnType("INTEGER");
295
296 b.Property<ulong>("DreamDaemonRights")
297 .HasColumnType("INTEGER");
298
299 b.Property<ulong>("DreamMakerRights")
300 .HasColumnType("INTEGER");
301
302 b.Property<long>("InstanceId")
303 .HasColumnType("INTEGER");
304
305 b.Property<ulong>("InstanceUserRights")
306 .HasColumnType("INTEGER");
307
308 b.Property<ulong>("RepositoryRights")
309 .HasColumnType("INTEGER");
310
311 b.Property<long>("UserId")
312 .HasColumnType("INTEGER");
313
314 b.HasKey("Id");
315
316 b.HasIndex("InstanceId");
317
318 b.HasIndex("UserId", "InstanceId")
319 .IsUnique();
320
321 b.ToTable("InstanceUsers");
322 });
323
324 modelBuilder.Entity("Tgstation.Server.Host.Models.Job", b =>
325 {
326 b.Property<long>("Id")
327 .ValueGeneratedOnAdd()
328 .HasColumnType("INTEGER");
329
330 b.Property<ulong?>("CancelRight")
331 .HasColumnType("INTEGER");
332
333 b.Property<ulong?>("CancelRightsType")
334 .HasColumnType("INTEGER");
335
336 b.Property<bool?>("Cancelled")
337 .IsRequired()
338 .HasColumnType("INTEGER");
339
340 b.Property<long?>("CancelledById")
341 .HasColumnType("INTEGER");
342
343 b.Property<string>("Description")
344 .IsRequired()
345 .HasColumnType("TEXT");
346
347 b.Property<uint?>("ErrorCode")
348 .HasColumnType("INTEGER");
349
350 b.Property<string>("ExceptionDetails")
351 .HasColumnType("TEXT");
352
353 b.Property<long>("InstanceId")
354 .HasColumnType("INTEGER");
355
356 b.Property<DateTimeOffset?>("StartedAt")
357 .IsRequired()
358 .HasColumnType("TEXT");
359
360 b.Property<long>("StartedById")
361 .HasColumnType("INTEGER");
362
363 b.Property<DateTimeOffset?>("StoppedAt")
364 .HasColumnType("TEXT");
365
366 b.HasKey("Id");
367
368 b.HasIndex("CancelledById");
369
370 b.HasIndex("InstanceId");
371
372 b.HasIndex("StartedById");
373
374 b.ToTable("Jobs");
375 });
376
377 modelBuilder.Entity("Tgstation.Server.Host.Models.OAuthConnection", b =>
378 {
379 b.Property<long>("Id")
380 .ValueGeneratedOnAdd()
381 .HasColumnType("INTEGER");
382
383 b.Property<string>("ExternalUserId")
384 .IsRequired()
385 .HasColumnType("TEXT")
386 .HasMaxLength(100);
387
388 b.Property<int>("Provider")
389 .HasColumnType("INTEGER");
390
391 b.Property<long?>("UserId")
392 .HasColumnType("INTEGER");
393
394 b.HasKey("Id");
395
396 b.HasIndex("UserId");
397
398 b.HasIndex("Provider", "ExternalUserId")
399 .IsUnique();
400
401 b.ToTable("OAuthConnections");
402 });
403
404 modelBuilder.Entity("Tgstation.Server.Host.Models.ReattachInformation", b =>
405 {
406 b.Property<long>("Id")
407 .ValueGeneratedOnAdd()
408 .HasColumnType("INTEGER");
409
410 b.Property<string>("AccessIdentifier")
411 .IsRequired()
412 .HasColumnType("TEXT");
413
414 b.Property<long>("CompileJobId")
415 .HasColumnType("INTEGER");
416
417 b.Property<int>("LaunchSecurityLevel")
418 .HasColumnType("INTEGER");
419
420 b.Property<ushort>("Port")
421 .HasColumnType("INTEGER");
422
423 b.Property<int>("ProcessId")
424 .HasColumnType("INTEGER");
425
426 b.Property<int>("RebootState")
427 .HasColumnType("INTEGER");
428
429 b.HasKey("Id");
430
431 b.HasIndex("CompileJobId");
432
433 b.ToTable("ReattachInformations");
434 });
435
436 modelBuilder.Entity("Tgstation.Server.Host.Models.RepositorySettings", b =>
437 {
438 b.Property<long>("Id")
439 .ValueGeneratedOnAdd()
440 .HasColumnType("INTEGER");
441
442 b.Property<string>("AccessToken")
443 .HasColumnType("TEXT")
444 .HasMaxLength(10000);
445
446 b.Property<string>("AccessUser")
447 .HasColumnType("TEXT")
448 .HasMaxLength(10000);
449
450 b.Property<bool?>("AutoUpdatesKeepTestMerges")
451 .IsRequired()
452 .HasColumnType("INTEGER");
453
454 b.Property<bool?>("AutoUpdatesSynchronize")
455 .IsRequired()
456 .HasColumnType("INTEGER");
457
458 b.Property<string>("CommitterEmail")
459 .IsRequired()
460 .HasColumnType("TEXT")
461 .HasMaxLength(10000);
462
463 b.Property<string>("CommitterName")
464 .IsRequired()
465 .HasColumnType("TEXT")
466 .HasMaxLength(10000);
467
468 b.Property<bool?>("CreateGitHubDeployments")
469 .IsRequired()
470 .HasColumnType("INTEGER");
471
472 b.Property<long>("InstanceId")
473 .HasColumnType("INTEGER");
474
475 b.Property<bool?>("PostTestMergeComment")
476 .IsRequired()
477 .HasColumnType("INTEGER");
478
479 b.Property<bool?>("PushTestMergeCommits")
480 .IsRequired()
481 .HasColumnType("INTEGER");
482
483 b.Property<bool?>("ShowTestMergeCommitters")
484 .IsRequired()
485 .HasColumnType("INTEGER");
486
487 b.HasKey("Id");
488
489 b.HasIndex("InstanceId")
490 .IsUnique();
491
492 b.ToTable("RepositorySettings");
493 });
494
495 modelBuilder.Entity("Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
496 {
497 b.Property<long>("Id")
498 .ValueGeneratedOnAdd()
499 .HasColumnType("INTEGER");
500
501 b.Property<long>("RevisionInformationId")
502 .HasColumnType("INTEGER");
503
504 b.Property<long>("TestMergeId")
505 .HasColumnType("INTEGER");
506
507 b.HasKey("Id");
508
509 b.HasIndex("RevisionInformationId");
510
511 b.HasIndex("TestMergeId");
512
513 b.ToTable("RevInfoTestMerges");
514 });
515
516 modelBuilder.Entity("Tgstation.Server.Host.Models.RevisionInformation", b =>
517 {
518 b.Property<long>("Id")
519 .ValueGeneratedOnAdd()
520 .HasColumnType("INTEGER");
521
522 b.Property<string>("CommitSha")
523 .IsRequired()
524 .HasColumnType("TEXT")
525 .HasMaxLength(40);
526
527 b.Property<long>("InstanceId")
528 .HasColumnType("INTEGER");
529
530 b.Property<string>("OriginCommitSha")
531 .IsRequired()
532 .HasColumnType("TEXT")
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("INTEGER");
548
549 b.Property<string>("Author")
550 .IsRequired()
551 .HasColumnType("TEXT");
552
553 b.Property<string>("BodyAtMerge")
554 .IsRequired()
555 .HasColumnType("TEXT");
556
557 b.Property<string>("Comment")
558 .HasColumnType("TEXT")
559 .HasMaxLength(10000);
560
561 b.Property<DateTimeOffset>("MergedAt")
562 .HasColumnType("TEXT");
563
564 b.Property<long>("MergedById")
565 .HasColumnType("INTEGER");
566
567 b.Property<int>("Number")
568 .HasColumnType("INTEGER");
569
570 b.Property<long?>("PrimaryRevisionInformationId")
571 .IsRequired()
572 .HasColumnType("INTEGER");
573
574 b.Property<string>("PullRequestRevision")
575 .IsRequired()
576 .HasColumnType("TEXT")
577 .HasMaxLength(40);
578
579 b.Property<string>("TitleAtMerge")
580 .IsRequired()
581 .HasColumnType("TEXT");
582
583 b.Property<string>("Url")
584 .IsRequired()
585 .HasColumnType("TEXT");
586
587 b.HasKey("Id");
588
589 b.HasIndex("MergedById");
590
591 b.HasIndex("PrimaryRevisionInformationId")
592 .IsUnique();
593
594 b.ToTable("TestMerges");
595 });
596
597 modelBuilder.Entity("Tgstation.Server.Host.Models.User", b =>
598 {
599 b.Property<long?>("Id")
600 .ValueGeneratedOnAdd()
601 .HasColumnType("INTEGER");
602
603 b.Property<ulong>("AdministrationRights")
604 .HasColumnType("INTEGER");
605
606 b.Property<string>("CanonicalName")
607 .IsRequired()
608 .HasColumnType("TEXT");
609
610 b.Property<DateTimeOffset?>("CreatedAt")
611 .IsRequired()
612 .HasColumnType("TEXT");
613
614 b.Property<long?>("CreatedById")
615 .HasColumnType("INTEGER");
616
617 b.Property<bool?>("Enabled")
618 .IsRequired()
619 .HasColumnType("INTEGER");
620
621 b.Property<ulong>("InstanceManagerRights")
622 .HasColumnType("INTEGER");
623
624 b.Property<DateTimeOffset?>("LastPasswordUpdate")
625 .HasColumnType("TEXT");
626
627 b.Property<string>("Name")
628 .IsRequired()
629 .HasColumnType("TEXT")
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.ClientNoAction)
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.InstanceUser", b =>
703 {
704 b.HasOne("Tgstation.Server.Host.Models.Instance", "Instance")
705 .WithMany("InstanceUsers")
706 .HasForeignKey("InstanceId")
707 .OnDelete(DeleteBehavior.Cascade)
708 .IsRequired();
709
710 b.HasOne("Tgstation.Server.Host.Models.User", null)
711 .WithMany("InstanceUsers")
712 .HasForeignKey("UserId")
713 .OnDelete(DeleteBehavior.Cascade)
714 .IsRequired();
715 });
716
717 modelBuilder.Entity("Tgstation.Server.Host.Models.Job", b =>
718 {
719 b.HasOne("Tgstation.Server.Host.Models.User", "CancelledBy")
720 .WithMany()
721 .HasForeignKey("CancelledById");
722
723 b.HasOne("Tgstation.Server.Host.Models.Instance", "Instance")
724 .WithMany("Jobs")
725 .HasForeignKey("InstanceId")
726 .OnDelete(DeleteBehavior.Cascade)
727 .IsRequired();
728
729 b.HasOne("Tgstation.Server.Host.Models.User", "StartedBy")
730 .WithMany()
731 .HasForeignKey("StartedById")
732 .OnDelete(DeleteBehavior.Cascade)
733 .IsRequired();
734 });
735
736 modelBuilder.Entity("Tgstation.Server.Host.Models.OAuthConnection", b =>
737 {
738 b.HasOne("Tgstation.Server.Host.Models.User", "User")
739 .WithMany("OAuthConnections")
740 .HasForeignKey("UserId")
741 .OnDelete(DeleteBehavior.Cascade);
742 });
743
744 modelBuilder.Entity("Tgstation.Server.Host.Models.ReattachInformation", b =>
745 {
746 b.HasOne("Tgstation.Server.Host.Models.CompileJob", "CompileJob")
747 .WithMany()
748 .HasForeignKey("CompileJobId")
749 .OnDelete(DeleteBehavior.Cascade)
750 .IsRequired();
751 });
752
753 modelBuilder.Entity("Tgstation.Server.Host.Models.RepositorySettings", b =>
754 {
755 b.HasOne("Tgstation.Server.Host.Models.Instance", "Instance")
756 .WithOne("RepositorySettings")
757 .HasForeignKey("Tgstation.Server.Host.Models.RepositorySettings", "InstanceId")
758 .OnDelete(DeleteBehavior.Cascade)
759 .IsRequired();
760 });
761
762 modelBuilder.Entity("Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
763 {
764 b.HasOne("Tgstation.Server.Host.Models.RevisionInformation", "RevisionInformation")
765 .WithMany("ActiveTestMerges")
766 .HasForeignKey("RevisionInformationId")
767 .OnDelete(DeleteBehavior.Cascade)
768 .IsRequired();
769
770 b.HasOne("Tgstation.Server.Host.Models.TestMerge", "TestMerge")
771 .WithMany("RevisonInformations")
772 .HasForeignKey("TestMergeId")
773 .OnDelete(DeleteBehavior.ClientNoAction)
774 .IsRequired();
775 });
776
777 modelBuilder.Entity("Tgstation.Server.Host.Models.RevisionInformation", b =>
778 {
779 b.HasOne("Tgstation.Server.Host.Models.Instance", "Instance")
780 .WithMany("RevisionInformations")
781 .HasForeignKey("InstanceId")
782 .OnDelete(DeleteBehavior.Cascade)
783 .IsRequired();
784 });
785
786 modelBuilder.Entity("Tgstation.Server.Host.Models.TestMerge", b =>
787 {
788 b.HasOne("Tgstation.Server.Host.Models.User", "MergedBy")
789 .WithMany("TestMerges")
790 .HasForeignKey("MergedById")
791 .OnDelete(DeleteBehavior.Restrict)
792 .IsRequired();
793
794 b.HasOne("Tgstation.Server.Host.Models.RevisionInformation", "PrimaryRevisionInformation")
795 .WithOne("PrimaryTestMerge")
796 .HasForeignKey("Tgstation.Server.Host.Models.TestMerge", "PrimaryRevisionInformationId")
797 .OnDelete(DeleteBehavior.Cascade)
798 .IsRequired();
799 });
800
801 modelBuilder.Entity("Tgstation.Server.Host.Models.User", b =>
802 {
803 b.HasOne("Tgstation.Server.Host.Models.User", "CreatedBy")
804 .WithMany("CreatedUsers")
805 .HasForeignKey("CreatedById");
806 });
807#pragma warning restore 612, 618
808 }
809 }
810}