first commit
This commit is contained in:
26
frontend/types/user.ts
Normal file
26
frontend/types/user.ts
Normal file
@@ -0,0 +1,26 @@
|
||||
export interface User {
|
||||
id: number;
|
||||
username: string;
|
||||
email: string;
|
||||
email_verified: boolean;
|
||||
is_admin: boolean;
|
||||
deleted_at?: string;
|
||||
}
|
||||
|
||||
export interface UserListResponse {
|
||||
items: User[] | null;
|
||||
page: number;
|
||||
per_page: number;
|
||||
total: number;
|
||||
}
|
||||
|
||||
export interface UserResponse {
|
||||
data: User;
|
||||
}
|
||||
|
||||
export interface UserPayload {
|
||||
username: string;
|
||||
email: string;
|
||||
is_admin?: boolean;
|
||||
password?: string; // Optional for updates
|
||||
}
|
||||
Reference in New Issue
Block a user