Implement admin and user management foundation

This commit is contained in:
2026-03-25 00:38:30 +01:00
parent 9d90bde323
commit aeee3d2640
17 changed files with 505 additions and 25 deletions
+3 -10
View File
@@ -1,13 +1,6 @@
export type User = {
id: number;
name: string;
email: string;
avatar?: string;
email_verified_at: string | null;
created_at: string;
updated_at: string;
[key: string]: unknown;
};
import type { UserModel } from '@/types/models/user-model';
export type User = UserModel;
export type Auth = {
user: User;
+1
View File
@@ -1,3 +1,4 @@
export * from './auth';
export * from './navigation';
export * from './page-props';
export * from './ui';
+11
View File
@@ -0,0 +1,11 @@
export type UserModel = {
id: number;
name: string;
email: string;
avatar?: string;
email_verified_at: string | null;
is_admin: boolean;
created_at: string;
updated_at: string;
[key: string]: unknown;
};
+6
View File
@@ -0,0 +1,6 @@
import type { UserModel } from '@/types/models/user-model';
export type AdminUsersPageProps = {
users: UserModel[];
status?: string | null;
};