line-gestao-api/Migrations/20260214120000_AddResumoGbD...

59 lines
2.4 KiB
C#

using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace line_gestao_api.Migrations
{
/// <inheritdoc />
public partial class AddResumoGbDistribuicao : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "ResumoGbDistribuicoes",
columns: table => new
{
Id = table.Column<Guid>(type: "uuid", nullable: false),
TenantId = table.Column<Guid>(type: "uuid", nullable: false),
Gb = table.Column<decimal>(type: "numeric", nullable: true),
Qtd = table.Column<int>(type: "integer", nullable: true),
Soma = 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_ResumoGbDistribuicoes", x => x.Id);
});
migrationBuilder.CreateTable(
name: "ResumoGbDistribuicaoTotais",
columns: table => new
{
Id = table.Column<Guid>(type: "uuid", nullable: false),
TenantId = table.Column<Guid>(type: "uuid", nullable: false),
TotalLinhas = table.Column<int>(type: "integer", nullable: true),
SomaTotal = 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_ResumoGbDistribuicaoTotais", x => x.Id);
});
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "ResumoGbDistribuicoes");
migrationBuilder.DropTable(
name: "ResumoGbDistribuicaoTotais");
}
}
}