mirror of
https://github.com/SrIzan10/hctv.git
synced 2026-06-06 00:56:56 +00:00
feat(auth): add the ability for users to bypass idv checks
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
-- AlterTable
|
||||
ALTER TABLE "User" ADD COLUMN "bypassVerification" BOOLEAN NOT NULL DEFAULT false;
|
||||
@@ -0,0 +1,10 @@
|
||||
-- AlterEnum
|
||||
-- This migration adds more than one value to an enum.
|
||||
-- With PostgreSQL versions 11 and earlier, this is not possible
|
||||
-- in a single migration. This can be worked around by creating
|
||||
-- multiple migrations, each migration adding only one value to
|
||||
-- the enum.
|
||||
|
||||
|
||||
ALTER TYPE "AdminAuditAction" ADD VALUE 'BYPASS_VERIFICATION_ENABLED';
|
||||
ALTER TYPE "AdminAuditAction" ADD VALUE 'BYPASS_VERIFICATION_DISABLED';
|
||||
@@ -1,3 +1,3 @@
|
||||
# Please do not edit this file manually
|
||||
# It should be added in your version-control system (e.g., Git)
|
||||
provider = "postgresql"
|
||||
provider = "postgresql"
|
||||
@@ -24,6 +24,7 @@ model User {
|
||||
|
||||
hackClubVerificationResult String?
|
||||
hackClubVerificationCheckedAt DateTime?
|
||||
bypassVerification Boolean @default(false)
|
||||
|
||||
hasOnboarded Boolean @default(false)
|
||||
isAdmin Boolean @default(false)
|
||||
@@ -311,6 +312,8 @@ enum AdminAuditAction {
|
||||
REPORT_REVIEWED
|
||||
REPORT_DISMISSED
|
||||
REPORT_ENFORCEMENT
|
||||
BYPASS_VERIFICATION_ENABLED
|
||||
BYPASS_VERIFICATION_DISABLED
|
||||
}
|
||||
|
||||
enum ChatModerationAction {
|
||||
|
||||
Reference in New Issue
Block a user