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