using System; using BTCPayServer.Data; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace BTCPayServer.Migrations { [DbContext(typeof(ApplicationDbContext))] [Migration("20260302142959_includeApiKeyUsage")] public partial class includeApiKeyUsage : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "ApiKeyPermissionUsages", columns: table => new { Id = table.Column(type: "text", nullable: false), ApiKey = table.Column(type: "text", nullable: true), Permission = table.Column(type: "text", nullable: true), LastUsed = table.Column(type: "timestamp with time zone", nullable: false), UsageCount = table.Column(type: "integer", nullable: false) }, constraints: table => { table.PrimaryKey("PK_ApiKeyPermissionUsages", x => x.Id); }); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "ApiKeyPermissionUsages"); } } }