using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace IOL.GreatOffice.Api.Migrations { /// public partial class ValidationEmailQueue : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AddColumn( name: "email_last_validated", table: "users", type: "timestamp with time zone", nullable: false, defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); migrationBuilder.CreateTable( name: "validation_emails", columns: table => new { id = table.Column(type: "uuid", nullable: false), emailsentat = table.Column(name: "email_sent_at", type: "timestamp with time zone", nullable: false), userid = table.Column(name: "user_id", type: "uuid", nullable: false) }, constraints: table => { table.PrimaryKey("pk_validation_emails", x => x.id); }); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "validation_emails"); migrationBuilder.DropColumn( name: "email_last_validated", table: "users"); } } }