diff --git a/20240907172236___m_s_add_d_m_api_validation_mode_8_designer_8cs.html b/20240907172236___m_s_add_d_m_api_validation_mode_8_designer_8cs.html new file mode 100644 index 0000000000..93280f32c3 --- /dev/null +++ b/20240907172236___m_s_add_d_m_api_validation_mode_8_designer_8cs.html @@ -0,0 +1,110 @@ + + + + + + + +tgstation-server: src/Tgstation.Server.Host/Database/Migrations/20240907172236_MSAddDMApiValidationMode.Designer.cs File Reference + + + + + + + + + +
+
+ + + + + + +
+
tgstation-server 6.10.0 +
+
The /tg/station 13 server suite
+
+
+ + + + + + + + +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ + +
+
+
+Classes | +Namespaces
+
20240907172236_MSAddDMApiValidationMode.Designer.cs File Reference
+
+
+ +

Go to the source code of this file.

+ + + + +

+Classes

class  Tgstation.Server.Host.Database.Migrations.MSAddDMApiValidationMode
 
+ + + + + + + + + + + +

+Namespaces

namespace  Tgstation
 
namespace  Tgstation.Server
 
namespace  Tgstation.Server.Host
 
namespace  Tgstation.Server.Host.Database
 
namespace  Tgstation.Server.Host.Database.Migrations
 
+
+ + + + diff --git a/20240907172236___m_s_add_d_m_api_validation_mode_8_designer_8cs_source.html b/20240907172236___m_s_add_d_m_api_validation_mode_8_designer_8cs_source.html new file mode 100644 index 0000000000..bfd77902b5 --- /dev/null +++ b/20240907172236___m_s_add_d_m_api_validation_mode_8_designer_8cs_source.html @@ -0,0 +1,1187 @@ + + + + + + + +tgstation-server: src/Tgstation.Server.Host/Database/Migrations/20240907172236_MSAddDMApiValidationMode.Designer.cs Source File + + + + + + + + + +
+
+ + + + + + +
+
tgstation-server 6.10.0 +
+
The /tg/station 13 server suite
+
+
+ + + + + + + + + +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ + +
+
+
20240907172236_MSAddDMApiValidationMode.Designer.cs
+
+
+Go to the documentation of this file.
1// <auto-generated />
+
2using System;
+
3
+
4using Microsoft.EntityFrameworkCore;
+
5using Microsoft.EntityFrameworkCore.Infrastructure;
+
6using Microsoft.EntityFrameworkCore.Migrations;
+
7
+ +
9{
+
10 [DbContext(typeof(SqlServerDatabaseContext))]
+
11 [Migration("20240907172236_MSAddDMApiValidationMode")]
+
12 partial class MSAddDMApiValidationMode
+
13 {
+
+
15 protected override void BuildTargetModel(ModelBuilder modelBuilder)
+
16 {
+
17#pragma warning disable 612, 618
+
18 modelBuilder
+
19 .HasAnnotation("ProductVersion", "8.0.8")
+
20 .HasAnnotation("Relational:MaxIdentifierLength", 128);
+
21
+
22 SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
+
23
+
24 modelBuilder.Entity("Tgstation.Server.Host.Models.ChatBot", b =>
+
25 {
+
26 b.Property<long?>("Id")
+
27 .ValueGeneratedOnAdd()
+
28 .HasColumnType("bigint");
+
29
+
30 SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long?>("Id"));
+
31
+
32 b.Property<int>("ChannelLimit")
+
33 .HasColumnType("int");
+
34
+
35 b.Property<string>("ConnectionString")
+
36 .IsRequired()
+
37 .HasMaxLength(10000)
+
38 .HasColumnType("nvarchar(max)");
+
39
+
40 b.Property<bool?>("Enabled")
+
41 .HasColumnType("bit");
+
42
+
43 b.Property<long>("InstanceId")
+
44 .HasColumnType("bigint");
+
45
+
46 b.Property<string>("Name")
+
47 .IsRequired()
+
48 .HasMaxLength(100)
+
49 .HasColumnType("nvarchar(100)");
+
50
+
51 b.Property<int>("Provider")
+
52 .HasColumnType("int");
+
53
+
54 b.Property<long>("ReconnectionInterval")
+
55 .HasColumnType("bigint");
+
56
+
57 b.HasKey("Id");
+
58
+
59 b.HasIndex("InstanceId", "Name")
+
60 .IsUnique();
+
61
+
62 b.ToTable("ChatBots");
+
63 });
+
64
+
65 modelBuilder.Entity("Tgstation.Server.Host.Models.ChatChannel", b =>
+
66 {
+
67 b.Property<long>("Id")
+
68 .ValueGeneratedOnAdd()
+
69 .HasColumnType("bigint");
+
70
+
71 SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
+
72
+
73 b.Property<long>("ChatSettingsId")
+
74 .HasColumnType("bigint");
+
75
+
76 b.Property<decimal?>("DiscordChannelId")
+
77 .HasColumnType("decimal(20,0)");
+
78
+
79 b.Property<string>("IrcChannel")
+
80 .HasMaxLength(100)
+
81 .HasColumnType("nvarchar(100)");
+
82
+
83 b.Property<bool?>("IsAdminChannel")
+
84 .IsRequired()
+
85 .HasColumnType("bit");
+
86
+
87 b.Property<bool?>("IsSystemChannel")
+
88 .IsRequired()
+
89 .HasColumnType("bit");
+
90
+
91 b.Property<bool?>("IsUpdatesChannel")
+
92 .IsRequired()
+
93 .HasColumnType("bit");
+
94
+
95 b.Property<bool?>("IsWatchdogChannel")
+
96 .IsRequired()
+
97 .HasColumnType("bit");
+
98
+
99 b.Property<string>("Tag")
+
100 .HasMaxLength(10000)
+
101 .HasColumnType("nvarchar(max)");
+
102
+
103 b.HasKey("Id");
+
104
+
105 b.HasIndex("ChatSettingsId", "DiscordChannelId")
+
106 .IsUnique()
+
107 .HasFilter("[DiscordChannelId] IS NOT NULL");
+
108
+
109 b.HasIndex("ChatSettingsId", "IrcChannel")
+
110 .IsUnique()
+
111 .HasFilter("[IrcChannel] IS NOT NULL");
+
112
+
113 b.ToTable("ChatChannels");
+
114 });
+
115
+
116 modelBuilder.Entity("Tgstation.Server.Host.Models.CompileJob", b =>
+
117 {
+
118 b.Property<long?>("Id")
+
119 .ValueGeneratedOnAdd()
+
120 .HasColumnType("bigint");
+
121
+
122 SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long?>("Id"));
+
123
+
124 b.Property<int?>("DMApiMajorVersion")
+
125 .HasColumnType("int");
+
126
+
127 b.Property<int?>("DMApiMinorVersion")
+
128 .HasColumnType("int");
+
129
+
130 b.Property<int?>("DMApiPatchVersion")
+
131 .HasColumnType("int");
+
132
+
133 b.Property<Guid?>("DirectoryName")
+
134 .IsRequired()
+
135 .HasColumnType("uniqueidentifier");
+
136
+
137 b.Property<string>("DmeName")
+
138 .IsRequired()
+
139 .HasColumnType("nvarchar(max)");
+
140
+
141 b.Property<string>("EngineVersion")
+
142 .IsRequired()
+
143 .HasColumnType("nvarchar(max)");
+
144
+
145 b.Property<long?>("GitHubDeploymentId")
+
146 .HasColumnType("bigint");
+
147
+
148 b.Property<long?>("GitHubRepoId")
+
149 .HasColumnType("bigint");
+
150
+
151 b.Property<long>("JobId")
+
152 .HasColumnType("bigint");
+
153
+
154 b.Property<int?>("MinimumSecurityLevel")
+
155 .HasColumnType("int");
+
156
+
157 b.Property<string>("Output")
+
158 .IsRequired()
+
159 .HasColumnType("nvarchar(max)");
+
160
+
161 b.Property<string>("RepositoryOrigin")
+
162 .HasColumnType("nvarchar(max)");
+
163
+
164 b.Property<long>("RevisionInformationId")
+
165 .HasColumnType("bigint");
+
166
+
167 b.HasKey("Id");
+
168
+
169 b.HasIndex("DirectoryName");
+
170
+
171 b.HasIndex("JobId")
+
172 .IsUnique();
+
173
+
174 b.HasIndex("RevisionInformationId");
+
175
+
176 b.ToTable("CompileJobs");
+
177 });
+
178
+
179 modelBuilder.Entity("Tgstation.Server.Host.Models.DreamDaemonSettings", b =>
+
180 {
+
181 b.Property<long>("Id")
+
182 .ValueGeneratedOnAdd()
+
183 .HasColumnType("bigint");
+
184
+
185 SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
+
186
+
187 b.Property<string>("AdditionalParameters")
+
188 .IsRequired()
+
189 .HasMaxLength(10000)
+
190 .HasColumnType("nvarchar(max)");
+
191
+
192 b.Property<bool?>("AllowWebClient")
+
193 .IsRequired()
+
194 .HasColumnType("bit");
+
195
+
196 b.Property<bool?>("AutoStart")
+
197 .IsRequired()
+
198 .HasColumnType("bit");
+
199
+
200 b.Property<bool?>("DumpOnHealthCheckRestart")
+
201 .IsRequired()
+
202 .HasColumnType("bit");
+
203
+
204 b.Property<long>("HealthCheckSeconds")
+
205 .HasColumnType("bigint");
+
206
+
207 b.Property<long>("InstanceId")
+
208 .HasColumnType("bigint");
+
209
+
210 b.Property<bool?>("LogOutput")
+
211 .IsRequired()
+
212 .HasColumnType("bit");
+
213
+
214 b.Property<long>("MapThreads")
+
215 .HasColumnType("bigint");
+
216
+
217 b.Property<bool?>("Minidumps")
+
218 .IsRequired()
+
219 .HasColumnType("bit");
+
220
+
221 b.Property<int>("OpenDreamTopicPort")
+
222 .HasColumnType("int");
+
223
+
224 b.Property<int>("Port")
+
225 .HasColumnType("int");
+
226
+
227 b.Property<int>("SecurityLevel")
+
228 .HasColumnType("int");
+
229
+
230 b.Property<bool?>("StartProfiler")
+
231 .IsRequired()
+
232 .HasColumnType("bit");
+
233
+
234 b.Property<long>("StartupTimeout")
+
235 .HasColumnType("bigint");
+
236
+
237 b.Property<long>("TopicRequestTimeout")
+
238 .HasColumnType("bigint");
+
239
+
240 b.Property<int>("Visibility")
+
241 .HasColumnType("int");
+
242
+
243 b.HasKey("Id");
+
244
+
245 b.HasIndex("InstanceId")
+
246 .IsUnique();
+
247
+
248 b.ToTable("DreamDaemonSettings");
+
249 });
+
250
+
251 modelBuilder.Entity("Tgstation.Server.Host.Models.DreamMakerSettings", b =>
+
252 {
+
253 b.Property<long>("Id")
+
254 .ValueGeneratedOnAdd()
+
255 .HasColumnType("bigint");
+
256
+
257 SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
+
258
+
259 b.Property<int>("ApiValidationPort")
+
260 .HasColumnType("int");
+
261
+
262 b.Property<int>("ApiValidationSecurityLevel")
+
263 .HasColumnType("int");
+
264
+
265 b.Property<string>("CompilerAdditionalArguments")
+
266 .HasMaxLength(10000)
+
267 .HasColumnType("nvarchar(max)");
+
268
+
269 b.Property<int>("DMApiValidationMode")
+
270 .HasColumnType("int");
+
271
+
272 b.Property<long>("InstanceId")
+
273 .HasColumnType("bigint");
+
274
+
275 b.Property<string>("ProjectName")
+
276 .HasMaxLength(10000)
+
277 .HasColumnType("nvarchar(max)");
+
278
+
279 b.Property<TimeSpan?>("Timeout")
+
280 .IsRequired()
+
281 .HasColumnType("time");
+
282
+
283 b.HasKey("Id");
+
284
+
285 b.HasIndex("InstanceId")
+
286 .IsUnique();
+
287
+
288 b.ToTable("DreamMakerSettings");
+
289 });
+
290
+
291 modelBuilder.Entity("Tgstation.Server.Host.Models.Instance", b =>
+
292 {
+
293 b.Property<long?>("Id")
+
294 .ValueGeneratedOnAdd()
+
295 .HasColumnType("bigint");
+
296
+
297 SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long?>("Id"));
+
298
+
299 b.Property<string>("AutoUpdateCron")
+
300 .IsRequired()
+
301 .HasMaxLength(10000)
+
302 .HasColumnType("nvarchar(max)");
+
303
+
304 b.Property<long>("AutoUpdateInterval")
+
305 .HasColumnType("bigint");
+
306
+
307 b.Property<int>("ChatBotLimit")
+
308 .HasColumnType("int");
+
309
+
310 b.Property<int>("ConfigurationType")
+
311 .HasColumnType("int");
+
312
+
313 b.Property<string>("Name")
+
314 .IsRequired()
+
315 .HasMaxLength(100)
+
316 .HasColumnType("nvarchar(100)");
+
317
+
318 b.Property<bool?>("Online")
+
319 .IsRequired()
+
320 .HasColumnType("bit");
+
321
+
322 b.Property<string>("Path")
+
323 .IsRequired()
+
324 .HasColumnType("nvarchar(450)");
+
325
+
326 b.Property<string>("SwarmIdentifer")
+
327 .HasColumnType("nvarchar(450)");
+
328
+
329 b.HasKey("Id");
+
330
+
331 b.HasIndex("Path", "SwarmIdentifer")
+
332 .IsUnique()
+
333 .HasFilter("[SwarmIdentifer] IS NOT NULL");
+
334
+
335 b.ToTable("Instances");
+
336 });
+
337
+
338 modelBuilder.Entity("Tgstation.Server.Host.Models.InstancePermissionSet", b =>
+
339 {
+
340 b.Property<long>("Id")
+
341 .ValueGeneratedOnAdd()
+
342 .HasColumnType("bigint");
+
343
+
344 SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
+
345
+
346 b.Property<decimal>("ChatBotRights")
+
347 .HasColumnType("decimal(20,0)");
+
348
+
349 b.Property<decimal>("ConfigurationRights")
+
350 .HasColumnType("decimal(20,0)");
+
351
+
352 b.Property<decimal>("DreamDaemonRights")
+
353 .HasColumnType("decimal(20,0)");
+
354
+
355 b.Property<decimal>("DreamMakerRights")
+
356 .HasColumnType("decimal(20,0)");
+
357
+
358 b.Property<decimal>("EngineRights")
+
359 .HasColumnType("decimal(20,0)");
+
360
+
361 b.Property<long>("InstanceId")
+
362 .HasColumnType("bigint");
+
363
+
364 b.Property<decimal>("InstancePermissionSetRights")
+
365 .HasColumnType("decimal(20,0)");
+
366
+
367 b.Property<long>("PermissionSetId")
+
368 .HasColumnType("bigint");
+
369
+
370 b.Property<decimal>("RepositoryRights")
+
371 .HasColumnType("decimal(20,0)");
+
372
+
373 b.HasKey("Id");
+
374
+
375 b.HasIndex("InstanceId");
+
376
+
377 b.HasIndex("PermissionSetId", "InstanceId")
+
378 .IsUnique();
+
379
+
380 b.ToTable("InstancePermissionSets");
+
381 });
+
382
+
383 modelBuilder.Entity("Tgstation.Server.Host.Models.Job", b =>
+
384 {
+
385 b.Property<long?>("Id")
+
386 .ValueGeneratedOnAdd()
+
387 .HasColumnType("bigint");
+
388
+
389 SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long?>("Id"));
+
390
+
391 b.Property<decimal?>("CancelRight")
+
392 .HasColumnType("decimal(20,0)");
+
393
+
394 b.Property<decimal?>("CancelRightsType")
+
395 .HasColumnType("decimal(20,0)");
+
396
+
397 b.Property<bool?>("Cancelled")
+
398 .IsRequired()
+
399 .HasColumnType("bit");
+
400
+
401 b.Property<long?>("CancelledById")
+
402 .HasColumnType("bigint");
+
403
+
404 b.Property<string>("Description")
+
405 .IsRequired()
+
406 .HasColumnType("nvarchar(max)");
+
407
+
408 b.Property<long?>("ErrorCode")
+
409 .HasColumnType("bigint");
+
410
+
411 b.Property<string>("ExceptionDetails")
+
412 .HasColumnType("nvarchar(max)");
+
413
+
414 b.Property<long>("InstanceId")
+
415 .HasColumnType("bigint");
+
416
+
417 b.Property<byte>("JobCode")
+
418 .HasColumnType("tinyint");
+
419
+
420 b.Property<DateTimeOffset?>("StartedAt")
+
421 .IsRequired()
+
422 .HasColumnType("datetimeoffset");
+
423
+
424 b.Property<long>("StartedById")
+
425 .HasColumnType("bigint");
+
426
+
427 b.Property<DateTimeOffset?>("StoppedAt")
+
428 .HasColumnType("datetimeoffset");
+
429
+
430 b.HasKey("Id");
+
431
+
432 b.HasIndex("CancelledById");
+
433
+
434 b.HasIndex("InstanceId");
+
435
+
436 b.HasIndex("StartedById");
+
437
+
438 b.ToTable("Jobs");
+
439 });
+
440
+
441 modelBuilder.Entity("Tgstation.Server.Host.Models.OAuthConnection", b =>
+
442 {
+
443 b.Property<long>("Id")
+
444 .ValueGeneratedOnAdd()
+
445 .HasColumnType("bigint");
+
446
+
447 SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
+
448
+
449 b.Property<string>("ExternalUserId")
+
450 .IsRequired()
+
451 .HasMaxLength(100)
+
452 .HasColumnType("nvarchar(100)");
+
453
+
454 b.Property<int>("Provider")
+
455 .HasColumnType("int");
+
456
+
457 b.Property<long?>("UserId")
+
458 .HasColumnType("bigint");
+
459
+
460 b.HasKey("Id");
+
461
+
462 b.HasIndex("UserId");
+
463
+
464 b.HasIndex("Provider", "ExternalUserId")
+
465 .IsUnique();
+
466
+
467 b.ToTable("OAuthConnections");
+
468 });
+
469
+
470 modelBuilder.Entity("Tgstation.Server.Host.Models.PermissionSet", b =>
+
471 {
+
472 b.Property<long?>("Id")
+
473 .ValueGeneratedOnAdd()
+
474 .HasColumnType("bigint");
+
475
+
476 SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long?>("Id"));
+
477
+
478 b.Property<decimal>("AdministrationRights")
+
479 .HasColumnType("decimal(20,0)");
+
480
+
481 b.Property<long?>("GroupId")
+
482 .HasColumnType("bigint");
+
483
+
484 b.Property<decimal>("InstanceManagerRights")
+
485 .HasColumnType("decimal(20,0)");
+
486
+
487 b.Property<long?>("UserId")
+
488 .HasColumnType("bigint");
+
489
+
490 b.HasKey("Id");
+
491
+
492 b.HasIndex("GroupId")
+
493 .IsUnique()
+
494 .HasFilter("[GroupId] IS NOT NULL");
+
495
+
496 b.HasIndex("UserId")
+
497 .IsUnique()
+
498 .HasFilter("[UserId] IS NOT NULL");
+
499
+
500 b.ToTable("PermissionSets");
+
501 });
+
502
+
503 modelBuilder.Entity("Tgstation.Server.Host.Models.ReattachInformation", b =>
+
504 {
+
505 b.Property<long?>("Id")
+
506 .ValueGeneratedOnAdd()
+
507 .HasColumnType("bigint");
+
508
+
509 SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long?>("Id"));
+
510
+
511 b.Property<string>("AccessIdentifier")
+
512 .IsRequired()
+
513 .HasColumnType("nvarchar(max)");
+
514
+
515 b.Property<long>("CompileJobId")
+
516 .HasColumnType("bigint");
+
517
+
518 b.Property<long?>("InitialCompileJobId")
+
519 .HasColumnType("bigint");
+
520
+
521 b.Property<int>("LaunchSecurityLevel")
+
522 .HasColumnType("int");
+
523
+
524 b.Property<int>("LaunchVisibility")
+
525 .HasColumnType("int");
+
526
+
527 b.Property<int>("Port")
+
528 .HasColumnType("int");
+
529
+
530 b.Property<int>("ProcessId")
+
531 .HasColumnType("int");
+
532
+
533 b.Property<int>("RebootState")
+
534 .HasColumnType("int");
+
535
+
536 b.Property<int?>("TopicPort")
+
537 .HasColumnType("int");
+
538
+
539 b.HasKey("Id");
+
540
+
541 b.HasIndex("CompileJobId");
+
542
+
543 b.HasIndex("InitialCompileJobId");
+
544
+
545 b.ToTable("ReattachInformations");
+
546 });
+
547
+
548 modelBuilder.Entity("Tgstation.Server.Host.Models.RepositorySettings", b =>
+
549 {
+
550 b.Property<long>("Id")
+
551 .ValueGeneratedOnAdd()
+
552 .HasColumnType("bigint");
+
553
+
554 SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
+
555
+
556 b.Property<string>("AccessToken")
+
557 .HasMaxLength(10000)
+
558 .HasColumnType("nvarchar(max)");
+
559
+
560 b.Property<string>("AccessUser")
+
561 .HasMaxLength(10000)
+
562 .HasColumnType("nvarchar(max)");
+
563
+
564 b.Property<bool?>("AutoUpdatesKeepTestMerges")
+
565 .IsRequired()
+
566 .HasColumnType("bit");
+
567
+
568 b.Property<bool?>("AutoUpdatesSynchronize")
+
569 .IsRequired()
+
570 .HasColumnType("bit");
+
571
+
572 b.Property<string>("CommitterEmail")
+
573 .IsRequired()
+
574 .HasMaxLength(10000)
+
575 .HasColumnType("nvarchar(max)");
+
576
+
577 b.Property<string>("CommitterName")
+
578 .IsRequired()
+
579 .HasMaxLength(10000)
+
580 .HasColumnType("nvarchar(max)");
+
581
+
582 b.Property<bool?>("CreateGitHubDeployments")
+
583 .IsRequired()
+
584 .HasColumnType("bit");
+
585
+
586 b.Property<long>("InstanceId")
+
587 .HasColumnType("bigint");
+
588
+
589 b.Property<bool?>("PostTestMergeComment")
+
590 .IsRequired()
+
591 .HasColumnType("bit");
+
592
+
593 b.Property<bool?>("PushTestMergeCommits")
+
594 .IsRequired()
+
595 .HasColumnType("bit");
+
596
+
597 b.Property<bool?>("ShowTestMergeCommitters")
+
598 .IsRequired()
+
599 .HasColumnType("bit");
+
600
+
601 b.Property<bool?>("UpdateSubmodules")
+
602 .IsRequired()
+
603 .HasColumnType("bit");
+
604
+
605 b.HasKey("Id");
+
606
+
607 b.HasIndex("InstanceId")
+
608 .IsUnique();
+
609
+
610 b.ToTable("RepositorySettings");
+
611 });
+
612
+
613 modelBuilder.Entity("Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
+
614 {
+
615 b.Property<long>("Id")
+
616 .ValueGeneratedOnAdd()
+
617 .HasColumnType("bigint");
+
618
+
619 SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
+
620
+
621 b.Property<long>("RevisionInformationId")
+
622 .HasColumnType("bigint");
+
623
+
624 b.Property<long>("TestMergeId")
+
625 .HasColumnType("bigint");
+
626
+
627 b.HasKey("Id");
+
628
+
629 b.HasIndex("RevisionInformationId");
+
630
+
631 b.HasIndex("TestMergeId");
+
632
+
633 b.ToTable("RevInfoTestMerges");
+
634 });
+
635
+
636 modelBuilder.Entity("Tgstation.Server.Host.Models.RevisionInformation", b =>
+
637 {
+
638 b.Property<long>("Id")
+
639 .ValueGeneratedOnAdd()
+
640 .HasColumnType("bigint");
+
641
+
642 SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
+
643
+
644 b.Property<string>("CommitSha")
+
645 .IsRequired()
+
646 .HasMaxLength(40)
+
647 .HasColumnType("nvarchar(40)");
+
648
+
649 b.Property<long>("InstanceId")
+
650 .HasColumnType("bigint");
+
651
+
652 b.Property<string>("OriginCommitSha")
+
653 .IsRequired()
+
654 .HasMaxLength(40)
+
655 .HasColumnType("nvarchar(40)");
+
656
+
657 b.Property<DateTimeOffset>("Timestamp")
+
658 .HasColumnType("datetimeoffset");
+
659
+
660 b.HasKey("Id");
+
661
+
662 b.HasIndex("InstanceId", "CommitSha")
+
663 .IsUnique();
+
664
+
665 b.ToTable("RevisionInformations");
+
666 });
+
667
+
668 modelBuilder.Entity("Tgstation.Server.Host.Models.TestMerge", b =>
+
669 {
+
670 b.Property<long>("Id")
+
671 .ValueGeneratedOnAdd()
+
672 .HasColumnType("bigint");
+
673
+
674 SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("Id"));
+
675
+
676 b.Property<string>("Author")
+
677 .IsRequired()
+
678 .HasColumnType("nvarchar(max)");
+
679
+
680 b.Property<string>("BodyAtMerge")
+
681 .IsRequired()
+
682 .HasColumnType("nvarchar(max)");
+
683
+
684 b.Property<string>("Comment")
+
685 .HasMaxLength(10000)
+
686 .HasColumnType("nvarchar(max)");
+
687
+
688 b.Property<DateTimeOffset>("MergedAt")
+
689 .HasColumnType("datetimeoffset");
+
690
+
691 b.Property<long>("MergedById")
+
692 .HasColumnType("bigint");
+
693
+
694 b.Property<int>("Number")
+
695 .HasColumnType("int");
+
696
+
697 b.Property<long?>("PrimaryRevisionInformationId")
+
698 .IsRequired()
+
699 .HasColumnType("bigint");
+
700
+
701 b.Property<string>("TargetCommitSha")
+
702 .IsRequired()
+
703 .HasMaxLength(40)
+
704 .HasColumnType("nvarchar(40)");
+
705
+
706 b.Property<string>("TitleAtMerge")
+
707 .IsRequired()
+
708 .HasColumnType("nvarchar(max)");
+
709
+
710 b.Property<string>("Url")
+
711 .IsRequired()
+
712 .HasColumnType("nvarchar(max)");
+
713
+
714 b.HasKey("Id");
+
715
+
716 b.HasIndex("MergedById");
+
717
+
718 b.HasIndex("PrimaryRevisionInformationId")
+
719 .IsUnique();
+
720
+
721 b.ToTable("TestMerges");
+
722 });
+
723
+
724 modelBuilder.Entity("Tgstation.Server.Host.Models.User", b =>
+
725 {
+
726 b.Property<long?>("Id")
+
727 .ValueGeneratedOnAdd()
+
728 .HasColumnType("bigint");
+
729
+
730 SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long?>("Id"));
+
731
+
732 b.Property<string>("CanonicalName")
+
733 .IsRequired()
+
734 .HasMaxLength(100)
+
735 .HasColumnType("nvarchar(100)");
+
736
+
737 b.Property<DateTimeOffset?>("CreatedAt")
+
738 .IsRequired()
+
739 .HasColumnType("datetimeoffset");
+
740
+
741 b.Property<long?>("CreatedById")
+
742 .HasColumnType("bigint");
+
743
+
744 b.Property<bool?>("Enabled")
+
745 .IsRequired()
+
746 .HasColumnType("bit");
+
747
+
748 b.Property<long?>("GroupId")
+
749 .HasColumnType("bigint");
+
750
+
751 b.Property<DateTimeOffset?>("LastPasswordUpdate")
+
752 .HasColumnType("datetimeoffset");
+
753
+
754 b.Property<string>("Name")
+
755 .IsRequired()
+
756 .HasMaxLength(100)
+
757 .HasColumnType("nvarchar(100)");
+
758
+
759 b.Property<string>("PasswordHash")
+
760 .HasColumnType("nvarchar(max)");
+
761
+
762 b.Property<string>("SystemIdentifier")
+
763 .HasMaxLength(100)
+
764 .HasColumnType("nvarchar(100)");
+
765
+
766 b.HasKey("Id");
+
767
+
768 b.HasIndex("CanonicalName")
+
769 .IsUnique();
+
770
+
771 b.HasIndex("CreatedById");
+
772
+
773 b.HasIndex("GroupId");
+
774
+
775 b.HasIndex("SystemIdentifier")
+
776 .IsUnique()
+
777 .HasFilter("[SystemIdentifier] IS NOT NULL");
+
778
+
779 b.ToTable("Users");
+
780 });
+
781
+
782 modelBuilder.Entity("Tgstation.Server.Host.Models.UserGroup", b =>
+
783 {
+
784 b.Property<long?>("Id")
+
785 .ValueGeneratedOnAdd()
+
786 .HasColumnType("bigint");
+
787
+
788 SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long?>("Id"));
+
789
+
790 b.Property<string>("Name")
+
791 .IsRequired()
+
792 .HasMaxLength(100)
+
793 .HasColumnType("nvarchar(100)");
+
794
+
795 b.HasKey("Id");
+
796
+
797 b.HasIndex("Name")
+
798 .IsUnique();
+
799
+
800 b.ToTable("Groups");
+
801 });
+
802
+
803 modelBuilder.Entity("Tgstation.Server.Host.Models.ChatBot", b =>
+
804 {
+
805 b.HasOne("Tgstation.Server.Host.Models.Instance", "Instance")
+
806 .WithMany("ChatSettings")
+
807 .HasForeignKey("InstanceId")
+
808 .OnDelete(DeleteBehavior.Cascade)
+
809 .IsRequired();
+
810
+
811 b.Navigation("Instance");
+
812 });
+
813
+
814 modelBuilder.Entity("Tgstation.Server.Host.Models.ChatChannel", b =>
+
815 {
+
816 b.HasOne("Tgstation.Server.Host.Models.ChatBot", "ChatSettings")
+
817 .WithMany("Channels")
+
818 .HasForeignKey("ChatSettingsId")
+
819 .OnDelete(DeleteBehavior.Cascade)
+
820 .IsRequired();
+
821
+
822 b.Navigation("ChatSettings");
+
823 });
+
824
+
825 modelBuilder.Entity("Tgstation.Server.Host.Models.CompileJob", b =>
+
826 {
+
827 b.HasOne("Tgstation.Server.Host.Models.Job", "Job")
+
828 .WithOne()
+
829 .HasForeignKey("Tgstation.Server.Host.Models.CompileJob", "JobId")
+
830 .OnDelete(DeleteBehavior.Cascade)
+
831 .IsRequired();
+
832
+
833 b.HasOne("Tgstation.Server.Host.Models.RevisionInformation", "RevisionInformation")
+
834 .WithMany("CompileJobs")
+
835 .HasForeignKey("RevisionInformationId")
+
836 .OnDelete(DeleteBehavior.ClientNoAction)
+
837 .IsRequired();
+
838
+
839 b.Navigation("Job");
+
840
+
841 b.Navigation("RevisionInformation");
+
842 });
+
843
+
844 modelBuilder.Entity("Tgstation.Server.Host.Models.DreamDaemonSettings", b =>
+
845 {
+
846 b.HasOne("Tgstation.Server.Host.Models.Instance", "Instance")
+
847 .WithOne("DreamDaemonSettings")
+
848 .HasForeignKey("Tgstation.Server.Host.Models.DreamDaemonSettings", "InstanceId")
+
849 .OnDelete(DeleteBehavior.Cascade)
+
850 .IsRequired();
+
851
+
852 b.Navigation("Instance");
+
853 });
+
854
+
855 modelBuilder.Entity("Tgstation.Server.Host.Models.DreamMakerSettings", b =>
+
856 {
+
857 b.HasOne("Tgstation.Server.Host.Models.Instance", "Instance")
+
858 .WithOne("DreamMakerSettings")
+
859 .HasForeignKey("Tgstation.Server.Host.Models.DreamMakerSettings", "InstanceId")
+
860 .OnDelete(DeleteBehavior.Cascade)
+
861 .IsRequired();
+
862
+
863 b.Navigation("Instance");
+
864 });
+
865
+
866 modelBuilder.Entity("Tgstation.Server.Host.Models.InstancePermissionSet", b =>
+
867 {
+
868 b.HasOne("Tgstation.Server.Host.Models.Instance", "Instance")
+
869 .WithMany("InstancePermissionSets")
+
870 .HasForeignKey("InstanceId")
+
871 .OnDelete(DeleteBehavior.Cascade)
+
872 .IsRequired();
+
873
+
874 b.HasOne("Tgstation.Server.Host.Models.PermissionSet", "PermissionSet")
+
875 .WithMany("InstancePermissionSets")
+
876 .HasForeignKey("PermissionSetId")
+
877 .OnDelete(DeleteBehavior.Cascade)
+
878 .IsRequired();
+
879
+
880 b.Navigation("Instance");
+
881
+
882 b.Navigation("PermissionSet");
+
883 });
+
884
+
885 modelBuilder.Entity("Tgstation.Server.Host.Models.Job", b =>
+
886 {
+
887 b.HasOne("Tgstation.Server.Host.Models.User", "CancelledBy")
+
888 .WithMany()
+
889 .HasForeignKey("CancelledById");
+
890
+
891 b.HasOne("Tgstation.Server.Host.Models.Instance", "Instance")
+
892 .WithMany("Jobs")
+
893 .HasForeignKey("InstanceId")
+
894 .OnDelete(DeleteBehavior.Cascade)
+
895 .IsRequired();
+
896
+
897 b.HasOne("Tgstation.Server.Host.Models.User", "StartedBy")
+
898 .WithMany()
+
899 .HasForeignKey("StartedById")
+
900 .OnDelete(DeleteBehavior.Cascade)
+
901 .IsRequired();
+
902
+
903 b.Navigation("CancelledBy");
+
904
+
905 b.Navigation("Instance");
+
906
+
907 b.Navigation("StartedBy");
+
908 });
+
909
+
910 modelBuilder.Entity("Tgstation.Server.Host.Models.OAuthConnection", b =>
+
911 {
+
912 b.HasOne("Tgstation.Server.Host.Models.User", "User")
+
913 .WithMany("OAuthConnections")
+
914 .HasForeignKey("UserId")
+
915 .OnDelete(DeleteBehavior.Cascade);
+
916
+
917 b.Navigation("User");
+
918 });
+
919
+
920 modelBuilder.Entity("Tgstation.Server.Host.Models.PermissionSet", b =>
+
921 {
+
922 b.HasOne("Tgstation.Server.Host.Models.UserGroup", "Group")
+
923 .WithOne("PermissionSet")
+
924 .HasForeignKey("Tgstation.Server.Host.Models.PermissionSet", "GroupId")
+
925 .OnDelete(DeleteBehavior.Cascade);
+
926
+
927 b.HasOne("Tgstation.Server.Host.Models.User", "User")
+
928 .WithOne("PermissionSet")
+
929 .HasForeignKey("Tgstation.Server.Host.Models.PermissionSet", "UserId")
+
930 .OnDelete(DeleteBehavior.Cascade);
+
931
+
932 b.Navigation("Group");
+
933
+
934 b.Navigation("User");
+
935 });
+
936
+
937 modelBuilder.Entity("Tgstation.Server.Host.Models.ReattachInformation", b =>
+
938 {
+
939 b.HasOne("Tgstation.Server.Host.Models.CompileJob", "CompileJob")
+
940 .WithMany()
+
941 .HasForeignKey("CompileJobId")
+
942 .OnDelete(DeleteBehavior.Cascade)
+
943 .IsRequired();
+
944
+
945 b.HasOne("Tgstation.Server.Host.Models.CompileJob", "InitialCompileJob")
+
946 .WithMany()
+
947 .HasForeignKey("InitialCompileJobId");
+
948
+
949 b.Navigation("CompileJob");
+
950
+
951 b.Navigation("InitialCompileJob");
+
952 });
+
953
+
954 modelBuilder.Entity("Tgstation.Server.Host.Models.RepositorySettings", b =>
+
955 {
+
956 b.HasOne("Tgstation.Server.Host.Models.Instance", "Instance")
+
957 .WithOne("RepositorySettings")
+
958 .HasForeignKey("Tgstation.Server.Host.Models.RepositorySettings", "InstanceId")
+
959 .OnDelete(DeleteBehavior.Cascade)
+
960 .IsRequired();
+
961
+
962 b.Navigation("Instance");
+
963 });
+
964
+
965 modelBuilder.Entity("Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
+
966 {
+
967 b.HasOne("Tgstation.Server.Host.Models.RevisionInformation", "RevisionInformation")
+
968 .WithMany("ActiveTestMerges")
+
969 .HasForeignKey("RevisionInformationId")
+
970 .OnDelete(DeleteBehavior.Cascade)
+
971 .IsRequired();
+
972
+
973 b.HasOne("Tgstation.Server.Host.Models.TestMerge", "TestMerge")
+
974 .WithMany("RevisonInformations")
+
975 .HasForeignKey("TestMergeId")
+
976 .OnDelete(DeleteBehavior.ClientNoAction)
+
977 .IsRequired();
+
978
+
979 b.Navigation("RevisionInformation");
+
980
+
981 b.Navigation("TestMerge");
+
982 });
+
983
+
984 modelBuilder.Entity("Tgstation.Server.Host.Models.RevisionInformation", b =>
+
985 {
+
986 b.HasOne("Tgstation.Server.Host.Models.Instance", "Instance")
+
987 .WithMany("RevisionInformations")
+
988 .HasForeignKey("InstanceId")
+
989 .OnDelete(DeleteBehavior.Cascade)
+
990 .IsRequired();
+
991
+
992 b.Navigation("Instance");
+
993 });
+
994
+
995 modelBuilder.Entity("Tgstation.Server.Host.Models.TestMerge", b =>
+
996 {
+
997 b.HasOne("Tgstation.Server.Host.Models.User", "MergedBy")
+
998 .WithMany("TestMerges")
+
999 .HasForeignKey("MergedById")
+
1000 .OnDelete(DeleteBehavior.Restrict)
+
1001 .IsRequired();
+
1002
+
1003 b.HasOne("Tgstation.Server.Host.Models.RevisionInformation", "PrimaryRevisionInformation")
+
1004 .WithOne("PrimaryTestMerge")
+
1005 .HasForeignKey("Tgstation.Server.Host.Models.TestMerge", "PrimaryRevisionInformationId")
+
1006 .OnDelete(DeleteBehavior.Cascade)
+
1007 .IsRequired();
+
1008
+
1009 b.Navigation("MergedBy");
+
1010
+
1011 b.Navigation("PrimaryRevisionInformation");
+
1012 });
+
1013
+
1014 modelBuilder.Entity("Tgstation.Server.Host.Models.User", b =>
+
1015 {
+
1016 b.HasOne("Tgstation.Server.Host.Models.User", "CreatedBy")
+
1017 .WithMany("CreatedUsers")
+
1018 .HasForeignKey("CreatedById");
+
1019
+
1020 b.HasOne("Tgstation.Server.Host.Models.UserGroup", "Group")
+
1021 .WithMany("Users")
+
1022 .HasForeignKey("GroupId");
+
1023
+
1024 b.Navigation("CreatedBy");
+
1025
+
1026 b.Navigation("Group");
+
1027 });
+
1028
+
1029 modelBuilder.Entity("Tgstation.Server.Host.Models.ChatBot", b =>
+
1030 {
+
1031 b.Navigation("Channels");
+
1032 });
+
1033
+
1034 modelBuilder.Entity("Tgstation.Server.Host.Models.Instance", b =>
+
1035 {
+
1036 b.Navigation("ChatSettings");
+
1037
+
1038 b.Navigation("DreamDaemonSettings");
+
1039
+
1040 b.Navigation("DreamMakerSettings");
+
1041
+
1042 b.Navigation("InstancePermissionSets");
+
1043
+
1044 b.Navigation("Jobs");
+
1045
+
1046 b.Navigation("RepositorySettings");
+
1047
+
1048 b.Navigation("RevisionInformations");
+
1049 });
+
1050
+
1051 modelBuilder.Entity("Tgstation.Server.Host.Models.PermissionSet", b =>
+
1052 {
+
1053 b.Navigation("InstancePermissionSets");
+
1054 });
+
1055
+
1056 modelBuilder.Entity("Tgstation.Server.Host.Models.RevisionInformation", b =>
+
1057 {
+
1058 b.Navigation("ActiveTestMerges");
+
1059
+
1060 b.Navigation("CompileJobs");
+
1061
+
1062 b.Navigation("PrimaryTestMerge");
+
1063 });
+
1064
+
1065 modelBuilder.Entity("Tgstation.Server.Host.Models.TestMerge", b =>
+
1066 {
+
1067 b.Navigation("RevisonInformations");
+
1068 });
+
1069
+
1070 modelBuilder.Entity("Tgstation.Server.Host.Models.User", b =>
+
1071 {
+
1072 b.Navigation("CreatedUsers");
+
1073
+
1074 b.Navigation("OAuthConnections");
+
1075
+
1076 b.Navigation("PermissionSet");
+
1077
+
1078 b.Navigation("TestMerges");
+
1079 });
+
1080
+
1081 modelBuilder.Entity("Tgstation.Server.Host.Models.UserGroup", b =>
+
1082 {
+
1083 b.Navigation("PermissionSet")
+
1084 .IsRequired();
+
1085
+
1086 b.Navigation("Users");
+
1087 });
+
1088#pragma warning restore 612, 618
+
1089 }
+
+
1090 }
+
1091}
+ + + + +
+ + + + diff --git a/20240907172236___m_s_add_d_m_api_validation_mode_8cs.html b/20240907172236___m_s_add_d_m_api_validation_mode_8cs.html new file mode 100644 index 0000000000..5559aa76ae --- /dev/null +++ b/20240907172236___m_s_add_d_m_api_validation_mode_8cs.html @@ -0,0 +1,110 @@ + + + + + + + +tgstation-server: src/Tgstation.Server.Host/Database/Migrations/20240907172236_MSAddDMApiValidationMode.cs File Reference + + + + + + + + + +
+
+ + + + + + +
+
tgstation-server 6.10.0 +
+
The /tg/station 13 server suite
+
+
+ + + + + + + + +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ + +
+
+
+Classes | +Namespaces
+
20240907172236_MSAddDMApiValidationMode.cs File Reference
+
+
+ +

Go to the source code of this file.

+ + + + +

+Classes

class  Tgstation.Server.Host.Database.Migrations.MSAddDMApiValidationMode
 
+ + + + + + + + + + + +

+Namespaces

namespace  Tgstation
 
namespace  Tgstation.Server
 
namespace  Tgstation.Server.Host
 
namespace  Tgstation.Server.Host.Database
 
namespace  Tgstation.Server.Host.Database.Migrations
 
+
+ + + + diff --git a/20240907172236___m_s_add_d_m_api_validation_mode_8cs_source.html b/20240907172236___m_s_add_d_m_api_validation_mode_8cs_source.html new file mode 100644 index 0000000000..9b5ecdc1f0 --- /dev/null +++ b/20240907172236___m_s_add_d_m_api_validation_mode_8cs_source.html @@ -0,0 +1,148 @@ + + + + + + + +tgstation-server: src/Tgstation.Server.Host/Database/Migrations/20240907172236_MSAddDMApiValidationMode.cs Source File + + + + + + + + + +
+
+ + + + + + +
+
tgstation-server 6.10.0 +
+
The /tg/station 13 server suite
+
+
+ + + + + + + + + +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ + +
+
+
20240907172236_MSAddDMApiValidationMode.cs
+
+
+Go to the documentation of this file.
1using System;
+
2
+
3using Microsoft.EntityFrameworkCore.Migrations;
+
4
+ +
6{
+
+
8 public partial class MSAddDMApiValidationMode : Migration
+
9 {
+
+
11 protected override void Up(MigrationBuilder migrationBuilder)
+
12 {
+
13 ArgumentNullException.ThrowIfNull(migrationBuilder);
+
14
+
15 migrationBuilder.AddColumn<int>(
+
16 name: "DMApiValidationMode",
+
17 table: "DreamMakerSettings",
+
18 type: "int",
+
19 nullable: false,
+
20 defaultValue: 0);
+
21
+
22 migrationBuilder.Sql("UPDATE DreamMakerSettings SET DMApiValidationMode = RequireDMApiValidation");
+
23
+
24 migrationBuilder.DropColumn(
+
25 name: "RequireDMApiValidation",
+
26 table: "DreamMakerSettings");
+
27 }
+
+
28
+
+
30 protected override void Down(MigrationBuilder migrationBuilder)
+
31 {
+
32 ArgumentNullException.ThrowIfNull(migrationBuilder);
+
33
+
34 migrationBuilder.AddColumn<bool>(
+
35 name: "RequireDMApiValidation",
+
36 table: "DreamMakerSettings",
+
37 type: "bit",
+
38 nullable: false,
+
39 defaultValue: false);
+
40
+
41 migrationBuilder.Sql("UPDATE DreamMakerSettings SET RequireDMApiValidation = 1 WHERE DMApiValidationMode != 0");
+
42 migrationBuilder.Sql("UPDATE DreamMakerSettings SET RequireDMApiValidation = 0 WHERE DMApiValidationMode = 0");
+
43
+
44 migrationBuilder.DropColumn(
+
45 name: "DMApiValidationMode",
+
46 table: "DreamMakerSettings");
+
47 }
+
+
48 }
+
+
49}
+ + + + + +
+ + + + diff --git a/20240907172244___m_y_add_d_m_api_validation_mode_8_designer_8cs.html b/20240907172244___m_y_add_d_m_api_validation_mode_8_designer_8cs.html new file mode 100644 index 0000000000..3aba6b2e28 --- /dev/null +++ b/20240907172244___m_y_add_d_m_api_validation_mode_8_designer_8cs.html @@ -0,0 +1,110 @@ + + + + + + + +tgstation-server: src/Tgstation.Server.Host/Database/Migrations/20240907172244_MYAddDMApiValidationMode.Designer.cs File Reference + + + + + + + + + +
+
+ + + + + + +
+
tgstation-server 6.10.0 +
+
The /tg/station 13 server suite
+
+
+ + + + + + + + +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ + +
+
+
+Classes | +Namespaces
+
20240907172244_MYAddDMApiValidationMode.Designer.cs File Reference
+
+
+ +

Go to the source code of this file.

+ + + + +

+Classes

class  Tgstation.Server.Host.Database.Migrations.MYAddDMApiValidationMode
 
+ + + + + + + + + + + +

+Namespaces

namespace  Tgstation
 
namespace  Tgstation.Server
 
namespace  Tgstation.Server.Host
 
namespace  Tgstation.Server.Host.Database
 
namespace  Tgstation.Server.Host.Database.Migrations
 
+
+ + + + diff --git a/20240907172244___m_y_add_d_m_api_validation_mode_8_designer_8cs_source.html b/20240907172244___m_y_add_d_m_api_validation_mode_8_designer_8cs_source.html new file mode 100644 index 0000000000..49d6c04f15 --- /dev/null +++ b/20240907172244___m_y_add_d_m_api_validation_mode_8_designer_8cs_source.html @@ -0,0 +1,1258 @@ + + + + + + + +tgstation-server: src/Tgstation.Server.Host/Database/Migrations/20240907172244_MYAddDMApiValidationMode.Designer.cs Source File + + + + + + + + + +
+
+ + + + + + +
+
tgstation-server 6.10.0 +
+
The /tg/station 13 server suite
+
+
+ + + + + + + + + +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ + +
+
+
20240907172244_MYAddDMApiValidationMode.Designer.cs
+
+
+Go to the documentation of this file.
1// <auto-generated />
+
2using System;
+
3
+
4using Microsoft.EntityFrameworkCore;
+
5using Microsoft.EntityFrameworkCore.Infrastructure;
+
6using Microsoft.EntityFrameworkCore.Migrations;
+
7
+ +
9{
+
10 [DbContext(typeof(MySqlDatabaseContext))]
+
11 [Migration("20240907172244_MYAddDMApiValidationMode")]
+
12 partial class MYAddDMApiValidationMode
+
13 {
+
+
15 protected override void BuildTargetModel(ModelBuilder modelBuilder)
+
16 {
+
17#pragma warning disable 612, 618
+
18 modelBuilder
+
19 .HasAnnotation("ProductVersion", "8.0.8")
+
20 .HasAnnotation("Relational:MaxIdentifierLength", 64);
+
21
+
22 MySqlModelBuilderExtensions.AutoIncrementColumns(modelBuilder);
+
23
+
24 modelBuilder.Entity("Tgstation.Server.Host.Models.ChatBot", b =>
+
25 {
+
26 b.Property<long?>("Id")
+
27 .ValueGeneratedOnAdd()
+
28 .HasColumnType("bigint");
+
29
+
30 MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<long?>("Id"));
+
31
+
32 b.Property<ushort?>("ChannelLimit")
+
33 .IsRequired()
+
34 .HasColumnType("smallint unsigned");
+
35
+
36 b.Property<string>("ConnectionString")
+
37 .IsRequired()
+
38 .HasMaxLength(10000)
+
39 .HasColumnType("longtext");
+
40
+
41 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<string>("ConnectionString"), "utf8mb4");
+
42
+
43 b.Property<bool?>("Enabled")
+
44 .HasColumnType("tinyint(1)");
+
45
+
46 b.Property<long>("InstanceId")
+
47 .HasColumnType("bigint");
+
48
+
49 b.Property<string>("Name")
+
50 .IsRequired()
+
51 .HasMaxLength(100)
+
52 .HasColumnType("varchar(100)");
+
53
+
54 b.Property<int>("Provider")
+
55 .HasColumnType("int");
+
56
+
57 b.Property<uint?>("ReconnectionInterval")
+
58 .IsRequired()
+
59 .HasColumnType("int unsigned");
+
60
+
61 b.HasKey("Id");
+
62
+
63 b.HasIndex("InstanceId", "Name")
+
64 .IsUnique();
+
65
+
66 b.ToTable("ChatBots");
+
67 });
+
68
+
69 modelBuilder.Entity("Tgstation.Server.Host.Models.ChatChannel", b =>
+
70 {
+
71 b.Property<long>("Id")
+
72 .ValueGeneratedOnAdd()
+
73 .HasColumnType("bigint");
+
74
+
75 MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<long>("Id"));
+
76
+
77 b.Property<long>("ChatSettingsId")
+
78 .HasColumnType("bigint");
+
79
+
80 b.Property<ulong?>("DiscordChannelId")
+
81 .HasColumnType("bigint unsigned");
+
82
+
83 b.Property<string>("IrcChannel")
+
84 .HasMaxLength(100)
+
85 .HasColumnType("varchar(100)");
+
86
+
87 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<string>("IrcChannel"), "utf8mb4");
+
88
+
89 b.Property<bool?>("IsAdminChannel")
+
90 .IsRequired()
+
91 .HasColumnType("tinyint(1)");
+
92
+
93 b.Property<bool?>("IsSystemChannel")
+
94 .IsRequired()
+
95 .HasColumnType("tinyint(1)");
+
96
+
97 b.Property<bool?>("IsUpdatesChannel")
+
98 .IsRequired()
+
99 .HasColumnType("tinyint(1)");
+
100
+
101 b.Property<bool?>("IsWatchdogChannel")
+
102 .IsRequired()
+
103 .HasColumnType("tinyint(1)");
+
104
+
105 b.Property<string>("Tag")
+
106 .HasMaxLength(10000)
+
107 .HasColumnType("longtext");
+
108
+
109 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<string>("Tag"), "utf8mb4");
+
110
+
111 b.HasKey("Id");
+
112
+
113 b.HasIndex("ChatSettingsId", "DiscordChannelId")
+
114 .IsUnique();
+
115
+
116 b.HasIndex("ChatSettingsId", "IrcChannel")
+
117 .IsUnique();
+
118
+
119 b.ToTable("ChatChannels");
+
120 });
+
121
+
122 modelBuilder.Entity("Tgstation.Server.Host.Models.CompileJob", b =>
+
123 {
+
124 b.Property<long?>("Id")
+
125 .ValueGeneratedOnAdd()
+
126 .HasColumnType("bigint");
+
127
+
128 MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<long?>("Id"));
+
129
+
130 b.Property<int?>("DMApiMajorVersion")
+
131 .HasColumnType("int");
+
132
+
133 b.Property<int?>("DMApiMinorVersion")
+
134 .HasColumnType("int");
+
135
+
136 b.Property<int?>("DMApiPatchVersion")
+
137 .HasColumnType("int");
+
138
+
139 b.Property<Guid?>("DirectoryName")
+
140 .IsRequired()
+
141 .HasColumnType("char(36)");
+
142
+
143 b.Property<string>("DmeName")
+
144 .IsRequired()
+
145 .HasColumnType("longtext");
+
146
+
147 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<string>("DmeName"), "utf8mb4");
+
148
+
149 b.Property<string>("EngineVersion")
+
150 .IsRequired()
+
151 .HasColumnType("longtext");
+
152
+
153 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<string>("EngineVersion"), "utf8mb4");
+
154
+
155 b.Property<long?>("GitHubDeploymentId")
+
156 .HasColumnType("bigint");
+
157
+
158 b.Property<long?>("GitHubRepoId")
+
159 .HasColumnType("bigint");
+
160
+
161 b.Property<long>("JobId")
+
162 .HasColumnType("bigint");
+
163
+
164 b.Property<int?>("MinimumSecurityLevel")
+
165 .HasColumnType("int");
+
166
+
167 b.Property<string>("Output")
+
168 .IsRequired()
+
169 .HasColumnType("longtext");
+
170
+
171 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<string>("Output"), "utf8mb4");
+
172
+
173 b.Property<string>("RepositoryOrigin")
+
174 .HasColumnType("longtext");
+
175
+
176 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<string>("RepositoryOrigin"), "utf8mb4");
+
177
+
178 b.Property<long>("RevisionInformationId")
+
179 .HasColumnType("bigint");
+
180
+
181 b.HasKey("Id");
+
182
+
183 b.HasIndex("DirectoryName");
+
184
+
185 b.HasIndex("JobId")
+
186 .IsUnique();
+
187
+
188 b.HasIndex("RevisionInformationId");
+
189
+
190 b.ToTable("CompileJobs");
+
191 });
+
192
+
193 modelBuilder.Entity("Tgstation.Server.Host.Models.DreamDaemonSettings", b =>
+
194 {
+
195 b.Property<long>("Id")
+
196 .ValueGeneratedOnAdd()
+
197 .HasColumnType("bigint");
+
198
+
199 MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<long>("Id"));
+
200
+
201 b.Property<string>("AdditionalParameters")
+
202 .IsRequired()
+
203 .HasMaxLength(10000)
+
204 .HasColumnType("longtext");
+
205
+
206 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<string>("AdditionalParameters"), "utf8mb4");
+
207
+
208 b.Property<bool?>("AllowWebClient")
+
209 .IsRequired()
+
210 .HasColumnType("tinyint(1)");
+
211
+
212 b.Property<bool?>("AutoStart")
+
213 .IsRequired()
+
214 .HasColumnType("tinyint(1)");
+
215
+
216 b.Property<bool?>("DumpOnHealthCheckRestart")
+
217 .IsRequired()
+
218 .HasColumnType("tinyint(1)");
+
219
+
220 b.Property<uint?>("HealthCheckSeconds")
+
221 .IsRequired()
+
222 .HasColumnType("int unsigned");
+
223
+
224 b.Property<long>("InstanceId")
+
225 .HasColumnType("bigint");
+
226
+
227 b.Property<bool?>("LogOutput")
+
228 .IsRequired()
+
229 .HasColumnType("tinyint(1)");
+
230
+
231 b.Property<uint?>("MapThreads")
+
232 .IsRequired()
+
233 .HasColumnType("int unsigned");
+
234
+
235 b.Property<bool?>("Minidumps")
+
236 .IsRequired()
+
237 .HasColumnType("tinyint(1)");
+
238
+
239 b.Property<ushort?>("OpenDreamTopicPort")
+
240 .IsRequired()
+
241 .HasColumnType("smallint unsigned");
+
242
+
243 b.Property<ushort?>("Port")
+
244 .IsRequired()
+
245 .HasColumnType("smallint unsigned");
+
246
+
247 b.Property<int>("SecurityLevel")
+
248 .HasColumnType("int");
+
249
+
250 b.Property<bool?>("StartProfiler")
+
251 .IsRequired()
+
252 .HasColumnType("tinyint(1)");
+
253
+
254 b.Property<uint?>("StartupTimeout")
+
255 .IsRequired()
+
256 .HasColumnType("int unsigned");
+
257
+
258 b.Property<uint?>("TopicRequestTimeout")
+
259 .IsRequired()
+
260 .HasColumnType("int unsigned");
+
261
+
262 b.Property<int>("Visibility")
+
263 .HasColumnType("int");
+
264
+
265 b.HasKey("Id");
+
266
+
267 b.HasIndex("InstanceId")
+
268 .IsUnique();
+
269
+
270 b.ToTable("DreamDaemonSettings");
+
271 });
+
272
+
273 modelBuilder.Entity("Tgstation.Server.Host.Models.DreamMakerSettings", b =>
+
274 {
+
275 b.Property<long>("Id")
+
276 .ValueGeneratedOnAdd()
+
277 .HasColumnType("bigint");
+
278
+
279 MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<long>("Id"));
+
280
+
281 b.Property<ushort?>("ApiValidationPort")
+
282 .IsRequired()
+
283 .HasColumnType("smallint unsigned");
+
284
+
285 b.Property<int>("ApiValidationSecurityLevel")
+
286 .HasColumnType("int");
+
287
+
288 b.Property<string>("CompilerAdditionalArguments")
+
289 .HasMaxLength(10000)
+
290 .HasColumnType("varchar(10000)");
+
291
+
292 b.Property<int>("DMApiValidationMode")
+
293 .HasColumnType("int");
+
294
+
295 b.Property<long>("InstanceId")
+
296 .HasColumnType("bigint");
+
297
+
298 b.Property<string>("ProjectName")
+
299 .HasMaxLength(10000)
+
300 .HasColumnType("longtext");
+
301
+
302 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<string>("ProjectName"), "utf8mb4");
+
303
+
304 b.Property<TimeSpan?>("Timeout")
+
305 .IsRequired()
+
306 .HasColumnType("time(6)");
+
307
+
308 b.HasKey("Id");
+
309
+
310 b.HasIndex("InstanceId")
+
311 .IsUnique();
+
312
+
313 b.ToTable("DreamMakerSettings");
+
314 });
+
315
+
316 modelBuilder.Entity("Tgstation.Server.Host.Models.Instance", b =>
+
317 {
+
318 b.Property<long?>("Id")
+
319 .ValueGeneratedOnAdd()
+
320 .HasColumnType("bigint");
+
321
+
322 MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<long?>("Id"));
+
323
+
324 b.Property<string>("AutoUpdateCron")
+
325 .IsRequired()
+
326 .HasMaxLength(10000)
+
327 .HasColumnType("varchar(10000)");
+
328
+
329 b.Property<uint?>("AutoUpdateInterval")
+
330 .IsRequired()
+
331 .HasColumnType("int unsigned");
+
332
+
333 b.Property<ushort?>("ChatBotLimit")
+
334 .IsRequired()
+
335 .HasColumnType("smallint unsigned");
+
336
+
337 b.Property<int>("ConfigurationType")
+
338 .HasColumnType("int");
+
339
+
340 b.Property<string>("Name")
+
341 .IsRequired()
+
342 .HasMaxLength(100)
+
343 .HasColumnType("varchar(100)");
+
344
+
345 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<string>("Name"), "utf8mb4");
+
346
+
347 b.Property<bool?>("Online")
+
348 .IsRequired()
+
349 .HasColumnType("tinyint(1)");
+
350
+
351 b.Property<string>("Path")
+
352 .IsRequired()
+
353 .HasColumnType("varchar(255)");
+
354
+
355 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<string>("Path"), "utf8mb4");
+
356
+
357 b.Property<string>("SwarmIdentifer")
+
358 .HasColumnType("varchar(255)");
+
359
+
360 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<string>("SwarmIdentifer"), "utf8mb4");
+
361
+
362 b.HasKey("Id");
+
363
+
364 b.HasIndex("Path", "SwarmIdentifer")
+
365 .IsUnique();
+
366
+
367 b.ToTable("Instances");
+
368 });
+
369
+
370 modelBuilder.Entity("Tgstation.Server.Host.Models.InstancePermissionSet", b =>
+
371 {
+
372 b.Property<long>("Id")
+
373 .ValueGeneratedOnAdd()
+
374 .HasColumnType("bigint");
+
375
+
376 MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<long>("Id"));
+
377
+
378 b.Property<ulong>("ChatBotRights")
+
379 .HasColumnType("bigint unsigned");
+
380
+
381 b.Property<ulong>("ConfigurationRights")
+
382 .HasColumnType("bigint unsigned");
+
383
+
384 b.Property<ulong>("DreamDaemonRights")
+
385 .HasColumnType("bigint unsigned");
+
386
+
387 b.Property<ulong>("DreamMakerRights")
+
388 .HasColumnType("bigint unsigned");
+
389
+
390 b.Property<ulong>("EngineRights")
+
391 .HasColumnType("bigint unsigned");
+
392
+
393 b.Property<long>("InstanceId")
+
394 .HasColumnType("bigint");
+
395
+
396 b.Property<ulong>("InstancePermissionSetRights")
+
397 .HasColumnType("bigint unsigned");
+
398
+
399 b.Property<long>("PermissionSetId")
+
400 .HasColumnType("bigint");
+
401
+
402 b.Property<ulong>("RepositoryRights")
+
403 .HasColumnType("bigint unsigned");
+
404
+
405 b.HasKey("Id");
+
406
+
407 b.HasIndex("InstanceId");
+
408
+
409 b.HasIndex("PermissionSetId", "InstanceId")
+
410 .IsUnique();
+
411
+
412 b.ToTable("InstancePermissionSets");
+
413 });
+
414
+
415 modelBuilder.Entity("Tgstation.Server.Host.Models.Job", b =>
+
416 {
+
417 b.Property<long?>("Id")
+
418 .ValueGeneratedOnAdd()
+
419 .HasColumnType("bigint");
+
420
+
421 MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<long?>("Id"));
+
422
+
423 b.Property<ulong?>("CancelRight")
+
424 .HasColumnType("bigint unsigned");
+
425
+
426 b.Property<ulong?>("CancelRightsType")
+
427 .HasColumnType("bigint unsigned");
+
428
+
429 b.Property<bool?>("Cancelled")
+
430 .IsRequired()
+
431 .HasColumnType("tinyint(1)");
+
432
+
433 b.Property<long?>("CancelledById")
+
434 .HasColumnType("bigint");
+
435
+
436 b.Property<string>("Description")
+
437 .IsRequired()
+
438 .HasColumnType("longtext");
+
439
+
440 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<string>("Description"), "utf8mb4");
+
441
+
442 b.Property<uint?>("ErrorCode")
+
443 .HasColumnType("int unsigned");
+
444
+
445 b.Property<string>("ExceptionDetails")
+
446 .HasColumnType("longtext");
+
447
+
448 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<string>("ExceptionDetails"), "utf8mb4");
+
449
+
450 b.Property<long>("InstanceId")
+
451 .HasColumnType("bigint");
+
452
+
453 b.Property<byte>("JobCode")
+
454 .HasColumnType("tinyint unsigned");
+
455
+
456 b.Property<DateTimeOffset?>("StartedAt")
+
457 .IsRequired()
+
458 .HasColumnType("datetime(6)");
+
459
+
460 b.Property<long>("StartedById")
+
461 .HasColumnType("bigint");
+
462
+
463 b.Property<DateTimeOffset?>("StoppedAt")
+
464 .HasColumnType("datetime(6)");
+
465
+
466 b.HasKey("Id");
+
467
+
468 b.HasIndex("CancelledById");
+
469
+
470 b.HasIndex("InstanceId");
+
471
+
472 b.HasIndex("StartedById");
+
473
+
474 b.ToTable("Jobs");
+
475 });
+
476
+
477 modelBuilder.Entity("Tgstation.Server.Host.Models.OAuthConnection", b =>
+
478 {
+
479 b.Property<long>("Id")
+
480 .ValueGeneratedOnAdd()
+
481 .HasColumnType("bigint");
+
482
+
483 MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<long>("Id"));
+
484
+
485 b.Property<string>("ExternalUserId")
+
486 .IsRequired()
+
487 .HasMaxLength(100)
+
488 .HasColumnType("varchar(100)");
+
489
+
490 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<string>("ExternalUserId"), "utf8mb4");
+
491
+
492 b.Property<int>("Provider")
+
493 .HasColumnType("int");
+
494
+
495 b.Property<long?>("UserId")
+
496 .HasColumnType("bigint");
+
497
+
498 b.HasKey("Id");
+
499
+
500 b.HasIndex("UserId");
+
501
+
502 b.HasIndex("Provider", "ExternalUserId")
+
503 .IsUnique();
+
504
+
505 b.ToTable("OAuthConnections");
+
506 });
+
507
+
508 modelBuilder.Entity("Tgstation.Server.Host.Models.PermissionSet", b =>
+
509 {
+
510 b.Property<long?>("Id")
+
511 .ValueGeneratedOnAdd()
+
512 .HasColumnType("bigint");
+
513
+
514 MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<long?>("Id"));
+
515
+
516 b.Property<ulong>("AdministrationRights")
+
517 .HasColumnType("bigint unsigned");
+
518
+
519 b.Property<long?>("GroupId")
+
520 .HasColumnType("bigint");
+
521
+
522 b.Property<ulong>("InstanceManagerRights")
+
523 .HasColumnType("bigint unsigned");
+
524
+
525 b.Property<long?>("UserId")
+
526 .HasColumnType("bigint");
+
527
+
528 b.HasKey("Id");
+
529
+
530 b.HasIndex("GroupId")
+
531 .IsUnique();
+
532
+
533 b.HasIndex("UserId")
+
534 .IsUnique();
+
535
+
536 b.ToTable("PermissionSets");
+
537 });
+
538
+
539 modelBuilder.Entity("Tgstation.Server.Host.Models.ReattachInformation", b =>
+
540 {
+
541 b.Property<long?>("Id")
+
542 .ValueGeneratedOnAdd()
+
543 .HasColumnType("bigint");
+
544
+
545 MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<long?>("Id"));
+
546
+
547 b.Property<string>("AccessIdentifier")
+
548 .IsRequired()
+
549 .HasColumnType("longtext");
+
550
+
551 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<string>("AccessIdentifier"), "utf8mb4");
+
552
+
553 b.Property<long>("CompileJobId")
+
554 .HasColumnType("bigint");
+
555
+
556 b.Property<long?>("InitialCompileJobId")
+
557 .HasColumnType("bigint");
+
558
+
559 b.Property<int>("LaunchSecurityLevel")
+
560 .HasColumnType("int");
+
561
+
562 b.Property<int>("LaunchVisibility")
+
563 .HasColumnType("int");
+
564
+
565 b.Property<ushort>("Port")
+
566 .HasColumnType("smallint unsigned");
+
567
+
568 b.Property<int>("ProcessId")
+
569 .HasColumnType("int");
+
570
+
571 b.Property<int>("RebootState")
+
572 .HasColumnType("int");
+
573
+
574 b.Property<ushort?>("TopicPort")
+
575 .HasColumnType("smallint unsigned");
+
576
+
577 b.HasKey("Id");
+
578
+
579 b.HasIndex("CompileJobId");
+
580
+
581 b.HasIndex("InitialCompileJobId");
+
582
+
583 b.ToTable("ReattachInformations");
+
584 });
+
585
+
586 modelBuilder.Entity("Tgstation.Server.Host.Models.RepositorySettings", b =>
+
587 {
+
588 b.Property<long>("Id")
+
589 .ValueGeneratedOnAdd()
+
590 .HasColumnType("bigint");
+
591
+
592 MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<long>("Id"));
+
593
+
594 b.Property<string>("AccessToken")
+
595 .HasMaxLength(10000)
+
596 .HasColumnType("longtext");
+
597
+
598 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<string>("AccessToken"), "utf8mb4");
+
599
+
600 b.Property<string>("AccessUser")
+
601 .HasMaxLength(10000)
+
602 .HasColumnType("longtext");
+
603
+
604 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<string>("AccessUser"), "utf8mb4");
+
605
+
606 b.Property<bool?>("AutoUpdatesKeepTestMerges")
+
607 .IsRequired()
+
608 .HasColumnType("tinyint(1)");
+
609
+
610 b.Property<bool?>("AutoUpdatesSynchronize")
+
611 .IsRequired()
+
612 .HasColumnType("tinyint(1)");
+
613
+
614 b.Property<string>("CommitterEmail")
+
615 .IsRequired()
+
616 .HasMaxLength(10000)
+
617 .HasColumnType("longtext");
+
618
+
619 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<string>("CommitterEmail"), "utf8mb4");
+
620
+
621 b.Property<string>("CommitterName")
+
622 .IsRequired()
+
623 .HasMaxLength(10000)
+
624 .HasColumnType("longtext");
+
625
+
626 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<string>("CommitterName"), "utf8mb4");
+
627
+
628 b.Property<bool?>("CreateGitHubDeployments")
+
629 .IsRequired()
+
630 .HasColumnType("tinyint(1)");
+
631
+
632 b.Property<long>("InstanceId")
+
633 .HasColumnType("bigint");
+
634
+
635 b.Property<bool?>("PostTestMergeComment")
+
636 .IsRequired()
+
637 .HasColumnType("tinyint(1)");
+
638
+
639 b.Property<bool?>("PushTestMergeCommits")
+
640 .IsRequired()
+
641 .HasColumnType("tinyint(1)");
+
642
+
643 b.Property<bool?>("ShowTestMergeCommitters")
+
644 .IsRequired()
+
645 .HasColumnType("tinyint(1)");
+
646
+
647 b.Property<bool?>("UpdateSubmodules")
+
648 .IsRequired()
+
649 .HasColumnType("tinyint(1)");
+
650
+
651 b.HasKey("Id");
+
652
+
653 b.HasIndex("InstanceId")
+
654 .IsUnique();
+
655
+
656 b.ToTable("RepositorySettings");
+
657 });
+
658
+
659 modelBuilder.Entity("Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
+
660 {
+
661 b.Property<long>("Id")
+
662 .ValueGeneratedOnAdd()
+
663 .HasColumnType("bigint");
+
664
+
665 MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<long>("Id"));
+
666
+
667 b.Property<long>("RevisionInformationId")
+
668 .HasColumnType("bigint");
+
669
+
670 b.Property<long>("TestMergeId")
+
671 .HasColumnType("bigint");
+
672
+
673 b.HasKey("Id");
+
674
+
675 b.HasIndex("RevisionInformationId");
+
676
+
677 b.HasIndex("TestMergeId");
+
678
+
679 b.ToTable("RevInfoTestMerges");
+
680 });
+
681
+
682 modelBuilder.Entity("Tgstation.Server.Host.Models.RevisionInformation", b =>
+
683 {
+
684 b.Property<long>("Id")
+
685 .ValueGeneratedOnAdd()
+
686 .HasColumnType("bigint");
+
687
+
688 MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<long>("Id"));
+
689
+
690 b.Property<string>("CommitSha")
+
691 .IsRequired()
+
692 .HasMaxLength(40)
+
693 .HasColumnType("varchar(40)");
+
694
+
695 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<string>("CommitSha"), "utf8mb4");
+
696
+
697 b.Property<long>("InstanceId")
+
698 .HasColumnType("bigint");
+
699
+
700 b.Property<string>("OriginCommitSha")
+
701 .IsRequired()
+
702 .HasMaxLength(40)
+
703 .HasColumnType("varchar(40)");
+
704
+
705 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<string>("OriginCommitSha"), "utf8mb4");
+
706
+
707 b.Property<DateTimeOffset>("Timestamp")
+
708 .HasColumnType("datetime(6)");
+
709
+
710 b.HasKey("Id");
+
711
+
712 b.HasIndex("InstanceId", "CommitSha")
+
713 .IsUnique();
+
714
+
715 b.ToTable("RevisionInformations");
+
716 });
+
717
+
718 modelBuilder.Entity("Tgstation.Server.Host.Models.TestMerge", b =>
+
719 {
+
720 b.Property<long>("Id")
+
721 .ValueGeneratedOnAdd()
+
722 .HasColumnType("bigint");
+
723
+
724 MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<long>("Id"));
+
725
+
726 b.Property<string>("Author")
+
727 .IsRequired()
+
728 .HasColumnType("longtext");
+
729
+
730 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<string>("Author"), "utf8mb4");
+
731
+
732 b.Property<string>("BodyAtMerge")
+
733 .IsRequired()
+
734 .HasColumnType("longtext");
+
735
+
736 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<string>("BodyAtMerge"), "utf8mb4");
+
737
+
738 b.Property<string>("Comment")
+
739 .HasMaxLength(10000)
+
740 .HasColumnType("longtext");
+
741
+
742 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<string>("Comment"), "utf8mb4");
+
743
+
744 b.Property<DateTimeOffset>("MergedAt")
+
745 .HasColumnType("datetime(6)");
+
746
+
747 b.Property<long>("MergedById")
+
748 .HasColumnType("bigint");
+
749
+
750 b.Property<int>("Number")
+
751 .HasColumnType("int");
+
752
+
753 b.Property<long?>("PrimaryRevisionInformationId")
+
754 .IsRequired()
+
755 .HasColumnType("bigint");
+
756
+
757 b.Property<string>("TargetCommitSha")
+
758 .IsRequired()
+
759 .HasMaxLength(40)
+
760 .HasColumnType("varchar(40)");
+
761
+
762 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<string>("TargetCommitSha"), "utf8mb4");
+
763
+
764 b.Property<string>("TitleAtMerge")
+
765 .IsRequired()
+
766 .HasColumnType("longtext");
+
767
+
768 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<string>("TitleAtMerge"), "utf8mb4");
+
769
+
770 b.Property<string>("Url")
+
771 .IsRequired()
+
772 .HasColumnType("longtext");
+
773
+
774 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<string>("Url"), "utf8mb4");
+
775
+
776 b.HasKey("Id");
+
777
+
778 b.HasIndex("MergedById");
+
779
+
780 b.HasIndex("PrimaryRevisionInformationId")
+
781 .IsUnique();
+
782
+
783 b.ToTable("TestMerges");
+
784 });
+
785
+
786 modelBuilder.Entity("Tgstation.Server.Host.Models.User", b =>
+
787 {
+
788 b.Property<long?>("Id")
+
789 .ValueGeneratedOnAdd()
+
790 .HasColumnType("bigint");
+
791
+
792 MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<long?>("Id"));
+
793
+
794 b.Property<string>("CanonicalName")
+
795 .IsRequired()
+
796 .HasMaxLength(100)
+
797 .HasColumnType("varchar(100)");
+
798
+
799 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<string>("CanonicalName"), "utf8mb4");
+
800
+
801 b.Property<DateTimeOffset?>("CreatedAt")
+
802 .IsRequired()
+
803 .HasColumnType("datetime(6)");
+
804
+
805 b.Property<long?>("CreatedById")
+
806 .HasColumnType("bigint");
+
807
+
808 b.Property<bool?>("Enabled")
+
809 .IsRequired()
+
810 .HasColumnType("tinyint(1)");
+
811
+
812 b.Property<long?>("GroupId")
+
813 .HasColumnType("bigint");
+
814
+
815 b.Property<DateTimeOffset?>("LastPasswordUpdate")
+
816 .HasColumnType("datetime(6)");
+
817
+
818 b.Property<string>("Name")
+
819 .IsRequired()
+
820 .HasMaxLength(100)
+
821 .HasColumnType("varchar(100)");
+
822
+
823 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<string>("Name"), "utf8mb4");
+
824
+
825 b.Property<string>("PasswordHash")
+
826 .HasColumnType("longtext");
+
827
+
828 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<string>("PasswordHash"), "utf8mb4");
+
829
+
830 b.Property<string>("SystemIdentifier")
+
831 .HasMaxLength(100)
+
832 .HasColumnType("varchar(100)");
+
833
+
834 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<string>("SystemIdentifier"), "utf8mb4");
+
835
+
836 b.HasKey("Id");
+
837
+
838 b.HasIndex("CanonicalName")
+
839 .IsUnique();
+
840
+
841 b.HasIndex("CreatedById");
+
842
+
843 b.HasIndex("GroupId");
+
844
+
845 b.HasIndex("SystemIdentifier")
+
846 .IsUnique();
+
847
+
848 b.ToTable("Users");
+
849 });
+
850
+
851 modelBuilder.Entity("Tgstation.Server.Host.Models.UserGroup", b =>
+
852 {
+
853 b.Property<long?>("Id")
+
854 .ValueGeneratedOnAdd()
+
855 .HasColumnType("bigint");
+
856
+
857 MySqlPropertyBuilderExtensions.UseMySqlIdentityColumn(b.Property<long?>("Id"));
+
858
+
859 b.Property<string>("Name")
+
860 .IsRequired()
+
861 .HasMaxLength(100)
+
862 .HasColumnType("varchar(100)");
+
863
+
864 MySqlPropertyBuilderExtensions.HasCharSet(b.Property<string>("Name"), "utf8mb4");
+
865
+
866 b.HasKey("Id");
+
867
+
868 b.HasIndex("Name")
+
869 .IsUnique();
+
870
+
871 b.ToTable("Groups");
+
872 });
+
873
+
874 modelBuilder.Entity("Tgstation.Server.Host.Models.ChatBot", b =>
+
875 {
+
876 b.HasOne("Tgstation.Server.Host.Models.Instance", "Instance")
+
877 .WithMany("ChatSettings")
+
878 .HasForeignKey("InstanceId")
+
879 .OnDelete(DeleteBehavior.Cascade)
+
880 .IsRequired();
+
881
+
882 b.Navigation("Instance");
+
883 });
+
884
+
885 modelBuilder.Entity("Tgstation.Server.Host.Models.ChatChannel", b =>
+
886 {
+
887 b.HasOne("Tgstation.Server.Host.Models.ChatBot", "ChatSettings")
+
888 .WithMany("Channels")
+
889 .HasForeignKey("ChatSettingsId")
+
890 .OnDelete(DeleteBehavior.Cascade)
+
891 .IsRequired();
+
892
+
893 b.Navigation("ChatSettings");
+
894 });
+
895
+
896 modelBuilder.Entity("Tgstation.Server.Host.Models.CompileJob", b =>
+
897 {
+
898 b.HasOne("Tgstation.Server.Host.Models.Job", "Job")
+
899 .WithOne()
+
900 .HasForeignKey("Tgstation.Server.Host.Models.CompileJob", "JobId")
+
901 .OnDelete(DeleteBehavior.Cascade)
+
902 .IsRequired();
+
903
+
904 b.HasOne("Tgstation.Server.Host.Models.RevisionInformation", "RevisionInformation")
+
905 .WithMany("CompileJobs")
+
906 .HasForeignKey("RevisionInformationId")
+
907 .OnDelete(DeleteBehavior.Cascade)
+
908 .IsRequired();
+
909
+
910 b.Navigation("Job");
+
911
+
912 b.Navigation("RevisionInformation");
+
913 });
+
914
+
915 modelBuilder.Entity("Tgstation.Server.Host.Models.DreamDaemonSettings", b =>
+
916 {
+
917 b.HasOne("Tgstation.Server.Host.Models.Instance", "Instance")
+
918 .WithOne("DreamDaemonSettings")
+
919 .HasForeignKey("Tgstation.Server.Host.Models.DreamDaemonSettings", "InstanceId")
+
920 .OnDelete(DeleteBehavior.Cascade)
+
921 .IsRequired();
+
922
+
923 b.Navigation("Instance");
+
924 });
+
925
+
926 modelBuilder.Entity("Tgstation.Server.Host.Models.DreamMakerSettings", b =>
+
927 {
+
928 b.HasOne("Tgstation.Server.Host.Models.Instance", "Instance")
+
929 .WithOne("DreamMakerSettings")
+
930 .HasForeignKey("Tgstation.Server.Host.Models.DreamMakerSettings", "InstanceId")
+
931 .OnDelete(DeleteBehavior.Cascade)
+
932 .IsRequired();
+
933
+
934 b.Navigation("Instance");
+
935 });
+
936
+
937 modelBuilder.Entity("Tgstation.Server.Host.Models.InstancePermissionSet", b =>
+
938 {
+
939 b.HasOne("Tgstation.Server.Host.Models.Instance", "Instance")
+
940 .WithMany("InstancePermissionSets")
+
941 .HasForeignKey("InstanceId")
+
942 .OnDelete(DeleteBehavior.Cascade)
+
943 .IsRequired();
+
944
+
945 b.HasOne("Tgstation.Server.Host.Models.PermissionSet", "PermissionSet")
+
946 .WithMany("InstancePermissionSets")
+
947 .HasForeignKey("PermissionSetId")
+
948 .OnDelete(DeleteBehavior.Cascade)
+
949 .IsRequired();
+
950
+
951 b.Navigation("Instance");
+
952
+
953 b.Navigation("PermissionSet");
+
954 });
+
955
+
956 modelBuilder.Entity("Tgstation.Server.Host.Models.Job", b =>
+
957 {
+
958 b.HasOne("Tgstation.Server.Host.Models.User", "CancelledBy")
+
959 .WithMany()
+
960 .HasForeignKey("CancelledById");
+
961
+
962 b.HasOne("Tgstation.Server.Host.Models.Instance", "Instance")
+
963 .WithMany("Jobs")
+
964 .HasForeignKey("InstanceId")
+
965 .OnDelete(DeleteBehavior.Cascade)
+
966 .IsRequired();
+
967
+
968 b.HasOne("Tgstation.Server.Host.Models.User", "StartedBy")
+
969 .WithMany()
+
970 .HasForeignKey("StartedById")
+
971 .OnDelete(DeleteBehavior.Cascade)
+
972 .IsRequired();
+
973
+
974 b.Navigation("CancelledBy");
+
975
+
976 b.Navigation("Instance");
+
977
+
978 b.Navigation("StartedBy");
+
979 });
+
980
+
981 modelBuilder.Entity("Tgstation.Server.Host.Models.OAuthConnection", b =>
+
982 {
+
983 b.HasOne("Tgstation.Server.Host.Models.User", "User")
+
984 .WithMany("OAuthConnections")
+
985 .HasForeignKey("UserId")
+
986 .OnDelete(DeleteBehavior.Cascade);
+
987
+
988 b.Navigation("User");
+
989 });
+
990
+
991 modelBuilder.Entity("Tgstation.Server.Host.Models.PermissionSet", b =>
+
992 {
+
993 b.HasOne("Tgstation.Server.Host.Models.UserGroup", "Group")
+
994 .WithOne("PermissionSet")
+
995 .HasForeignKey("Tgstation.Server.Host.Models.PermissionSet", "GroupId")
+
996 .OnDelete(DeleteBehavior.Cascade);
+
997
+
998 b.HasOne("Tgstation.Server.Host.Models.User", "User")
+
999 .WithOne("PermissionSet")
+
1000 .HasForeignKey("Tgstation.Server.Host.Models.PermissionSet", "UserId")
+
1001 .OnDelete(DeleteBehavior.Cascade);
+
1002
+
1003 b.Navigation("Group");
+
1004
+
1005 b.Navigation("User");
+
1006 });
+
1007
+
1008 modelBuilder.Entity("Tgstation.Server.Host.Models.ReattachInformation", b =>
+
1009 {
+
1010 b.HasOne("Tgstation.Server.Host.Models.CompileJob", "CompileJob")
+
1011 .WithMany()
+
1012 .HasForeignKey("CompileJobId")
+
1013 .OnDelete(DeleteBehavior.Cascade)
+
1014 .IsRequired();
+
1015
+
1016 b.HasOne("Tgstation.Server.Host.Models.CompileJob", "InitialCompileJob")
+
1017 .WithMany()
+
1018 .HasForeignKey("InitialCompileJobId");
+
1019
+
1020 b.Navigation("CompileJob");
+
1021
+
1022 b.Navigation("InitialCompileJob");
+
1023 });
+
1024
+
1025 modelBuilder.Entity("Tgstation.Server.Host.Models.RepositorySettings", b =>
+
1026 {
+
1027 b.HasOne("Tgstation.Server.Host.Models.Instance", "Instance")
+
1028 .WithOne("RepositorySettings")
+
1029 .HasForeignKey("Tgstation.Server.Host.Models.RepositorySettings", "InstanceId")
+
1030 .OnDelete(DeleteBehavior.Cascade)
+
1031 .IsRequired();
+
1032
+
1033 b.Navigation("Instance");
+
1034 });
+
1035
+
1036 modelBuilder.Entity("Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
+
1037 {
+
1038 b.HasOne("Tgstation.Server.Host.Models.RevisionInformation", "RevisionInformation")
+
1039 .WithMany("ActiveTestMerges")
+
1040 .HasForeignKey("RevisionInformationId")
+
1041 .OnDelete(DeleteBehavior.Cascade)
+
1042 .IsRequired();
+
1043
+
1044 b.HasOne("Tgstation.Server.Host.Models.TestMerge", "TestMerge")
+
1045 .WithMany("RevisonInformations")
+
1046 .HasForeignKey("TestMergeId")
+
1047 .OnDelete(DeleteBehavior.ClientNoAction)
+
1048 .IsRequired();
+
1049
+
1050 b.Navigation("RevisionInformation");
+
1051
+
1052 b.Navigation("TestMerge");
+
1053 });
+
1054
+
1055 modelBuilder.Entity("Tgstation.Server.Host.Models.RevisionInformation", b =>
+
1056 {
+
1057 b.HasOne("Tgstation.Server.Host.Models.Instance", "Instance")
+
1058 .WithMany("RevisionInformations")
+
1059 .HasForeignKey("InstanceId")
+
1060 .OnDelete(DeleteBehavior.Cascade)
+
1061 .IsRequired();
+
1062
+
1063 b.Navigation("Instance");
+
1064 });
+
1065
+
1066 modelBuilder.Entity("Tgstation.Server.Host.Models.TestMerge", b =>
+
1067 {
+
1068 b.HasOne("Tgstation.Server.Host.Models.User", "MergedBy")
+
1069 .WithMany("TestMerges")
+
1070 .HasForeignKey("MergedById")
+
1071 .OnDelete(DeleteBehavior.Restrict)
+
1072 .IsRequired();
+
1073
+
1074 b.HasOne("Tgstation.Server.Host.Models.RevisionInformation", "PrimaryRevisionInformation")
+
1075 .WithOne("PrimaryTestMerge")
+
1076 .HasForeignKey("Tgstation.Server.Host.Models.TestMerge", "PrimaryRevisionInformationId")
+
1077 .OnDelete(DeleteBehavior.Cascade)
+
1078 .IsRequired();
+
1079
+
1080 b.Navigation("MergedBy");
+
1081
+
1082 b.Navigation("PrimaryRevisionInformation");
+
1083 });
+
1084
+
1085 modelBuilder.Entity("Tgstation.Server.Host.Models.User", b =>
+
1086 {
+
1087 b.HasOne("Tgstation.Server.Host.Models.User", "CreatedBy")
+
1088 .WithMany("CreatedUsers")
+
1089 .HasForeignKey("CreatedById");
+
1090
+
1091 b.HasOne("Tgstation.Server.Host.Models.UserGroup", "Group")
+
1092 .WithMany("Users")
+
1093 .HasForeignKey("GroupId");
+
1094
+
1095 b.Navigation("CreatedBy");
+
1096
+
1097 b.Navigation("Group");
+
1098 });
+
1099
+
1100 modelBuilder.Entity("Tgstation.Server.Host.Models.ChatBot", b =>
+
1101 {
+
1102 b.Navigation("Channels");
+
1103 });
+
1104
+
1105 modelBuilder.Entity("Tgstation.Server.Host.Models.Instance", b =>
+
1106 {
+
1107 b.Navigation("ChatSettings");
+
1108
+
1109 b.Navigation("DreamDaemonSettings");
+
1110
+
1111 b.Navigation("DreamMakerSettings");
+
1112
+
1113 b.Navigation("InstancePermissionSets");
+
1114
+
1115 b.Navigation("Jobs");
+
1116
+
1117 b.Navigation("RepositorySettings");
+
1118
+
1119 b.Navigation("RevisionInformations");
+
1120 });
+
1121
+
1122 modelBuilder.Entity("Tgstation.Server.Host.Models.PermissionSet", b =>
+
1123 {
+
1124 b.Navigation("InstancePermissionSets");
+
1125 });
+
1126
+
1127 modelBuilder.Entity("Tgstation.Server.Host.Models.RevisionInformation", b =>
+
1128 {
+
1129 b.Navigation("ActiveTestMerges");
+
1130
+
1131 b.Navigation("CompileJobs");
+
1132
+
1133 b.Navigation("PrimaryTestMerge");
+
1134 });
+
1135
+
1136 modelBuilder.Entity("Tgstation.Server.Host.Models.TestMerge", b =>
+
1137 {
+
1138 b.Navigation("RevisonInformations");
+
1139 });
+
1140
+
1141 modelBuilder.Entity("Tgstation.Server.Host.Models.User", b =>
+
1142 {
+
1143 b.Navigation("CreatedUsers");
+
1144
+
1145 b.Navigation("OAuthConnections");
+
1146
+
1147 b.Navigation("PermissionSet");
+
1148
+
1149 b.Navigation("TestMerges");
+
1150 });
+
1151
+
1152 modelBuilder.Entity("Tgstation.Server.Host.Models.UserGroup", b =>
+
1153 {
+
1154 b.Navigation("PermissionSet")
+
1155 .IsRequired();
+
1156
+
1157 b.Navigation("Users");
+
1158 });
+
1159#pragma warning restore 612, 618
+
1160 }
+
+
1161 }
+
1162}
+ + + + +
+ + + + diff --git a/20240907172244___m_y_add_d_m_api_validation_mode_8cs.html b/20240907172244___m_y_add_d_m_api_validation_mode_8cs.html new file mode 100644 index 0000000000..16488af630 --- /dev/null +++ b/20240907172244___m_y_add_d_m_api_validation_mode_8cs.html @@ -0,0 +1,110 @@ + + + + + + + +tgstation-server: src/Tgstation.Server.Host/Database/Migrations/20240907172244_MYAddDMApiValidationMode.cs File Reference + + + + + + + + + +
+
+ + + + + + +
+
tgstation-server 6.10.0 +
+
The /tg/station 13 server suite
+
+
+ + + + + + + + +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ + +
+
+
+Classes | +Namespaces
+
20240907172244_MYAddDMApiValidationMode.cs File Reference
+
+
+ +

Go to the source code of this file.

+ + + + +

+Classes

class  Tgstation.Server.Host.Database.Migrations.MYAddDMApiValidationMode
 
+ + + + + + + + + + + +

+Namespaces

namespace  Tgstation
 
namespace  Tgstation.Server
 
namespace  Tgstation.Server.Host
 
namespace  Tgstation.Server.Host.Database
 
namespace  Tgstation.Server.Host.Database.Migrations
 
+
+ + + + diff --git a/20240907172244___m_y_add_d_m_api_validation_mode_8cs_source.html b/20240907172244___m_y_add_d_m_api_validation_mode_8cs_source.html new file mode 100644 index 0000000000..34af42f76d --- /dev/null +++ b/20240907172244___m_y_add_d_m_api_validation_mode_8cs_source.html @@ -0,0 +1,148 @@ + + + + + + + +tgstation-server: src/Tgstation.Server.Host/Database/Migrations/20240907172244_MYAddDMApiValidationMode.cs Source File + + + + + + + + + +
+
+ + + + + + +
+
tgstation-server 6.10.0 +
+
The /tg/station 13 server suite
+
+
+ + + + + + + + + +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ + +
+
+
20240907172244_MYAddDMApiValidationMode.cs
+
+
+Go to the documentation of this file.
1using System;
+
2
+
3using Microsoft.EntityFrameworkCore.Migrations;
+
4
+ +
6{
+
+
8 public partial class MYAddDMApiValidationMode : Migration
+
9 {
+
+
11 protected override void Up(MigrationBuilder migrationBuilder)
+
12 {
+
13 ArgumentNullException.ThrowIfNull(migrationBuilder);
+
14
+
15 migrationBuilder.AddColumn<int>(
+
16 name: "DMApiValidationMode",
+
17 table: "DreamMakerSettings",
+
18 type: "int",
+
19 nullable: false,
+
20 defaultValue: 0);
+
21
+
22 migrationBuilder.Sql("UPDATE DreamMakerSettings SET DMApiValidationMode = RequireDMApiValidation");
+
23
+
24 migrationBuilder.DropColumn(
+
25 name: "RequireDMApiValidation",
+
26 table: "DreamMakerSettings");
+
27 }
+
+
28
+
+
30 protected override void Down(MigrationBuilder migrationBuilder)
+
31 {
+
32 ArgumentNullException.ThrowIfNull(migrationBuilder);
+
33
+
34 migrationBuilder.AddColumn<bool>(
+
35 name: "RequireDMApiValidation",
+
36 table: "DreamMakerSettings",
+
37 type: "tinyint(1)",
+
38 nullable: false,
+
39 defaultValue: false);
+
40
+
41 migrationBuilder.Sql("UPDATE DreamMakerSettings SET RequireDMApiValidation = 1 WHERE DMApiValidationMode != 0");
+
42 migrationBuilder.Sql("UPDATE DreamMakerSettings SET RequireDMApiValidation = 0 WHERE DMApiValidationMode = 0");
+
43
+
44 migrationBuilder.DropColumn(
+
45 name: "DMApiValidationMode",
+
46 table: "DreamMakerSettings");
+
47 }
+
+
48 }
+
+
49}
+ + + + + +
+ + + + diff --git a/20240907172251___p_g_add_d_m_api_validation_mode_8_designer_8cs.html b/20240907172251___p_g_add_d_m_api_validation_mode_8_designer_8cs.html new file mode 100644 index 0000000000..e00c3e8ad2 --- /dev/null +++ b/20240907172251___p_g_add_d_m_api_validation_mode_8_designer_8cs.html @@ -0,0 +1,110 @@ + + + + + + + +tgstation-server: src/Tgstation.Server.Host/Database/Migrations/20240907172251_PGAddDMApiValidationMode.Designer.cs File Reference + + + + + + + + + +
+
+ + + + + + +
+
tgstation-server 6.10.0 +
+
The /tg/station 13 server suite
+
+
+ + + + + + + + +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ + +
+
+
+Classes | +Namespaces
+
20240907172251_PGAddDMApiValidationMode.Designer.cs File Reference
+
+
+ +

Go to the source code of this file.

+ + + + +

+Classes

class  Tgstation.Server.Host.Database.Migrations.PGAddDMApiValidationMode
 
+ + + + + + + + + + + +

+Namespaces

namespace  Tgstation
 
namespace  Tgstation.Server
 
namespace  Tgstation.Server.Host
 
namespace  Tgstation.Server.Host.Database
 
namespace  Tgstation.Server.Host.Database.Migrations
 
+
+ + + + diff --git a/20240907172251___p_g_add_d_m_api_validation_mode_8_designer_8cs_source.html b/20240907172251___p_g_add_d_m_api_validation_mode_8_designer_8cs_source.html new file mode 100644 index 0000000000..571d0df064 --- /dev/null +++ b/20240907172251___p_g_add_d_m_api_validation_mode_8_designer_8cs_source.html @@ -0,0 +1,1181 @@ + + + + + + + +tgstation-server: src/Tgstation.Server.Host/Database/Migrations/20240907172251_PGAddDMApiValidationMode.Designer.cs Source File + + + + + + + + + +
+
+ + + + + + +
+
tgstation-server 6.10.0 +
+
The /tg/station 13 server suite
+
+
+ + + + + + + + + +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ + +
+
+
20240907172251_PGAddDMApiValidationMode.Designer.cs
+
+
+Go to the documentation of this file.
1// <auto-generated />
+
2using System;
+
3
+
4using Microsoft.EntityFrameworkCore;
+
5using Microsoft.EntityFrameworkCore.Infrastructure;
+
6using Microsoft.EntityFrameworkCore.Migrations;
+
7
+ +
9{
+
10 [DbContext(typeof(PostgresSqlDatabaseContext))]
+
11 [Migration("20240907172251_PGAddDMApiValidationMode")]
+
12 partial class PGAddDMApiValidationMode
+
13 {
+
+
15 protected override void BuildTargetModel(ModelBuilder modelBuilder)
+
16 {
+
17#pragma warning disable 612, 618
+
18 modelBuilder
+
19 .HasAnnotation("ProductVersion", "8.0.8")
+
20 .HasAnnotation("Relational:MaxIdentifierLength", 63);
+
21
+
22 NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
+
23
+
24 modelBuilder.Entity("Tgstation.Server.Host.Models.ChatBot", b =>
+
25 {
+
26 b.Property<long?>("Id")
+
27 .ValueGeneratedOnAdd()
+
28 .HasColumnType("bigint");
+
29
+
30 NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<long?>("Id"));
+
31
+
32 b.Property<int>("ChannelLimit")
+
33 .HasColumnType("integer");
+
34
+
35 b.Property<string>("ConnectionString")
+
36 .IsRequired()
+
37 .HasMaxLength(10000)
+
38 .HasColumnType("character varying(10000)");
+
39
+
40 b.Property<bool?>("Enabled")
+
41 .HasColumnType("boolean");
+
42
+
43 b.Property<long>("InstanceId")
+
44 .HasColumnType("bigint");
+
45
+
46 b.Property<string>("Name")
+
47 .IsRequired()
+
48 .HasMaxLength(100)
+
49 .HasColumnType("character varying(100)");
+
50
+
51 b.Property<int>("Provider")
+
52 .HasColumnType("integer");
+
53
+
54 b.Property<long>("ReconnectionInterval")
+
55 .HasColumnType("bigint");
+
56
+
57 b.HasKey("Id");
+
58
+
59 b.HasIndex("InstanceId", "Name")
+
60 .IsUnique();
+
61
+
62 b.ToTable("ChatBots");
+
63 });
+
64
+
65 modelBuilder.Entity("Tgstation.Server.Host.Models.ChatChannel", b =>
+
66 {
+
67 b.Property<long>("Id")
+
68 .ValueGeneratedOnAdd()
+
69 .HasColumnType("bigint");
+
70
+
71 NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<long>("Id"));
+
72
+
73 b.Property<long>("ChatSettingsId")
+
74 .HasColumnType("bigint");
+
75
+
76 b.Property<decimal?>("DiscordChannelId")
+
77 .HasColumnType("numeric(20,0)");
+
78
+
79 b.Property<string>("IrcChannel")
+
80 .HasMaxLength(100)
+
81 .HasColumnType("character varying(100)");
+
82
+
83 b.Property<bool?>("IsAdminChannel")
+
84 .IsRequired()
+
85 .HasColumnType("boolean");
+
86
+
87 b.Property<bool?>("IsSystemChannel")
+
88 .IsRequired()
+
89 .HasColumnType("boolean");
+
90
+
91 b.Property<bool?>("IsUpdatesChannel")
+
92 .IsRequired()
+
93 .HasColumnType("boolean");
+
94
+
95 b.Property<bool?>("IsWatchdogChannel")
+
96 .IsRequired()
+
97 .HasColumnType("boolean");
+
98
+
99 b.Property<string>("Tag")
+
100 .HasMaxLength(10000)
+
101 .HasColumnType("character varying(10000)");
+
102
+
103 b.HasKey("Id");
+
104
+
105 b.HasIndex("ChatSettingsId", "DiscordChannelId")
+
106 .IsUnique();
+
107
+
108 b.HasIndex("ChatSettingsId", "IrcChannel")
+
109 .IsUnique();
+
110
+
111 b.ToTable("ChatChannels");
+
112 });
+
113
+
114 modelBuilder.Entity("Tgstation.Server.Host.Models.CompileJob", b =>
+
115 {
+
116 b.Property<long?>("Id")
+
117 .ValueGeneratedOnAdd()
+
118 .HasColumnType("bigint");
+
119
+
120 NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<long?>("Id"));
+
121
+
122 b.Property<int?>("DMApiMajorVersion")
+
123 .HasColumnType("integer");
+
124
+
125 b.Property<int?>("DMApiMinorVersion")
+
126 .HasColumnType("integer");
+
127
+
128 b.Property<int?>("DMApiPatchVersion")
+
129 .HasColumnType("integer");
+
130
+
131 b.Property<Guid?>("DirectoryName")
+
132 .IsRequired()
+
133 .HasColumnType("uuid");
+
134
+
135 b.Property<string>("DmeName")
+
136 .IsRequired()
+
137 .HasColumnType("text");
+
138
+
139 b.Property<string>("EngineVersion")
+
140 .IsRequired()
+
141 .HasColumnType("text");
+
142
+
143 b.Property<long?>("GitHubDeploymentId")
+
144 .HasColumnType("bigint");
+
145
+
146 b.Property<long?>("GitHubRepoId")
+
147 .HasColumnType("bigint");
+
148
+
149 b.Property<long>("JobId")
+
150 .HasColumnType("bigint");
+
151
+
152 b.Property<int?>("MinimumSecurityLevel")
+
153 .HasColumnType("integer");
+
154
+
155 b.Property<string>("Output")
+
156 .IsRequired()
+
157 .HasColumnType("text");
+
158
+
159 b.Property<string>("RepositoryOrigin")
+
160 .HasColumnType("text");
+
161
+
162 b.Property<long>("RevisionInformationId")
+
163 .HasColumnType("bigint");
+
164
+
165 b.HasKey("Id");
+
166
+
167 b.HasIndex("DirectoryName");
+
168
+
169 b.HasIndex("JobId")
+
170 .IsUnique();
+
171
+
172 b.HasIndex("RevisionInformationId");
+
173
+
174 b.ToTable("CompileJobs");
+
175 });
+
176
+
177 modelBuilder.Entity("Tgstation.Server.Host.Models.DreamDaemonSettings", b =>
+
178 {
+
179 b.Property<long>("Id")
+
180 .ValueGeneratedOnAdd()
+
181 .HasColumnType("bigint");
+
182
+
183 NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<long>("Id"));
+
184
+
185 b.Property<string>("AdditionalParameters")
+
186 .IsRequired()
+
187 .HasMaxLength(10000)
+
188 .HasColumnType("character varying(10000)");
+
189
+
190 b.Property<bool?>("AllowWebClient")
+
191 .IsRequired()
+
192 .HasColumnType("boolean");
+
193
+
194 b.Property<bool?>("AutoStart")
+
195 .IsRequired()
+
196 .HasColumnType("boolean");
+
197
+
198 b.Property<bool?>("DumpOnHealthCheckRestart")
+
199 .IsRequired()
+
200 .HasColumnType("boolean");
+
201
+
202 b.Property<long>("HealthCheckSeconds")
+
203 .HasColumnType("bigint");
+
204
+
205 b.Property<long>("InstanceId")
+
206 .HasColumnType("bigint");
+
207
+
208 b.Property<bool?>("LogOutput")
+
209 .IsRequired()
+
210 .HasColumnType("boolean");
+
211
+
212 b.Property<long>("MapThreads")
+
213 .HasColumnType("bigint");
+
214
+
215 b.Property<bool?>("Minidumps")
+
216 .IsRequired()
+
217 .HasColumnType("boolean");
+
218
+
219 b.Property<int>("OpenDreamTopicPort")
+
220 .HasColumnType("integer");
+
221
+
222 b.Property<int>("Port")
+
223 .HasColumnType("integer");
+
224
+
225 b.Property<int>("SecurityLevel")
+
226 .HasColumnType("integer");
+
227
+
228 b.Property<bool?>("StartProfiler")
+
229 .IsRequired()
+
230 .HasColumnType("boolean");
+
231
+
232 b.Property<long>("StartupTimeout")
+
233 .HasColumnType("bigint");
+
234
+
235 b.Property<long>("TopicRequestTimeout")
+
236 .HasColumnType("bigint");
+
237
+
238 b.Property<int>("Visibility")
+
239 .HasColumnType("integer");
+
240
+
241 b.HasKey("Id");
+
242
+
243 b.HasIndex("InstanceId")
+
244 .IsUnique();
+
245
+
246 b.ToTable("DreamDaemonSettings");
+
247 });
+
248
+
249 modelBuilder.Entity("Tgstation.Server.Host.Models.DreamMakerSettings", b =>
+
250 {
+
251 b.Property<long>("Id")
+
252 .ValueGeneratedOnAdd()
+
253 .HasColumnType("bigint");
+
254
+
255 NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<long>("Id"));
+
256
+
257 b.Property<int>("ApiValidationPort")
+
258 .HasColumnType("integer");
+
259
+
260 b.Property<int>("ApiValidationSecurityLevel")
+
261 .HasColumnType("integer");
+
262
+
263 b.Property<string>("CompilerAdditionalArguments")
+
264 .HasMaxLength(10000)
+
265 .HasColumnType("character varying(10000)");
+
266
+
267 b.Property<int>("DMApiValidationMode")
+
268 .HasColumnType("integer");
+
269
+
270 b.Property<long>("InstanceId")
+
271 .HasColumnType("bigint");
+
272
+
273 b.Property<string>("ProjectName")
+
274 .HasMaxLength(10000)
+
275 .HasColumnType("character varying(10000)");
+
276
+
277 b.Property<TimeSpan?>("Timeout")
+
278 .IsRequired()
+
279 .HasColumnType("interval");
+
280
+
281 b.HasKey("Id");
+
282
+
283 b.HasIndex("InstanceId")
+
284 .IsUnique();
+
285
+
286 b.ToTable("DreamMakerSettings");
+
287 });
+
288
+
289 modelBuilder.Entity("Tgstation.Server.Host.Models.Instance", b =>
+
290 {
+
291 b.Property<long?>("Id")
+
292 .ValueGeneratedOnAdd()
+
293 .HasColumnType("bigint");
+
294
+
295 NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<long?>("Id"));
+
296
+
297 b.Property<string>("AutoUpdateCron")
+
298 .IsRequired()
+
299 .HasMaxLength(10000)
+
300 .HasColumnType("character varying(10000)");
+
301
+
302 b.Property<long>("AutoUpdateInterval")
+
303 .HasColumnType("bigint");
+
304
+
305 b.Property<int>("ChatBotLimit")
+
306 .HasColumnType("integer");
+
307
+
308 b.Property<int>("ConfigurationType")
+
309 .HasColumnType("integer");
+
310
+
311 b.Property<string>("Name")
+
312 .IsRequired()
+
313 .HasMaxLength(100)
+
314 .HasColumnType("character varying(100)");
+
315
+
316 b.Property<bool?>("Online")
+
317 .IsRequired()
+
318 .HasColumnType("boolean");
+
319
+
320 b.Property<string>("Path")
+
321 .IsRequired()
+
322 .HasColumnType("text");
+
323
+
324 b.Property<string>("SwarmIdentifer")
+
325 .HasColumnType("text");
+
326
+
327 b.HasKey("Id");
+
328
+
329 b.HasIndex("Path", "SwarmIdentifer")
+
330 .IsUnique();
+
331
+
332 b.ToTable("Instances");
+
333 });
+
334
+
335 modelBuilder.Entity("Tgstation.Server.Host.Models.InstancePermissionSet", b =>
+
336 {
+
337 b.Property<long>("Id")
+
338 .ValueGeneratedOnAdd()
+
339 .HasColumnType("bigint");
+
340
+
341 NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<long>("Id"));
+
342
+
343 b.Property<decimal>("ChatBotRights")
+
344 .HasColumnType("numeric(20,0)");
+
345
+
346 b.Property<decimal>("ConfigurationRights")
+
347 .HasColumnType("numeric(20,0)");
+
348
+
349 b.Property<decimal>("DreamDaemonRights")
+
350 .HasColumnType("numeric(20,0)");
+
351
+
352 b.Property<decimal>("DreamMakerRights")
+
353 .HasColumnType("numeric(20,0)");
+
354
+
355 b.Property<decimal>("EngineRights")
+
356 .HasColumnType("numeric(20,0)");
+
357
+
358 b.Property<long>("InstanceId")
+
359 .HasColumnType("bigint");
+
360
+
361 b.Property<decimal>("InstancePermissionSetRights")
+
362 .HasColumnType("numeric(20,0)");
+
363
+
364 b.Property<long>("PermissionSetId")
+
365 .HasColumnType("bigint");
+
366
+
367 b.Property<decimal>("RepositoryRights")
+
368 .HasColumnType("numeric(20,0)");
+
369
+
370 b.HasKey("Id");
+
371
+
372 b.HasIndex("InstanceId");
+
373
+
374 b.HasIndex("PermissionSetId", "InstanceId")
+
375 .IsUnique();
+
376
+
377 b.ToTable("InstancePermissionSets");
+
378 });
+
379
+
380 modelBuilder.Entity("Tgstation.Server.Host.Models.Job", b =>
+
381 {
+
382 b.Property<long?>("Id")
+
383 .ValueGeneratedOnAdd()
+
384 .HasColumnType("bigint");
+
385
+
386 NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<long?>("Id"));
+
387
+
388 b.Property<decimal?>("CancelRight")
+
389 .HasColumnType("numeric(20,0)");
+
390
+
391 b.Property<decimal?>("CancelRightsType")
+
392 .HasColumnType("numeric(20,0)");
+
393
+
394 b.Property<bool?>("Cancelled")
+
395 .IsRequired()
+
396 .HasColumnType("boolean");
+
397
+
398 b.Property<long?>("CancelledById")
+
399 .HasColumnType("bigint");
+
400
+
401 b.Property<string>("Description")
+
402 .IsRequired()
+
403 .HasColumnType("text");
+
404
+
405 b.Property<long?>("ErrorCode")
+
406 .HasColumnType("bigint");
+
407
+
408 b.Property<string>("ExceptionDetails")
+
409 .HasColumnType("text");
+
410
+
411 b.Property<long>("InstanceId")
+
412 .HasColumnType("bigint");
+
413
+
414 b.Property<byte>("JobCode")
+
415 .HasColumnType("smallint");
+
416
+
417 b.Property<DateTimeOffset?>("StartedAt")
+
418 .IsRequired()
+
419 .HasColumnType("timestamp with time zone");
+
420
+
421 b.Property<long>("StartedById")
+
422 .HasColumnType("bigint");
+
423
+
424 b.Property<DateTimeOffset?>("StoppedAt")
+
425 .HasColumnType("timestamp with time zone");
+
426
+
427 b.HasKey("Id");
+
428
+
429 b.HasIndex("CancelledById");
+
430
+
431 b.HasIndex("InstanceId");
+
432
+
433 b.HasIndex("StartedById");
+
434
+
435 b.ToTable("Jobs");
+
436 });
+
437
+
438 modelBuilder.Entity("Tgstation.Server.Host.Models.OAuthConnection", b =>
+
439 {
+
440 b.Property<long>("Id")
+
441 .ValueGeneratedOnAdd()
+
442 .HasColumnType("bigint");
+
443
+
444 NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<long>("Id"));
+
445
+
446 b.Property<string>("ExternalUserId")
+
447 .IsRequired()
+
448 .HasMaxLength(100)
+
449 .HasColumnType("character varying(100)");
+
450
+
451 b.Property<int>("Provider")
+
452 .HasColumnType("integer");
+
453
+
454 b.Property<long?>("UserId")
+
455 .HasColumnType("bigint");
+
456
+
457 b.HasKey("Id");
+
458
+
459 b.HasIndex("UserId");
+
460
+
461 b.HasIndex("Provider", "ExternalUserId")
+
462 .IsUnique();
+
463
+
464 b.ToTable("OAuthConnections");
+
465 });
+
466
+
467 modelBuilder.Entity("Tgstation.Server.Host.Models.PermissionSet", b =>
+
468 {
+
469 b.Property<long?>("Id")
+
470 .ValueGeneratedOnAdd()
+
471 .HasColumnType("bigint");
+
472
+
473 NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<long?>("Id"));
+
474
+
475 b.Property<decimal>("AdministrationRights")
+
476 .HasColumnType("numeric(20,0)");
+
477
+
478 b.Property<long?>("GroupId")
+
479 .HasColumnType("bigint");
+
480
+
481 b.Property<decimal>("InstanceManagerRights")
+
482 .HasColumnType("numeric(20,0)");
+
483
+
484 b.Property<long?>("UserId")
+
485 .HasColumnType("bigint");
+
486
+
487 b.HasKey("Id");
+
488
+
489 b.HasIndex("GroupId")
+
490 .IsUnique();
+
491
+
492 b.HasIndex("UserId")
+
493 .IsUnique();
+
494
+
495 b.ToTable("PermissionSets");
+
496 });
+
497
+
498 modelBuilder.Entity("Tgstation.Server.Host.Models.ReattachInformation", b =>
+
499 {
+
500 b.Property<long?>("Id")
+
501 .ValueGeneratedOnAdd()
+
502 .HasColumnType("bigint");
+
503
+
504 NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<long?>("Id"));
+
505
+
506 b.Property<string>("AccessIdentifier")
+
507 .IsRequired()
+
508 .HasColumnType("text");
+
509
+
510 b.Property<long>("CompileJobId")
+
511 .HasColumnType("bigint");
+
512
+
513 b.Property<long?>("InitialCompileJobId")
+
514 .HasColumnType("bigint");
+
515
+
516 b.Property<int>("LaunchSecurityLevel")
+
517 .HasColumnType("integer");
+
518
+
519 b.Property<int>("LaunchVisibility")
+
520 .HasColumnType("integer");
+
521
+
522 b.Property<int>("Port")
+
523 .HasColumnType("integer");
+
524
+
525 b.Property<int>("ProcessId")
+
526 .HasColumnType("integer");
+
527
+
528 b.Property<int>("RebootState")
+
529 .HasColumnType("integer");
+
530
+
531 b.Property<int?>("TopicPort")
+
532 .HasColumnType("integer");
+
533
+
534 b.HasKey("Id");
+
535
+
536 b.HasIndex("CompileJobId");
+
537
+
538 b.HasIndex("InitialCompileJobId");
+
539
+
540 b.ToTable("ReattachInformations");
+
541 });
+
542
+
543 modelBuilder.Entity("Tgstation.Server.Host.Models.RepositorySettings", b =>
+
544 {
+
545 b.Property<long>("Id")
+
546 .ValueGeneratedOnAdd()
+
547 .HasColumnType("bigint");
+
548
+
549 NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<long>("Id"));
+
550
+
551 b.Property<string>("AccessToken")
+
552 .HasMaxLength(10000)
+
553 .HasColumnType("character varying(10000)");
+
554
+
555 b.Property<string>("AccessUser")
+
556 .HasMaxLength(10000)
+
557 .HasColumnType("character varying(10000)");
+
558
+
559 b.Property<bool?>("AutoUpdatesKeepTestMerges")
+
560 .IsRequired()
+
561 .HasColumnType("boolean");
+
562
+
563 b.Property<bool?>("AutoUpdatesSynchronize")
+
564 .IsRequired()
+
565 .HasColumnType("boolean");
+
566
+
567 b.Property<string>("CommitterEmail")
+
568 .IsRequired()
+
569 .HasMaxLength(10000)
+
570 .HasColumnType("character varying(10000)");
+
571
+
572 b.Property<string>("CommitterName")
+
573 .IsRequired()
+
574 .HasMaxLength(10000)
+
575 .HasColumnType("character varying(10000)");
+
576
+
577 b.Property<bool?>("CreateGitHubDeployments")
+
578 .IsRequired()
+
579 .HasColumnType("boolean");
+
580
+
581 b.Property<long>("InstanceId")
+
582 .HasColumnType("bigint");
+
583
+
584 b.Property<bool?>("PostTestMergeComment")
+
585 .IsRequired()
+
586 .HasColumnType("boolean");
+
587
+
588 b.Property<bool?>("PushTestMergeCommits")
+
589 .IsRequired()
+
590 .HasColumnType("boolean");
+
591
+
592 b.Property<bool?>("ShowTestMergeCommitters")
+
593 .IsRequired()
+
594 .HasColumnType("boolean");
+
595
+
596 b.Property<bool?>("UpdateSubmodules")
+
597 .IsRequired()
+
598 .HasColumnType("boolean");
+
599
+
600 b.HasKey("Id");
+
601
+
602 b.HasIndex("InstanceId")
+
603 .IsUnique();
+
604
+
605 b.ToTable("RepositorySettings");
+
606 });
+
607
+
608 modelBuilder.Entity("Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
+
609 {
+
610 b.Property<long>("Id")
+
611 .ValueGeneratedOnAdd()
+
612 .HasColumnType("bigint");
+
613
+
614 NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<long>("Id"));
+
615
+
616 b.Property<long>("RevisionInformationId")
+
617 .HasColumnType("bigint");
+
618
+
619 b.Property<long>("TestMergeId")
+
620 .HasColumnType("bigint");
+
621
+
622 b.HasKey("Id");
+
623
+
624 b.HasIndex("RevisionInformationId");
+
625
+
626 b.HasIndex("TestMergeId");
+
627
+
628 b.ToTable("RevInfoTestMerges");
+
629 });
+
630
+
631 modelBuilder.Entity("Tgstation.Server.Host.Models.RevisionInformation", b =>
+
632 {
+
633 b.Property<long>("Id")
+
634 .ValueGeneratedOnAdd()
+
635 .HasColumnType("bigint");
+
636
+
637 NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<long>("Id"));
+
638
+
639 b.Property<string>("CommitSha")
+
640 .IsRequired()
+
641 .HasMaxLength(40)
+
642 .HasColumnType("character varying(40)");
+
643
+
644 b.Property<long>("InstanceId")
+
645 .HasColumnType("bigint");
+
646
+
647 b.Property<string>("OriginCommitSha")
+
648 .IsRequired()
+
649 .HasMaxLength(40)
+
650 .HasColumnType("character varying(40)");
+
651
+
652 b.Property<DateTimeOffset>("Timestamp")
+
653 .HasColumnType("timestamp with time zone");
+
654
+
655 b.HasKey("Id");
+
656
+
657 b.HasIndex("InstanceId", "CommitSha")
+
658 .IsUnique();
+
659
+
660 b.ToTable("RevisionInformations");
+
661 });
+
662
+
663 modelBuilder.Entity("Tgstation.Server.Host.Models.TestMerge", b =>
+
664 {
+
665 b.Property<long>("Id")
+
666 .ValueGeneratedOnAdd()
+
667 .HasColumnType("bigint");
+
668
+
669 NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<long>("Id"));
+
670
+
671 b.Property<string>("Author")
+
672 .IsRequired()
+
673 .HasColumnType("text");
+
674
+
675 b.Property<string>("BodyAtMerge")
+
676 .IsRequired()
+
677 .HasColumnType("text");
+
678
+
679 b.Property<string>("Comment")
+
680 .HasMaxLength(10000)
+
681 .HasColumnType("character varying(10000)");
+
682
+
683 b.Property<DateTimeOffset>("MergedAt")
+
684 .HasColumnType("timestamp with time zone");
+
685
+
686 b.Property<long>("MergedById")
+
687 .HasColumnType("bigint");
+
688
+
689 b.Property<int>("Number")
+
690 .HasColumnType("integer");
+
691
+
692 b.Property<long?>("PrimaryRevisionInformationId")
+
693 .IsRequired()
+
694 .HasColumnType("bigint");
+
695
+
696 b.Property<string>("TargetCommitSha")
+
697 .IsRequired()
+
698 .HasMaxLength(40)
+
699 .HasColumnType("character varying(40)");
+
700
+
701 b.Property<string>("TitleAtMerge")
+
702 .IsRequired()
+
703 .HasColumnType("text");
+
704
+
705 b.Property<string>("Url")
+
706 .IsRequired()
+
707 .HasColumnType("text");
+
708
+
709 b.HasKey("Id");
+
710
+
711 b.HasIndex("MergedById");
+
712
+
713 b.HasIndex("PrimaryRevisionInformationId")
+
714 .IsUnique();
+
715
+
716 b.ToTable("TestMerges");
+
717 });
+
718
+
719 modelBuilder.Entity("Tgstation.Server.Host.Models.User", b =>
+
720 {
+
721 b.Property<long?>("Id")
+
722 .ValueGeneratedOnAdd()
+
723 .HasColumnType("bigint");
+
724
+
725 NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<long?>("Id"));
+
726
+
727 b.Property<string>("CanonicalName")
+
728 .IsRequired()
+
729 .HasMaxLength(100)
+
730 .HasColumnType("character varying(100)");
+
731
+
732 b.Property<DateTimeOffset?>("CreatedAt")
+
733 .IsRequired()
+
734 .HasColumnType("timestamp with time zone");
+
735
+
736 b.Property<long?>("CreatedById")
+
737 .HasColumnType("bigint");
+
738
+
739 b.Property<bool?>("Enabled")
+
740 .IsRequired()
+
741 .HasColumnType("boolean");
+
742
+
743 b.Property<long?>("GroupId")
+
744 .HasColumnType("bigint");
+
745
+
746 b.Property<DateTimeOffset?>("LastPasswordUpdate")
+
747 .HasColumnType("timestamp with time zone");
+
748
+
749 b.Property<string>("Name")
+
750 .IsRequired()
+
751 .HasMaxLength(100)
+
752 .HasColumnType("character varying(100)");
+
753
+
754 b.Property<string>("PasswordHash")
+
755 .HasColumnType("text");
+
756
+
757 b.Property<string>("SystemIdentifier")
+
758 .HasMaxLength(100)
+
759 .HasColumnType("character varying(100)");
+
760
+
761 b.HasKey("Id");
+
762
+
763 b.HasIndex("CanonicalName")
+
764 .IsUnique();
+
765
+
766 b.HasIndex("CreatedById");
+
767
+
768 b.HasIndex("GroupId");
+
769
+
770 b.HasIndex("SystemIdentifier")
+
771 .IsUnique();
+
772
+
773 b.ToTable("Users");
+
774 });
+
775
+
776 modelBuilder.Entity("Tgstation.Server.Host.Models.UserGroup", b =>
+
777 {
+
778 b.Property<long?>("Id")
+
779 .ValueGeneratedOnAdd()
+
780 .HasColumnType("bigint");
+
781
+
782 NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<long?>("Id"));
+
783
+
784 b.Property<string>("Name")
+
785 .IsRequired()
+
786 .HasMaxLength(100)
+
787 .HasColumnType("character varying(100)");
+
788
+
789 b.HasKey("Id");
+
790
+
791 b.HasIndex("Name")
+
792 .IsUnique();
+
793
+
794 b.ToTable("Groups");
+
795 });
+
796
+
797 modelBuilder.Entity("Tgstation.Server.Host.Models.ChatBot", b =>
+
798 {
+
799 b.HasOne("Tgstation.Server.Host.Models.Instance", "Instance")
+
800 .WithMany("ChatSettings")
+
801 .HasForeignKey("InstanceId")
+
802 .OnDelete(DeleteBehavior.Cascade)
+
803 .IsRequired();
+
804
+
805 b.Navigation("Instance");
+
806 });
+
807
+
808 modelBuilder.Entity("Tgstation.Server.Host.Models.ChatChannel", b =>
+
809 {
+
810 b.HasOne("Tgstation.Server.Host.Models.ChatBot", "ChatSettings")
+
811 .WithMany("Channels")
+
812 .HasForeignKey("ChatSettingsId")
+
813 .OnDelete(DeleteBehavior.Cascade)
+
814 .IsRequired();
+
815
+
816 b.Navigation("ChatSettings");
+
817 });
+
818
+
819 modelBuilder.Entity("Tgstation.Server.Host.Models.CompileJob", b =>
+
820 {
+
821 b.HasOne("Tgstation.Server.Host.Models.Job", "Job")
+
822 .WithOne()
+
823 .HasForeignKey("Tgstation.Server.Host.Models.CompileJob", "JobId")
+
824 .OnDelete(DeleteBehavior.Cascade)
+
825 .IsRequired();
+
826
+
827 b.HasOne("Tgstation.Server.Host.Models.RevisionInformation", "RevisionInformation")
+
828 .WithMany("CompileJobs")
+
829 .HasForeignKey("RevisionInformationId")
+
830 .OnDelete(DeleteBehavior.Cascade)
+
831 .IsRequired();
+
832
+
833 b.Navigation("Job");
+
834
+
835 b.Navigation("RevisionInformation");
+
836 });
+
837
+
838 modelBuilder.Entity("Tgstation.Server.Host.Models.DreamDaemonSettings", b =>
+
839 {
+
840 b.HasOne("Tgstation.Server.Host.Models.Instance", "Instance")
+
841 .WithOne("DreamDaemonSettings")
+
842 .HasForeignKey("Tgstation.Server.Host.Models.DreamDaemonSettings", "InstanceId")
+
843 .OnDelete(DeleteBehavior.Cascade)
+
844 .IsRequired();
+
845
+
846 b.Navigation("Instance");
+
847 });
+
848
+
849 modelBuilder.Entity("Tgstation.Server.Host.Models.DreamMakerSettings", b =>
+
850 {
+
851 b.HasOne("Tgstation.Server.Host.Models.Instance", "Instance")
+
852 .WithOne("DreamMakerSettings")
+
853 .HasForeignKey("Tgstation.Server.Host.Models.DreamMakerSettings", "InstanceId")
+
854 .OnDelete(DeleteBehavior.Cascade)
+
855 .IsRequired();
+
856
+
857 b.Navigation("Instance");
+
858 });
+
859
+
860 modelBuilder.Entity("Tgstation.Server.Host.Models.InstancePermissionSet", b =>
+
861 {
+
862 b.HasOne("Tgstation.Server.Host.Models.Instance", "Instance")
+
863 .WithMany("InstancePermissionSets")
+
864 .HasForeignKey("InstanceId")
+
865 .OnDelete(DeleteBehavior.Cascade)
+
866 .IsRequired();
+
867
+
868 b.HasOne("Tgstation.Server.Host.Models.PermissionSet", "PermissionSet")
+
869 .WithMany("InstancePermissionSets")
+
870 .HasForeignKey("PermissionSetId")
+
871 .OnDelete(DeleteBehavior.Cascade)
+
872 .IsRequired();
+
873
+
874 b.Navigation("Instance");
+
875
+
876 b.Navigation("PermissionSet");
+
877 });
+
878
+
879 modelBuilder.Entity("Tgstation.Server.Host.Models.Job", b =>
+
880 {
+
881 b.HasOne("Tgstation.Server.Host.Models.User", "CancelledBy")
+
882 .WithMany()
+
883 .HasForeignKey("CancelledById");
+
884
+
885 b.HasOne("Tgstation.Server.Host.Models.Instance", "Instance")
+
886 .WithMany("Jobs")
+
887 .HasForeignKey("InstanceId")
+
888 .OnDelete(DeleteBehavior.Cascade)
+
889 .IsRequired();
+
890
+
891 b.HasOne("Tgstation.Server.Host.Models.User", "StartedBy")
+
892 .WithMany()
+
893 .HasForeignKey("StartedById")
+
894 .OnDelete(DeleteBehavior.Cascade)
+
895 .IsRequired();
+
896
+
897 b.Navigation("CancelledBy");
+
898
+
899 b.Navigation("Instance");
+
900
+
901 b.Navigation("StartedBy");
+
902 });
+
903
+
904 modelBuilder.Entity("Tgstation.Server.Host.Models.OAuthConnection", b =>
+
905 {
+
906 b.HasOne("Tgstation.Server.Host.Models.User", "User")
+
907 .WithMany("OAuthConnections")
+
908 .HasForeignKey("UserId")
+
909 .OnDelete(DeleteBehavior.Cascade);
+
910
+
911 b.Navigation("User");
+
912 });
+
913
+
914 modelBuilder.Entity("Tgstation.Server.Host.Models.PermissionSet", b =>
+
915 {
+
916 b.HasOne("Tgstation.Server.Host.Models.UserGroup", "Group")
+
917 .WithOne("PermissionSet")
+
918 .HasForeignKey("Tgstation.Server.Host.Models.PermissionSet", "GroupId")
+
919 .OnDelete(DeleteBehavior.Cascade);
+
920
+
921 b.HasOne("Tgstation.Server.Host.Models.User", "User")
+
922 .WithOne("PermissionSet")
+
923 .HasForeignKey("Tgstation.Server.Host.Models.PermissionSet", "UserId")
+
924 .OnDelete(DeleteBehavior.Cascade);
+
925
+
926 b.Navigation("Group");
+
927
+
928 b.Navigation("User");
+
929 });
+
930
+
931 modelBuilder.Entity("Tgstation.Server.Host.Models.ReattachInformation", b =>
+
932 {
+
933 b.HasOne("Tgstation.Server.Host.Models.CompileJob", "CompileJob")
+
934 .WithMany()
+
935 .HasForeignKey("CompileJobId")
+
936 .OnDelete(DeleteBehavior.Cascade)
+
937 .IsRequired();
+
938
+
939 b.HasOne("Tgstation.Server.Host.Models.CompileJob", "InitialCompileJob")
+
940 .WithMany()
+
941 .HasForeignKey("InitialCompileJobId");
+
942
+
943 b.Navigation("CompileJob");
+
944
+
945 b.Navigation("InitialCompileJob");
+
946 });
+
947
+
948 modelBuilder.Entity("Tgstation.Server.Host.Models.RepositorySettings", b =>
+
949 {
+
950 b.HasOne("Tgstation.Server.Host.Models.Instance", "Instance")
+
951 .WithOne("RepositorySettings")
+
952 .HasForeignKey("Tgstation.Server.Host.Models.RepositorySettings", "InstanceId")
+
953 .OnDelete(DeleteBehavior.Cascade)
+
954 .IsRequired();
+
955
+
956 b.Navigation("Instance");
+
957 });
+
958
+
959 modelBuilder.Entity("Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
+
960 {
+
961 b.HasOne("Tgstation.Server.Host.Models.RevisionInformation", "RevisionInformation")
+
962 .WithMany("ActiveTestMerges")
+
963 .HasForeignKey("RevisionInformationId")
+
964 .OnDelete(DeleteBehavior.Cascade)
+
965 .IsRequired();
+
966
+
967 b.HasOne("Tgstation.Server.Host.Models.TestMerge", "TestMerge")
+
968 .WithMany("RevisonInformations")
+
969 .HasForeignKey("TestMergeId")
+
970 .OnDelete(DeleteBehavior.ClientNoAction)
+
971 .IsRequired();
+
972
+
973 b.Navigation("RevisionInformation");
+
974
+
975 b.Navigation("TestMerge");
+
976 });
+
977
+
978 modelBuilder.Entity("Tgstation.Server.Host.Models.RevisionInformation", b =>
+
979 {
+
980 b.HasOne("Tgstation.Server.Host.Models.Instance", "Instance")
+
981 .WithMany("RevisionInformations")
+
982 .HasForeignKey("InstanceId")
+
983 .OnDelete(DeleteBehavior.Cascade)
+
984 .IsRequired();
+
985
+
986 b.Navigation("Instance");
+
987 });
+
988
+
989 modelBuilder.Entity("Tgstation.Server.Host.Models.TestMerge", b =>
+
990 {
+
991 b.HasOne("Tgstation.Server.Host.Models.User", "MergedBy")
+
992 .WithMany("TestMerges")
+
993 .HasForeignKey("MergedById")
+
994 .OnDelete(DeleteBehavior.Restrict)
+
995 .IsRequired();
+
996
+
997 b.HasOne("Tgstation.Server.Host.Models.RevisionInformation", "PrimaryRevisionInformation")
+
998 .WithOne("PrimaryTestMerge")
+
999 .HasForeignKey("Tgstation.Server.Host.Models.TestMerge", "PrimaryRevisionInformationId")
+
1000 .OnDelete(DeleteBehavior.Cascade)
+
1001 .IsRequired();
+
1002
+
1003 b.Navigation("MergedBy");
+
1004
+
1005 b.Navigation("PrimaryRevisionInformation");
+
1006 });
+
1007
+
1008 modelBuilder.Entity("Tgstation.Server.Host.Models.User", b =>
+
1009 {
+
1010 b.HasOne("Tgstation.Server.Host.Models.User", "CreatedBy")
+
1011 .WithMany("CreatedUsers")
+
1012 .HasForeignKey("CreatedById");
+
1013
+
1014 b.HasOne("Tgstation.Server.Host.Models.UserGroup", "Group")
+
1015 .WithMany("Users")
+
1016 .HasForeignKey("GroupId");
+
1017
+
1018 b.Navigation("CreatedBy");
+
1019
+
1020 b.Navigation("Group");
+
1021 });
+
1022
+
1023 modelBuilder.Entity("Tgstation.Server.Host.Models.ChatBot", b =>
+
1024 {
+
1025 b.Navigation("Channels");
+
1026 });
+
1027
+
1028 modelBuilder.Entity("Tgstation.Server.Host.Models.Instance", b =>
+
1029 {
+
1030 b.Navigation("ChatSettings");
+
1031
+
1032 b.Navigation("DreamDaemonSettings");
+
1033
+
1034 b.Navigation("DreamMakerSettings");
+
1035
+
1036 b.Navigation("InstancePermissionSets");
+
1037
+
1038 b.Navigation("Jobs");
+
1039
+
1040 b.Navigation("RepositorySettings");
+
1041
+
1042 b.Navigation("RevisionInformations");
+
1043 });
+
1044
+
1045 modelBuilder.Entity("Tgstation.Server.Host.Models.PermissionSet", b =>
+
1046 {
+
1047 b.Navigation("InstancePermissionSets");
+
1048 });
+
1049
+
1050 modelBuilder.Entity("Tgstation.Server.Host.Models.RevisionInformation", b =>
+
1051 {
+
1052 b.Navigation("ActiveTestMerges");
+
1053
+
1054 b.Navigation("CompileJobs");
+
1055
+
1056 b.Navigation("PrimaryTestMerge");
+
1057 });
+
1058
+
1059 modelBuilder.Entity("Tgstation.Server.Host.Models.TestMerge", b =>
+
1060 {
+
1061 b.Navigation("RevisonInformations");
+
1062 });
+
1063
+
1064 modelBuilder.Entity("Tgstation.Server.Host.Models.User", b =>
+
1065 {
+
1066 b.Navigation("CreatedUsers");
+
1067
+
1068 b.Navigation("OAuthConnections");
+
1069
+
1070 b.Navigation("PermissionSet");
+
1071
+
1072 b.Navigation("TestMerges");
+
1073 });
+
1074
+
1075 modelBuilder.Entity("Tgstation.Server.Host.Models.UserGroup", b =>
+
1076 {
+
1077 b.Navigation("PermissionSet")
+
1078 .IsRequired();
+
1079
+
1080 b.Navigation("Users");
+
1081 });
+
1082#pragma warning restore 612, 618
+
1083 }
+
+
1084 }
+
1085}
+ + + + +
+ + + + diff --git a/20240907172251___p_g_add_d_m_api_validation_mode_8cs.html b/20240907172251___p_g_add_d_m_api_validation_mode_8cs.html new file mode 100644 index 0000000000..ee3194e6da --- /dev/null +++ b/20240907172251___p_g_add_d_m_api_validation_mode_8cs.html @@ -0,0 +1,110 @@ + + + + + + + +tgstation-server: src/Tgstation.Server.Host/Database/Migrations/20240907172251_PGAddDMApiValidationMode.cs File Reference + + + + + + + + + +
+
+ + + + + + +
+
tgstation-server 6.10.0 +
+
The /tg/station 13 server suite
+
+
+ + + + + + + + +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ + +
+
+
+Classes | +Namespaces
+
20240907172251_PGAddDMApiValidationMode.cs File Reference
+
+
+ +

Go to the source code of this file.

+ + + + +

+Classes

class  Tgstation.Server.Host.Database.Migrations.PGAddDMApiValidationMode
 
+ + + + + + + + + + + +

+Namespaces

namespace  Tgstation
 
namespace  Tgstation.Server
 
namespace  Tgstation.Server.Host
 
namespace  Tgstation.Server.Host.Database
 
namespace  Tgstation.Server.Host.Database.Migrations
 
+
+ + + + diff --git a/20240907172251___p_g_add_d_m_api_validation_mode_8cs_source.html b/20240907172251___p_g_add_d_m_api_validation_mode_8cs_source.html new file mode 100644 index 0000000000..733815db5b --- /dev/null +++ b/20240907172251___p_g_add_d_m_api_validation_mode_8cs_source.html @@ -0,0 +1,148 @@ + + + + + + + +tgstation-server: src/Tgstation.Server.Host/Database/Migrations/20240907172251_PGAddDMApiValidationMode.cs Source File + + + + + + + + + +
+
+ + + + + + +
+
tgstation-server 6.10.0 +
+
The /tg/station 13 server suite
+
+
+ + + + + + + + + +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ + +
+
+
20240907172251_PGAddDMApiValidationMode.cs
+
+
+Go to the documentation of this file.
1using System;
+
2
+
3using Microsoft.EntityFrameworkCore.Migrations;
+
4
+ +
6{
+
+
8 public partial class PGAddDMApiValidationMode : Migration
+
9 {
+
+
11 protected override void Up(MigrationBuilder migrationBuilder)
+
12 {
+
13 ArgumentNullException.ThrowIfNull(migrationBuilder);
+
14
+
15 migrationBuilder.AddColumn<int>(
+
16 name: "DMApiValidationMode",
+
17 table: "DreamMakerSettings",
+
18 type: "integer",
+
19 nullable: false,
+
20 defaultValue: 0);
+
21
+
22 migrationBuilder.Sql("UPDATE \"DreamMakerSettings\" SET \"DMApiValidationMode\" = \"RequireDMApiValidation\"::int");
+
23
+
24 migrationBuilder.DropColumn(
+
25 name: "RequireDMApiValidation",
+
26 table: "DreamMakerSettings");
+
27 }
+
+
28
+
+
30 protected override void Down(MigrationBuilder migrationBuilder)
+
31 {
+
32 ArgumentNullException.ThrowIfNull(migrationBuilder);
+
33
+
34 migrationBuilder.AddColumn<bool>(
+
35 name: "RequireDMApiValidation",
+
36 table: "DreamMakerSettings",
+
37 type: "boolean",
+
38 nullable: false,
+
39 defaultValue: false);
+
40
+
41 migrationBuilder.Sql("UPDATE \"DreamMakerSettings\" SET \"RequireDMApiValidation\" = true WHERE \"DMApiValidationMode\" != 0");
+
42 migrationBuilder.Sql("UPDATE \"DreamMakerSettings\" SET \"RequireDMApiValidation\" = false WHERE \"DMApiValidationMode\" = 0");
+
43
+
44 migrationBuilder.DropColumn(
+
45 name: "DMApiValidationMode",
+
46 table: "DreamMakerSettings");
+
47 }
+
+
48 }
+
+
49}
+ + + + + +
+ + + + diff --git a/20240907172259___s_l_add_d_m_api_validation_mode_8_designer_8cs.html b/20240907172259___s_l_add_d_m_api_validation_mode_8_designer_8cs.html new file mode 100644 index 0000000000..c0dea355b3 --- /dev/null +++ b/20240907172259___s_l_add_d_m_api_validation_mode_8_designer_8cs.html @@ -0,0 +1,110 @@ + + + + + + + +tgstation-server: src/Tgstation.Server.Host/Database/Migrations/20240907172259_SLAddDMApiValidationMode.Designer.cs File Reference + + + + + + + + + +
+
+ + + + + + +
+
tgstation-server 6.10.0 +
+
The /tg/station 13 server suite
+
+
+ + + + + + + + +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ + +
+
+
+Classes | +Namespaces
+
20240907172259_SLAddDMApiValidationMode.Designer.cs File Reference
+
+
+ +

Go to the source code of this file.

+ + + + +

+Classes

class  Tgstation.Server.Host.Database.Migrations.SLAddDMApiValidationMode
 
+ + + + + + + + + + + +

+Namespaces

namespace  Tgstation
 
namespace  Tgstation.Server
 
namespace  Tgstation.Server.Host
 
namespace  Tgstation.Server.Host.Database
 
namespace  Tgstation.Server.Host.Database.Migrations
 
+
+ + + + diff --git a/20240907172259___s_l_add_d_m_api_validation_mode_8_designer_8cs_source.html b/20240907172259___s_l_add_d_m_api_validation_mode_8_designer_8cs_source.html new file mode 100644 index 0000000000..ae3cb72e45 --- /dev/null +++ b/20240907172259___s_l_add_d_m_api_validation_mode_8_designer_8cs_source.html @@ -0,0 +1,1154 @@ + + + + + + + +tgstation-server: src/Tgstation.Server.Host/Database/Migrations/20240907172259_SLAddDMApiValidationMode.Designer.cs Source File + + + + + + + + + +
+
+ + + + + + +
+
tgstation-server 6.10.0 +
+
The /tg/station 13 server suite
+
+
+ + + + + + + + + +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ + +
+
+
20240907172259_SLAddDMApiValidationMode.Designer.cs
+
+
+Go to the documentation of this file.
1// <auto-generated />
+
2using System;
+
3
+
4using Microsoft.EntityFrameworkCore;
+
5using Microsoft.EntityFrameworkCore.Infrastructure;
+
6using Microsoft.EntityFrameworkCore.Migrations;
+
7
+ +
9{
+
10 [DbContext(typeof(SqliteDatabaseContext))]
+
11 [Migration("20240907172259_SLAddDMApiValidationMode")]
+
12 partial class SLAddDMApiValidationMode
+
13 {
+
+
15 protected override void BuildTargetModel(ModelBuilder modelBuilder)
+
16 {
+
17#pragma warning disable 612, 618
+
18 modelBuilder.HasAnnotation("ProductVersion", "8.0.8");
+
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 .HasMaxLength(10000)
+
33 .HasColumnType("TEXT");
+
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 .HasMaxLength(100)
+
44 .HasColumnType("TEXT");
+
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 .HasMaxLength(100)
+
75 .HasColumnType("TEXT");
+
76
+
77 b.Property<bool?>("IsAdminChannel")
+
78 .IsRequired()
+
79 .HasColumnType("INTEGER");
+
80
+
81 b.Property<bool?>("IsSystemChannel")
+
82 .IsRequired()
+
83 .HasColumnType("INTEGER");
+
84
+
85 b.Property<bool?>("IsUpdatesChannel")
+
86 .IsRequired()
+
87 .HasColumnType("INTEGER");
+
88
+
89 b.Property<bool?>("IsWatchdogChannel")
+
90 .IsRequired()
+
91 .HasColumnType("INTEGER");
+
92
+
93 b.Property<string>("Tag")
+
94 .HasMaxLength(10000)
+
95 .HasColumnType("TEXT");
+
96
+
97 b.HasKey("Id");
+
98
+
99 b.HasIndex("ChatSettingsId", "DiscordChannelId")
+
100 .IsUnique();
+
101
+
102 b.HasIndex("ChatSettingsId", "IrcChannel")
+
103 .IsUnique();
+
104
+
105 b.ToTable("ChatChannels");
+
106 });
+
107
+
108 modelBuilder.Entity("Tgstation.Server.Host.Models.CompileJob", b =>
+
109 {
+
110 b.Property<long?>("Id")
+
111 .ValueGeneratedOnAdd()
+
112 .HasColumnType("INTEGER");
+
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<string>("EngineVersion")
+
132 .IsRequired()
+
133 .HasColumnType("TEXT");
+
134
+
135 b.Property<long?>("GitHubDeploymentId")
+
136 .HasColumnType("INTEGER");
+
137
+
138 b.Property<long?>("GitHubRepoId")
+
139 .HasColumnType("INTEGER");
+
140
+
141 b.Property<long>("JobId")
+
142 .HasColumnType("INTEGER");
+
143
+
144 b.Property<int?>("MinimumSecurityLevel")
+
145 .HasColumnType("INTEGER");
+
146
+
147 b.Property<string>("Output")
+
148 .IsRequired()
+
149 .HasColumnType("TEXT");
+
150
+
151 b.Property<string>("RepositoryOrigin")
+
152 .HasColumnType("TEXT");
+
153
+
154 b.Property<long>("RevisionInformationId")
+
155 .HasColumnType("INTEGER");
+
156
+
157 b.HasKey("Id");
+
158
+
159 b.HasIndex("DirectoryName");
+
160
+
161 b.HasIndex("JobId")
+
162 .IsUnique();
+
163
+
164 b.HasIndex("RevisionInformationId");
+
165
+
166 b.ToTable("CompileJobs");
+
167 });
+
168
+
169 modelBuilder.Entity("Tgstation.Server.Host.Models.DreamDaemonSettings", b =>
+
170 {
+
171 b.Property<long>("Id")
+
172 .ValueGeneratedOnAdd()
+
173 .HasColumnType("INTEGER");
+
174
+
175 b.Property<string>("AdditionalParameters")
+
176 .IsRequired()
+
177 .HasMaxLength(10000)
+
178 .HasColumnType("TEXT");
+
179
+
180 b.Property<bool?>("AllowWebClient")
+
181 .IsRequired()
+
182 .HasColumnType("INTEGER");
+
183
+
184 b.Property<bool?>("AutoStart")
+
185 .IsRequired()
+
186 .HasColumnType("INTEGER");
+
187
+
188 b.Property<bool?>("DumpOnHealthCheckRestart")
+
189 .IsRequired()
+
190 .HasColumnType("INTEGER");
+
191
+
192 b.Property<uint?>("HealthCheckSeconds")
+
193 .IsRequired()
+
194 .HasColumnType("INTEGER");
+
195
+
196 b.Property<long>("InstanceId")
+
197 .HasColumnType("INTEGER");
+
198
+
199 b.Property<bool?>("LogOutput")
+
200 .IsRequired()
+
201 .HasColumnType("INTEGER");
+
202
+
203 b.Property<uint?>("MapThreads")
+
204 .IsRequired()
+
205 .HasColumnType("INTEGER");
+
206
+
207 b.Property<bool?>("Minidumps")
+
208 .IsRequired()
+
209 .HasColumnType("INTEGER");
+
210
+
211 b.Property<ushort?>("OpenDreamTopicPort")
+
212 .IsRequired()
+
213 .HasColumnType("INTEGER");
+
214
+
215 b.Property<ushort?>("Port")
+
216 .IsRequired()
+
217 .HasColumnType("INTEGER");
+
218
+
219 b.Property<int>("SecurityLevel")
+
220 .HasColumnType("INTEGER");
+
221
+
222 b.Property<bool?>("StartProfiler")
+
223 .IsRequired()
+
224 .HasColumnType("INTEGER");
+
225
+
226 b.Property<uint?>("StartupTimeout")
+
227 .IsRequired()
+
228 .HasColumnType("INTEGER");
+
229
+
230 b.Property<uint?>("TopicRequestTimeout")
+
231 .IsRequired()
+
232 .HasColumnType("INTEGER");
+
233
+
234 b.Property<int>("Visibility")
+
235 .HasColumnType("INTEGER");
+
236
+
237 b.HasKey("Id");
+
238
+
239 b.HasIndex("InstanceId")
+
240 .IsUnique();
+
241
+
242 b.ToTable("DreamDaemonSettings");
+
243 });
+
244
+
245 modelBuilder.Entity("Tgstation.Server.Host.Models.DreamMakerSettings", b =>
+
246 {
+
247 b.Property<long>("Id")
+
248 .ValueGeneratedOnAdd()
+
249 .HasColumnType("INTEGER");
+
250
+
251 b.Property<ushort?>("ApiValidationPort")
+
252 .IsRequired()
+
253 .HasColumnType("INTEGER");
+
254
+
255 b.Property<int>("ApiValidationSecurityLevel")
+
256 .HasColumnType("INTEGER");
+
257
+
258 b.Property<string>("CompilerAdditionalArguments")
+
259 .HasMaxLength(10000)
+
260 .HasColumnType("TEXT");
+
261
+
262 b.Property<int>("DMApiValidationMode")
+
263 .HasColumnType("INTEGER");
+
264
+
265 b.Property<long>("InstanceId")
+
266 .HasColumnType("INTEGER");
+
267
+
268 b.Property<string>("ProjectName")
+
269 .HasMaxLength(10000)
+
270 .HasColumnType("TEXT");
+
271
+
272 b.Property<TimeSpan?>("Timeout")
+
273 .IsRequired()
+
274 .HasColumnType("TEXT");
+
275
+
276 b.HasKey("Id");
+
277
+
278 b.HasIndex("InstanceId")
+
279 .IsUnique();
+
280
+
281 b.ToTable("DreamMakerSettings");
+
282 });
+
283
+
284 modelBuilder.Entity("Tgstation.Server.Host.Models.Instance", b =>
+
285 {
+
286 b.Property<long?>("Id")
+
287 .ValueGeneratedOnAdd()
+
288 .HasColumnType("INTEGER");
+
289
+
290 b.Property<string>("AutoUpdateCron")
+
291 .IsRequired()
+
292 .HasMaxLength(10000)
+
293 .HasColumnType("TEXT");
+
294
+
295 b.Property<uint?>("AutoUpdateInterval")
+
296 .IsRequired()
+
297 .HasColumnType("INTEGER");
+
298
+
299 b.Property<ushort?>("ChatBotLimit")
+
300 .IsRequired()
+
301 .HasColumnType("INTEGER");
+
302
+
303 b.Property<int>("ConfigurationType")
+
304 .HasColumnType("INTEGER");
+
305
+
306 b.Property<string>("Name")
+
307 .IsRequired()
+
308 .HasMaxLength(100)
+
309 .HasColumnType("TEXT");
+
310
+
311 b.Property<bool?>("Online")
+
312 .IsRequired()
+
313 .HasColumnType("INTEGER");
+
314
+
315 b.Property<string>("Path")
+
316 .IsRequired()
+
317 .HasColumnType("TEXT");
+
318
+
319 b.Property<string>("SwarmIdentifer")
+
320 .HasColumnType("TEXT");
+
321
+
322 b.HasKey("Id");
+
323
+
324 b.HasIndex("Path", "SwarmIdentifer")
+
325 .IsUnique();
+
326
+
327 b.ToTable("Instances");
+
328 });
+
329
+
330 modelBuilder.Entity("Tgstation.Server.Host.Models.InstancePermissionSet", b =>
+
331 {
+
332 b.Property<long>("Id")
+
333 .ValueGeneratedOnAdd()
+
334 .HasColumnType("INTEGER");
+
335
+
336 b.Property<ulong>("ChatBotRights")
+
337 .HasColumnType("INTEGER");
+
338
+
339 b.Property<ulong>("ConfigurationRights")
+
340 .HasColumnType("INTEGER");
+
341
+
342 b.Property<ulong>("DreamDaemonRights")
+
343 .HasColumnType("INTEGER");
+
344
+
345 b.Property<ulong>("DreamMakerRights")
+
346 .HasColumnType("INTEGER");
+
347
+
348 b.Property<ulong>("EngineRights")
+
349 .HasColumnType("INTEGER");
+
350
+
351 b.Property<long>("InstanceId")
+
352 .HasColumnType("INTEGER");
+
353
+
354 b.Property<ulong>("InstancePermissionSetRights")
+
355 .HasColumnType("INTEGER");
+
356
+
357 b.Property<long>("PermissionSetId")
+
358 .HasColumnType("INTEGER");
+
359
+
360 b.Property<ulong>("RepositoryRights")
+
361 .HasColumnType("INTEGER");
+
362
+
363 b.HasKey("Id");
+
364
+
365 b.HasIndex("InstanceId");
+
366
+
367 b.HasIndex("PermissionSetId", "InstanceId")
+
368 .IsUnique();
+
369
+
370 b.ToTable("InstancePermissionSets");
+
371 });
+
372
+
373 modelBuilder.Entity("Tgstation.Server.Host.Models.Job", b =>
+
374 {
+
375 b.Property<long?>("Id")
+
376 .ValueGeneratedOnAdd()
+
377 .HasColumnType("INTEGER");
+
378
+
379 b.Property<ulong?>("CancelRight")
+
380 .HasColumnType("INTEGER");
+
381
+
382 b.Property<ulong?>("CancelRightsType")
+
383 .HasColumnType("INTEGER");
+
384
+
385 b.Property<bool?>("Cancelled")
+
386 .IsRequired()
+
387 .HasColumnType("INTEGER");
+
388
+
389 b.Property<long?>("CancelledById")
+
390 .HasColumnType("INTEGER");
+
391
+
392 b.Property<string>("Description")
+
393 .IsRequired()
+
394 .HasColumnType("TEXT");
+
395
+
396 b.Property<uint?>("ErrorCode")
+
397 .HasColumnType("INTEGER");
+
398
+
399 b.Property<string>("ExceptionDetails")
+
400 .HasColumnType("TEXT");
+
401
+
402 b.Property<long>("InstanceId")
+
403 .HasColumnType("INTEGER");
+
404
+
405 b.Property<byte>("JobCode")
+
406 .HasColumnType("INTEGER");
+
407
+
408 b.Property<DateTimeOffset?>("StartedAt")
+
409 .IsRequired()
+
410 .HasColumnType("TEXT");
+
411
+
412 b.Property<long>("StartedById")
+
413 .HasColumnType("INTEGER");
+
414
+
415 b.Property<DateTimeOffset?>("StoppedAt")
+
416 .HasColumnType("TEXT");
+
417
+
418 b.HasKey("Id");
+
419
+
420 b.HasIndex("CancelledById");
+
421
+
422 b.HasIndex("InstanceId");
+
423
+
424 b.HasIndex("StartedById");
+
425
+
426 b.ToTable("Jobs");
+
427 });
+
428
+
429 modelBuilder.Entity("Tgstation.Server.Host.Models.OAuthConnection", b =>
+
430 {
+
431 b.Property<long>("Id")
+
432 .ValueGeneratedOnAdd()
+
433 .HasColumnType("INTEGER");
+
434
+
435 b.Property<string>("ExternalUserId")
+
436 .IsRequired()
+
437 .HasMaxLength(100)
+
438 .HasColumnType("TEXT");
+
439
+
440 b.Property<int>("Provider")
+
441 .HasColumnType("INTEGER");
+
442
+
443 b.Property<long?>("UserId")
+
444 .HasColumnType("INTEGER");
+
445
+
446 b.HasKey("Id");
+
447
+
448 b.HasIndex("UserId");
+
449
+
450 b.HasIndex("Provider", "ExternalUserId")
+
451 .IsUnique();
+
452
+
453 b.ToTable("OAuthConnections");
+
454 });
+
455
+
456 modelBuilder.Entity("Tgstation.Server.Host.Models.PermissionSet", b =>
+
457 {
+
458 b.Property<long?>("Id")
+
459 .ValueGeneratedOnAdd()
+
460 .HasColumnType("INTEGER");
+
461
+
462 b.Property<ulong>("AdministrationRights")
+
463 .HasColumnType("INTEGER");
+
464
+
465 b.Property<long?>("GroupId")
+
466 .HasColumnType("INTEGER");
+
467
+
468 b.Property<ulong>("InstanceManagerRights")
+
469 .HasColumnType("INTEGER");
+
470
+
471 b.Property<long?>("UserId")
+
472 .HasColumnType("INTEGER");
+
473
+
474 b.HasKey("Id");
+
475
+
476 b.HasIndex("GroupId")
+
477 .IsUnique();
+
478
+
479 b.HasIndex("UserId")
+
480 .IsUnique();
+
481
+
482 b.ToTable("PermissionSets");
+
483 });
+
484
+
485 modelBuilder.Entity("Tgstation.Server.Host.Models.ReattachInformation", b =>
+
486 {
+
487 b.Property<long?>("Id")
+
488 .ValueGeneratedOnAdd()
+
489 .HasColumnType("INTEGER");
+
490
+
491 b.Property<string>("AccessIdentifier")
+
492 .IsRequired()
+
493 .HasColumnType("TEXT");
+
494
+
495 b.Property<long>("CompileJobId")
+
496 .HasColumnType("INTEGER");
+
497
+
498 b.Property<long?>("InitialCompileJobId")
+
499 .HasColumnType("INTEGER");
+
500
+
501 b.Property<int>("LaunchSecurityLevel")
+
502 .HasColumnType("INTEGER");
+
503
+
504 b.Property<int>("LaunchVisibility")
+
505 .HasColumnType("INTEGER");
+
506
+
507 b.Property<ushort>("Port")
+
508 .HasColumnType("INTEGER");
+
509
+
510 b.Property<int>("ProcessId")
+
511 .HasColumnType("INTEGER");
+
512
+
513 b.Property<int>("RebootState")
+
514 .HasColumnType("INTEGER");
+
515
+
516 b.Property<ushort?>("TopicPort")
+
517 .HasColumnType("INTEGER");
+
518
+
519 b.HasKey("Id");
+
520
+
521 b.HasIndex("CompileJobId");
+
522
+
523 b.HasIndex("InitialCompileJobId");
+
524
+
525 b.ToTable("ReattachInformations");
+
526 });
+
527
+
528 modelBuilder.Entity("Tgstation.Server.Host.Models.RepositorySettings", b =>
+
529 {
+
530 b.Property<long>("Id")
+
531 .ValueGeneratedOnAdd()
+
532 .HasColumnType("INTEGER");
+
533
+
534 b.Property<string>("AccessToken")
+
535 .HasMaxLength(10000)
+
536 .HasColumnType("TEXT");
+
537
+
538 b.Property<string>("AccessUser")
+
539 .HasMaxLength(10000)
+
540 .HasColumnType("TEXT");
+
541
+
542 b.Property<bool?>("AutoUpdatesKeepTestMerges")
+
543 .IsRequired()
+
544 .HasColumnType("INTEGER");
+
545
+
546 b.Property<bool?>("AutoUpdatesSynchronize")
+
547 .IsRequired()
+
548 .HasColumnType("INTEGER");
+
549
+
550 b.Property<string>("CommitterEmail")
+
551 .IsRequired()
+
552 .HasMaxLength(10000)
+
553 .HasColumnType("TEXT");
+
554
+
555 b.Property<string>("CommitterName")
+
556 .IsRequired()
+
557 .HasMaxLength(10000)
+
558 .HasColumnType("TEXT");
+
559
+
560 b.Property<bool?>("CreateGitHubDeployments")
+
561 .IsRequired()
+
562 .HasColumnType("INTEGER");
+
563
+
564 b.Property<long>("InstanceId")
+
565 .HasColumnType("INTEGER");
+
566
+
567 b.Property<bool?>("PostTestMergeComment")
+
568 .IsRequired()
+
569 .HasColumnType("INTEGER");
+
570
+
571 b.Property<bool?>("PushTestMergeCommits")
+
572 .IsRequired()
+
573 .HasColumnType("INTEGER");
+
574
+
575 b.Property<bool?>("ShowTestMergeCommitters")
+
576 .IsRequired()
+
577 .HasColumnType("INTEGER");
+
578
+
579 b.Property<bool?>("UpdateSubmodules")
+
580 .IsRequired()
+
581 .HasColumnType("INTEGER");
+
582
+
583 b.HasKey("Id");
+
584
+
585 b.HasIndex("InstanceId")
+
586 .IsUnique();
+
587
+
588 b.ToTable("RepositorySettings");
+
589 });
+
590
+
591 modelBuilder.Entity("Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
+
592 {
+
593 b.Property<long>("Id")
+
594 .ValueGeneratedOnAdd()
+
595 .HasColumnType("INTEGER");
+
596
+
597 b.Property<long>("RevisionInformationId")
+
598 .HasColumnType("INTEGER");
+
599
+
600 b.Property<long>("TestMergeId")
+
601 .HasColumnType("INTEGER");
+
602
+
603 b.HasKey("Id");
+
604
+
605 b.HasIndex("RevisionInformationId");
+
606
+
607 b.HasIndex("TestMergeId");
+
608
+
609 b.ToTable("RevInfoTestMerges");
+
610 });
+
611
+
612 modelBuilder.Entity("Tgstation.Server.Host.Models.RevisionInformation", b =>
+
613 {
+
614 b.Property<long>("Id")
+
615 .ValueGeneratedOnAdd()
+
616 .HasColumnType("INTEGER");
+
617
+
618 b.Property<string>("CommitSha")
+
619 .IsRequired()
+
620 .HasMaxLength(40)
+
621 .HasColumnType("TEXT");
+
622
+
623 b.Property<long>("InstanceId")
+
624 .HasColumnType("INTEGER");
+
625
+
626 b.Property<string>("OriginCommitSha")
+
627 .IsRequired()
+
628 .HasMaxLength(40)
+
629 .HasColumnType("TEXT");
+
630
+
631 b.Property<DateTimeOffset>("Timestamp")
+
632 .HasColumnType("TEXT");
+
633
+
634 b.HasKey("Id");
+
635
+
636 b.HasIndex("InstanceId", "CommitSha")
+
637 .IsUnique();
+
638
+
639 b.ToTable("RevisionInformations");
+
640 });
+
641
+
642 modelBuilder.Entity("Tgstation.Server.Host.Models.TestMerge", b =>
+
643 {
+
644 b.Property<long>("Id")
+
645 .ValueGeneratedOnAdd()
+
646 .HasColumnType("INTEGER");
+
647
+
648 b.Property<string>("Author")
+
649 .IsRequired()
+
650 .HasColumnType("TEXT");
+
651
+
652 b.Property<string>("BodyAtMerge")
+
653 .IsRequired()
+
654 .HasColumnType("TEXT");
+
655
+
656 b.Property<string>("Comment")
+
657 .HasMaxLength(10000)
+
658 .HasColumnType("TEXT");
+
659
+
660 b.Property<DateTimeOffset>("MergedAt")
+
661 .HasColumnType("TEXT");
+
662
+
663 b.Property<long>("MergedById")
+
664 .HasColumnType("INTEGER");
+
665
+
666 b.Property<int>("Number")
+
667 .HasColumnType("INTEGER");
+
668
+
669 b.Property<long?>("PrimaryRevisionInformationId")
+
670 .IsRequired()
+
671 .HasColumnType("INTEGER");
+
672
+
673 b.Property<string>("TargetCommitSha")
+
674 .IsRequired()
+
675 .HasMaxLength(40)
+
676 .HasColumnType("TEXT");
+
677
+
678 b.Property<string>("TitleAtMerge")
+
679 .IsRequired()
+
680 .HasColumnType("TEXT");
+
681
+
682 b.Property<string>("Url")
+
683 .IsRequired()
+
684 .HasColumnType("TEXT");
+
685
+
686 b.HasKey("Id");
+
687
+
688 b.HasIndex("MergedById");
+
689
+
690 b.HasIndex("PrimaryRevisionInformationId")
+
691 .IsUnique();
+
692
+
693 b.ToTable("TestMerges");
+
694 });
+
695
+
696 modelBuilder.Entity("Tgstation.Server.Host.Models.User", b =>
+
697 {
+
698 b.Property<long?>("Id")
+
699 .ValueGeneratedOnAdd()
+
700 .HasColumnType("INTEGER");
+
701
+
702 b.Property<string>("CanonicalName")
+
703 .IsRequired()
+
704 .HasMaxLength(100)
+
705 .HasColumnType("TEXT");
+
706
+
707 b.Property<DateTimeOffset?>("CreatedAt")
+
708 .IsRequired()
+
709 .HasColumnType("TEXT");
+
710
+
711 b.Property<long?>("CreatedById")
+
712 .HasColumnType("INTEGER");
+
713
+
714 b.Property<bool?>("Enabled")
+
715 .IsRequired()
+
716 .HasColumnType("INTEGER");
+
717
+
718 b.Property<long?>("GroupId")
+
719 .HasColumnType("INTEGER");
+
720
+
721 b.Property<DateTimeOffset?>("LastPasswordUpdate")
+
722 .HasColumnType("TEXT");
+
723
+
724 b.Property<string>("Name")
+
725 .IsRequired()
+
726 .HasMaxLength(100)
+
727 .HasColumnType("TEXT");
+
728
+
729 b.Property<string>("PasswordHash")
+
730 .HasColumnType("TEXT");
+
731
+
732 b.Property<string>("SystemIdentifier")
+
733 .HasMaxLength(100)
+
734 .HasColumnType("TEXT");
+
735
+
736 b.HasKey("Id");
+
737
+
738 b.HasIndex("CanonicalName")
+
739 .IsUnique();
+
740
+
741 b.HasIndex("CreatedById");
+
742
+
743 b.HasIndex("GroupId");
+
744
+
745 b.HasIndex("SystemIdentifier")
+
746 .IsUnique();
+
747
+
748 b.ToTable("Users");
+
749 });
+
750
+
751 modelBuilder.Entity("Tgstation.Server.Host.Models.UserGroup", b =>
+
752 {
+
753 b.Property<long?>("Id")
+
754 .ValueGeneratedOnAdd()
+
755 .HasColumnType("INTEGER");
+
756
+
757 b.Property<string>("Name")
+
758 .IsRequired()
+
759 .HasMaxLength(100)
+
760 .HasColumnType("TEXT");
+
761
+
762 b.HasKey("Id");
+
763
+
764 b.HasIndex("Name")
+
765 .IsUnique();
+
766
+
767 b.ToTable("Groups");
+
768 });
+
769
+
770 modelBuilder.Entity("Tgstation.Server.Host.Models.ChatBot", b =>
+
771 {
+
772 b.HasOne("Tgstation.Server.Host.Models.Instance", "Instance")
+
773 .WithMany("ChatSettings")
+
774 .HasForeignKey("InstanceId")
+
775 .OnDelete(DeleteBehavior.Cascade)
+
776 .IsRequired();
+
777
+
778 b.Navigation("Instance");
+
779 });
+
780
+
781 modelBuilder.Entity("Tgstation.Server.Host.Models.ChatChannel", b =>
+
782 {
+
783 b.HasOne("Tgstation.Server.Host.Models.ChatBot", "ChatSettings")
+
784 .WithMany("Channels")
+
785 .HasForeignKey("ChatSettingsId")
+
786 .OnDelete(DeleteBehavior.Cascade)
+
787 .IsRequired();
+
788
+
789 b.Navigation("ChatSettings");
+
790 });
+
791
+
792 modelBuilder.Entity("Tgstation.Server.Host.Models.CompileJob", b =>
+
793 {
+
794 b.HasOne("Tgstation.Server.Host.Models.Job", "Job")
+
795 .WithOne()
+
796 .HasForeignKey("Tgstation.Server.Host.Models.CompileJob", "JobId")
+
797 .OnDelete(DeleteBehavior.Cascade)
+
798 .IsRequired();
+
799
+
800 b.HasOne("Tgstation.Server.Host.Models.RevisionInformation", "RevisionInformation")
+
801 .WithMany("CompileJobs")
+
802 .HasForeignKey("RevisionInformationId")
+
803 .OnDelete(DeleteBehavior.ClientNoAction)
+
804 .IsRequired();
+
805
+
806 b.Navigation("Job");
+
807
+
808 b.Navigation("RevisionInformation");
+
809 });
+
810
+
811 modelBuilder.Entity("Tgstation.Server.Host.Models.DreamDaemonSettings", b =>
+
812 {
+
813 b.HasOne("Tgstation.Server.Host.Models.Instance", "Instance")
+
814 .WithOne("DreamDaemonSettings")
+
815 .HasForeignKey("Tgstation.Server.Host.Models.DreamDaemonSettings", "InstanceId")
+
816 .OnDelete(DeleteBehavior.Cascade)
+
817 .IsRequired();
+
818
+
819 b.Navigation("Instance");
+
820 });
+
821
+
822 modelBuilder.Entity("Tgstation.Server.Host.Models.DreamMakerSettings", b =>
+
823 {
+
824 b.HasOne("Tgstation.Server.Host.Models.Instance", "Instance")
+
825 .WithOne("DreamMakerSettings")
+
826 .HasForeignKey("Tgstation.Server.Host.Models.DreamMakerSettings", "InstanceId")
+
827 .OnDelete(DeleteBehavior.Cascade)
+
828 .IsRequired();
+
829
+
830 b.Navigation("Instance");
+
831 });
+
832
+
833 modelBuilder.Entity("Tgstation.Server.Host.Models.InstancePermissionSet", b =>
+
834 {
+
835 b.HasOne("Tgstation.Server.Host.Models.Instance", "Instance")
+
836 .WithMany("InstancePermissionSets")
+
837 .HasForeignKey("InstanceId")
+
838 .OnDelete(DeleteBehavior.Cascade)
+
839 .IsRequired();
+
840
+
841 b.HasOne("Tgstation.Server.Host.Models.PermissionSet", "PermissionSet")
+
842 .WithMany("InstancePermissionSets")
+
843 .HasForeignKey("PermissionSetId")
+
844 .OnDelete(DeleteBehavior.Cascade)
+
845 .IsRequired();
+
846
+
847 b.Navigation("Instance");
+
848
+
849 b.Navigation("PermissionSet");
+
850 });
+
851
+
852 modelBuilder.Entity("Tgstation.Server.Host.Models.Job", b =>
+
853 {
+
854 b.HasOne("Tgstation.Server.Host.Models.User", "CancelledBy")
+
855 .WithMany()
+
856 .HasForeignKey("CancelledById");
+
857
+
858 b.HasOne("Tgstation.Server.Host.Models.Instance", "Instance")
+
859 .WithMany("Jobs")
+
860 .HasForeignKey("InstanceId")
+
861 .OnDelete(DeleteBehavior.Cascade)
+
862 .IsRequired();
+
863
+
864 b.HasOne("Tgstation.Server.Host.Models.User", "StartedBy")
+
865 .WithMany()
+
866 .HasForeignKey("StartedById")
+
867 .OnDelete(DeleteBehavior.Cascade)
+
868 .IsRequired();
+
869
+
870 b.Navigation("CancelledBy");
+
871
+
872 b.Navigation("Instance");
+
873
+
874 b.Navigation("StartedBy");
+
875 });
+
876
+
877 modelBuilder.Entity("Tgstation.Server.Host.Models.OAuthConnection", b =>
+
878 {
+
879 b.HasOne("Tgstation.Server.Host.Models.User", "User")
+
880 .WithMany("OAuthConnections")
+
881 .HasForeignKey("UserId")
+
882 .OnDelete(DeleteBehavior.Cascade);
+
883
+
884 b.Navigation("User");
+
885 });
+
886
+
887 modelBuilder.Entity("Tgstation.Server.Host.Models.PermissionSet", b =>
+
888 {
+
889 b.HasOne("Tgstation.Server.Host.Models.UserGroup", "Group")
+
890 .WithOne("PermissionSet")
+
891 .HasForeignKey("Tgstation.Server.Host.Models.PermissionSet", "GroupId")
+
892 .OnDelete(DeleteBehavior.Cascade);
+
893
+
894 b.HasOne("Tgstation.Server.Host.Models.User", "User")
+
895 .WithOne("PermissionSet")
+
896 .HasForeignKey("Tgstation.Server.Host.Models.PermissionSet", "UserId")
+
897 .OnDelete(DeleteBehavior.Cascade);
+
898
+
899 b.Navigation("Group");
+
900
+
901 b.Navigation("User");
+
902 });
+
903
+
904 modelBuilder.Entity("Tgstation.Server.Host.Models.ReattachInformation", b =>
+
905 {
+
906 b.HasOne("Tgstation.Server.Host.Models.CompileJob", "CompileJob")
+
907 .WithMany()
+
908 .HasForeignKey("CompileJobId")
+
909 .OnDelete(DeleteBehavior.Cascade)
+
910 .IsRequired();
+
911
+
912 b.HasOne("Tgstation.Server.Host.Models.CompileJob", "InitialCompileJob")
+
913 .WithMany()
+
914 .HasForeignKey("InitialCompileJobId");
+
915
+
916 b.Navigation("CompileJob");
+
917
+
918 b.Navigation("InitialCompileJob");
+
919 });
+
920
+
921 modelBuilder.Entity("Tgstation.Server.Host.Models.RepositorySettings", b =>
+
922 {
+
923 b.HasOne("Tgstation.Server.Host.Models.Instance", "Instance")
+
924 .WithOne("RepositorySettings")
+
925 .HasForeignKey("Tgstation.Server.Host.Models.RepositorySettings", "InstanceId")
+
926 .OnDelete(DeleteBehavior.Cascade)
+
927 .IsRequired();
+
928
+
929 b.Navigation("Instance");
+
930 });
+
931
+
932 modelBuilder.Entity("Tgstation.Server.Host.Models.RevInfoTestMerge", b =>
+
933 {
+
934 b.HasOne("Tgstation.Server.Host.Models.RevisionInformation", "RevisionInformation")
+
935 .WithMany("ActiveTestMerges")
+
936 .HasForeignKey("RevisionInformationId")
+
937 .OnDelete(DeleteBehavior.Cascade)
+
938 .IsRequired();
+
939
+
940 b.HasOne("Tgstation.Server.Host.Models.TestMerge", "TestMerge")
+
941 .WithMany("RevisonInformations")
+
942 .HasForeignKey("TestMergeId")
+
943 .OnDelete(DeleteBehavior.ClientNoAction)
+
944 .IsRequired();
+
945
+
946 b.Navigation("RevisionInformation");
+
947
+
948 b.Navigation("TestMerge");
+
949 });
+
950
+
951 modelBuilder.Entity("Tgstation.Server.Host.Models.RevisionInformation", b =>
+
952 {
+
953 b.HasOne("Tgstation.Server.Host.Models.Instance", "Instance")
+
954 .WithMany("RevisionInformations")
+
955 .HasForeignKey("InstanceId")
+
956 .OnDelete(DeleteBehavior.Cascade)
+
957 .IsRequired();
+
958
+
959 b.Navigation("Instance");
+
960 });
+
961
+
962 modelBuilder.Entity("Tgstation.Server.Host.Models.TestMerge", b =>
+
963 {
+
964 b.HasOne("Tgstation.Server.Host.Models.User", "MergedBy")
+
965 .WithMany("TestMerges")
+
966 .HasForeignKey("MergedById")
+
967 .OnDelete(DeleteBehavior.Restrict)
+
968 .IsRequired();
+
969
+
970 b.HasOne("Tgstation.Server.Host.Models.RevisionInformation", "PrimaryRevisionInformation")
+
971 .WithOne("PrimaryTestMerge")
+
972 .HasForeignKey("Tgstation.Server.Host.Models.TestMerge", "PrimaryRevisionInformationId")
+
973 .OnDelete(DeleteBehavior.Cascade)
+
974 .IsRequired();
+
975
+
976 b.Navigation("MergedBy");
+
977
+
978 b.Navigation("PrimaryRevisionInformation");
+
979 });
+
980
+
981 modelBuilder.Entity("Tgstation.Server.Host.Models.User", b =>
+
982 {
+
983 b.HasOne("Tgstation.Server.Host.Models.User", "CreatedBy")
+
984 .WithMany("CreatedUsers")
+
985 .HasForeignKey("CreatedById");
+
986
+
987 b.HasOne("Tgstation.Server.Host.Models.UserGroup", "Group")
+
988 .WithMany("Users")
+
989 .HasForeignKey("GroupId");
+
990
+
991 b.Navigation("CreatedBy");
+
992
+
993 b.Navigation("Group");
+
994 });
+
995
+
996 modelBuilder.Entity("Tgstation.Server.Host.Models.ChatBot", b =>
+
997 {
+
998 b.Navigation("Channels");
+
999 });
+
1000
+
1001 modelBuilder.Entity("Tgstation.Server.Host.Models.Instance", b =>
+
1002 {
+
1003 b.Navigation("ChatSettings");
+
1004
+
1005 b.Navigation("DreamDaemonSettings");
+
1006
+
1007 b.Navigation("DreamMakerSettings");
+
1008
+
1009 b.Navigation("InstancePermissionSets");
+
1010
+
1011 b.Navigation("Jobs");
+
1012
+
1013 b.Navigation("RepositorySettings");
+
1014
+
1015 b.Navigation("RevisionInformations");
+
1016 });
+
1017
+
1018 modelBuilder.Entity("Tgstation.Server.Host.Models.PermissionSet", b =>
+
1019 {
+
1020 b.Navigation("InstancePermissionSets");
+
1021 });
+
1022
+
1023 modelBuilder.Entity("Tgstation.Server.Host.Models.RevisionInformation", b =>
+
1024 {
+
1025 b.Navigation("ActiveTestMerges");
+
1026
+
1027 b.Navigation("CompileJobs");
+
1028
+
1029 b.Navigation("PrimaryTestMerge");
+
1030 });
+
1031
+
1032 modelBuilder.Entity("Tgstation.Server.Host.Models.TestMerge", b =>
+
1033 {
+
1034 b.Navigation("RevisonInformations");
+
1035 });
+
1036
+
1037 modelBuilder.Entity("Tgstation.Server.Host.Models.User", b =>
+
1038 {
+
1039 b.Navigation("CreatedUsers");
+
1040
+
1041 b.Navigation("OAuthConnections");
+
1042
+
1043 b.Navigation("PermissionSet");
+
1044
+
1045 b.Navigation("TestMerges");
+
1046 });
+
1047
+
1048 modelBuilder.Entity("Tgstation.Server.Host.Models.UserGroup", b =>
+
1049 {
+
1050 b.Navigation("PermissionSet")
+
1051 .IsRequired();
+
1052
+
1053 b.Navigation("Users");
+
1054 });
+
1055#pragma warning restore 612, 618
+
1056 }
+
+
1057 }
+
1058}
+ + + + +
+ + + + diff --git a/20240907172259___s_l_add_d_m_api_validation_mode_8cs.html b/20240907172259___s_l_add_d_m_api_validation_mode_8cs.html new file mode 100644 index 0000000000..289d66f22b --- /dev/null +++ b/20240907172259___s_l_add_d_m_api_validation_mode_8cs.html @@ -0,0 +1,110 @@ + + + + + + + +tgstation-server: src/Tgstation.Server.Host/Database/Migrations/20240907172259_SLAddDMApiValidationMode.cs File Reference + + + + + + + + + +
+
+ + + + + + +
+
tgstation-server 6.10.0 +
+
The /tg/station 13 server suite
+
+
+ + + + + + + + +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ + +
+
+
+Classes | +Namespaces
+
20240907172259_SLAddDMApiValidationMode.cs File Reference
+
+
+ +

Go to the source code of this file.

+ + + + +

+Classes

class  Tgstation.Server.Host.Database.Migrations.SLAddDMApiValidationMode
 
+ + + + + + + + + + + +

+Namespaces

namespace  Tgstation
 
namespace  Tgstation.Server
 
namespace  Tgstation.Server.Host
 
namespace  Tgstation.Server.Host.Database
 
namespace  Tgstation.Server.Host.Database.Migrations
 
+
+ + + + diff --git a/20240907172259___s_l_add_d_m_api_validation_mode_8cs_source.html b/20240907172259___s_l_add_d_m_api_validation_mode_8cs_source.html new file mode 100644 index 0000000000..1354ac52f6 --- /dev/null +++ b/20240907172259___s_l_add_d_m_api_validation_mode_8cs_source.html @@ -0,0 +1,133 @@ + + + + + + + +tgstation-server: src/Tgstation.Server.Host/Database/Migrations/20240907172259_SLAddDMApiValidationMode.cs Source File + + + + + + + + + +
+
+ + + + + + +
+
tgstation-server 6.10.0 +
+
The /tg/station 13 server suite
+
+
+ + + + + + + + + +
+
+ + +
+
+
+
+
+
Loading...
+
Searching...
+
No Matches
+
+
+
+
+ + +
+
+
20240907172259_SLAddDMApiValidationMode.cs
+
+
+Go to the documentation of this file.
1using System;
+
2
+
3using Microsoft.EntityFrameworkCore.Migrations;
+
4
+ +
6{
+
+
8 public partial class SLAddDMApiValidationMode : Migration
+
9 {
+
+
11 protected override void Up(MigrationBuilder migrationBuilder)
+
12 {
+
13 ArgumentNullException.ThrowIfNull(migrationBuilder);
+
14
+
15 migrationBuilder.RenameColumn(
+
16 name: "RequireDMApiValidation",
+
17 table: "DreamMakerSettings",
+
18 newName: "DMApiValidationMode");
+
19 }
+
+
20
+
+
22 protected override void Down(MigrationBuilder migrationBuilder)
+
23 {
+
24 ArgumentNullException.ThrowIfNull(migrationBuilder);
+
25
+
26 migrationBuilder.RenameColumn(
+
27 name: "DMApiValidationMode",
+
28 table: "DreamMakerSettings",
+
29 newName: "RequireDMApiValidation");
+
30
+
31 migrationBuilder.Sql("UPDATE DreamMakerSettings SET RequireDMApiValidation = 0 WHERE RequireDMApiValidation = 2");
+
32 }
+
+
33 }
+
+
34}
+ + + + + +
+ + + + diff --git a/_chat_bot_settings_8cs_source.html b/_chat_bot_settings_8cs_source.html index 26e03d4c77..64eb713de6 100644 --- a/_chat_bot_settings_8cs_source.html +++ b/_chat_bot_settings_8cs_source.html @@ -92,19 +92,19 @@ $(document).ready(function() { init_codefold(0); });
10 {
14 public bool? Enabled { get; set; }
15
-
19 [Required]
+
19 [Required]
20 [Range(1, UInt32.MaxValue)]
21 public uint? ReconnectionInterval { get; set; }
22
-
26 [Required]
+
26 [Required]
27 public ushort? ChannelLimit { get; set; }
28
-
32 [Required]
+
32 [Required]
33 [RequestOptions(FieldPresence.Required, PutOnly = true)]
34 [EnumDataType(typeof(ChatProvider))]
35 public ChatProvider? Provider { get; set; }
36
-
40 [Required]
+
40 [Required]
41 [RequestOptions(FieldPresence.Required, PutOnly = true)]
42 [ResponseOptions]
43 [StringLength(Limits.MaximumStringLength)]
@@ -150,8 +150,8 @@ $(document).ready(function() { init_codefold(0); });
Tgstation.Server.Api.Models.NamedEntity
Base class for named entities.
Definition NamedEntity.cs:9
Tgstation.Server.Api.Models.Internal
Definition ChatBotApiBase.cs:6
Tgstation.Server.Api.Models.FieldPresence
FieldPresence
Indicates whether a request field is Required or Ignored.
Definition FieldPresence.cs:7
-
Tgstation.Server.Api.Models.FieldPresence.Required
@ Required
The field is required.
Tgstation.Server.Api.Models.ChatProvider
ChatProvider
Represents a chat service provider.
Definition ChatProvider.cs:7
+
Tgstation.Server.Api.Models.DMApiValidationMode.Required
@ Required
DMAPI validation must suceed for the deployment to succeed.