Skip to content

Commit

Permalink
fix: container model
Browse files Browse the repository at this point in the history
  • Loading branch information
GZTimeWalker committed Feb 2, 2024
1 parent 6c7a7d6 commit 004f834
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<ItemGroup>
<PackageVersion Include="Aigamo.ResXGenerator" Version="4.2.0" />
<PackageVersion Include="Docker.DotNet" Version="3.125.15" />
<PackageVersion Include="KubernetesClient" Version="13.0.1"/>
<PackageVersion Include="KubernetesClient" Version="13.0.11"/>
<PackageVersion Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="8.0.1"/>
<PackageVersion Include="Microsoft.AspNetCore.SignalR.Protocols.Json" Version="8.0.1"/>
<PackageVersion Include="Microsoft.AspNetCore.SpaProxy" Version="8.0.1"/>
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ protected override void Up(MigrationBuilder migrationBuilder)
Port = table.Column<int>(type: "integer", nullable: false),
PublicIP = table.Column<string>(type: "text", nullable: true),
PublicPort = table.Column<int>(type: "integer", nullable: true),
GameInstanceId = table.Column<int>(type: "integer", nullable: false),
ExerciseInstanceId = table.Column<int>(type: "integer", nullable: false)
GameInstanceId = table.Column<int>(type: "integer", nullable: true),
ExerciseInstanceId = table.Column<int>(type: "integer", nullable: true)
},
constraints: table =>
{
Expand Down
4 changes: 2 additions & 2 deletions src/GZCTF/Migrations/AppDbContextModelSnapshot.cs
Original file line number Diff line number Diff line change
Expand Up @@ -97,13 +97,13 @@ protected override void BuildModel(ModelBuilder modelBuilder)
.IsRequired()
.HasColumnType("text");

b.Property<int>("ExerciseInstanceId")
b.Property<int?>("ExerciseInstanceId")
.HasColumnType("integer");

b.Property<DateTimeOffset>("ExpectStopAt")
.HasColumnType("timestamp with time zone");

b.Property<int>("GameInstanceId")
b.Property<int?>("GameInstanceId")
.HasColumnType("integer");

b.Property<string>("IP")
Expand Down
4 changes: 2 additions & 2 deletions src/GZCTF/Models/Data/Container.cs
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ GameInstance is null
/// <summary>
/// 比赛题目实例对象 ID
/// </summary>
public int GameInstanceId { get; set; }
public int? GameInstanceId { get; set; }

/// <summary>
/// 练习题目实例对象
Expand All @@ -144,7 +144,7 @@ GameInstance is null
/// <summary>
/// 练习题目实例对象 ID
/// </summary>
public int ExerciseInstanceId { get; set; }
public int? ExerciseInstanceId { get; set; }

#endregion Db Relationship
}

0 comments on commit 004f834

Please sign in to comment.