tgstation-server 6.12.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
20200705163700_SLAllowNullDMApi.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("20200705163700_SLAllowNullDMApi")]
11 partial class SLAllowNullDMApi
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.Property<bool?>("RequireDMApiValidation")
221 .IsRequired()
222 .HasColumnType("INTEGER");
223
224 b.HasKey("Id");
225
226 b.HasIndex("InstanceId")
227 .IsUnique();
228
229 b.ToTable("DreamMakerSettings");
230 });
231
232 modelBuilder.Entity("Tgstation.Server.Host.Models.Instance", b =>
233 {
234 b.Property<long>("Id")
235 .ValueGeneratedOnAdd()
236 .HasColumnType("INTEGER");
237
238 b.Property<uint?>("AutoUpdateInterval")
239 .IsRequired()
240 .HasColumnType("INTEGER");
241
242 b.Property<ushort?>("ChatBotLimit")
243 .IsRequired()
244 .HasColumnType("INTEGER");
245
246 b.Property<int>("ConfigurationType")
247 .HasColumnType("INTEGER");
248
249 b.Property<string>("Name")
250 .IsRequired()
251 .HasColumnType("TEXT")
252 .HasMaxLength(10000);
253
254 b.Property<bool?>("Online")
255 .IsRequired()
256 .HasColumnType("INTEGER");
257
258 b.Property<string>("Path")
259 .IsRequired()
260 .HasColumnType("TEXT");
261
262 b.HasKey("Id");
263
264 b.HasIndex("Path")
265 .IsUnique();
266
267 b.ToTable("Instances");
268 });
269
270 modelBuilder.Entity("Tgstation.Server.Host.Models.InstanceUser", b =>
271 {
272 b.Property<long>("Id")
273 .ValueGeneratedOnAdd()
274 .HasColumnType("INTEGER");
275
276 b.Property<ulong>("ByondRights")
277 .HasColumnType("INTEGER");
278
279 b.Property<ulong>("ChatBotRights")
280 .HasColumnType("INTEGER");
281
282 b.Property<ulong>("ConfigurationRights")
283 .HasColumnType("INTEGER");
284
285 b.Property<ulong>("DreamDaemonRights")
286 .HasColumnType("INTEGER");
287
288 b.Property<ulong>("DreamMakerRights")
289 .HasColumnType("INTEGER");
290
291 b.Property<long>("InstanceId")
292 .HasColumnType("INTEGER");
293
294 b.Property<ulong>("InstanceUserRights")
295 .HasColumnType("INTEGER");
296
297 b.Property<ulong>("RepositoryRights")
298 .HasColumnType("INTEGER");
299
300 b.Property<long?>("UserId")
301 .IsRequired()
302 .HasColumnType("INTEGER");
303
304 b.HasKey("Id");
305
306 b.HasIndex("InstanceId");
307
308 b.HasIndex("UserId", "InstanceId")
309 .IsUnique();
310
311 b.ToTable("InstanceUsers");
312 });
313
314 modelBuilder.Entity("Tgstation.Server.Host.Models.Job", b =>
315 {
316 b.Property<long>("Id")
317 .ValueGeneratedOnAdd()
318 .HasColumnType("INTEGER");
319
320 b.Property<ulong?>("CancelRight")
321 .HasColumnType("INTEGER");
322
323 b.Property<ulong?>("CancelRightsType")
324 .HasColumnType("INTEGER");
325
326 b.Property<bool?>("Cancelled")
327 .IsRequired()
328 .HasColumnType("INTEGER");
329
330 b.Property<long?>("CancelledById")
331 .HasColumnType("INTEGER");
332
333 b.Property<string>("Description")
334 .IsRequired()
335 .HasColumnType("TEXT");
336
337 b.Property<uint?>("ErrorCode")
338 .HasColumnType("INTEGER");
339
340 b.Property<string>("ExceptionDetails")
341 .HasColumnType("TEXT");
342
343 b.Property<long>("InstanceId")
344 .HasColumnType("INTEGER");
345
346 b.Property<DateTimeOffset?>("StartedAt")
347 .IsRequired()
348 .HasColumnType("TEXT");
349
350 b.Property<long>("StartedById")
351 .HasColumnType("INTEGER");
352
353 b.Property<DateTimeOffset?>("StoppedAt")
354 .HasColumnType("TEXT");
355
356 b.HasKey("Id");
357
358 b.HasIndex("CancelledById");
359
360 b.HasIndex("InstanceId");
361
362 b.HasIndex("StartedById");
363
364 b.ToTable("Jobs");
365 });
366
367 modelBuilder.Entity("Tgstation.Server.Host.Models.ReattachInformation", b =>
368 {
369 b.Property<long>("Id")
370 .ValueGeneratedOnAdd()
371 .HasColumnType("INTEGER");
372
373 b.Property<string>("AccessIdentifier")
374 .IsRequired()
375 .HasColumnType("TEXT");
376
377 b.Property<long>("CompileJobId")
378 .HasColumnType("INTEGER");
379
380 b.Property<int>("LaunchSecurityLevel")
381 .HasColumnType("INTEGER");
382
383 b.Property<ushort>("Port")
384 .HasColumnType("INTEGER");
385
386 b.Property<int>("ProcessId")
387 .HasColumnType("INTEGER");
388
389 b.Property<int>("RebootState")
390 .HasColumnType("INTEGER");
391
392 b.HasKey("Id");
393
394 b.HasIndex("CompileJobId");
395
396 b.ToTable("ReattachInformations");
397 });
398
399 modelBuilder.Entity("Tgstation.Server.Host.Models.RepositorySettings", b =>
400 {
401 b.Property<long>("Id")
402 .ValueGeneratedOnAdd()
403 .HasColumnType("INTEGER");
404
405 b.Property<string>("AccessToken")
406 .HasColumnType("TEXT")
407 .HasMaxLength(10000);
408
409 b.Property<string>("AccessUser")
410 .HasColumnType("TEXT")
411 .HasMaxLength(10000);
412
413 b.Property<bool?>("AutoUpdatesKeepTestMerges")
414 .IsRequired()
415 .HasColumnType("INTEGER");
416
417 b.Property<bool?>("AutoUpdatesSynchronize")
418 .IsRequired()
419 .HasColumnType("INTEGER");
420
421 b.Property<string>("CommitterEmail")
422 .IsRequired()
423 .HasColumnType("TEXT")
424 .HasMaxLength(10000);
425
426 b.Property<string>("CommitterName")
427 .IsRequired()
428 .HasColumnType("TEXT")
429 .HasMaxLength(10000);
430
431 b.Property<long>("InstanceId")
432 .HasColumnType("INTEGER");
433
434 b.Property<bool?>("PostTestMergeComment")
435 .IsRequired()
436 .HasColumnType("INTEGER");
437
438 b.Property<bool?>("PushTestMergeCommits")
439 .IsRequired()
440 .HasColumnType("INTEGER");
441
442 b.Property<bool?>("ShowTestMergeCommitters")
443 .IsRequired()
444 .HasColumnType("INTEGER");
445
446 b.HasKey("Id");
447
448 b.HasIndex("InstanceId")
449 .IsUnique();
450
451 b.ToTable("RepositorySettings");
452 });
453
454 modelBuilder.Entity("Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
455 {
456 b.Property<long>("Id")
457 .ValueGeneratedOnAdd()
458 .HasColumnType("INTEGER");
459
460 b.Property<long>("RevisionInformationId")
461 .HasColumnType("INTEGER");
462
463 b.Property<long>("TestMergeId")
464 .HasColumnType("INTEGER");
465
466 b.HasKey("Id");
467
468 b.HasIndex("RevisionInformationId");
469
470 b.HasIndex("TestMergeId");
471
472 b.ToTable("RevInfoTestMerges");
473 });
474
475 modelBuilder.Entity("Tgstation.Server.Host.Models.RevisionInformation", b =>
476 {
477 b.Property<long>("Id")
478 .ValueGeneratedOnAdd()
479 .HasColumnType("INTEGER");
480
481 b.Property<string>("CommitSha")
482 .IsRequired()
483 .HasColumnType("TEXT")
484 .HasMaxLength(40);
485
486 b.Property<long>("InstanceId")
487 .HasColumnType("INTEGER");
488
489 b.Property<string>("OriginCommitSha")
490 .IsRequired()
491 .HasColumnType("TEXT")
492 .HasMaxLength(40);
493
494 b.HasKey("Id");
495
496 b.HasIndex("InstanceId", "CommitSha")
497 .IsUnique();
498
499 b.ToTable("RevisionInformations");
500 });
501
502 modelBuilder.Entity("Tgstation.Server.Host.Models.TestMerge", b =>
503 {
504 b.Property<long>("Id")
505 .ValueGeneratedOnAdd()
506 .HasColumnType("INTEGER");
507
508 b.Property<string>("Author")
509 .IsRequired()
510 .HasColumnType("TEXT");
511
512 b.Property<string>("BodyAtMerge")
513 .IsRequired()
514 .HasColumnType("TEXT");
515
516 b.Property<string>("Comment")
517 .HasColumnType("TEXT")
518 .HasMaxLength(10000);
519
520 b.Property<DateTimeOffset>("MergedAt")
521 .HasColumnType("TEXT");
522
523 b.Property<long>("MergedById")
524 .HasColumnType("INTEGER");
525
526 b.Property<int>("Number")
527 .HasColumnType("INTEGER");
528
529 b.Property<long?>("PrimaryRevisionInformationId")
530 .IsRequired()
531 .HasColumnType("INTEGER");
532
533 b.Property<string>("PullRequestRevision")
534 .IsRequired()
535 .HasColumnType("TEXT")
536 .HasMaxLength(40);
537
538 b.Property<string>("TitleAtMerge")
539 .IsRequired()
540 .HasColumnType("TEXT");
541
542 b.Property<string>("Url")
543 .IsRequired()
544 .HasColumnType("TEXT");
545
546 b.HasKey("Id");
547
548 b.HasIndex("MergedById");
549
550 b.HasIndex("PrimaryRevisionInformationId")
551 .IsUnique();
552
553 b.ToTable("TestMerges");
554 });
555
556 modelBuilder.Entity("Tgstation.Server.Host.Models.User", b =>
557 {
558 b.Property<long?>("Id")
559 .ValueGeneratedOnAdd()
560 .HasColumnType("INTEGER");
561
562 b.Property<ulong>("AdministrationRights")
563 .HasColumnType("INTEGER");
564
565 b.Property<string>("CanonicalName")
566 .IsRequired()
567 .HasColumnType("TEXT");
568
569 b.Property<DateTimeOffset?>("CreatedAt")
570 .IsRequired()
571 .HasColumnType("TEXT");
572
573 b.Property<long?>("CreatedById")
574 .HasColumnType("INTEGER");
575
576 b.Property<bool?>("Enabled")
577 .IsRequired()
578 .HasColumnType("INTEGER");
579
580 b.Property<ulong>("InstanceManagerRights")
581 .HasColumnType("INTEGER");
582
583 b.Property<DateTimeOffset?>("LastPasswordUpdate")
584 .HasColumnType("TEXT");
585
586 b.Property<string>("Name")
587 .IsRequired()
588 .HasColumnType("TEXT")
589 .HasMaxLength(10000);
590
591 b.Property<string>("PasswordHash")
592 .HasColumnType("TEXT");
593
594 b.Property<string>("SystemIdentifier")
595 .HasColumnType("TEXT");
596
597 b.HasKey("Id");
598
599 b.HasIndex("CanonicalName")
600 .IsUnique();
601
602 b.HasIndex("CreatedById");
603
604 b.HasIndex("SystemIdentifier")
605 .IsUnique();
606
607 b.ToTable("Users");
608 });
609
610 modelBuilder.Entity("Tgstation.Server.Host.Models.ChatBot", b =>
611 {
612 b.HasOne("Tgstation.Server.Host.Models.Instance", "Instance")
613 .WithMany("ChatSettings")
614 .HasForeignKey("InstanceId")
615 .OnDelete(DeleteBehavior.Cascade)
616 .IsRequired();
617 });
618
619 modelBuilder.Entity("Tgstation.Server.Host.Models.ChatChannel", b =>
620 {
621 b.HasOne("Tgstation.Server.Host.Models.ChatBot", "ChatSettings")
622 .WithMany("Channels")
623 .HasForeignKey("ChatSettingsId")
624 .OnDelete(DeleteBehavior.Cascade)
625 .IsRequired();
626 });
627
628 modelBuilder.Entity("Tgstation.Server.Host.Models.CompileJob", b =>
629 {
630 b.HasOne("Tgstation.Server.Host.Models.Job", "Job")
631 .WithOne()
632 .HasForeignKey("Tgstation.Server.Host.Models.CompileJob", "JobId")
633 .OnDelete(DeleteBehavior.Cascade)
634 .IsRequired();
635
636 b.HasOne("Tgstation.Server.Host.Models.RevisionInformation", "RevisionInformation")
637 .WithMany("CompileJobs")
638 .HasForeignKey("RevisionInformationId")
639 .OnDelete(DeleteBehavior.ClientNoAction)
640 .IsRequired();
641 });
642
643 modelBuilder.Entity("Tgstation.Server.Host.Models.DreamDaemonSettings", b =>
644 {
645 b.HasOne("Tgstation.Server.Host.Models.Instance", "Instance")
646 .WithOne("DreamDaemonSettings")
647 .HasForeignKey("Tgstation.Server.Host.Models.DreamDaemonSettings", "InstanceId")
648 .OnDelete(DeleteBehavior.Cascade)
649 .IsRequired();
650 });
651
652 modelBuilder.Entity("Tgstation.Server.Host.Models.DreamMakerSettings", b =>
653 {
654 b.HasOne("Tgstation.Server.Host.Models.Instance", "Instance")
655 .WithOne("DreamMakerSettings")
656 .HasForeignKey("Tgstation.Server.Host.Models.DreamMakerSettings", "InstanceId")
657 .OnDelete(DeleteBehavior.Cascade)
658 .IsRequired();
659 });
660
661 modelBuilder.Entity("Tgstation.Server.Host.Models.InstanceUser", b =>
662 {
663 b.HasOne("Tgstation.Server.Host.Models.Instance", "Instance")
664 .WithMany("InstanceUsers")
665 .HasForeignKey("InstanceId")
666 .OnDelete(DeleteBehavior.Cascade)
667 .IsRequired();
668
669 b.HasOne("Tgstation.Server.Host.Models.User", null)
670 .WithMany("InstanceUsers")
671 .HasForeignKey("UserId")
672 .OnDelete(DeleteBehavior.Cascade)
673 .IsRequired();
674 });
675
676 modelBuilder.Entity("Tgstation.Server.Host.Models.Job", b =>
677 {
678 b.HasOne("Tgstation.Server.Host.Models.User", "CancelledBy")
679 .WithMany()
680 .HasForeignKey("CancelledById");
681
682 b.HasOne("Tgstation.Server.Host.Models.Instance", "Instance")
683 .WithMany("Jobs")
684 .HasForeignKey("InstanceId")
685 .OnDelete(DeleteBehavior.Cascade)
686 .IsRequired();
687
688 b.HasOne("Tgstation.Server.Host.Models.User", "StartedBy")
689 .WithMany()
690 .HasForeignKey("StartedById")
691 .OnDelete(DeleteBehavior.Cascade)
692 .IsRequired();
693 });
694
695 modelBuilder.Entity("Tgstation.Server.Host.Models.ReattachInformation", b =>
696 {
697 b.HasOne("Tgstation.Server.Host.Models.CompileJob", "CompileJob")
698 .WithMany()
699 .HasForeignKey("CompileJobId")
700 .OnDelete(DeleteBehavior.Cascade)
701 .IsRequired();
702 });
703
704 modelBuilder.Entity("Tgstation.Server.Host.Models.RepositorySettings", b =>
705 {
706 b.HasOne("Tgstation.Server.Host.Models.Instance", "Instance")
707 .WithOne("RepositorySettings")
708 .HasForeignKey("Tgstation.Server.Host.Models.RepositorySettings", "InstanceId")
709 .OnDelete(DeleteBehavior.Cascade)
710 .IsRequired();
711 });
712
713 modelBuilder.Entity("Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
714 {
715 b.HasOne("Tgstation.Server.Host.Models.RevisionInformation", "RevisionInformation")
716 .WithMany("ActiveTestMerges")
717 .HasForeignKey("RevisionInformationId")
718 .OnDelete(DeleteBehavior.Cascade)
719 .IsRequired();
720
721 b.HasOne("Tgstation.Server.Host.Models.TestMerge", "TestMerge")
722 .WithMany("RevisonInformations")
723 .HasForeignKey("TestMergeId")
724 .OnDelete(DeleteBehavior.ClientNoAction)
725 .IsRequired();
726 });
727
728 modelBuilder.Entity("Tgstation.Server.Host.Models.RevisionInformation", b =>
729 {
730 b.HasOne("Tgstation.Server.Host.Models.Instance", "Instance")
731 .WithMany("RevisionInformations")
732 .HasForeignKey("InstanceId")
733 .OnDelete(DeleteBehavior.Cascade)
734 .IsRequired();
735 });
736
737 modelBuilder.Entity("Tgstation.Server.Host.Models.TestMerge", b =>
738 {
739 b.HasOne("Tgstation.Server.Host.Models.User", "MergedBy")
740 .WithMany("TestMerges")
741 .HasForeignKey("MergedById")
742 .OnDelete(DeleteBehavior.Restrict)
743 .IsRequired();
744
745 b.HasOne("Tgstation.Server.Host.Models.RevisionInformation", "PrimaryRevisionInformation")
746 .WithOne("PrimaryTestMerge")
747 .HasForeignKey("Tgstation.Server.Host.Models.TestMerge", "PrimaryRevisionInformationId")
748 .OnDelete(DeleteBehavior.Cascade)
749 .IsRequired();
750 });
751
752 modelBuilder.Entity("Tgstation.Server.Host.Models.User", b =>
753 {
754 b.HasOne("Tgstation.Server.Host.Models.User", "CreatedBy")
755 .WithMany("CreatedUsers")
756 .HasForeignKey("CreatedById");
757 });
758#pragma warning restore 612, 618
759 }
760 }
761}