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