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