Social handles CRUD (admin side, nothing user-facing)
This commit is contained in:
12
api/db/migrations/20240819213158_social/migration.sql
Normal file
12
api/db/migrations/20240819213158_social/migration.sql
Normal 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")
|
||||
);
|
Reference in New Issue
Block a user