admin soft delete functionality, also fixed google sign in when user doesn't have first and last name

This commit is contained in:
jackiettran
2025-11-17 11:21:52 -05:00
parent 3a6da3d47d
commit e260992ef2
13 changed files with 580 additions and 33 deletions

View File

@@ -29,6 +29,7 @@ export interface User {
country?: string;
profileImage?: string;
isVerified: boolean;
role?: "user" | "admin";
stripeConnectedAccountId?: string;
addresses?: Address[];
}
@@ -267,6 +268,10 @@ export interface ForumPost {
isPinned: boolean;
acceptedAnswerId?: string;
images?: string[];
isDeleted?: boolean;
deletedBy?: string;
deletedAt?: string;
hasDeletedComments?: boolean;
author?: User;
tags?: PostTag[];
comments?: ForumComment[];
@@ -282,6 +287,8 @@ export interface ForumComment {
parentCommentId?: string;
isDeleted: boolean;
images?: string[];
deletedBy?: string;
deletedAt?: string;
author?: User;
replies?: ForumComment[];
createdAt: string;