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