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