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