/*
  Warnings:

  - You are about to drop the `accounts` table. If the table is not empty, all the data it contains will be lost.
  - You are about to drop the `sessions` table. If the table is not empty, all the data it contains will be lost.
  - You are about to drop the `users` table. If the table is not empty, all the data it contains will be lost.
  - You are about to drop the `verification_token` table. If the table is not empty, all the data it contains will be lost.

*/
-- DropTable
DROP TABLE "accounts";

-- DropTable
DROP TABLE "sessions";

-- DropTable
DROP TABLE "users";

-- DropTable
DROP TABLE "verification_token";

-- CreateTable
CREATE TABLE "cf_api_keys"
(
    "id"         SERIAL         NOT NULL,
    "key"        VARCHAR(255)   NOT NULL,
    "suffix"     VARCHAR(4)     NOT NULL,
    "name"       VARCHAR(255)   NOT NULL,
    "created_at" TIMESTAMPTZ(6) NOT NULL,
    "last_used"  TIMESTAMPTZ(6) NOT NULL,
    "user_id"    TEXT,
    "org_id"     TEXT,

    CONSTRAINT "cf_api_keys_pkey" PRIMARY KEY ("id")
);
