avatar update and manage user table

This commit is contained in:
2026-04-07 17:54:42 +07:00
parent e3065e1bf5
commit 9159b2f0e6
10 changed files with 332 additions and 191 deletions

26
src/interface/admin.ts Normal file
View File

@@ -0,0 +1,26 @@
import { Profile, UserRole } from "@/interface/user";
export interface getUserDto {
cursor?: string;
limit: number;
is_deleted?: boolean;
order?: "asc" | "desc";
role_ids?: string[];
search?: string;
sort?: "created_at" | "updated_at" | "display_name" | "email";
}
export interface fullDataUser {
auth_provider: string;
id: string;
email: string;
google_id: string;
display_name: string;
created_at: string;
updated_at: string;
is_deleted: boolean;
password_hash: string;
roles: UserRole[];
profile: Profile;
token_version: number;
}