using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace API.Data.Migrations
{
///
public partial class RemoveSecurityEvent : Migration
{
///
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "SecurityEvent");
}
///
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "SecurityEvent",
columns: table => new
{
Id = table.Column(type: "INTEGER", nullable: false)
.Annotation("Sqlite:Autoincrement", true),
CreatedAt = table.Column(type: "TEXT", nullable: false),
CreatedAtUtc = table.Column(type: "TEXT", nullable: false),
IpAddress = table.Column(type: "TEXT", nullable: true),
RequestMethod = table.Column(type: "TEXT", nullable: true),
RequestPath = table.Column(type: "TEXT", nullable: true),
UserAgent = table.Column(type: "TEXT", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_SecurityEvent", x => x.Id);
});
}
}
}