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