import type { Role } from "@/types/rbac";

export type UserRole = string;

export interface User {
  id: number;
  first_name: string;
  last_name: string;
  username: string;
  email: string;
  role: UserRole;
  role_id: number;
  primary_role: Role;
  is_active: boolean;
  created_at: string;
  updated_at: string;
}

export type UserPayload = {
  first_name: string;
  last_name: string;
  username: string;
  email: string;
  role: UserRole;
  role_id?: number;
  is_active: boolean;
  password?: string;
};
