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