using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace Jiaowu.Api.Infrastructure.Persistence.Migrations.MySql
{
///
public partial class ExamPublishJobs : Migration
{
///
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "ExamPublishJobs",
columns: table => new
{
Id = table.Column(type: "char(36)", nullable: false),
Kind = table.Column(type: "int", nullable: false),
PlanId = table.Column(type: "char(36)", nullable: false),
ActivePlanId = table.Column(type: "char(36)", nullable: true),
RequestedByUserId = table.Column(type: "char(36)", nullable: true),
Status = table.Column(type: "int", nullable: false),
CurrentStep = table.Column(type: "longtext", nullable: true),
ErrorMessage = table.Column(type: "longtext", nullable: true),
StartedAt = table.Column(type: "datetime(6)", nullable: true),
CompletedAt = table.Column(type: "datetime(6)", nullable: true),
CreatedAt = table.Column(type: "datetime(6)", nullable: false),
UpdatedAt = table.Column(type: "datetime(6)", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_ExamPublishJobs", x => x.Id);
})
.Annotation("MySQL:Charset", "utf8mb4");
}
///
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "ExamPublishJobs");
}
}
}