using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace RobotNet10.FleetManager.Data.Migrations.ScriptDb { /// public partial class AddScriptDb : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "InstanceMissions", columns: table => new { Id = table.Column(type: "uniqueidentifier", nullable: false), MissionName = table.Column(type: "nvarchar(max)", nullable: false), CreatedAt = table.Column(type: "datetime2", nullable: false), Parameters = table.Column(type: "nvarchar(max)", nullable: true), TotalScore = table.Column(type: "int", nullable: false), State = table.Column(type: "int", nullable: false), Score = table.Column(type: "int", nullable: false), StoppedAt = table.Column(type: "datetime2", nullable: false), Log = table.Column(type: "nvarchar(max)", nullable: true) }, constraints: table => { table.PrimaryKey("PK_InstanceMissions", x => x.Id); }); migrationBuilder.CreateIndex( name: "IX_InstanceMissions_CreatedAt", table: "InstanceMissions", column: "CreatedAt"); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "InstanceMissions"); } } }