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