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