using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace GerbilManagerWebAPI.Migrations { /// public partial class AddWaitingList : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "WaitingListEntries", columns: table => new { Id = table.Column(type: "uuid", nullable: false), ContactId = table.Column(type: "uuid", nullable: true), ContactName = table.Column(type: "text", nullable: true), WishColor = table.Column(type: "text", nullable: true), WishGender = table.Column(type: "text", nullable: true), RequestedAt = table.Column(type: "timestamp with time zone", nullable: true), Status = table.Column(type: "text", nullable: false), Note = table.Column(type: "text", nullable: true), CreatedAt = table.Column(type: "timestamp with time zone", nullable: false) }, constraints: table => { table.PrimaryKey("PK_WaitingListEntries", x => x.Id); }); migrationBuilder.CreateIndex( name: "IX_WaitingListEntries_CreatedAt", table: "WaitingListEntries", column: "CreatedAt"); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "WaitingListEntries"); } } }