using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace SistemaGestionAcademias.Migrations { /// public partial class ModuloCajaCompleto : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "CajasDiarias", columns: table => new { Id = table.Column(type: "int", nullable: false) .Annotation("SqlServer:Identity", "1, 1"), Fecha = table.Column(type: "datetime2", nullable: false), MontoInicial = table.Column(type: "decimal(18,2)", nullable: false), MontoFinalReal = table.Column(type: "decimal(18,2)", nullable: false), MontoFinalCalculado = table.Column(type: "decimal(18,2)", nullable: false), Estado = table.Column(type: "nvarchar(20)", maxLength: 20, nullable: false), Observaciones = table.Column(type: "nvarchar(500)", maxLength: 500, nullable: true) }, constraints: table => { table.PrimaryKey("PK_CajasDiarias", x => x.Id); }); migrationBuilder.CreateTable( name: "Gastos", columns: table => new { Id = table.Column(type: "int", nullable: false) .Annotation("SqlServer:Identity", "1, 1"), Descripcion = table.Column(type: "nvarchar(200)", maxLength: 200, nullable: false), Monto = table.Column(type: "decimal(18,2)", nullable: false), FechaHora = table.Column(type: "datetime2", nullable: false), RegistradoPor = table.Column(type: "nvarchar(max)", nullable: true) }, constraints: table => { table.PrimaryKey("PK_Gastos", x => x.Id); }); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "CajasDiarias"); migrationBuilder.DropTable( name: "Gastos"); } } }