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