line-gestao-api/Migrations/20260107153627_FixVigenciaL...

45 lines
1.9 KiB
C#

using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace line_gestao_api.Migrations
{
/// <inheritdoc />
public partial class FixVigenciaLinesPendingChanges : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "VigenciaLines",
columns: table => new
{
Id = table.Column<Guid>(type: "uuid", nullable: false),
Item = table.Column<int>(type: "integer", nullable: false),
Conta = table.Column<string>(type: "text", nullable: true),
Linha = table.Column<string>(type: "text", nullable: true),
Cliente = table.Column<string>(type: "text", nullable: true),
Usuario = table.Column<string>(type: "text", nullable: true),
PlanoContrato = table.Column<string>(type: "text", nullable: true),
DtEfetivacaoServico = table.Column<DateTime>(type: "timestamp with time zone", nullable: true),
DtTerminoFidelizacao = table.Column<DateTime>(type: "timestamp with time zone", nullable: true),
Total = table.Column<decimal>(type: "numeric", 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_VigenciaLines", x => x.Id);
});
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "VigenciaLines");
}
}
}