Social handles CRUD (admin side, nothing user-facing)

This commit is contained in:
Ahmed Al-Taiar
2024-08-19 23:20:32 -04:00
parent 1c46a8e963
commit c7d87e36f2
39 changed files with 1229 additions and 480 deletions

View File

@ -0,0 +1,12 @@
-- CreateEnum
CREATE TYPE "Handle" AS ENUM ('x', 'threads', 'instagram', 'facebook', 'tiktok', 'youtube', 'linkedin', 'github', 'email', 'custom');
-- CreateTable
CREATE TABLE "Social" (
"id" SERIAL NOT NULL,
"name" TEXT NOT NULL,
"type" "Handle" NOT NULL,
"username" TEXT NOT NULL,
CONSTRAINT "Social_pkey" PRIMARY KEY ("id")
);