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