line-gestao-api/Migrations/20260107194444_AddTrocaNume...

43 lines
1.7 KiB
C#

using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace line_gestao_api.Migrations
{
/// <inheritdoc />
public partial class AddTrocaNumeroLines : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "TrocaNumeroLines",
columns: table => new
{
Id = table.Column<Guid>(type: "uuid", nullable: false),
Item = table.Column<int>(type: "integer", nullable: false),
LinhaAntiga = table.Column<string>(type: "text", nullable: true),
LinhaNova = table.Column<string>(type: "text", nullable: true),
ICCID = table.Column<string>(type: "text", nullable: true),
DataTroca = table.Column<DateTime>(type: "timestamp with time zone", nullable: true),
Motivo = table.Column<string>(type: "text", nullable: true),
Observacao = table.Column<string>(type: "text", nullable: true),
CreatedAt = table.Column<DateTime>(type: "timestamp with time zone", nullable: false),
UpdatedAt = table.Column<DateTime>(type: "timestamp with time zone", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_TrocaNumeroLines", x => x.Id);
});
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "TrocaNumeroLines");
}
}
}