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