using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace SPMS.Infrastructure.Migrations { /// public partial class AddConsentFieldsToAdmin : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AddColumn( name: "AgreePrivacy", table: "Admin", type: "tinyint(1)", nullable: false, defaultValue: false); migrationBuilder.AddColumn( name: "AgreeTerms", table: "Admin", type: "tinyint(1)", nullable: false, defaultValue: false); migrationBuilder.AddColumn( name: "AgreedAt", table: "Admin", type: "datetime(6)", nullable: false, defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( name: "AgreePrivacy", table: "Admin"); migrationBuilder.DropColumn( name: "AgreeTerms", table: "Admin"); migrationBuilder.DropColumn( name: "AgreedAt", table: "Admin"); } } }