using System; using Microsoft.EntityFrameworkCore.Migrations; namespace IOL.BookmarkThing.Server.Migrations { public partial class Entries : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "entries", columns: table => new { id = table.Column(type: "uuid", nullable: false), user_id = table.Column(type: "uuid", nullable: false), url = table.Column(type: "text", nullable: true), description = table.Column(type: "text", nullable: true), tags = table.Column(type: "text", nullable: true), created = table.Column(type: "timestamp without time zone", nullable: false) }, constraints: table => { table.PrimaryKey("pk_entries", x => x.id); }); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "entries"); } } }