Initial commit
This commit is contained in:
@@ -0,0 +1,72 @@
|
||||
// <auto-generated />
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||
using RobotNet10.ScriptEngine.Data;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace RobotNet10.RobotApp.Data.Migrations.ScriptDb
|
||||
{
|
||||
[DbContext(typeof(ScriptEngineDbContext))]
|
||||
[Migration("20260129034736_AddScriptDb")]
|
||||
partial class AddScriptDb
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
||||
{
|
||||
#pragma warning disable 612, 618
|
||||
modelBuilder.HasAnnotation("ProductVersion", "10.0.2");
|
||||
|
||||
modelBuilder.Entity("RobotNet10.ScriptEngine.Data.InstanceMission", b =>
|
||||
{
|
||||
b.Property<Guid>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("TEXT")
|
||||
.HasColumnName("Id");
|
||||
|
||||
b.Property<DateTime>("CreatedAt")
|
||||
.HasColumnType("TEXT")
|
||||
.HasColumnName("CreatedAt");
|
||||
|
||||
b.Property<string>("Log")
|
||||
.HasColumnType("TEXT")
|
||||
.HasColumnName("Log");
|
||||
|
||||
b.Property<string>("MissionName")
|
||||
.IsRequired()
|
||||
.HasColumnType("TEXT")
|
||||
.HasColumnName("MissionName");
|
||||
|
||||
b.Property<string>("Parameters")
|
||||
.HasColumnType("TEXT")
|
||||
.HasColumnName("Parameters");
|
||||
|
||||
b.Property<int>("Score")
|
||||
.HasColumnType("INTEGER")
|
||||
.HasColumnName("Score");
|
||||
|
||||
b.Property<int>("State")
|
||||
.HasColumnType("INTEGER")
|
||||
.HasColumnName("State");
|
||||
|
||||
b.Property<DateTime>("StoppedAt")
|
||||
.HasColumnType("TEXT")
|
||||
.HasColumnName("StoppedAt");
|
||||
|
||||
b.Property<int>("TotalScore")
|
||||
.HasColumnType("INTEGER")
|
||||
.HasColumnName("TotalScore");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("CreatedAt");
|
||||
|
||||
b.ToTable("InstanceMissions");
|
||||
});
|
||||
#pragma warning restore 612, 618
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace RobotNet10.RobotApp.Data.Migrations.ScriptDb
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class AddScriptDb : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.CreateTable(
|
||||
name: "InstanceMissions",
|
||||
columns: table => new
|
||||
{
|
||||
Id = table.Column<Guid>(type: "TEXT", nullable: false),
|
||||
MissionName = table.Column<string>(type: "TEXT", nullable: false),
|
||||
CreatedAt = table.Column<DateTime>(type: "TEXT", nullable: false),
|
||||
Parameters = table.Column<string>(type: "TEXT", nullable: true),
|
||||
TotalScore = table.Column<int>(type: "INTEGER", nullable: false),
|
||||
State = table.Column<int>(type: "INTEGER", nullable: false),
|
||||
Score = table.Column<int>(type: "INTEGER", nullable: false),
|
||||
StoppedAt = table.Column<DateTime>(type: "TEXT", nullable: false),
|
||||
Log = table.Column<string>(type: "TEXT", nullable: true)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK_InstanceMissions", x => x.Id);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_InstanceMissions_CreatedAt",
|
||||
table: "InstanceMissions",
|
||||
column: "CreatedAt");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropTable(
|
||||
name: "InstanceMissions");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,69 @@
|
||||
// <auto-generated />
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||
using RobotNet10.ScriptEngine.Data;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace RobotNet10.RobotApp.Data.Migrations.ScriptDb
|
||||
{
|
||||
[DbContext(typeof(ScriptEngineDbContext))]
|
||||
partial class ScriptEngineDbContextModelSnapshot : ModelSnapshot
|
||||
{
|
||||
protected override void BuildModel(ModelBuilder modelBuilder)
|
||||
{
|
||||
#pragma warning disable 612, 618
|
||||
modelBuilder.HasAnnotation("ProductVersion", "10.0.2");
|
||||
|
||||
modelBuilder.Entity("RobotNet10.ScriptEngine.Data.InstanceMission", b =>
|
||||
{
|
||||
b.Property<Guid>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("TEXT")
|
||||
.HasColumnName("Id");
|
||||
|
||||
b.Property<DateTime>("CreatedAt")
|
||||
.HasColumnType("TEXT")
|
||||
.HasColumnName("CreatedAt");
|
||||
|
||||
b.Property<string>("Log")
|
||||
.HasColumnType("TEXT")
|
||||
.HasColumnName("Log");
|
||||
|
||||
b.Property<string>("MissionName")
|
||||
.IsRequired()
|
||||
.HasColumnType("TEXT")
|
||||
.HasColumnName("MissionName");
|
||||
|
||||
b.Property<string>("Parameters")
|
||||
.HasColumnType("TEXT")
|
||||
.HasColumnName("Parameters");
|
||||
|
||||
b.Property<int>("Score")
|
||||
.HasColumnType("INTEGER")
|
||||
.HasColumnName("Score");
|
||||
|
||||
b.Property<int>("State")
|
||||
.HasColumnType("INTEGER")
|
||||
.HasColumnName("State");
|
||||
|
||||
b.Property<DateTime>("StoppedAt")
|
||||
.HasColumnType("TEXT")
|
||||
.HasColumnName("StoppedAt");
|
||||
|
||||
b.Property<int>("TotalScore")
|
||||
.HasColumnType("INTEGER")
|
||||
.HasColumnName("TotalScore");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("CreatedAt");
|
||||
|
||||
b.ToTable("InstanceMissions");
|
||||
});
|
||||
#pragma warning restore 612, 618
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user