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