using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace EVCB_OCPP.Domain.Migrations.ConnectionLogDB
{
///
public partial class InitialCreate : Migration
{
///
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "MachineConnectionLog",
columns: table => new
{
Id = table.Column(type: "bigint", nullable: false)
.Annotation("SqlServer:Identity", "1, 1"),
CreatedOn = table.Column(type: "datetime", nullable: false),
MessageType = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true),
Data = table.Column(type: "nvarchar(3600)", maxLength: 3600, nullable: true),
Msg = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: true),
ChargeBoxId = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true),
IsSent = table.Column(type: "bit", nullable: false),
EVSEEndPoint = table.Column(type: "nvarchar(25)", maxLength: 25, nullable: true),
Session = table.Column(type: "nvarchar(36)", maxLength: 36, nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_MachineConnectionLog", x => new { x.Id, x.CreatedOn });
});
}
///
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "MachineConnectionLog");
}
}
}