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