tgstation-server 6.12.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
20240719010153_MSAddOpenDreamTopicPort.Designer.cs
Go to the documentation of this file.
1// <auto-generated />
2using System;
3
4using Microsoft.EntityFrameworkCore;
5using Microsoft.EntityFrameworkCore.Infrastructure;
6using Microsoft.EntityFrameworkCore.Migrations;
7
9{
10 [DbContext(typeof(SqlServerDatabaseContext))]
11 [Migration("20240719010153_MSAddOpenDreamTopicPort")]
12 partial class MSAddOpenDreamTopicPort
13 {
15 protected override void BuildTargetModel(ModelBuilder modelBuilder)
16 {
17#pragma warning disable 612, 618
18 modelBuilder
19 .HasAnnotation("ProductVersion", "8.0.7")
20 .HasAnnotation("Relational:MaxIdentifierLength", 128);
21
22 SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
23
24 modelBuilder.Entity("Tgstation.Server.Host.Models.ChatBot", b =>
25 {
26 b.Property<long?>("Id")
27 .ValueGeneratedOnAdd()
28 .HasColumnType("bigint");
29
30 SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long?>("Id"));
31
32 b.Property<int>("ChannelLimit")
33 .HasColumnType("int");
34
35 b.Property<string>("ConnectionString")
36 .IsRequired()
37 .HasMaxLength(10000)
38 .HasColumnType("nvarchar(max)");
39
40 b.Property<bool?>("Enabled")
41 .HasColumnType("bit");
42
43 b.Property<long>("InstanceId")
44 .HasColumnType("bigint");
45
46 b.Property<string>("Name")
47 .IsRequired()
48 .HasMaxLength(100)
49 .HasColumnType("nvarchar(100)");
50
51 b.Property<int>("Provider")
52 .HasColumnType("int");
53
54 b.Property<long>("ReconnectionInterval")
55 .HasColumnType("bigint");
56
57 b.HasKey("Id");
58
59 b.HasIndex("InstanceId", "Name")
60 .IsUnique();
61
62 b.ToTable("ChatBots");
63 });
64
65 modelBuilder.Entity("Tgstation.Server.Host.Models.ChatChannel", b =>
66 {
67 b.Property<long>("Id")
68 .ValueGeneratedOnAdd()
69 .HasColumnType("bigint");
70
71 SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
72
73 b.Property<long>("ChatSettingsId")
74 .HasColumnType("bigint");
75
76 b.Property<decimal?>("DiscordChannelId")
77 .HasColumnType("decimal(20,0)");
78
79 b.Property<string>("IrcChannel")
80 .HasMaxLength(100)
81 .HasColumnType("nvarchar(100)");
82
83 b.Property<bool?>("IsAdminChannel")
84 .IsRequired()
85 .HasColumnType("bit");
86
87 b.Property<bool?>("IsSystemChannel")
88 .IsRequired()
89 .HasColumnType("bit");
90
91 b.Property<bool?>("IsUpdatesChannel")
92 .IsRequired()
93 .HasColumnType("bit");
94
95 b.Property<bool?>("IsWatchdogChannel")
96 .IsRequired()
97 .HasColumnType("bit");
98
99 b.Property<string>("Tag")
100 .HasMaxLength(10000)
101 .HasColumnType("nvarchar(max)");
102
103 b.HasKey("Id");
104
105 b.HasIndex("ChatSettingsId", "DiscordChannelId")
106 .IsUnique()
107 .HasFilter("[DiscordChannelId] IS NOT NULL");
108
109 b.HasIndex("ChatSettingsId", "IrcChannel")
110 .IsUnique()
111 .HasFilter("[IrcChannel] IS NOT NULL");
112
113 b.ToTable("ChatChannels");
114 });
115
116 modelBuilder.Entity("Tgstation.Server.Host.Models.CompileJob", b =>
117 {
118 b.Property<long?>("Id")
119 .ValueGeneratedOnAdd()
120 .HasColumnType("bigint");
121
122 SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long?>("Id"));
123
124 b.Property<int?>("DMApiMajorVersion")
125 .HasColumnType("int");
126
127 b.Property<int?>("DMApiMinorVersion")
128 .HasColumnType("int");
129
130 b.Property<int?>("DMApiPatchVersion")
131 .HasColumnType("int");
132
133 b.Property<Guid?>("DirectoryName")
134 .IsRequired()
135 .HasColumnType("uniqueidentifier");
136
137 b.Property<string>("DmeName")
138 .IsRequired()
139 .HasColumnType("nvarchar(max)");
140
141 b.Property<string>("EngineVersion")
142 .IsRequired()
143 .HasColumnType("nvarchar(max)");
144
145 b.Property<long?>("GitHubDeploymentId")
146 .HasColumnType("bigint");
147
148 b.Property<long?>("GitHubRepoId")
149 .HasColumnType("bigint");
150
151 b.Property<long>("JobId")
152 .HasColumnType("bigint");
153
154 b.Property<int?>("MinimumSecurityLevel")
155 .HasColumnType("int");
156
157 b.Property<string>("Output")
158 .IsRequired()
159 .HasColumnType("nvarchar(max)");
160
161 b.Property<string>("RepositoryOrigin")
162 .HasColumnType("nvarchar(max)");
163
164 b.Property<long>("RevisionInformationId")
165 .HasColumnType("bigint");
166
167 b.HasKey("Id");
168
169 b.HasIndex("DirectoryName");
170
171 b.HasIndex("JobId")
172 .IsUnique();
173
174 b.HasIndex("RevisionInformationId");
175
176 b.ToTable("CompileJobs");
177 });
178
179 modelBuilder.Entity("Tgstation.Server.Host.Models.DreamDaemonSettings", b =>
180 {
181 b.Property<long>("Id")
182 .ValueGeneratedOnAdd()
183 .HasColumnType("bigint");
184
185 SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
186
187 b.Property<string>("AdditionalParameters")
188 .IsRequired()
189 .HasMaxLength(10000)
190 .HasColumnType("nvarchar(max)");
191
192 b.Property<bool?>("AllowWebClient")
193 .IsRequired()
194 .HasColumnType("bit");
195
196 b.Property<bool?>("AutoStart")
197 .IsRequired()
198 .HasColumnType("bit");
199
200 b.Property<bool?>("DumpOnHealthCheckRestart")
201 .IsRequired()
202 .HasColumnType("bit");
203
204 b.Property<long>("HealthCheckSeconds")
205 .HasColumnType("bigint");
206
207 b.Property<long>("InstanceId")
208 .HasColumnType("bigint");
209
210 b.Property<bool?>("LogOutput")
211 .IsRequired()
212 .HasColumnType("bit");
213
214 b.Property<long>("MapThreads")
215 .HasColumnType("bigint");
216
217 b.Property<bool?>("Minidumps")
218 .IsRequired()
219 .HasColumnType("bit");
220
221 b.Property<int>("OpenDreamTopicPort")
222 .HasColumnType("int");
223
224 b.Property<int>("Port")
225 .HasColumnType("int");
226
227 b.Property<int>("SecurityLevel")
228 .HasColumnType("int");
229
230 b.Property<bool?>("StartProfiler")
231 .IsRequired()
232 .HasColumnType("bit");
233
234 b.Property<long>("StartupTimeout")
235 .HasColumnType("bigint");
236
237 b.Property<long>("TopicRequestTimeout")
238 .HasColumnType("bigint");
239
240 b.Property<int>("Visibility")
241 .HasColumnType("int");
242
243 b.HasKey("Id");
244
245 b.HasIndex("InstanceId")
246 .IsUnique();
247
248 b.ToTable("DreamDaemonSettings");
249 });
250
251 modelBuilder.Entity("Tgstation.Server.Host.Models.DreamMakerSettings", b =>
252 {
253 b.Property<long>("Id")
254 .ValueGeneratedOnAdd()
255 .HasColumnType("bigint");
256
257 SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
258
259 b.Property<int>("ApiValidationPort")
260 .HasColumnType("int");
261
262 b.Property<int>("ApiValidationSecurityLevel")
263 .HasColumnType("int");
264
265 b.Property<string>("CompilerAdditionalArguments")
266 .HasMaxLength(10000)
267 .HasColumnType("nvarchar(max)");
268
269 b.Property<long>("InstanceId")
270 .HasColumnType("bigint");
271
272 b.Property<string>("ProjectName")
273 .HasMaxLength(10000)
274 .HasColumnType("nvarchar(max)");
275
276 b.Property<bool?>("RequireDMApiValidation")
277 .IsRequired()
278 .HasColumnType("bit");
279
280 b.Property<TimeSpan?>("Timeout")
281 .IsRequired()
282 .HasColumnType("time");
283
284 b.HasKey("Id");
285
286 b.HasIndex("InstanceId")
287 .IsUnique();
288
289 b.ToTable("DreamMakerSettings");
290 });
291
292 modelBuilder.Entity("Tgstation.Server.Host.Models.Instance", b =>
293 {
294 b.Property<long?>("Id")
295 .ValueGeneratedOnAdd()
296 .HasColumnType("bigint");
297
298 SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long?>("Id"));
299
300 b.Property<string>("AutoUpdateCron")
301 .IsRequired()
302 .HasMaxLength(10000)
303 .HasColumnType("nvarchar(max)");
304
305 b.Property<long>("AutoUpdateInterval")
306 .HasColumnType("bigint");
307
308 b.Property<int>("ChatBotLimit")
309 .HasColumnType("int");
310
311 b.Property<int>("ConfigurationType")
312 .HasColumnType("int");
313
314 b.Property<string>("Name")
315 .IsRequired()
316 .HasMaxLength(100)
317 .HasColumnType("nvarchar(100)");
318
319 b.Property<bool?>("Online")
320 .IsRequired()
321 .HasColumnType("bit");
322
323 b.Property<string>("Path")
324 .IsRequired()
325 .HasColumnType("nvarchar(450)");
326
327 b.Property<string>("SwarmIdentifer")
328 .HasColumnType("nvarchar(450)");
329
330 b.HasKey("Id");
331
332 b.HasIndex("Path", "SwarmIdentifer")
333 .IsUnique()
334 .HasFilter("[SwarmIdentifer] IS NOT NULL");
335
336 b.ToTable("Instances");
337 });
338
339 modelBuilder.Entity("Tgstation.Server.Host.Models.InstancePermissionSet", b =>
340 {
341 b.Property<long>("Id")
342 .ValueGeneratedOnAdd()
343 .HasColumnType("bigint");
344
345 SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
346
347 b.Property<decimal>("ChatBotRights")
348 .HasColumnType("decimal(20,0)");
349
350 b.Property<decimal>("ConfigurationRights")
351 .HasColumnType("decimal(20,0)");
352
353 b.Property<decimal>("DreamDaemonRights")
354 .HasColumnType("decimal(20,0)");
355
356 b.Property<decimal>("DreamMakerRights")
357 .HasColumnType("decimal(20,0)");
358
359 b.Property<decimal>("EngineRights")
360 .HasColumnType("decimal(20,0)");
361
362 b.Property<long>("InstanceId")
363 .HasColumnType("bigint");
364
365 b.Property<decimal>("InstancePermissionSetRights")
366 .HasColumnType("decimal(20,0)");
367
368 b.Property<long>("PermissionSetId")
369 .HasColumnType("bigint");
370
371 b.Property<decimal>("RepositoryRights")
372 .HasColumnType("decimal(20,0)");
373
374 b.HasKey("Id");
375
376 b.HasIndex("InstanceId");
377
378 b.HasIndex("PermissionSetId", "InstanceId")
379 .IsUnique();
380
381 b.ToTable("InstancePermissionSets");
382 });
383
384 modelBuilder.Entity("Tgstation.Server.Host.Models.Job", b =>
385 {
386 b.Property<long?>("Id")
387 .ValueGeneratedOnAdd()
388 .HasColumnType("bigint");
389
390 SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long?>("Id"));
391
392 b.Property<decimal?>("CancelRight")
393 .HasColumnType("decimal(20,0)");
394
395 b.Property<decimal?>("CancelRightsType")
396 .HasColumnType("decimal(20,0)");
397
398 b.Property<bool?>("Cancelled")
399 .IsRequired()
400 .HasColumnType("bit");
401
402 b.Property<long?>("CancelledById")
403 .HasColumnType("bigint");
404
405 b.Property<string>("Description")
406 .IsRequired()
407 .HasColumnType("nvarchar(max)");
408
409 b.Property<long?>("ErrorCode")
410 .HasColumnType("bigint");
411
412 b.Property<string>("ExceptionDetails")
413 .HasColumnType("nvarchar(max)");
414
415 b.Property<long>("InstanceId")
416 .HasColumnType("bigint");
417
418 b.Property<byte>("JobCode")
419 .HasColumnType("tinyint");
420
421 b.Property<DateTimeOffset?>("StartedAt")
422 .IsRequired()
423 .HasColumnType("datetimeoffset");
424
425 b.Property<long>("StartedById")
426 .HasColumnType("bigint");
427
428 b.Property<DateTimeOffset?>("StoppedAt")
429 .HasColumnType("datetimeoffset");
430
431 b.HasKey("Id");
432
433 b.HasIndex("CancelledById");
434
435 b.HasIndex("InstanceId");
436
437 b.HasIndex("StartedById");
438
439 b.ToTable("Jobs");
440 });
441
442 modelBuilder.Entity("Tgstation.Server.Host.Models.OAuthConnection", b =>
443 {
444 b.Property<long>("Id")
445 .ValueGeneratedOnAdd()
446 .HasColumnType("bigint");
447
448 SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
449
450 b.Property<string>("ExternalUserId")
451 .IsRequired()
452 .HasMaxLength(100)
453 .HasColumnType("nvarchar(100)");
454
455 b.Property<int>("Provider")
456 .HasColumnType("int");
457
458 b.Property<long?>("UserId")
459 .HasColumnType("bigint");
460
461 b.HasKey("Id");
462
463 b.HasIndex("UserId");
464
465 b.HasIndex("Provider", "ExternalUserId")
466 .IsUnique();
467
468 b.ToTable("OAuthConnections");
469 });
470
471 modelBuilder.Entity("Tgstation.Server.Host.Models.PermissionSet", b =>
472 {
473 b.Property<long?>("Id")
474 .ValueGeneratedOnAdd()
475 .HasColumnType("bigint");
476
477 SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long?>("Id"));
478
479 b.Property<decimal>("AdministrationRights")
480 .HasColumnType("decimal(20,0)");
481
482 b.Property<long?>("GroupId")
483 .HasColumnType("bigint");
484
485 b.Property<decimal>("InstanceManagerRights")
486 .HasColumnType("decimal(20,0)");
487
488 b.Property<long?>("UserId")
489 .HasColumnType("bigint");
490
491 b.HasKey("Id");
492
493 b.HasIndex("GroupId")
494 .IsUnique()
495 .HasFilter("[GroupId] IS NOT NULL");
496
497 b.HasIndex("UserId")
498 .IsUnique()
499 .HasFilter("[UserId] IS NOT NULL");
500
501 b.ToTable("PermissionSets");
502 });
503
504 modelBuilder.Entity("Tgstation.Server.Host.Models.ReattachInformation", b =>
505 {
506 b.Property<long?>("Id")
507 .ValueGeneratedOnAdd()
508 .HasColumnType("bigint");
509
510 SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long?>("Id"));
511
512 b.Property<string>("AccessIdentifier")
513 .IsRequired()
514 .HasColumnType("nvarchar(max)");
515
516 b.Property<long>("CompileJobId")
517 .HasColumnType("bigint");
518
519 b.Property<long?>("InitialCompileJobId")
520 .HasColumnType("bigint");
521
522 b.Property<int>("LaunchSecurityLevel")
523 .HasColumnType("int");
524
525 b.Property<int>("LaunchVisibility")
526 .HasColumnType("int");
527
528 b.Property<int>("Port")
529 .HasColumnType("int");
530
531 b.Property<int>("ProcessId")
532 .HasColumnType("int");
533
534 b.Property<int>("RebootState")
535 .HasColumnType("int");
536
537 b.Property<int?>("TopicPort")
538 .HasColumnType("int");
539
540 b.HasKey("Id");
541
542 b.HasIndex("CompileJobId");
543
544 b.HasIndex("InitialCompileJobId");
545
546 b.ToTable("ReattachInformations");
547 });
548
549 modelBuilder.Entity("Tgstation.Server.Host.Models.RepositorySettings", b =>
550 {
551 b.Property<long>("Id")
552 .ValueGeneratedOnAdd()
553 .HasColumnType("bigint");
554
555 SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
556
557 b.Property<string>("AccessToken")
558 .HasMaxLength(10000)
559 .HasColumnType("nvarchar(max)");
560
561 b.Property<string>("AccessUser")
562 .HasMaxLength(10000)
563 .HasColumnType("nvarchar(max)");
564
565 b.Property<bool?>("AutoUpdatesKeepTestMerges")
566 .IsRequired()
567 .HasColumnType("bit");
568
569 b.Property<bool?>("AutoUpdatesSynchronize")
570 .IsRequired()
571 .HasColumnType("bit");
572
573 b.Property<string>("CommitterEmail")
574 .IsRequired()
575 .HasMaxLength(10000)
576 .HasColumnType("nvarchar(max)");
577
578 b.Property<string>("CommitterName")
579 .IsRequired()
580 .HasMaxLength(10000)
581 .HasColumnType("nvarchar(max)");
582
583 b.Property<bool?>("CreateGitHubDeployments")
584 .IsRequired()
585 .HasColumnType("bit");
586
587 b.Property<long>("InstanceId")
588 .HasColumnType("bigint");
589
590 b.Property<bool?>("PostTestMergeComment")
591 .IsRequired()
592 .HasColumnType("bit");
593
594 b.Property<bool?>("PushTestMergeCommits")
595 .IsRequired()
596 .HasColumnType("bit");
597
598 b.Property<bool?>("ShowTestMergeCommitters")
599 .IsRequired()
600 .HasColumnType("bit");
601
602 b.Property<bool?>("UpdateSubmodules")
603 .IsRequired()
604 .HasColumnType("bit");
605
606 b.HasKey("Id");
607
608 b.HasIndex("InstanceId")
609 .IsUnique();
610
611 b.ToTable("RepositorySettings");
612 });
613
614 modelBuilder.Entity("Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
615 {
616 b.Property<long>("Id")
617 .ValueGeneratedOnAdd()
618 .HasColumnType("bigint");
619
620 SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
621
622 b.Property<long>("RevisionInformationId")
623 .HasColumnType("bigint");
624
625 b.Property<long>("TestMergeId")
626 .HasColumnType("bigint");
627
628 b.HasKey("Id");
629
630 b.HasIndex("RevisionInformationId");
631
632 b.HasIndex("TestMergeId");
633
634 b.ToTable("RevInfoTestMerges");
635 });
636
637 modelBuilder.Entity("Tgstation.Server.Host.Models.RevisionInformation", b =>
638 {
639 b.Property<long>("Id")
640 .ValueGeneratedOnAdd()
641 .HasColumnType("bigint");
642
643 SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
644
645 b.Property<string>("CommitSha")
646 .IsRequired()
647 .HasMaxLength(40)
648 .HasColumnType("nvarchar(40)");
649
650 b.Property<long>("InstanceId")
651 .HasColumnType("bigint");
652
653 b.Property<string>("OriginCommitSha")
654 .IsRequired()
655 .HasMaxLength(40)
656 .HasColumnType("nvarchar(40)");
657
658 b.Property<DateTimeOffset>("Timestamp")
659 .HasColumnType("datetimeoffset");
660
661 b.HasKey("Id");
662
663 b.HasIndex("InstanceId", "CommitSha")
664 .IsUnique();
665
666 b.ToTable("RevisionInformations");
667 });
668
669 modelBuilder.Entity("Tgstation.Server.Host.Models.TestMerge", b =>
670 {
671 b.Property<long>("Id")
672 .ValueGeneratedOnAdd()
673 .HasColumnType("bigint");
674
675 SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
676
677 b.Property<string>("Author")
678 .IsRequired()
679 .HasColumnType("nvarchar(max)");
680
681 b.Property<string>("BodyAtMerge")
682 .IsRequired()
683 .HasColumnType("nvarchar(max)");
684
685 b.Property<string>("Comment")
686 .HasMaxLength(10000)
687 .HasColumnType("nvarchar(max)");
688
689 b.Property<DateTimeOffset>("MergedAt")
690 .HasColumnType("datetimeoffset");
691
692 b.Property<long>("MergedById")
693 .HasColumnType("bigint");
694
695 b.Property<int>("Number")
696 .HasColumnType("int");
697
698 b.Property<long?>("PrimaryRevisionInformationId")
699 .IsRequired()
700 .HasColumnType("bigint");
701
702 b.Property<string>("TargetCommitSha")
703 .IsRequired()
704 .HasMaxLength(40)
705 .HasColumnType("nvarchar(40)");
706
707 b.Property<string>("TitleAtMerge")
708 .IsRequired()
709 .HasColumnType("nvarchar(max)");
710
711 b.Property<string>("Url")
712 .IsRequired()
713 .HasColumnType("nvarchar(max)");
714
715 b.HasKey("Id");
716
717 b.HasIndex("MergedById");
718
719 b.HasIndex("PrimaryRevisionInformationId")
720 .IsUnique();
721
722 b.ToTable("TestMerges");
723 });
724
725 modelBuilder.Entity("Tgstation.Server.Host.Models.User", b =>
726 {
727 b.Property<long?>("Id")
728 .ValueGeneratedOnAdd()
729 .HasColumnType("bigint");
730
731 SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long?>("Id"));
732
733 b.Property<string>("CanonicalName")
734 .IsRequired()
735 .HasMaxLength(100)
736 .HasColumnType("nvarchar(100)");
737
738 b.Property<DateTimeOffset?>("CreatedAt")
739 .IsRequired()
740 .HasColumnType("datetimeoffset");
741
742 b.Property<long?>("CreatedById")
743 .HasColumnType("bigint");
744
745 b.Property<bool?>("Enabled")
746 .IsRequired()
747 .HasColumnType("bit");
748
749 b.Property<long?>("GroupId")
750 .HasColumnType("bigint");
751
752 b.Property<DateTimeOffset?>("LastPasswordUpdate")
753 .HasColumnType("datetimeoffset");
754
755 b.Property<string>("Name")
756 .IsRequired()
757 .HasMaxLength(100)
758 .HasColumnType("nvarchar(100)");
759
760 b.Property<string>("PasswordHash")
761 .HasColumnType("nvarchar(max)");
762
763 b.Property<string>("SystemIdentifier")
764 .HasMaxLength(100)
765 .HasColumnType("nvarchar(100)");
766
767 b.HasKey("Id");
768
769 b.HasIndex("CanonicalName")
770 .IsUnique();
771
772 b.HasIndex("CreatedById");
773
774 b.HasIndex("GroupId");
775
776 b.HasIndex("SystemIdentifier")
777 .IsUnique()
778 .HasFilter("[SystemIdentifier] IS NOT NULL");
779
780 b.ToTable("Users");
781 });
782
783 modelBuilder.Entity("Tgstation.Server.Host.Models.UserGroup", b =>
784 {
785 b.Property<long?>("Id")
786 .ValueGeneratedOnAdd()
787 .HasColumnType("bigint");
788
789 SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long?>("Id"));
790
791 b.Property<string>("Name")
792 .IsRequired()
793 .HasMaxLength(100)
794 .HasColumnType("nvarchar(100)");
795
796 b.HasKey("Id");
797
798 b.HasIndex("Name")
799 .IsUnique();
800
801 b.ToTable("Groups");
802 });
803
804 modelBuilder.Entity("Tgstation.Server.Host.Models.ChatBot", b =>
805 {
806 b.HasOne("Tgstation.Server.Host.Models.Instance", "Instance")
807 .WithMany("ChatSettings")
808 .HasForeignKey("InstanceId")
809 .OnDelete(DeleteBehavior.Cascade)
810 .IsRequired();
811
812 b.Navigation("Instance");
813 });
814
815 modelBuilder.Entity("Tgstation.Server.Host.Models.ChatChannel", b =>
816 {
817 b.HasOne("Tgstation.Server.Host.Models.ChatBot", "ChatSettings")
818 .WithMany("Channels")
819 .HasForeignKey("ChatSettingsId")
820 .OnDelete(DeleteBehavior.Cascade)
821 .IsRequired();
822
823 b.Navigation("ChatSettings");
824 });
825
826 modelBuilder.Entity("Tgstation.Server.Host.Models.CompileJob", b =>
827 {
828 b.HasOne("Tgstation.Server.Host.Models.Job", "Job")
829 .WithOne()
830 .HasForeignKey("Tgstation.Server.Host.Models.CompileJob", "JobId")
831 .OnDelete(DeleteBehavior.Cascade)
832 .IsRequired();
833
834 b.HasOne("Tgstation.Server.Host.Models.RevisionInformation", "RevisionInformation")
835 .WithMany("CompileJobs")
836 .HasForeignKey("RevisionInformationId")
837 .OnDelete(DeleteBehavior.ClientNoAction)
838 .IsRequired();
839
840 b.Navigation("Job");
841
842 b.Navigation("RevisionInformation");
843 });
844
845 modelBuilder.Entity("Tgstation.Server.Host.Models.DreamDaemonSettings", b =>
846 {
847 b.HasOne("Tgstation.Server.Host.Models.Instance", "Instance")
848 .WithOne("DreamDaemonSettings")
849 .HasForeignKey("Tgstation.Server.Host.Models.DreamDaemonSettings", "InstanceId")
850 .OnDelete(DeleteBehavior.Cascade)
851 .IsRequired();
852
853 b.Navigation("Instance");
854 });
855
856 modelBuilder.Entity("Tgstation.Server.Host.Models.DreamMakerSettings", b =>
857 {
858 b.HasOne("Tgstation.Server.Host.Models.Instance", "Instance")
859 .WithOne("DreamMakerSettings")
860 .HasForeignKey("Tgstation.Server.Host.Models.DreamMakerSettings", "InstanceId")
861 .OnDelete(DeleteBehavior.Cascade)
862 .IsRequired();
863
864 b.Navigation("Instance");
865 });
866
867 modelBuilder.Entity("Tgstation.Server.Host.Models.InstancePermissionSet", b =>
868 {
869 b.HasOne("Tgstation.Server.Host.Models.Instance", "Instance")
870 .WithMany("InstancePermissionSets")
871 .HasForeignKey("InstanceId")
872 .OnDelete(DeleteBehavior.Cascade)
873 .IsRequired();
874
875 b.HasOne("Tgstation.Server.Host.Models.PermissionSet", "PermissionSet")
876 .WithMany("InstancePermissionSets")
877 .HasForeignKey("PermissionSetId")
878 .OnDelete(DeleteBehavior.Cascade)
879 .IsRequired();
880
881 b.Navigation("Instance");
882
883 b.Navigation("PermissionSet");
884 });
885
886 modelBuilder.Entity("Tgstation.Server.Host.Models.Job", b =>
887 {
888 b.HasOne("Tgstation.Server.Host.Models.User", "CancelledBy")
889 .WithMany()
890 .HasForeignKey("CancelledById");
891
892 b.HasOne("Tgstation.Server.Host.Models.Instance", "Instance")
893 .WithMany("Jobs")
894 .HasForeignKey("InstanceId")
895 .OnDelete(DeleteBehavior.Cascade)
896 .IsRequired();
897
898 b.HasOne("Tgstation.Server.Host.Models.User", "StartedBy")
899 .WithMany()
900 .HasForeignKey("StartedById")
901 .OnDelete(DeleteBehavior.Cascade)
902 .IsRequired();
903
904 b.Navigation("CancelledBy");
905
906 b.Navigation("Instance");
907
908 b.Navigation("StartedBy");
909 });
910
911 modelBuilder.Entity("Tgstation.Server.Host.Models.OAuthConnection", b =>
912 {
913 b.HasOne("Tgstation.Server.Host.Models.User", "User")
914 .WithMany("OAuthConnections")
915 .HasForeignKey("UserId")
916 .OnDelete(DeleteBehavior.Cascade);
917
918 b.Navigation("User");
919 });
920
921 modelBuilder.Entity("Tgstation.Server.Host.Models.PermissionSet", b =>
922 {
923 b.HasOne("Tgstation.Server.Host.Models.UserGroup", "Group")
924 .WithOne("PermissionSet")
925 .HasForeignKey("Tgstation.Server.Host.Models.PermissionSet", "GroupId")
926 .OnDelete(DeleteBehavior.Cascade);
927
928 b.HasOne("Tgstation.Server.Host.Models.User", "User")
929 .WithOne("PermissionSet")
930 .HasForeignKey("Tgstation.Server.Host.Models.PermissionSet", "UserId")
931 .OnDelete(DeleteBehavior.Cascade);
932
933 b.Navigation("Group");
934
935 b.Navigation("User");
936 });
937
938 modelBuilder.Entity("Tgstation.Server.Host.Models.ReattachInformation", b =>
939 {
940 b.HasOne("Tgstation.Server.Host.Models.CompileJob", "CompileJob")
941 .WithMany()
942 .HasForeignKey("CompileJobId")
943 .OnDelete(DeleteBehavior.Cascade)
944 .IsRequired();
945
946 b.HasOne("Tgstation.Server.Host.Models.CompileJob", "InitialCompileJob")
947 .WithMany()
948 .HasForeignKey("InitialCompileJobId");
949
950 b.Navigation("CompileJob");
951
952 b.Navigation("InitialCompileJob");
953 });
954
955 modelBuilder.Entity("Tgstation.Server.Host.Models.RepositorySettings", b =>
956 {
957 b.HasOne("Tgstation.Server.Host.Models.Instance", "Instance")
958 .WithOne("RepositorySettings")
959 .HasForeignKey("Tgstation.Server.Host.Models.RepositorySettings", "InstanceId")
960 .OnDelete(DeleteBehavior.Cascade)
961 .IsRequired();
962
963 b.Navigation("Instance");
964 });
965
966 modelBuilder.Entity("Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
967 {
968 b.HasOne("Tgstation.Server.Host.Models.RevisionInformation", "RevisionInformation")
969 .WithMany("ActiveTestMerges")
970 .HasForeignKey("RevisionInformationId")
971 .OnDelete(DeleteBehavior.Cascade)
972 .IsRequired();
973
974 b.HasOne("Tgstation.Server.Host.Models.TestMerge", "TestMerge")
975 .WithMany("RevisonInformations")
976 .HasForeignKey("TestMergeId")
977 .OnDelete(DeleteBehavior.ClientNoAction)
978 .IsRequired();
979
980 b.Navigation("RevisionInformation");
981
982 b.Navigation("TestMerge");
983 });
984
985 modelBuilder.Entity("Tgstation.Server.Host.Models.RevisionInformation", b =>
986 {
987 b.HasOne("Tgstation.Server.Host.Models.Instance", "Instance")
988 .WithMany("RevisionInformations")
989 .HasForeignKey("InstanceId")
990 .OnDelete(DeleteBehavior.Cascade)
991 .IsRequired();
992
993 b.Navigation("Instance");
994 });
995
996 modelBuilder.Entity("Tgstation.Server.Host.Models.TestMerge", b =>
997 {
998 b.HasOne("Tgstation.Server.Host.Models.User", "MergedBy")
999 .WithMany("TestMerges")
1000 .HasForeignKey("MergedById")
1001 .OnDelete(DeleteBehavior.Restrict)
1002 .IsRequired();
1003
1004 b.HasOne("Tgstation.Server.Host.Models.RevisionInformation", "PrimaryRevisionInformation")
1005 .WithOne("PrimaryTestMerge")
1006 .HasForeignKey("Tgstation.Server.Host.Models.TestMerge", "PrimaryRevisionInformationId")
1007 .OnDelete(DeleteBehavior.Cascade)
1008 .IsRequired();
1009
1010 b.Navigation("MergedBy");
1011
1012 b.Navigation("PrimaryRevisionInformation");
1013 });
1014
1015 modelBuilder.Entity("Tgstation.Server.Host.Models.User", b =>
1016 {
1017 b.HasOne("Tgstation.Server.Host.Models.User", "CreatedBy")
1018 .WithMany("CreatedUsers")
1019 .HasForeignKey("CreatedById");
1020
1021 b.HasOne("Tgstation.Server.Host.Models.UserGroup", "Group")
1022 .WithMany("Users")
1023 .HasForeignKey("GroupId");
1024
1025 b.Navigation("CreatedBy");
1026
1027 b.Navigation("Group");
1028 });
1029
1030 modelBuilder.Entity("Tgstation.Server.Host.Models.ChatBot", b =>
1031 {
1032 b.Navigation("Channels");
1033 });
1034
1035 modelBuilder.Entity("Tgstation.Server.Host.Models.Instance", b =>
1036 {
1037 b.Navigation("ChatSettings");
1038
1039 b.Navigation("DreamDaemonSettings");
1040
1041 b.Navigation("DreamMakerSettings");
1042
1043 b.Navigation("InstancePermissionSets");
1044
1045 b.Navigation("Jobs");
1046
1047 b.Navigation("RepositorySettings");
1048
1049 b.Navigation("RevisionInformations");
1050 });
1051
1052 modelBuilder.Entity("Tgstation.Server.Host.Models.PermissionSet", b =>
1053 {
1054 b.Navigation("InstancePermissionSets");
1055 });
1056
1057 modelBuilder.Entity("Tgstation.Server.Host.Models.RevisionInformation", b =>
1058 {
1059 b.Navigation("ActiveTestMerges");
1060
1061 b.Navigation("CompileJobs");
1062
1063 b.Navigation("PrimaryTestMerge");
1064 });
1065
1066 modelBuilder.Entity("Tgstation.Server.Host.Models.TestMerge", b =>
1067 {
1068 b.Navigation("RevisonInformations");
1069 });
1070
1071 modelBuilder.Entity("Tgstation.Server.Host.Models.User", b =>
1072 {
1073 b.Navigation("CreatedUsers");
1074
1075 b.Navigation("OAuthConnections");
1076
1077 b.Navigation("PermissionSet");
1078
1079 b.Navigation("TestMerges");
1080 });
1081
1082 modelBuilder.Entity("Tgstation.Server.Host.Models.UserGroup", b =>
1083 {
1084 b.Navigation("PermissionSet")
1085 .IsRequired();
1086
1087 b.Navigation("Users");
1088 });
1089#pragma warning restore 612, 618
1090 }
1091 }
1092}