-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
32 changed files
with
444 additions
and
666 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
SUPABASE_KEY="" | ||
DATABASE_URL="" | ||
CLICKHOUSE_PASSWORD="" | ||
SECRET="secret" | ||
LIVEPEER_API_KEY="" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
-- CreateEnum | ||
CREATE TYPE "StaffPickType" AS ENUM ('PROFILE', 'GROUP'); | ||
|
||
-- CreateTable | ||
CREATE TABLE "Verified" ( | ||
"id" TEXT NOT NULL, | ||
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, | ||
|
||
CONSTRAINT "Verified_pkey" PRIMARY KEY ("id") | ||
); | ||
|
||
-- CreateTable | ||
CREATE TABLE "StaffPick" ( | ||
"id" TEXT NOT NULL, | ||
"type" "StaffPickType" NOT NULL, | ||
"score" INTEGER NOT NULL DEFAULT 0, | ||
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, | ||
|
||
CONSTRAINT "StaffPick_pkey" PRIMARY KEY ("id") | ||
); | ||
|
||
-- CreateTable | ||
CREATE TABLE "Preference" ( | ||
"id" TEXT NOT NULL, | ||
"isPride" BOOLEAN NOT NULL DEFAULT false, | ||
"highSignalNotificationFilter" BOOLEAN NOT NULL DEFAULT false, | ||
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, | ||
|
||
CONSTRAINT "Preference_pkey" PRIMARY KEY ("id") | ||
); | ||
|
||
-- CreateTable | ||
CREATE TABLE "MembershipNft" ( | ||
"id" TEXT NOT NULL, | ||
"dismissedOrMinted" BOOLEAN NOT NULL DEFAULT false, | ||
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, | ||
|
||
CONSTRAINT "MembershipNft_pkey" PRIMARY KEY ("id") | ||
); | ||
|
||
-- CreateTable | ||
CREATE TABLE "Group" ( | ||
"id" TEXT NOT NULL, | ||
"slug" TEXT NOT NULL, | ||
"name" TEXT NOT NULL, | ||
"description" TEXT NOT NULL, | ||
"avatar" TEXT NOT NULL, | ||
"tags" TEXT[], | ||
"lens" TEXT, | ||
"x" TEXT, | ||
"discord" TEXT, | ||
"instagram" TEXT, | ||
"featured" BOOLEAN NOT NULL DEFAULT false, | ||
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, | ||
|
||
CONSTRAINT "Group_pkey" PRIMARY KEY ("id") | ||
); | ||
|
||
-- CreateTable | ||
CREATE TABLE "Pro" ( | ||
"profileId" TEXT NOT NULL, | ||
"hash" TEXT NOT NULL, | ||
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, | ||
"expiresAt" TIMESTAMP(3), | ||
|
||
CONSTRAINT "Pro_pkey" PRIMARY KEY ("profileId") | ||
); | ||
|
||
-- CreateTable | ||
CREATE TABLE "Feature" ( | ||
"id" TEXT NOT NULL, | ||
"key" TEXT NOT NULL, | ||
"name" TEXT NOT NULL, | ||
"description" TEXT NOT NULL, | ||
"priority" INTEGER NOT NULL DEFAULT 0, | ||
"enabled" BOOLEAN NOT NULL DEFAULT true, | ||
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, | ||
|
||
CONSTRAINT "Feature_pkey" PRIMARY KEY ("id") | ||
); | ||
|
||
-- CreateTable | ||
CREATE TABLE "ProfileFeature" ( | ||
"profileId" TEXT NOT NULL, | ||
"featureId" TEXT NOT NULL, | ||
"enabled" BOOLEAN NOT NULL DEFAULT true, | ||
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, | ||
|
||
CONSTRAINT "ProfileFeature_pkey" PRIMARY KEY ("profileId","featureId") | ||
); | ||
|
||
-- CreateIndex | ||
CREATE UNIQUE INDEX "Group_slug_key" ON "Group"("slug"); | ||
|
||
-- CreateIndex | ||
CREATE UNIQUE INDEX "Feature_key_key" ON "Feature"("key"); | ||
|
||
-- AddForeignKey | ||
ALTER TABLE "ProfileFeature" ADD CONSTRAINT "ProfileFeature_featureId_fkey" FOREIGN KEY ("featureId") REFERENCES "Feature"("id") ON DELETE CASCADE ON UPDATE CASCADE; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Please do not edit this file manually | ||
# It should be added in your version-control system (i.e. Git) | ||
provider = "postgresql" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
datasource db { | ||
provider = "postgresql" | ||
url = env("DATABASE_URL") | ||
} | ||
|
||
generator client { | ||
provider = "prisma-client-js" | ||
} | ||
|
||
model Verified { | ||
id String @id @default(uuid()) | ||
createdAt DateTime @default(now()) | ||
} | ||
|
||
model StaffPick { | ||
id String @id @default(uuid()) | ||
type StaffPickType | ||
score Int @default(0) | ||
createdAt DateTime @default(now()) | ||
} | ||
|
||
model Preference { | ||
id String @id @default(uuid()) | ||
isPride Boolean @default(false) | ||
highSignalNotificationFilter Boolean @default(false) | ||
createdAt DateTime @default(now()) | ||
} | ||
|
||
model MembershipNft { | ||
id String @id @default(uuid()) | ||
dismissedOrMinted Boolean @default(false) | ||
createdAt DateTime @default(now()) | ||
} | ||
|
||
model Group { | ||
id String @id @default(uuid()) | ||
slug String @unique | ||
name String | ||
description String | ||
avatar String | ||
tags String[] | ||
lens String? | ||
x String? | ||
discord String? | ||
instagram String? | ||
featured Boolean @default(false) | ||
createdAt DateTime @default(now()) | ||
} | ||
|
||
model Pro { | ||
profileId String @id | ||
hash String | ||
createdAt DateTime @default(now()) | ||
expiresAt DateTime? | ||
} | ||
|
||
model Feature { | ||
id String @id @default(uuid()) | ||
key String @unique | ||
name String | ||
description String | ||
priority Int @default(0) | ||
enabled Boolean @default(true) | ||
createdAt DateTime @default(now()) | ||
// Relations | ||
profiles ProfileFeature[] | ||
} | ||
|
||
model ProfileFeature { | ||
profileId String | ||
featureId String | ||
feature Feature @relation(fields: [featureId], references: [id], onDelete: Cascade) | ||
enabled Boolean @default(true) | ||
createdAt DateTime @default(now()) | ||
@@id([profileId, featureId]) | ||
} | ||
|
||
enum StaffPickType { | ||
PROFILE | ||
GROUP | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
48df9c6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
prerender – ./apps/prerender
prerender-git-main-heyxyz.vercel.app
prerender-heyxyz.vercel.app
prerender.hey.xyz
48df9c6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
api – ./apps/api
hey-api.vercel.app
api-git-main-heyxyz.vercel.app
api-heyxyz.vercel.app
api.hey.xyz
48df9c6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
web – ./apps/web
web-git-main-heyxyz.vercel.app
web-heyxyz.vercel.app
heyxyz.vercel.app
hey.xyz