using System; using Microsoft.EntityFrameworkCore.Migrations; namespace RMuseum.Migrations { public partial class AuditLogs : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "AuditLogs", columns: table => new { Id = table.Column(nullable: false), EventType = table.Column(nullable: true), StartDate = table.Column(nullable: false), EndDate = table.Column(nullable: true), Duration = table.Column(nullable: false), UserName = table.Column(nullable: true), IpAddress = table.Column(nullable: true), ResponseStatusCode = table.Column(nullable: false), RequestUrl = table.Column(nullable: true), JsonData = table.Column(nullable: true) }, constraints: table => { table.PrimaryKey("PK_AuditLogs", x => x.Id); }); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "AuditLogs"); } } }