using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace example_csharp_app.Migrations { /// public partial class init : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "Books", columns: table => new { Id = table.Column(type: "uuid", nullable: false), Title = table.Column(type: "text", nullable: false), Author = table.Column(type: "text", nullable: false), YearPublished = table.Column(type: "timestamp with time zone", nullable: false), BookIndex = table.Column(type: "xml", nullable: false) }, constraints: table => { table.PrimaryKey("PK_Books", x => x.Id); }); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "Books"); } } }