using System; using Microsoft.EntityFrameworkCore.Migrations; namespace snootalogue.Migrations { public partial class InitialCreate : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "Document", columns: table => new { ID = table.Column(nullable: false) .Annotation("Sqlite:Autoincrement", true), Filename = table.Column(nullable: true), Hash = table.Column(nullable: true), Size = table.Column(nullable: false), Title = table.Column(nullable: true), Authors = table.Column(type: "jsonb", nullable: true), Category = table.Column(nullable: true), DateAdded = table.Column(nullable: false), Tags = table.Column(type: "jsonb", nullable: true), Read = table.Column(nullable: false), Notes = table.Column(nullable: true) }, constraints: table => { table.PrimaryKey("PK_Document", x => x.ID); }); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "Document"); } } }