using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace AbpPerfTest.WithoutAbp.Migrations
{
///
public partial class Added_Books : Migration
{
///
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "Books",
columns: table => new
{
Id = table.Column(type: "uniqueidentifier", nullable: false),
Name = table.Column(type: "nvarchar(128)", maxLength: 128, nullable: true),
Price = table.Column(type: "real", nullable: false),
IsAvailable = table.Column(type: "bit", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_Books", x => x.Id);
});
}
///
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "Books");
}
}
}