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