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