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