using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace EVCB_OCPP.Domain.Migrations.MeterValueDB
{
///
public partial class InitialCreate : Migration
{
///
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "ConnectorMeterValueRecord",
columns: table => new
{
Id = table.Column(type: "bigint", nullable: false),
ConnectorId = table.Column(type: "tinyint", nullable: false),
Value = table.Column(type: "nvarchar(10)", maxLength: 10, nullable: true),
CreatedOn = table.Column(type: "smalldatetime", nullable: false),
ContextId = table.Column(type: "int", nullable: false),
FormatId = table.Column(type: "int", nullable: false),
MeasurandId = table.Column(type: "int", nullable: false),
PhaseId = table.Column(type: "int", nullable: false),
LocationId = table.Column(type: "int", nullable: false),
UnitId = table.Column(type: "int", nullable: false),
ChargeBoxId = table.Column(type: "nvarchar(50)", maxLength: 50, nullable: true),
TransactionId = table.Column(type: "int", nullable: false)
},
constraints: table =>
{
});
}
///
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "ConnectorMeterValueRecord");
}
}
}