-- CreateTable
CREATE TABLE "KmsAlias" (
    "name" TEXT NOT NULL,
    "accountId" TEXT NOT NULL,
    "region" TEXT NOT NULL,
    "kmsKeyId" TEXT NOT NULL,

    PRIMARY KEY ("accountId", "region", "name")
);

-- CreateTable
CREATE TABLE "KmsKey" (
    "id" TEXT NOT NULL PRIMARY KEY,
    "usage" TEXT NOT NULL,
    "description" TEXT NOT NULL,
    "keySpec" TEXT NOT NULL,
    "key" TEXT NOT NULL,
    "accountId" TEXT NOT NULL,
    "region" TEXT NOT NULL,
    "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP
);
