tgstation-server 6.12.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
20200411170010_MYTonsOfValidation.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;
6
8{
9 [DbContext(typeof(MySqlDatabaseContext))]
10 [Migration("20200411170010_MYTonsOfValidation")]
11 partial class MYTonsOfValidation
12 {
14 protected override void BuildTargetModel(ModelBuilder modelBuilder)
15 {
16#pragma warning disable 612, 618
17 modelBuilder
18 .HasAnnotation("ProductVersion", "2.2.6-servicing-10079")
19 .HasAnnotation("Relational:MaxIdentifierLength", 64);
20
21 modelBuilder.Entity("Tgstation.Server.Host.Models.ChatBot", b =>
22 {
23 b.Property<long>("Id")
24 .ValueGeneratedOnAdd();
25
26 b.Property<string>("ConnectionString")
27 .IsRequired()
28 .HasMaxLength(10000);
29
30 b.Property<bool?>("Enabled");
31
32 b.Property<long>("InstanceId");
33
34 b.Property<string>("Name")
35 .IsRequired()
36 .HasMaxLength(100);
37
38 b.Property<int>("Provider");
39
40 b.Property<uint?>("ReconnectionInterval")
41 .IsRequired();
42
43 b.HasKey("Id");
44
45 b.HasIndex("InstanceId", "Name")
46 .IsUnique();
47
48 b.ToTable("ChatBots");
49 });
50
51 modelBuilder.Entity("Tgstation.Server.Host.Models.ChatChannel", b =>
52 {
53 b.Property<long>("Id")
54 .ValueGeneratedOnAdd();
55
56 b.Property<long>("ChatSettingsId");
57
58 b.Property<ulong?>("DiscordChannelId");
59
60 b.Property<string>("IrcChannel")
61 .HasMaxLength(100);
62
63 b.Property<bool?>("IsAdminChannel")
64 .IsRequired();
65
66 b.Property<bool?>("IsUpdatesChannel")
67 .IsRequired();
68
69 b.Property<bool?>("IsWatchdogChannel")
70 .IsRequired();
71
72 b.Property<string>("Tag")
73 .HasMaxLength(10000);
74
75 b.HasKey("Id");
76
77 b.HasIndex("ChatSettingsId", "DiscordChannelId")
78 .IsUnique();
79
80 b.HasIndex("ChatSettingsId", "IrcChannel")
81 .IsUnique();
82
83 b.ToTable("ChatChannels");
84 });
85
86 modelBuilder.Entity("Tgstation.Server.Host.Models.CompileJob", b =>
87 {
88 b.Property<long>("Id")
89 .ValueGeneratedOnAdd();
90
91 b.Property<string>("ByondVersion")
92 .IsRequired();
93
94 b.Property<Guid?>("DirectoryName")
95 .IsRequired();
96
97 b.Property<string>("DmeName")
98 .IsRequired();
99
100 b.Property<long>("JobId");
101
102 b.Property<int>("MinimumSecurityLevel");
103
104 b.Property<string>("Output")
105 .IsRequired();
106
107 b.Property<long>("RevisionInformationId");
108
109 b.HasKey("Id");
110
111 b.HasIndex("DirectoryName");
112
113 b.HasIndex("JobId")
114 .IsUnique();
115
116 b.HasIndex("RevisionInformationId");
117
118 b.ToTable("CompileJobs");
119 });
120
121 modelBuilder.Entity("Tgstation.Server.Host.Models.DreamDaemonSettings", b =>
122 {
123 b.Property<long>("Id")
124 .ValueGeneratedOnAdd();
125
126 b.Property<string>("AccessToken");
127
128 b.Property<bool?>("AllowWebClient")
129 .IsRequired();
130
131 b.Property<bool?>("AutoStart")
132 .IsRequired();
133
134 b.Property<long>("InstanceId");
135
136 b.Property<ushort?>("PrimaryPort")
137 .IsRequired();
138
139 b.Property<int?>("ProcessId");
140
141 b.Property<ushort?>("SecondaryPort")
142 .IsRequired();
143
144 b.Property<int>("SecurityLevel");
145
146 b.Property<bool?>("SoftRestart")
147 .IsRequired();
148
149 b.Property<bool?>("SoftShutdown")
150 .IsRequired();
151
152 b.Property<uint?>("StartupTimeout")
153 .IsRequired();
154
155 b.HasKey("Id");
156
157 b.HasIndex("InstanceId")
158 .IsUnique();
159
160 b.ToTable("DreamDaemonSettings");
161 });
162
163 modelBuilder.Entity("Tgstation.Server.Host.Models.DreamMakerSettings", b =>
164 {
165 b.Property<long>("Id")
166 .ValueGeneratedOnAdd();
167
168 b.Property<ushort?>("ApiValidationPort")
169 .IsRequired();
170
171 b.Property<int>("ApiValidationSecurityLevel");
172
173 b.Property<long>("InstanceId");
174
175 b.Property<string>("ProjectName")
176 .HasMaxLength(10000);
177
178 b.HasKey("Id");
179
180 b.HasIndex("InstanceId")
181 .IsUnique();
182
183 b.ToTable("DreamMakerSettings");
184 });
185
186 modelBuilder.Entity("Tgstation.Server.Host.Models.Instance", b =>
187 {
188 b.Property<long>("Id")
189 .ValueGeneratedOnAdd();
190
191 b.Property<uint?>("AutoUpdateInterval")
192 .IsRequired();
193
194 b.Property<int>("ConfigurationType");
195
196 b.Property<string>("Name")
197 .IsRequired()
198 .HasMaxLength(10000);
199
200 b.Property<bool?>("Online")
201 .IsRequired();
202
203 b.Property<string>("Path")
204 .IsRequired();
205
206 b.HasKey("Id");
207
208 b.HasIndex("Path")
209 .IsUnique();
210
211 b.ToTable("Instances");
212 });
213
214 modelBuilder.Entity("Tgstation.Server.Host.Models.InstanceUser", b =>
215 {
216 b.Property<long>("Id")
217 .ValueGeneratedOnAdd();
218
219 b.Property<ulong>("ByondRights");
220
221 b.Property<ulong>("ChatBotRights");
222
223 b.Property<ulong>("ConfigurationRights");
224
225 b.Property<ulong>("DreamDaemonRights");
226
227 b.Property<ulong>("DreamMakerRights");
228
229 b.Property<long>("InstanceId");
230
231 b.Property<ulong>("InstanceUserRights");
232
233 b.Property<ulong>("RepositoryRights");
234
235 b.Property<long?>("UserId")
236 .IsRequired();
237
238 b.HasKey("Id");
239
240 b.HasIndex("InstanceId");
241
242 b.HasIndex("UserId", "InstanceId")
243 .IsUnique();
244
245 b.ToTable("InstanceUsers");
246 });
247
248 modelBuilder.Entity("Tgstation.Server.Host.Models.Job", b =>
249 {
250 b.Property<long>("Id")
251 .ValueGeneratedOnAdd();
252
253 b.Property<ulong?>("CancelRight");
254
255 b.Property<ulong?>("CancelRightsType");
256
257 b.Property<bool?>("Cancelled")
258 .IsRequired();
259
260 b.Property<long?>("CancelledById");
261
262 b.Property<string>("Description")
263 .IsRequired();
264
265 b.Property<string>("ExceptionDetails");
266
267 b.Property<long>("InstanceId");
268
269 b.Property<DateTimeOffset?>("StartedAt")
270 .IsRequired();
271
272 b.Property<long>("StartedById");
273
274 b.Property<DateTimeOffset?>("StoppedAt");
275
276 b.HasKey("Id");
277
278 b.HasIndex("CancelledById");
279
280 b.HasIndex("InstanceId");
281
282 b.HasIndex("StartedById");
283
284 b.ToTable("Jobs");
285 });
286
287 modelBuilder.Entity("Tgstation.Server.Host.Models.ReattachInformation", b =>
288 {
289 b.Property<long>("Id")
290 .ValueGeneratedOnAdd();
291
292 b.Property<string>("AccessIdentifier")
293 .IsRequired();
294
295 b.Property<string>("ChatChannelsJson")
296 .IsRequired();
297
298 b.Property<string>("ChatCommandsJson")
299 .IsRequired();
300
301 b.Property<long>("CompileJobId");
302
303 b.Property<bool>("IsPrimary");
304
305 b.Property<ushort>("Port");
306
307 b.Property<int>("ProcessId");
308
309 b.Property<int>("RebootState");
310
311 b.Property<string>("ServerCommandsJson")
312 .IsRequired();
313
314 b.HasKey("Id");
315
316 b.HasIndex("CompileJobId");
317
318 b.ToTable("ReattachInformations");
319 });
320
321 modelBuilder.Entity("Tgstation.Server.Host.Models.RepositorySettings", b =>
322 {
323 b.Property<long>("Id")
324 .ValueGeneratedOnAdd();
325
326 b.Property<string>("AccessToken")
327 .HasMaxLength(10000);
328
329 b.Property<string>("AccessUser")
330 .HasMaxLength(10000);
331
332 b.Property<bool?>("AutoUpdatesKeepTestMerges")
333 .IsRequired();
334
335 b.Property<bool?>("AutoUpdatesSynchronize")
336 .IsRequired();
337
338 b.Property<string>("CommitterEmail")
339 .IsRequired()
340 .HasMaxLength(10000);
341
342 b.Property<string>("CommitterName")
343 .IsRequired()
344 .HasMaxLength(10000);
345
346 b.Property<long>("InstanceId");
347
348 b.Property<bool?>("PostTestMergeComment")
349 .IsRequired();
350
351 b.Property<bool?>("PushTestMergeCommits")
352 .IsRequired();
353
354 b.Property<bool?>("ShowTestMergeCommitters")
355 .IsRequired();
356
357 b.HasKey("Id");
358
359 b.HasIndex("InstanceId")
360 .IsUnique();
361
362 b.ToTable("RepositorySettings");
363 });
364
365 modelBuilder.Entity("Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
366 {
367 b.Property<long>("Id")
368 .ValueGeneratedOnAdd();
369
370 b.Property<long>("RevisionInformationId");
371
372 b.Property<long>("TestMergeId");
373
374 b.HasKey("Id");
375
376 b.HasIndex("RevisionInformationId");
377
378 b.HasIndex("TestMergeId");
379
380 b.ToTable("RevInfoTestMerges");
381 });
382
383 modelBuilder.Entity("Tgstation.Server.Host.Models.RevisionInformation", b =>
384 {
385 b.Property<long>("Id")
386 .ValueGeneratedOnAdd();
387
388 b.Property<string>("CommitSha")
389 .IsRequired()
390 .HasMaxLength(40);
391
392 b.Property<long>("InstanceId");
393
394 b.Property<string>("OriginCommitSha")
395 .IsRequired()
396 .HasMaxLength(40);
397
398 b.HasKey("Id");
399
400 b.HasIndex("InstanceId", "CommitSha")
401 .IsUnique();
402
403 b.ToTable("RevisionInformations");
404 });
405
406 modelBuilder.Entity("Tgstation.Server.Host.Models.TestMerge", b =>
407 {
408 b.Property<long>("Id")
409 .ValueGeneratedOnAdd();
410
411 b.Property<string>("Author")
412 .IsRequired();
413
414 b.Property<string>("BodyAtMerge")
415 .IsRequired();
416
417 b.Property<string>("Comment")
418 .HasMaxLength(10000);
419
420 b.Property<DateTimeOffset>("MergedAt");
421
422 b.Property<long>("MergedById");
423
424 b.Property<int?>("Number")
425 .IsRequired();
426
427 b.Property<long?>("PrimaryRevisionInformationId")
428 .IsRequired();
429
430 b.Property<string>("PullRequestRevision")
431 .IsRequired()
432 .HasMaxLength(40);
433
434 b.Property<string>("TitleAtMerge")
435 .IsRequired();
436
437 b.Property<string>("Url")
438 .IsRequired();
439
440 b.HasKey("Id");
441
442 b.HasIndex("MergedById");
443
444 b.HasIndex("PrimaryRevisionInformationId")
445 .IsUnique();
446
447 b.ToTable("TestMerges");
448 });
449
450 modelBuilder.Entity("Tgstation.Server.Host.Models.User", b =>
451 {
452 b.Property<long>("Id")
453 .ValueGeneratedOnAdd();
454
455 b.Property<ulong>("AdministrationRights");
456
457 b.Property<string>("CanonicalName")
458 .IsRequired();
459
460 b.Property<DateTimeOffset?>("CreatedAt")
461 .IsRequired();
462
463 b.Property<long?>("CreatedById");
464
465 b.Property<bool?>("Enabled")
466 .IsRequired();
467
468 b.Property<ulong>("InstanceManagerRights");
469
470 b.Property<DateTimeOffset?>("LastPasswordUpdate");
471
472 b.Property<string>("Name")
473 .IsRequired()
474 .HasMaxLength(10000);
475
476 b.Property<string>("PasswordHash");
477
478 b.Property<string>("SystemIdentifier");
479
480 b.HasKey("Id");
481
482 b.HasIndex("CanonicalName")
483 .IsUnique();
484
485 b.HasIndex("CreatedById");
486
487 b.HasIndex("SystemIdentifier")
488 .IsUnique();
489
490 b.ToTable("Users");
491 });
492
493 modelBuilder.Entity("Tgstation.Server.Host.Models.WatchdogReattachInformation", b =>
494 {
495 b.Property<long>("Id")
496 .ValueGeneratedOnAdd();
497
498 b.Property<long?>("AlphaId");
499
500 b.Property<bool>("AlphaIsActive");
501
502 b.Property<long?>("BravoId");
503
504 b.Property<long>("InstanceId");
505
506 b.HasKey("Id");
507
508 b.HasIndex("AlphaId");
509
510 b.HasIndex("BravoId");
511
512 b.HasIndex("InstanceId")
513 .IsUnique();
514
515 b.ToTable("WatchdogReattachInformations");
516 });
517
518 modelBuilder.Entity("Tgstation.Server.Host.Models.ChatBot", b =>
519 {
520 b.HasOne("Tgstation.Server.Host.Models.Instance", "Instance")
521 .WithMany("ChatSettings")
522 .HasForeignKey("InstanceId")
523 .OnDelete(DeleteBehavior.Cascade);
524 });
525
526 modelBuilder.Entity("Tgstation.Server.Host.Models.ChatChannel", b =>
527 {
528 b.HasOne("Tgstation.Server.Host.Models.ChatBot", "ChatSettings")
529 .WithMany("Channels")
530 .HasForeignKey("ChatSettingsId")
531 .OnDelete(DeleteBehavior.Cascade);
532 });
533
534 modelBuilder.Entity("Tgstation.Server.Host.Models.CompileJob", b =>
535 {
536 b.HasOne("Tgstation.Server.Host.Models.Job", "Job")
537 .WithOne()
538 .HasForeignKey("Tgstation.Server.Host.Models.CompileJob", "JobId")
539 .OnDelete(DeleteBehavior.Restrict);
540
541 b.HasOne("Tgstation.Server.Host.Models.RevisionInformation", "RevisionInformation")
542 .WithMany("CompileJobs")
543 .HasForeignKey("RevisionInformationId")
544 .OnDelete(DeleteBehavior.Cascade);
545 });
546
547 modelBuilder.Entity("Tgstation.Server.Host.Models.DreamDaemonSettings", b =>
548 {
549 b.HasOne("Tgstation.Server.Host.Models.Instance", "Instance")
550 .WithOne("DreamDaemonSettings")
551 .HasForeignKey("Tgstation.Server.Host.Models.DreamDaemonSettings", "InstanceId")
552 .OnDelete(DeleteBehavior.Cascade);
553 });
554
555 modelBuilder.Entity("Tgstation.Server.Host.Models.DreamMakerSettings", b =>
556 {
557 b.HasOne("Tgstation.Server.Host.Models.Instance", "Instance")
558 .WithOne("DreamMakerSettings")
559 .HasForeignKey("Tgstation.Server.Host.Models.DreamMakerSettings", "InstanceId")
560 .OnDelete(DeleteBehavior.Cascade);
561 });
562
563 modelBuilder.Entity("Tgstation.Server.Host.Models.InstanceUser", b =>
564 {
565 b.HasOne("Tgstation.Server.Host.Models.Instance", "Instance")
566 .WithMany("InstanceUsers")
567 .HasForeignKey("InstanceId")
568 .OnDelete(DeleteBehavior.Cascade);
569
570 b.HasOne("Tgstation.Server.Host.Models.User")
571 .WithMany("InstanceUsers")
572 .HasForeignKey("UserId")
573 .OnDelete(DeleteBehavior.Cascade);
574 });
575
576 modelBuilder.Entity("Tgstation.Server.Host.Models.Job", b =>
577 {
578 b.HasOne("Tgstation.Server.Host.Models.User", "CancelledBy")
579 .WithMany()
580 .HasForeignKey("CancelledById");
581
582 b.HasOne("Tgstation.Server.Host.Models.Instance", "Instance")
583 .WithMany("Jobs")
584 .HasForeignKey("InstanceId")
585 .OnDelete(DeleteBehavior.Cascade);
586
587 b.HasOne("Tgstation.Server.Host.Models.User", "StartedBy")
588 .WithMany()
589 .HasForeignKey("StartedById")
590 .OnDelete(DeleteBehavior.Cascade);
591 });
592
593 modelBuilder.Entity("Tgstation.Server.Host.Models.ReattachInformation", b =>
594 {
595 b.HasOne("Tgstation.Server.Host.Models.CompileJob", "CompileJob")
596 .WithMany()
597 .HasForeignKey("CompileJobId")
598 .OnDelete(DeleteBehavior.Cascade);
599 });
600
601 modelBuilder.Entity("Tgstation.Server.Host.Models.RepositorySettings", b =>
602 {
603 b.HasOne("Tgstation.Server.Host.Models.Instance", "Instance")
604 .WithOne("RepositorySettings")
605 .HasForeignKey("Tgstation.Server.Host.Models.RepositorySettings", "InstanceId")
606 .OnDelete(DeleteBehavior.Cascade);
607 });
608
609 modelBuilder.Entity("Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
610 {
611 b.HasOne("Tgstation.Server.Host.Models.RevisionInformation", "RevisionInformation")
612 .WithMany("ActiveTestMerges")
613 .HasForeignKey("RevisionInformationId")
614 .OnDelete(DeleteBehavior.Cascade);
615
616 b.HasOne("Tgstation.Server.Host.Models.TestMerge", "TestMerge")
617 .WithMany("RevisonInformations")
618 .HasForeignKey("TestMergeId")
619 .OnDelete(DeleteBehavior.Cascade);
620 });
621
622 modelBuilder.Entity("Tgstation.Server.Host.Models.RevisionInformation", b =>
623 {
624 b.HasOne("Tgstation.Server.Host.Models.Instance", "Instance")
625 .WithMany("RevisionInformations")
626 .HasForeignKey("InstanceId")
627 .OnDelete(DeleteBehavior.Cascade);
628 });
629
630 modelBuilder.Entity("Tgstation.Server.Host.Models.TestMerge", b =>
631 {
632 b.HasOne("Tgstation.Server.Host.Models.User", "MergedBy")
633 .WithMany("TestMerges")
634 .HasForeignKey("MergedById")
635 .OnDelete(DeleteBehavior.Restrict);
636
637 b.HasOne("Tgstation.Server.Host.Models.RevisionInformation", "PrimaryRevisionInformation")
638 .WithOne("PrimaryTestMerge")
639 .HasForeignKey("Tgstation.Server.Host.Models.TestMerge", "PrimaryRevisionInformationId")
640 .OnDelete(DeleteBehavior.Restrict);
641 });
642
643 modelBuilder.Entity("Tgstation.Server.Host.Models.User", b =>
644 {
645 b.HasOne("Tgstation.Server.Host.Models.User", "CreatedBy")
646 .WithMany("CreatedUsers")
647 .HasForeignKey("CreatedById");
648 });
649
650 modelBuilder.Entity("Tgstation.Server.Host.Models.WatchdogReattachInformation", b =>
651 {
652 b.HasOne("Tgstation.Server.Host.Models.ReattachInformation", "Alpha")
653 .WithMany()
654 .HasForeignKey("AlphaId");
655
656 b.HasOne("Tgstation.Server.Host.Models.ReattachInformation", "Bravo")
657 .WithMany()
658 .HasForeignKey("BravoId");
659
660 b.HasOne("Tgstation.Server.Host.Models.Instance")
661 .WithOne("WatchdogReattachInformation")
662 .HasForeignKey("Tgstation.Server.Host.Models.WatchdogReattachInformation", "InstanceId")
663 .OnDelete(DeleteBehavior.Cascade);
664 });
665#pragma warning restore 612, 618
666 }
667 }
668}