import { UserRole } from '../entities';

export interface JwtPayload {
  sub: string;
  username: string;
  email: string;
  role: UserRole;
}

export interface RequestWithUser extends Request {
  user: {
    id: string;
    username: string;
    email: string;
    role: UserRole;
  };
}

export interface AuthResponse {
  access_token: string;
  user: {
    id: string;
    username: string;
    email: string;
    role: UserRole;
  };
}
