+DROP TABLE IF EXISTS "certsRevoked";
+DROP TYPE IF EXISTS "revocationType";
+CREATE TYPE "revocationType" AS ENUM('user', 'support', 'ping_timeout');
+CREATE TABLE "certsRevoked" (
+ "id" int NOT NULL,
+ -- the time when the certificate was revoked by cassiopeia (and that is stored in the CRL)
+ -- NULL indicated the revocation is pending
+ "revoked" timestamp NULL,
+ "type" "revocationType" NOT NULL,
+ PRIMARY KEY ("id")
+);