export type UserStatus = 'PENDING' | 'ACTIVE' | 'REJECTED' | 'DISABLED';

export interface Role {
  id: number;
  name: string;
  description: string;
  urlPatterns: string[];
}

export interface User {
  id: number;
  email: string;
  name: string;
  avatarUrl: string | null;
  status: UserStatus;
  isAdmin: boolean;
  roles: Role[];
  createdAt: string;
  lastLoginAt: string | null;
}

export interface AuthResponse {
  token: string;
  user: User;
}
