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